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

 Copyright Google LLC All Rights Reserved.

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

 Copyright Google LLC All Rights Reserved.

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

 Copyright Google LLC All Rights Reserved.

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

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

 The MIT License

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

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

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

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


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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var h,aaa=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var g=b[f]=b[d];b[d]=function(k,m,r){m&&m.prototype&&e.forEach(function(w){var x=c+"."+d+"::"+w,D=m.prototype;try{if(D.hasOwnProperty(w)){var H=a.ObjectGetOwnPropertyDescriptor(D,w);H&&H.value?(H.value=a.wrapWithCurrentZone(H.value,x),a._redefineProperty(m.prototype,w,H)):D[w]&&(D[w]=a.wrapWithCurrentZone(D[w],x))}else D[w]&&(D[w]=a.wrapWithCurrentZone(D[w],x))}catch(J){}});return g.call(b,k,m,r)};a.attachOriginToPatched(b[d],g)}},ca=
function(a){return(aa.__Zone_symbol_prefix||"__zone_symbol__")+a},baa=function(){function a(ja){g&&g.mark&&g.mark(ja)}function b(ja,ua){g&&g.measure&&g.measure(ja,ua)}function c(ja){R||aa[D]&&(R=aa[D].resolve(0));if(R){var ua=R[H];ua||(ua=R.then);ua.call(R,ja)}else aa[x](ja,0)}function d(ja){Ca===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 ua=0;ua<ja.length;ua++){var xa=ja[ua];try{xa.zone.runTask(xa,null,null)}catch(Ra){oa.onUnhandledError(Ra)}}}oa.microtaskDrainDone();
O=!1}}function f(){}var g=aa.performance;a("Zone");var k=function(ja,ua){this._parent=ja;this._name=ua?ua.name||"unnamed":"<root>";this._properties=ua&&ua.properties||{};this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,ua)};k.assertZonePatched=function(){if(aa.Promise!==ba.ZoneAwarePromise)throw Error("C");};k.__load_patch=function(ja,ua,xa){xa=xa===void 0?!1:xa;if(ba.hasOwnProperty(ja)){if(ua=aa[ca("forceDuplicateZoneCheck")]===!0,!xa&&ua)throw Error("D`"+ja);}else aa["__Zone_disable_"+
ja]||(xa="Zone:"+ja,a(xa),ba[ja]=ua(aa,k,oa),b(xa,xa))};k.prototype.get=function(ja){var ua=this.getZoneWith(ja);if(ua)return ua._properties[ja]};k.prototype.getZoneWith=function(ja){for(var ua=this;ua;){if(ua._properties.hasOwnProperty(ja))return ua;ua=ua._parent}return null};k.prototype.fork=function(ja){if(!ja)throw Error("E");return this._zoneDelegate.fork(this,ja)};k.prototype.wrap=function(ja,ua){if(typeof ja!=="function")throw Error("F`"+ja);var xa=this._zoneDelegate.intercept(this,ja,ua),
Ra=this;return function(){return Ra.runGuarded(xa,this,arguments,ua)}};k.prototype.run=function(ja,ua,xa,Ra){ta={parent:ta,zone:this};try{return this._zoneDelegate.invoke(this,ja,ua,xa,Ra)}finally{ta=ta.parent}};k.prototype.runGuarded=function(ja,ua,xa,Ra){ta={parent:ta,zone:this};try{try{return this._zoneDelegate.invoke(this,ja,ua===void 0?null:ua,xa,Ra)}catch($a){if(this._zoneDelegate.handleError(this,$a))throw $a;}}finally{ta=ta.parent}};k.prototype.runTask=function(ja,ua,xa){if(ja.zone!=this)throw Error("G`"+
(ja.zone||V).name+"`"+this.name);var Ra=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"||Ra!=="eventTask"&&Ra!=="macroTask"){var Yb=ja.state!="running";Yb&&ja._transitionTo("running","scheduled");var lc=ka;ka=ja;ta={parent:ta,zone:this};try{Ra!="macroTask"||!ja.data||pb||$a||(ja.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ja,ua,xa)}catch(fc){if(this._zoneDelegate.handleError(this,
fc))throw fc;}}finally{ua=ja.state,ua!=="notScheduled"&&ua!=="unknown"&&(Ra=="eventTask"||pb||$a&&ua==="scheduling"?Yb&&ja._transitionTo("scheduled","running","scheduling"):(Ra=ja._zoneDelegates,this._updateTaskCount(ja,-1),Yb&&ja._transitionTo("notScheduled","running","notScheduled"),$a&&(ja._zoneDelegates=Ra))),ta=ta.parent,ka=lc}}};k.prototype.scheduleTask=function(ja){if(ja.zone&&ja.zone!==this)for(var ua=this;ua;){if(ua===ja.zone)throw Error("H`"+this.name+"`"+ja.zone.name);ua=ua.parent}ja._transitionTo("scheduling",
"notScheduled");ua=[];ja._zoneDelegates=ua;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===ua&&this._updateTaskCount(ja,1);ja.state=="scheduling"&&ja._transitionTo("scheduled","scheduling");return ja};k.prototype.scheduleMicroTask=function(ja,ua,xa,Ra){return this.scheduleTask(new w("microTask",ja,ua,xa,Ra,void 0))};k.prototype.scheduleMacroTask=function(ja,
ua,xa,Ra,$a){return this.scheduleTask(new w("macroTask",ja,ua,xa,Ra,$a))};k.prototype.scheduleEventTask=function(ja,ua,xa,Ra,$a){return this.scheduleTask(new w("eventTask",ja,ua,xa,Ra,$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(ua){throw ja._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
ua),ua;}this._updateTaskCount(ja,-1);ja._transitionTo("notScheduled","canceling");ja.runCount=-1;return ja}};k.prototype._updateTaskCount=function(ja,ua){var xa=ja._zoneDelegates;ua==-1&&(ja._zoneDelegates=null);for(var Ra=0;Ra<xa.length;Ra++)xa[Ra]._updateTaskCount(ja.type,ua)};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 ta.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return ka}}});k.__symbol__=ca;var m={name:"",onHasTask:function(ja,ua,xa,Ra){return ja.hasTask(xa,Ra)},onScheduleTask:function(ja,ua,xa,Ra){return ja.scheduleTask(xa,Ra)},onInvokeTask:function(ja,ua,xa,Ra,$a,pb){return ja.invokeTask(xa,Ra,$a,pb)},onCancelTask:function(ja,ua,xa,Ra){return ja.cancelTask(xa,
Ra)}},r=function(ja,ua,xa){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this._zone=ja;this._parentDelegate=ua;this._forkZS=xa&&(xa&&xa.onFork?xa:ua._forkZS);this._forkDlgt=xa&&(xa.onFork?ua:ua._forkDlgt);this._forkCurrZone=xa&&(xa.onFork?this._zone:ua._forkCurrZone);this._interceptZS=xa&&(xa.onIntercept?xa:ua._interceptZS);this._interceptDlgt=xa&&(xa.onIntercept?ua:ua._interceptDlgt);this._interceptCurrZone=xa&&(xa.onIntercept?this._zone:ua._interceptCurrZone);this._invokeZS=xa&&(xa.onInvoke?
xa:ua._invokeZS);this._invokeDlgt=xa&&(xa.onInvoke?ua:ua._invokeDlgt);this._invokeCurrZone=xa&&(xa.onInvoke?this._zone:ua._invokeCurrZone);this._handleErrorZS=xa&&(xa.onHandleError?xa:ua._handleErrorZS);this._handleErrorDlgt=xa&&(xa.onHandleError?ua:ua._handleErrorDlgt);this._handleErrorCurrZone=xa&&(xa.onHandleError?this._zone:ua._handleErrorCurrZone);this._scheduleTaskZS=xa&&(xa.onScheduleTask?xa:ua._scheduleTaskZS);this._scheduleTaskDlgt=xa&&(xa.onScheduleTask?ua:ua._scheduleTaskDlgt);this._scheduleTaskCurrZone=
xa&&(xa.onScheduleTask?this._zone:ua._scheduleTaskCurrZone);this._invokeTaskZS=xa&&(xa.onInvokeTask?xa:ua._invokeTaskZS);this._invokeTaskDlgt=xa&&(xa.onInvokeTask?ua:ua._invokeTaskDlgt);this._invokeTaskCurrZone=xa&&(xa.onInvokeTask?this._zone:ua._invokeTaskCurrZone);this._cancelTaskZS=xa&&(xa.onCancelTask?xa:ua._cancelTaskZS);this._cancelTaskDlgt=xa&&(xa.onCancelTask?ua:ua._cancelTaskDlgt);this._cancelTaskCurrZone=xa&&(xa.onCancelTask?this._zone:ua._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;ja=xa&&xa.onHasTask;var Ra=ua&&ua._hasTaskZS;if(ja||Ra)this._hasTaskZS=ja?xa:m,this._hasTaskDlgt=ua,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,xa.onScheduleTask||(this._scheduleTaskZS=m,this._scheduleTaskDlgt=ua,this._scheduleTaskCurrZone=this._zone),xa.onInvokeTask||(this._invokeTaskZS=m,this._invokeTaskDlgt=ua,this._invokeTaskCurrZone=this._zone),xa.onCancelTask||(this._cancelTaskZS=m,this._cancelTaskDlgt=ua,this._cancelTaskCurrZone=this._zone)};
r.prototype.fork=function(ja,ua){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ja,ua):new k(ja,ua)};r.prototype.intercept=function(ja,ua,xa){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ja,ua,xa):ua};r.prototype.invoke=function(ja,ua,xa,Ra,$a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ja,ua,xa,Ra,$a):ua.apply(xa,Ra)};r.prototype.handleError=function(ja,ua){return this._handleErrorZS?
this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ja,ua):!0};r.prototype.scheduleTask=function(ja,ua){var xa=ua;if(this._scheduleTaskZS)this._hasTaskZS&&xa._zoneDelegates.push(this._hasTaskDlgtOwner),(xa=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ja,ua))||(xa=ua);else if(ua.scheduleFn)ua.scheduleFn(ua);else if(ua.type=="microTask")d(ua);else throw Error("J");return xa};r.prototype.invokeTask=function(ja,ua,xa,Ra){return this._invokeTaskZS?
this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ja,ua,xa,Ra):ua.callback.apply(xa,Ra)};r.prototype.cancelTask=function(ja,ua){if(this._cancelTaskZS)ja=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ja,ua);else{if(!ua.cancelFn)throw Error("K");ja=ua.cancelFn(ua)}return ja};r.prototype.hasTask=function(ja,ua){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ja,ua)}catch(xa){this.handleError(ja,xa)}};r.prototype._updateTaskCount=
function(ja,ua){var xa=this._taskCounts,Ra=xa[ja];ua=xa[ja]=Ra+ua;if(ua<0)throw Error("L");Ra!=0&&ua!=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,ua,xa,Ra,$a,pb){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ja;this.source=ua;this.data=Ra;this.scheduleFn=
$a;this.cancelFn=pb;if(!xa)throw Error("M");this.callback=xa;var Yb=this;this.invoke=ja==="eventTask"&&Ra&&Ra.useG?w.invokeTask:function(){return w.invokeTask.call(aa,Yb,this,arguments)}};w.invokeTask=function(ja,ua,xa){ja||(ja=this);Ca++;try{return ja.runCount++,ja.zone.runTask(ja,ua,xa)}finally{Ca==1&&e(),Ca--}};w.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};w.prototype._transitionTo=function(ja,ua,xa){if(this._state===ua||this._state===xa)this._state=
ja,ja=="notScheduled"&&(this._zoneDelegates=null);else throw Error("N`"+this.type+"`"+this.source+"`"+ja+"`"+ua+"`"+(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=ca("setTimeout"),D=ca("Promise"),H=ca("then"),J=[],O=!1,R,V={name:"NO ZONE"},ba={},oa={symbol:ca,currentZoneFrame:function(){return ta},onUnhandledError:f,microtaskDrainDone:f,scheduleMicroTask:d,showUncaughtError:function(){return!k[ca("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:f,patchMethod:function(){return f},bindArguments:function(){return[]},
patchThen:function(){return f},patchMacroTask:function(){return f},patchEventPrototype:function(){return f},getGlobalObjects:function(){},ObjectDefineProperty:function(){return f},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return f},wrapWithCurrentZone:function(){return f},filterProperties:function(){return[]},attachOriginToPatched:function(){return f},_redefineProperty:function(){return f},patchCallbacks:function(){return f},
nativeScheduleMicroTask:c},ta={parent:null,zone:new k(null,null)},ka=null,Ca=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(m){var r=function(){return m.apply(this,daa(arguments,c+"."+k.name$jscomp$127))};ea(r,m);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=ca("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,g=b.slice(2),k=haa[g];k||(k=haa[g]=ca("ON_PROPERTY"+
g));d.set=function(m){var r=this;r||a!==fa||(r=fa);r&&(typeof r[k]==="function"&&r.removeEventListener(g,iaa),f==null||f.call(r,null),r[k]=m,typeof m==="function"&&r.addEventListener(g,iaa,!1))};d.get=function(){var m=this;m||a!==fa||(m=fa);if(!m)return null;var r=m[k];return r?r:e&&(r=e.call(this))?(d.set.call(this,r),typeof m.removeAttribute==="function"&&m.removeAttribute(b),r):null};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[ca(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=ca(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 m=c(g,k);return m.cbIdx>=0&&typeof k[m.cbIdx]==="function"?Zone.current.scheduleMacroTask(m.name,k[m.cbIdx],m,d,void 0):f.apply(g,k)}})},ea=function(a,b){a[ca("OriginalDelegate")]=b},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,ba,oa){if(ba=ba||a.event){V=V||ba.target||
a;var ta=V[la[ba.type][oa?"true":"false"]];if(ta){oa=[];if(ta.length===1)(ba=D(ta[0],V,ba))&&oa.push(ba);else{ta=ta.slice();for(var ka=0;ka<ta.length&&(!ba||ba[taa]!==!0);ka++){var Ca=D(ta[ka],V,ba);Ca&&oa.push(Ca)}}if(oa.length===1)throw oa[0];ba={};for(V=0;V<oa.length;ba={err$jscomp$16:void 0},V++)ba.err$jscomp$16=oa[V],b.nativeScheduleMicroTask(function(ja){return function(){throw ja.err$jscomp$16;}}(ba))}}}function f(V,ba){function oa(Rb,mc){return mc?typeof Rb==="boolean"?{capture:Rb,passive:!0}:
Rb?typeof Rb==="object"&&Rb.passive!==!1?Object.assign({},Rb,{passive:!0}):Rb:{passive:!0}:Rb}function ta(Rb){if(typeof Rb==="object"&&Rb!==null){var mc=Object.assign({},Rb);Rb.signal&&(mc.signal=Rb.signal);return mc}return Rb}if(!V)return!1;var ka=!0;ba&&ba.useG!==void 0&&(ka=ba.useG);var Ca=ba&&ba.vh,ja=!0;ba&&ba.chkDup!==void 0&&(ja=ba.chkDup);var ua=!1;ba&&ba.rt!==void 0&&(ua=ba.rt);for(var xa=V;xa&&!xa.hasOwnProperty(g);)xa=naa(xa);!xa&&V[g]&&(xa=V);if(!xa||xa[w])return!1;var Ra=ba&&ba.eventNameToString,
$a={},pb=xa[w]=xa[g],Yb=xa[ca(k)]=xa[k];V=xa[ca(m)]=xa[m];var lc=xa[ca(r)]=xa[r],fc;ba&&ba.prepend&&(fc=xa[ca(ba.prepend)]=xa[ba.prepend]);var qc=function(Rb){if(!Rb.isRemoved){var mc=la[Rb.eventName],Mc;mc&&(Mc=mc[Rb.capture?"true":"false"]);if(mc=Mc&&Rb.target[Mc])for(var fd=0;fd<mc.length;fd++)if(mc[fd]===Rb){mc.splice(fd,1);Rb.isRemoved=!0;Rb.removeAbortListener&&(Rb.removeAbortListener(),Rb.removeAbortListener=null);mc.length===0&&(Rb.allRemoved=!0,Rb.target[Mc]=null);break}}if(Rb.allRemoved)return Yb.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 fc.call($a.target,$a.eventName,Rb.invoke,$a.options)},ib=function(Rb){return Yb.call(Rb.target,Rb.eventName,Rb.invoke,Rb.options)};qc=ka?qc:ib;ib=function(Rb,mc){var Mc=typeof mc;return Mc==="function"&&Rb.callback===mc||Mc==="object"&&Rb.originalDelegate===mc};var Zb=(ba==null?void 0:ba.diff)||ib,tc=Zone[ca("UNPATCHED_EVENTS")],ld=a[ca("PASSIVE_EVENTS")];ib=
function(Rb,mc,Mc,fd,Nc,ge){Nc=Nc===void 0?!1:Nc;ge=ge===void 0?!1:ge;return function(){var Xe=this||a,Ue=arguments[0];ba&&ba.transferEventName&&(Ue=ba.transferEventName(Ue));var Gh=arguments[1];if(!Gh||uaa&&Ue==="uncaughtException")return Rb.apply(this,arguments);var Jw=!1;if(typeof Gh!=="function"){if(!Gh.handleEvent)return Rb.apply(this,arguments);Jw=!0}if(!Ca||Ca(Rb,Gh,Xe,arguments)){var bp=!!ld&&ld.indexOf(Ue)!==-1,Ej=ta(oa(arguments[2],bp)),Rm=Ej==null?void 0:Ej.signal;if(Rm==null||!Rm.aborted){if(tc)for(var Hq=
0;Hq<tc.length;Hq++)if(Ue===tc[Hq])return bp?Rb.call(Xe,Ue,Gh,Ej):Rb.apply(this,arguments);bp=Ej?typeof Ej==="boolean"?!0:Ej.capture:!1;Hq=Ej&&typeof Ej==="object"?Ej.once:!1;var Kw=Zone.current,ek=la[Ue];ek||(saa(Ue,Ra),ek=la[Ue]);var Dl=ek[bp?"true":"false"];ek=Xe[Dl];var cp=!1;if(ek){if(cp=!0,ja)for(Dl=0;Dl<ek.length;Dl++)if(Zb(ek[Dl],Gh))return}else ek=Xe[Dl]=[];var Lw;Dl=Xe.constructor.name;var VK=vaa[Dl];VK&&(Lw=VK[Ue]);Lw||(Lw=Dl+mc+(Ra?Ra(Ue):Ue));$a.options=Ej;Hq&&($a.options.once=!1);$a.target=
Xe;$a.capture=bp;$a.eventName=Ue;$a.isExisting=cp;if(cp=ka?waa:void 0)cp.taskData=$a;Rm&&($a.options.signal=void 0);var El=Kw.scheduleEventTask(Lw,Gh,cp,Mc,fd);if(Rm){$a.options.signal=Rm;var aA=function(){return El.zone.cancelTask(El)};Rb.call(Rm,"abort",aA,{once:!0});El.removeAbortListener=function(){return Rm.removeEventListener("abort",aA)}}$a.target=null;cp&&(cp.taskData=null);Hq&&($a.options.once=!0);typeof El.options!=="boolean"&&(El.options=Ej);El.target=Xe;El.capture=bp;El.eventName=Ue;Jw&&
(El.originalDelegate=Gh);ge?ek.unshift(El):ek.push(El);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,qc,ua);fc&&(xa.prependListener=ib(fc,".prependListener:",Ob,qc,ua,!0));xa[k]=function(){var Rb=this||a,mc=arguments[0];ba&&ba.transferEventName&&(mc=ba.transferEventName(mc));var Mc=arguments[2];Mc=Mc?typeof Mc==="boolean"?!0:Mc.capture:!1;var fd=arguments[1];if(!fd)return Yb.apply(this,arguments);if(!Ca||Ca(Yb,
fd,Rb,arguments)){var Nc=la[mc],ge;Nc&&(ge=Nc[Mc?"true":"false"]);if(Nc=ge&&Rb[ge])for(var Xe=0;Xe<Nc.length;Xe++){var Ue=Nc[Xe];if(Zb(Ue,fd)){Nc.splice(Xe,1);Ue.isRemoved=!0;Nc.length===0&&(Ue.allRemoved=!0,Rb[ge]=null,Mc||typeof mc!=="string"||(Rb[raa+"ON_PROPERTY"+mc]=null));Ue.zone.cancelTask(Ue);if(ua)return Rb;return}}return Yb.apply(this,arguments)}};xa[m]=function(){var Rb=this||a,mc=arguments[0];ba&&ba.transferEventName&&(mc=ba.transferEventName(mc));var Mc=[];Rb=xaa(Rb,Ra?Ra(mc):mc);for(mc=
0;mc<Rb.length;mc++){var fd=Rb[mc];Mc.push(fd.originalDelegate?fd.originalDelegate:fd.callback)}return Mc};xa[r]=function(){var Rb=this||a,mc=arguments[0];if(mc){ba&&ba.transferEventName&&(mc=ba.transferEventName(mc));var Mc=la[mc];if(Mc){var fd=Rb[Mc["false"]];Rb=Rb[Mc["true"]];if(fd)for(fd=fd.slice(),Mc=0;Mc<fd.length;Mc++){var Nc=fd[Mc];this[k].call(this,mc,Nc.originalDelegate?Nc.originalDelegate:Nc.callback,Nc.options)}if(Rb)for(Rb=Rb.slice(),fd=0;fd<Rb.length;fd++)Mc=Rb[fd],this[k].call(this,
mc,Mc.originalDelegate?Mc.originalDelegate:Mc.callback,Mc.options)}}else{mc=Object.keys(Rb);for(Rb=0;Rb<mc.length;Rb++)(fd=(fd=yaa.exec(mc[Rb]))&&fd[1])&&fd!=="removeListener"&&this[r].call(this,fd);this[r].call(this,"removeListener")}if(ua)return this};ea(xa[g],pb);ea(xa[k],Yb);lc&&ea(xa[r],lc);V&&ea(xa[m],V);return!0}for(var g=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",m=d&&d.listeners||"eventListeners",r=d&&d.rmAll||"removeAllListeners",w=ca(g),x="."+g+":",D=function(V,ba,oa){if(!V.isRemoved){var ta=
V.callback;typeof ta==="object"&&ta.handleEvent&&(V.callback=function(ja){return ta.handleEvent(ja)},V.originalDelegate=ta);try{V.invoke(V,ba,[oa])}catch(ja){var ka=ja}var Ca=V.options;Ca&&typeof Ca==="object"&&Ca.once&&ba[k].call(ba,oa.type,V.originalDelegate?V.originalDelegate:V.callback,Ca);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 m={};g=ia(a,b,function(r){return function(w,x){if(typeof x[0]==="function"){var D={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?x[1]||0:void 0,args:x},H=x[0];x[0]=function(){try{return H.apply(this,arguments)}finally{var oa=D.handle,ta=D.handleId,ka=D.isRefreshable;D.isPeriodic||ka||(ta?delete m[ta]:
oa&&(oa[Haa]=null))}};var J=Zone.current.scheduleMacroTask(b,x[0],D,e,f);if(!J)return J;var O=J.data;w=O.handleId;x=O.handle;var R=O.isRefreshable;O=O.isPeriodic;if(w)m[w]=J;else if(x&&(x[Haa]=J,R&&!O)){var V=x.refresh;x.refresh=function(){var oa=J.zone,ta=J.state;ta==="notScheduled"?(J._state="scheduled",oa._updateTaskCount(J,1)):ta==="running"&&(J._state="scheduling");return V.call(this)}}var ba;return(ba=x!=null?x:w)!=null?ba:J}return r.apply(a,x)}});k=ia(a,c,function(r){return function(w,x){w=
x[0];if(typeof w==="number"){var D=m[w];delete m[w]}else(D=w==null?void 0:w[Haa])?w[Haa]=null:D=w;var H;((H=D)==null?0:H.type)?D.cancelFn&&D.zone.cancelTask(D):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(m,r){return c.current.run(f,b,r,k)}})});a.__load_patch("EventTarget",function(b,c,d){d.patchEventPrototype(b,d);if(!Zone[d.symbol("patchEventTarget")]){var e=d.getGlobalObjects();c=e.eventNames;var f=e.zoneSymbolEventNames,g=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var m=0;m<c.length;m++){var r=c[m],w=e+(r+k),x=e+(r+g);f[r]={};f[r][k]=
w;f[r][g]=x}(c=b.EventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c&&c.prototype])}(c=b.XMLHttpRequestEventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c.prototype])});a.__load_patch("MutationObserver",function(){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 Ca=
ka.data,ja=Ca.target;ja[g]=!1;ja[m]=!1;var ua=ja[f];J||(J=ja[Iaa],O=ja[Jaa]);ua&&O.call(ja,"readystatechange",ua);ua=ja[f]=function(){if(ja.readyState===ja.DONE)if(!Ca.aborted&&ja[g]&&ka.state==="scheduled"){var xa=ja[c.__symbol__("loadfalse")];if(ja.status!==0&&xa&&xa.length>0){var Ra=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);Ca.aborted||ka.state!=="scheduled"||Ra.call(ka)};xa.push(ka)}else ka.invoke()}else Ca.aborted||
ja[g]!==!1||(ja[m]=!0)};J.call(ja,"readystatechange",ua);ja[d]||(ja[d]=ka);oa.apply(ja,Ca.args);ja[g]=!0;return ka}function x(){}function D(ka){ka=ka.data;ka.aborted=!0;return ta.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,Ca){ka[e]=Ca[2]==0;ka[k]=Ca[1];return R.apply(ka,Ca)}}),V=ca("fetchTaskAborting"),ba=ca("fetchTaskScheduling"),oa=
ia(H,"send",function(){return function(ka,Ca){if(c.current[ba]===!0||ka[e])return oa.apply(ka,Ca);Ca={target:ka,url:ka[k],isPeriodic:!1,args:Ca,aborted:!1};var ja=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Ca,w,D);ka&&ka[m]===!0&&!Ca.aborted&&ja.state==="scheduled"&&ja.invoke()}}),ta=ia(H,"abort",function(){return function(ka,Ca){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 ta.apply(ka,
Ca)}})}})(b);var d=ca("xhrTask"),e=ca("xhrSync"),f=ca("xhrListener"),g=ca("xhrScheduled"),k=ca("xhrURL"),m=ca("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&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[ca("unhandledPromiseRejectionHandler")]=
d("unhandledrejection"),c[ca("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,m,r;b<c;)g=a[b++],g<128?e.push(g):g<224?b>=c?qa(d,e):(k=a[b++],g<194||(k&192)!==128?(b--,qa(d,e)):
e.push((g&31)<<6|k&63)):g<240?b>=c-1?qa(d,e):(k=a[b++],(k&192)!==128||g===224&&k<160||g===237&&k>=160||((m=a[b++])&192)!==128?(b--,qa(d,e)):e.push((g&15)<<12|(k&63)<<6|m&63)):g<=244?b>=c-2?qa(d,e):(k=a[b++],(k&192)!==128||(g<<28)+(k-144)>>30!==0||((m=a[b++])&192)!==128||((r=a[b++])&192)!==128?(b--,qa(d,e)):(g=(g&7)<<18|(k&63)<<12|(m&63)<<6|r&63,g-=65536,e.push((g>>10&1023)+55296,(g&1023)+56320))):qa(d,e),e.length>=8192&&(f=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)},Xaa=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},va=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},Yaa=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},Zaa=function(a,b){return za(a.toLowerCase(),b.toLowerCase())},aba=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=$aa(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||$aa(f[2].length==0,g[2].length==0)||$aa(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c},$aa=function(a,b){return a<b?-1:a>b?1:0},Ba=function(){var a=ra.navigator;return a&&(a=a.userAgent)?a:""},cba=function(a){if(!bba||!Da)return!1;for(var b=0;b<Da.brands.length;b++){var c=Da.brands[b].brand;if(c&&za(c,a))return!0}return!1},Ea=function(a){return za(Ba(),a)},Fa=function(){return bba?
!!Da&&Da.brands.length>0:!1},dba=function(){return Fa()?!1:Ea("Opera")},eba=function(){return Fa()?!1:Ea("Trident")||Ea("MSIE")},fba=function(){return Ea("Firefox")||Ea("FxiOS")},hba=function(){return Ea("Safari")&&!(gba()||(Fa()?0:Ea("Coast"))||dba()||(Fa()?0:Ea("Edge"))||(Fa()?cba("Microsoft Edge"):Ea("Edg/"))||(Fa()?cba("Opera"):Ea("OPR"))||fba()||Ea("Silk")||Ea("Android"))},gba=function(){return Fa()?cba("Chromium"):(Ea("Chrome")||Ea("CriOS"))&&!(Fa()?0:Ea("Edge"))||Ea("Silk")},iba=function(){return Ea("Android")&&
!(gba()||fba()||dba()||Ea("Silk"))},jba=function(){var a=Ba();if(eba()){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},kba=function(){if(Fa()){var a=Da.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;
a=a.version.split(".")}else{a=jba();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},lba=function(){return bba?!!Da&&!!Da.platform:!1},mba=function(){return lba()?Da.platform==="Android":Ea("Android")},nba=function(){return Ea("iPhone")&&!Ea("iPod")&&!Ea("iPad")},Ga=function(){return nba()||Ea("iPad")||Ea("iPod")},Ha=function(){return lba()?Da.platform==="macOS":Ea("Macintosh")},oba=function(){return lba()?Da.platform==="Windows":Ea("Windows")},pba=function(){return lba()?
Da.platform==="Chrome OS":Ea("CrOS")},qba=function(){var a=Ba(),b="";oba()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Ga()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Ha()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):Zaa(Ba(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):mba()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):pba()&&(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]},rba=function(a,b){var c=0;Ja(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},tba=function(a,b){b=sba(a,b);return b<0?null:typeof a==="string"?a.charAt(b):a[b]},sba=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 uba(a,b)>=0},vba=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=
uba(a,b);var c;(c=b>=0)&&wba(a,b);return c},wba=function(a,b){Array.prototype.splice.call(a,b,1)},xba=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&&wba(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[]},yba=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)}},Aba=function(a,b,c,d){return Array.prototype.splice.apply(a,zba(arguments,1))},zba=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Cba=function(a,b,c){b=b||a;var d=function(m){return Oa(m)?"o"+Bba(m):(typeof m).charAt(0)+m};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},Eba=function(a,b){a.sort(b||Dba)},Fba=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||Dba;Eba(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},Hba=function(a,b){if(!Na(a)||!Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=Gba,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0},Dba=function(a,b){return a>b?1:a<b?-1:0},Gba=function(a,b){return a===b},Iba=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},Jba=function(){for(var a=[],b=0;b<5;b+=1)a.push(b);return a},Kba=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Nba=function(a,b){b===void 0&&(b=0);Lba();b=Mba[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],k=a[e+1],m=a[e+2],r=b[g>>2];g=b[(g&3)<<4|k>>4];k=b[(k&15)<<2|m>>6];m=b[m&63];c[f++]=r+g+k+m}r=0;m=d;switch(a.length-e){case 2:r=a[e+1],m=b[(r&15)<<2]||d;case 1:a=
a[e],c[f]=b[a>>2]+b[(a&3)<<4|r>>4]+m+d}return c.join("")},Pba=function(a,b){return Oba&&!b?ra.btoa(unescape(encodeURIComponent(a))):Nba(Xaa(a),b)},Sba=function(a){if(Qba)return ra.atob(a);var b="";Rba(a,function(c){b+=String.fromCharCode(c)});return b},Tba=function(a){var b=[];Rba(a,function(c){b.push(c)});return b},Uba=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):za("=.",a[b-1])&&(c=za("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Rba(a,function(f){d[e++]=f});return e!==c?d.subarray(0,
e):d},Rba=function(a,b){function c(m){for(;d<a.length;){var r=a.charAt(d++),w=Vba[r];if(w!=null)return w;if(!ya(r))throw Error("S`"+r);}return m}Lba();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))}},Lba=function(){if(!Vba){Vba={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Mba[c]=d;for(var e=0;e<
d.length;e++){var f=d[e];Vba[f]===void 0&&(Vba[f]=e)}}}},Xba=function(a){return Wba[a]||""},$ba=function(a){if(!Yba)return Uba(a);a=Zba.test(a)?a.replace(Zba,Xba):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 aca&&a!=null&&a instanceof Uint8Array},bca=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){Sa||Ta in a||cca(a,dca);a[Ta]|=b},Va=function(a,b){Sa||Ta in a||cca(a,dca);a[Ta]=b},eca=function(a){if(4&a)return 512&a?512:1024&a?1024:0},Wa=function(a){Ua(a,34);return a},fca=function(a){Ua(a,8192);return a},gca=function(a){Ua(a,32);return a},Xa=function(){return typeof BigInt==="function"},hca=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=ica(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},jca=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();},
kca=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},lca=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},mca=function(a){return a},lb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},oca=function(){var a=nca;return lb(function(b){for(var c in a)if(b===
a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},qca=function(a){return lb(function(b){return pca(b)?b.every(function(c){return a(c)}):!1})},mb=function(a){var b=a;if(rca(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(sca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return tca?BigInt(a):a=uca(a)?a?"1":"0":rca(a)?a.trim()||"0":String(a)},vca=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}},wca=function(a){var b=a>>>0;nb=b;ob=(a-b)/4294967296>>>0},qb=function(a){if(a<0){wca(-a);var b=l(xca(nb,ob));a=b.next().value;b=b.next().value;nb=a>>>0;ob=b>>>0}else wca(a)},yca=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:rb(a,b)},zca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=yca(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},Bca=function(a,b){return Xa()?mb(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<<
BigInt(32))+BigInt.asUintN(32,BigInt(a)))):mb(Aca(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+Cca(c)+Cca(a));return c},Cca=function(a){a=String(a);return"0000000".slice(a.length)+a},Aca=function(a,b){b&2147483648?Xa()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):
(b=l(xca(a,b)),a=b.next().value,b=b.next().value,a="-"+rb(a,b)):a=rb(a,b);return a},Dca=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=l(xca(nb,ob)),a=b.next().value,b=b.next().value,nb=a,ob=b)}},xca=function(a,
b){b=~b;a?a=~a+1:b+=1;return[a,b]},Eca=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b},Fca=function(){var a=Error();Eca(a,"incident");sa(a)},tb=function(a){a=Error(a);Eca(a,"warning");return a},ub=function(a,b){if(a!=null){var c;var d=(c=Gca)!=null?c:Gca={};c=d[a]||0;c>=b||(d[a]=c+1,Fca())}},vb=function(a){return Array.prototype.slice.call(a)},wb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":
b);},Hca=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`"+Ica(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 Jca.test(a);default:return!1}},
Cb=function(a){if(!Ab(a))throw tb("enum");return a|0},Kca=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},Lca=function(){if(!Ab(0))throw tb("uint32");return 0},Mca=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 Nca(a);case "bigint":return String(Gb(64,a));default:return Oca(a)}case 1024:switch(c){case "string":return Pca(a);case "bigint":return mb(Gb(64,a));default:return Qca(a)}case 0:switch(c){case "string":return Nca(a);case "bigint":return mb(Gb(64,a));default:return Rca(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)},Sca=function(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;Dca(a);return Aca(nb,ob)},Tca=function(a){if(a[0]==="-")var b=!1;else b=a.length,b=b<20?!0:b===20&&a<="18446744073709551615";if(b)return a;Dca(a);return rb(nb,ob)},Rca=function(a){a=Jb(a);Kb(a)||(qb(a),a=zca(nb,ob));return a},Uca=function(a){a=Jb(a);a>=0&&Kb(a)||(qb(a),a=yca(nb,ob));return a},Oca=function(a){a=
Jb(a);Kb(a)?a=String(a):(qb(a),a=Aca(nb,ob));return a},Vca=function(a){a=Jb(a);a>=0&&Kb(a)?a=String(a):(qb(a),a=rb(nb,ob));return a},Nca=function(a){var b=Jb(Number(a));if(Kb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Sca(a)},Pca=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(Sca(a))},Qca=function(a){return Kb(a)?mb(Rca(a)):mb(Oca(a))},Wca=function(a){return Kb(a)?mb(Uca(a)):mb(Vca(a))},
Xca=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 Tca(a)},Yca=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(Tca(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"?Rca(a):Nca(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"?Nca(a):b?Oca(a):Rca(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"?Pca(a):Qca(a)},Zca=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 Xca(a);case "bigint":return String(Lb(64,a));default:return Vca(a)}case 1024:switch(c){case "string":return Yca(a);
case "bigint":return mb(Lb(64,a));default:return Wca(a)}case 0:switch(c){case "string":return Xca(a);case "bigint":return mb(Lb(64,a));default:return Uca(a)}default:return wb(b,"Unknown format requested type for int64")}},$ca=function(a){if(a==null)return a;if(typeof a==="bigint")return a>=0&&Mb(a)?a=Number(a):(a=Lb(64,a),a=Mb(a)?Number(a):String(a)),a;if(Bb(a))return typeof a==="number"?Uca(a):Xca(a)},ada=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Lb(64,
a));if(Bb(a))return c==="string"?Xca(a):b?Vca(a):Uca(a)},bda=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return mb(Lb(64,a));if(Bb(a))return b==="string"?Yca(a):Wca(a)},cda=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 Nca(a);if(b==="number")return Rca(a)}},dda=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 Xca(a);if(b==="number")return Uca(a)}},
Sb=function(a){if(typeof a!=="string")throw Error();return a},eda=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},Tb=function(a){return a==null||typeof a==="string"?a:void 0},hda=function(a,b,c,d){if(db(a))return a;if(!Array.isArray(a))return c?d&2?b[fda]||(b[fda]=gda(b)):new b:void 0;c=a[Ta]|0;d=c|d&32|d&2;d!==c&&Va(a,d);return new b(a)},gda=function(a){a=new a;Wa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},ida=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?jda:void 0:a},Vb=function(a,b,c){if(b)return Sb(a);var d;return(d=Tb(a))!=null?d:c?"":void 0},kda=function(a,b,c){a=b?Cb(a):Db(a);return a==null?c?0:void 0:a},lda=function(a,b){if(typeof b==="string")try{b=$ba(b)}catch(c){return!1}return Pa(b)&&bca(a,b)},mda=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},oda=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 nda(a,b,void 0,2)},Wb=function(a,b,c){return nda(a,b,c,0)},nda=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return pda(a,b,c);if(b instanceof Map)return pda(b,a,c);if(a==null||b==null)return!1;if(a instanceof Za)return qda(a,b);if(b instanceof Za)return qda(b,a);if(Pa(a))return lda(a,b);if(Pa(b))return lda(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):mda(e)&&mda(f)?""+a===""+b:e==="boolean"&&f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(a[bb]===cb||b[bb]===cb)return oda(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,m=b.length,r=Math.max(k,m);e=(f|g|64)&128?0:-1;if(d===1||(f|g)&1)d=1;else if((f|g)&8192)return rda(a,b);f=k&&a[k-1];g=m&&b[m-1];f!=null&&typeof f==="object"&&f.constructor===
Object||(f=null);g!=null&&typeof g==="object"&&g.constructor===Object||(g=null);k=k-e-+!!f;m=m-e-+!!g;for(var w=0;w<r;w++)if(!sda(w-e,a,f,k,b,g,m,e,c,d))return!1;if(f)for(var x in f){d=a;r=f;w=k;var D=b,H=g,J=m,O=e,R=c,V=+x;if(!(!Number.isFinite(V)||V<w||V<J||sda(V,d,r,w,D,H,J,O,R,2)))return!1}if(g)for(var ba in g)if((x=f&&ba in f)||(x=a,d=f,r=k,w=b,D=g,H=m,J=e,O=c,R=+ba,x=!Number.isFinite(R)||R<r||R<H?!0:sda(R,x,d,r,w,D,H,J,O,2)),!x)return!1;return!0}if(a.constructor===Object)return Wb([a],[b]);
throw Error();},sda=function(a,b,c,d,e,f,g,k,m,r){b=tda(a,b,c,d,k);e=tda(a,e,f,g,k);r=r===1;if(e==null&&jca(b)||b==null&&jca(e))return!0;a=r?m:m==null?void 0:m.getFieldComparisonTypeInfo(a);return nda(b,e,a,0)},tda=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]},uda=function(a){return a},vda=function(a,b,c,d,e,f){a=hda(a,d,c,f);e&&(a=Xb(a));return a},wda=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},xda=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},yda=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,xda);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},rda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return!1;a=vb(a);b=vb(b);Array.prototype.sort.call(a,xda);Array.prototype.sort.call(b,xda);var c=a.length,d=b.length;if(c===0&&d===0)return!0;for(var e=0,f=0;e<c&&f<d;){var g=void 0,k=a[e];if(!Array.isArray(k))return!1;for(var m=k[0];e<c-1&&Wb((g=a[e+1])[0],m);)e++,k=g;var r=void 0;g=b[f];if(!Array.isArray(g))return!1;for(var w=g[0];f<d-1&&Wb((r=b[f+1])[0],w);)f++,g=r;if(!Wb(m,w))return!1;m=void 0;if(!Wb(k[1],g[1],(m=void 0)==null?
void 0:m.getFieldComparisonTypeInfo(2)))return!1;e++;f++}return e>=c&&f>=d},zda=function(a){return[a,this.get(a)]},Cda=function(){return Ada||(Ada=new $b(Wa([]),void 0,void 0,void 0,Bda))},Dda=function(a){var b=ac(bc);return b?a[b]:void 0},Eda=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=ac(bc);c&&c in a&&(a=a[c])&&delete a[b]},Hda=function(a,b){var c=c===void 0?!1:c;if(ac(Fda)&&ac(bc)&&void 0===Fda){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
e=d[bc];if(!e)return;if(e=e.reviveUnknownFields)try{e(d,b,Gda);return}catch(f){sa(f)}}c&&Eda(a,b)},Jda=function(a,b){var c=ac(bc),d;Sa&&c&&((d=a[c])==null?void 0:d[b])!=null&&ub(Ida,3)},Lda=function(a,b){b<100||ub(Kda,1)},Qda=function(a,b,c,d){var e=d!==void 0;d=!!d;var f=ac(bc),g;!e&&Sa&&f&&(g=a[f])&&Mda(g,Lda);f=[];var k=a.length;g=4294967295;var m=!1,r=!!(b&64),w=r?b&128?0:-1:void 0;if(!(b&1)){var x=k&&a[k-1];x!=null&&typeof x==="object"&&x.constructor===Object?(k--,g=k):x=void 0;if(r&&!(b&128)&&
!e){m=!0;var D;g=((D=Nda)!=null?D:mca)(g-w,w,a,x,void 0)+w}}b=void 0;for(D=0;D<k;D++){var H=a[D];if(H!=null&&(H=c(H,d))!=null)if(r&&D>=g){var J=D-w,O=void 0;((O=b)!=null?O:b={})[J]=H}else f[D]=H}if(x)for(var R in x)k=x[R],k!=null&&(k=c(k,d))!=null&&(D=+R,H=void 0,r&&!Number.isNaN(D)&&(H=D+w)<g?f[H]=k:(D=void 0,((D=b)!=null?D:b={})[R]=k));b&&(m?f.push(b):f[g]=b);e&&ac(bc)&&(a=Dda(a))&&a instanceof Oda&&(f[bc]=Pda(a));return f},Rda=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:Qda(a,b,cc)}if(db(a))return Sda(a);if(a instanceof Za)return Tda(a);if(a instanceof $b)return a=a.size!==0?Uda(a,Rda):void 0,a;return}return a},Xda=function(a,b){if(b){Nda=b==null||b===mca||b[Vda]!==Wda?mca:b;try{return Sda(a)}finally{Nda=void 0}}return Sda(a)},Sda=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Qda(a,
a[Ta]|0,cc)},$da=function(a){switch(typeof a){case "boolean":return Yda||(Yda=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Zda||(Zda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},bea=function(a,b){return aea(a,b[0],b[1])},n=function(a,b,c){return aea(a,b,c,2048)},aea=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(cea&&1&e)throw Error("Z");2048&
e&&!(2&e)&&dea();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 m in k)f=+m,f<g&&(c[f+b]=k[m],delete k[m]);e=e&-16760833|(g&1023)<<14;break a}}if(b){m=Math.max(b,f-(e&128?0:-1));if(m>1024)throw Error("da");e=e&-16760833|(m&1023)<<14}}}Va(a,e|64|d);return a},dea=function(){if(cea)throw Error("ba");
ub(eea,5)},fea=function(a,b){if(typeof a==="string")return new dc($ba(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=ec(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();},iea=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:gea(a,c,b)}if(db(a))return hea(a);if(a instanceof $b){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=Wa(Uda(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=hea(e):Array.isArray(e)?e=gea(e,e[Ta]|0,!!(b&32)):e=void 0;d[1]=e}return c}if(a instanceof Za)return a},gea=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},
jea=function(a,b,c){a=new a.constructor(b);c&&(a.copyOnWrite=eb);a.noLegacyNull=eb;return a},hea=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?a:kea(a,b,c)?jea(a,b):hc(b,c)},hc=function(a,b,c,d){d!=null||(d=!!(34&b));a=Qda(a,b,iea,d);d=32;c&&(d|=2);b=b&16769217|d;Va(a,b);return a},Xb=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?kea(a,b,c)?jea(a,b,!0):new a.constructor(hc(b,c,!1)):a},lea=function(a){var b=
a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?a:kea(a,b,c)?jea(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)},kea=function(a,b,c){return c&2?!0:c&32&&!(c&4096)?(Va(b,c|2),a.copyOnWrite=eb,!0):!1},nc=function(a,b,c,d,e){var f=c+(e?0:-1),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var m;g=((m=b)!=null?m:b=a[Ta]|0)>>14&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b},rc=function(a,b,c,d,e,f,g){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
m=k[Ta]|0;d=fb(a,m)?1:d;e=!!e||d===3;d===2&&ic(a)&&(k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=k[Ta]|0);var r=mea(k,b,g),w=r===oc?7:r[Ta]|0,x=nea(w,m);var D=x;4&D?f==null?a=!1:(!e&&f===0&&(512&D||1024&D)&&(a.constructor[oea]=(a.constructor[oea]|0)+1)<5&&Fca(),a=f===0?!1:!(f&D)):a=!0;if(a){4&x&&(r=vb(r),w=0,x=pc(x,m),m=nc(k,m,b,r,g));for(var H=D=0;D<r.length;D++){var J=c(r[D]);J!=null&&(r[H++]=J)}H<D&&(r.length=H);c=(x|4)&-513;x=c&=-1025;f&&(x|=f);x&=-4097}x!==w&&(Va(r,x),2&x&&Object.freeze(r));
return r=pea(r,x,k,m,b,g,d,a,e)},pea=function(a,b,c,d,e,f,g,k,m){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=pc(b,d),d=nc(c,d,e,a,f)),sc(b)||(m||(b|=16),b!==r&&Va(a,b)));2&b||!(4096&b||16&b)||kc(c,d);return a},mea=function(a,b,c){a=uc(a,b,c);return Array.isArray(a)?a:oc},nea=function(a,b){2&b&&(a|=2);return a|1},sc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)},vc=function(a){return gb(a,
!0,!0)},qea=function(a,b,c,d,e,f){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0;var m=fb(a,k);a:{!m&&ic(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0);var r=uc(g,b,f);a=!1;if(r==null){if(m){b=Cda();break a}r=[]}else if(r.constructor===$b)if(r.arrayState&2&&!m)r=Uda(r);else{b=r;break a}else Array.isArray(r)?a=!!((r[Ta]|0)&2):r=[];if(m){if(!r.length){b=Cda();break a}a||(a=!0,Wa(r))}else if(a){a=!1;fca(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=fca(r)}!a&&k&32&&gca(r);d=new $b(r,c,d,e);k=nc(g,k,b,d,f);a||kc(g,k);b=d}!m&&c&&(b.callToMutableOnAccess=!0);return b},wc=function(a,b,c,d){return qea(a,b,void 0,Vb,c,d)},xc=function(a,b,c,d,e){return qea(a,b,c,d,void 0,e)},yc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=f[Ta]|0;if(c==null)return nc(f,g,b,void 0,e),a;var k=c===oc?7:c[Ta]|0,m=k,r=sc(k),w=r||Object.isFrozen(c);r||(k=0);w||(c=vb(c),m=0,
k=pc(k,g),w=!1);k|=5;var x;r=(x=eca(k))!=null?x:0;for(x=0;x<c.length;x++){var D=c[x],H=d(D,r);Object.is(D,H)||(w&&(c=vb(c),m=0,k=pc(k,g),w=!1),c[x]=H)}k!==m&&(w&&(c=vb(c),k=pc(k,g)),Va(c,k));nc(f,g,b,c,e);return a},zc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nc(f,f[Ta]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a},Bc=function(a,b,c,d,e,f){return Ac(a,b,c,d,void 0,e,f,void 0,!0)},rea=function(a,b,c){if(b&2)throw Error();var d=kb(b),e=mea(a,
c,d),f=e===oc?7:e[Ta]|0,g=nea(f,b);if(2&g||sc(g)||16&g)g===f||sc(g)||Va(e,g),e=vb(e),f=0,g=pc(g,b),nc(a,b,c,e,d);g&=-13;g!==f&&Va(e,g);return e},tea=function(a){if(Sa){var b;return(b=a[sea])!=null?b:a[sea]=new Map}if(sea in a)return a[sea];b=new Map;Object.defineProperty(a,sea,{value:b});return b},vea=function(a,b,c,d,e){var f=tea(a),g=uea(f,a,b,c,e);g!==d&&(g&&(b=nc(a,b,g,void 0,e)),f.set(c,d));return b},uea=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];uc(b,k,e)!=null&&(f!==0&&(c=nc(b,c,f,void 0,e)),f=k)}a.set(d,f);return f},wea=function(a,b,c,d,e){var f=!1;d=uc(a,d,e,function(g){var k=hda(g,c,!1,b);f=k!==g&&k!=null;return k});if(d!=null)return f&&!fb(d)&&kc(a,b),d},xea=function(a,b,c,d,e,f,g,k,m){var r=fb(a,c);f=r?1:f;k=!!k||f===3;r=m&&!r;(f===2||r)&&ic(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0);a=mea(b,e,g);var w=a===oc?7:a[Ta]|0,x=nea(w,c);if(m=!(4&x)){var D=a,H=c,J=!!(2&x);J&&(H|=2);for(var O=!J,R=!0,V=0,
ba=0;V<D.length;V++){var oa=hda(D[V],d,!1,H);if(oa instanceof d){if(!J){var ta=fb(oa);O&&(O=!ta);R&&(R=ta)}D[ba++]=oa}}ba<V&&(D.length=ba);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=pc(x,c),c=nc(b,c,e,a,g));d=a;r=x;for(w=0;w<d.length;w++)D=d[w],x=Xb(D),D!==x&&(d[w]=x);r|=8;x=r=d.length?r|4096:r&-4097;Va(a,x)}return a=pea(a,x,b,c,e,g,f,m,k)},yea=function(a){a==null&&(a=void 0);return a},
pc=function(a,b){return a=(2&b?a|2:a&-3)&-273},Ac=function(a,b,c,d,e,f,g,k,m,r){jc(a);b=rc(a,b,f,2,!0,void 0,g);var w;f=(w=eca(b===oc?7:b[Ta]|0))!=null?w:0;if(m)if(Array.isArray(d))for(e=d.length,k=0;k<e;k++)b.push(c(d[k],f));else for(d=l(d),e=d.next();!e.done;e=d.next())b.push(c(e.value,f));else k&&r?(e!=null||(e=b.length-1),hb(b,e),b.splice(e,k)):(k&&kca(b,e),e!=void 0?b.splice(e,k,c(d,f)):b.push(c(d,f)));return a},Cc=function(a,b,c,d,e,f,g,k){jc(a);var m=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
a=xea(a,m,m[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?kca(a,f):e=e!=null?e:new c,f!=void 0?a.splice(f,g,e):a.push(e),f=c=a===oc?7:a[Ta]|0,(g=fb(e))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096,c!==f&&Va(a,c),g||kc(m),e},zea=function(a){return Pb(a,!0)},Aea=function(a){return gb(a,!1,!1)},Bea=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(gca(b))},Cea=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},Dea=function(a){var b=b===void 0?window:b;return new Dc(a,Cea(a,b))},Eea=function(){ma.__load_patch("Error",function(a,b,c){function d(oa){for(var ta={zoneName:oa.zone.name},ka=ta;oa.parent;){oa=oa.parent;var Ca={zoneName:oa.zone.name};ta=ta.parent=Ca}return ka}function e(oa,ta,ka){ka=ka===void 0?!0:ka;oa=oa.split("\n");for(var Ca=0;oa[Ca]!==w&&oa[Ca]!==x&&oa[Ca]!==D&&
oa[Ca]!==H&&oa[Ca]!==J&&Ca<oa.length;)Ca++;for(;Ca<oa.length&&ta;Ca++){var ja=oa[Ca];if(ja.trim())switch(r[ja]){case g.zoneJsInternal:oa.splice(Ca,1);Ca--;break;case g.transition:ta.parent?ta=ta.parent:ta=null;oa.splice(Ca,1);Ca--;break;default:oa[Ca]+=ka?" ["+ta.zone.name+"]":" ["+ta.zoneName+"]"}}return oa.join("\n")}function f(){var oa=this,ta=m.apply(this,arguments),ka=ta.originalStack=ta.stack;if(f.stackRewrite&&ka){var Ca=c.currentZoneFrame();if(O==="lazy")ta[c.symbol("zoneFrameNames")]=d(Ca);
else if(O==="default")try{ta.stack=ta.zoneAwareStack=e(ka,Ca)}catch(ja){}}return this instanceof m&&this.constructor!=m?(Object.keys(ta).concat("stack","message","cause").forEach(function(ja){var ua=ta[ja];if(ua!==void 0)try{oa[ja]=ua}catch(xa){}}),this):ta}var g={zoneJsInternal:0,transition:1},k=c.symbol("zoneJsInternalStackFrames"),m=a[c.symbol("Error")]=a.Error,r={},w,x,D,H,J;a.Error=f;var O=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";
f.prototype=m.prototype;f[k]=r;f.stackRewrite=!1;var R=c.symbol("zoneAwareStack");O==="lazy"&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[R]||(this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[R]},set:function(oa){this.originalStack=oa;this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var V=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(m))&&a.forEach(function(oa){V.filter(function(ta){return ta===
oa}).length===0&&Object.defineProperty(f,oa,{get:function(){return m[oa]},set:function(ta){m[oa]=ta}})});m.hasOwnProperty("stackTraceLimit")&&(m.stackTraceLimit=Math.max(m.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return m.stackTraceLimit},set:function(oa){return m.stackTraceLimit=oa}}));m.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(oa,ta){m.captureStackTrace(oa,ta)}});Object.defineProperty(f,"prepareStackTrace",
{get:function(){return m.prepareStackTrace},set:function(oa){return oa&&typeof oa==="function"?m.prepareStackTrace=function(ta,ka){if(ka)for(var Ca=0;Ca<ka.length;Ca++)if(ka[Ca].getFunctionName()==="zoneCaptureStackTrace"){ka.splice(Ca,1);break}return oa.call(this,ta,ka)}:m.prepareStackTrace=oa}});if(O!=="disable"){var ba=b.current.fork({name:"detect",onHandleError:function(oa,ta,ka,Ca){if(Ca.originalStack&&Error===f)for(oa=Ca.originalStack.split(/\n/),Ca=ka=ta=!1;oa.length;){var ja=oa.shift();if(/:\d+:\d+/.test(ja)||
ja==="ZoneAwareError"){var ua=ja.split("(")[0].split("@")[0],xa=g.transition;ua.indexOf("ZoneAwareError")!==-1&&(ua.indexOf("new ZoneAwareError")!==-1?(w=ja,x=ja.replace("new ZoneAwareError","new Error.ZoneAwareError")):(D=ja,H=ja.replace("Error.",""),ja.indexOf("Error.ZoneAwareError")===-1&&(J=ja.replace("ZoneAwareError","Error.ZoneAwareError"))),r[x]=g.zoneJsInternal);ua.indexOf("runGuarded")!==-1?ka=!0:ua.indexOf("runTask")!==-1?Ca=!0:ua.indexOf("run")!==-1?ta=!0:xa=g.zoneJsInternal;r[ja]=xa;if(ta&&
ka&&Ca){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(oa,ta,ka,Ca){return oa.scheduleTask(ka,Ca)},onInvokeTask:function(oa,ta,ka,Ca,ja,ua){return oa.invokeTask(ka,Ca,ja,ua)},onCancelTask:function(oa,ta,ka,Ca){return oa.cancelTask(ka,Ca)},onInvoke:function(oa,ta,ka,Ca,ja,ua,xa){return oa.invoke(ka,Ca,ja,ua,xa)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;ba.run(function(){ba.runGuarded(function(){var oa=function(){};ba.scheduleEventTask(k,function(){ba.scheduleMacroTask(k,
function(){ba.scheduleMicroTask(k,function(){throw Error();},void 0,function(ta){ta._transitionTo=oa;ta.invoke()});ba.scheduleMicroTask(k,function(){throw Error();},void 0,function(ta){ta._transitionTo=oa;ta.invoke()})},void 0,function(ta){ta._transitionTo=oa;ta.invoke()},function(){})},void 0,function(ta){ta._transitionTo=oa;ta.invoke()},function(){})})});Error.stackTraceLimit=b}})},Fea=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[ta];typeof Ob==="function"&&Ob.call(this,sb)}catch(ib){}}function f(sb){return sb}function g(sb){return fc.reject(sb)}function k(sb,Ob){return function(ib){try{m(sb,Ob,ib)}catch(Zb){m(sb,!1,Zb)}}}function m(sb,Ob,ib){var Zb=Ra();if(sb===ib)throw new TypeError("ja");if(sb[ka]===null){var tc=null;try{if(typeof ib===
"object"||typeof ib==="function")tc=ib&&ib.then}catch(ld){return Zb(function(){m(sb,!1,ld)})(),sb}if(Ob!==!1&&ib instanceof fc&&ib.hasOwnProperty(ka)&&ib.hasOwnProperty(Ca)&&ib[ka]!==null)r(ib),m(sb,ib[ka],ib[Ca]);else if(Ob!==!1&&typeof tc==="function")try{tc.call(ib,Zb(k(sb,Ob)),Zb(k(sb,!1)))}catch(ld){Zb(function(){m(sb,!1,ld)})()}else{sb[ka]=Ob;Zb=sb[Ca];sb[Ca]=ib;sb[ja]===ja&&Ob===!0&&(sb[ka]=sb[xa],sb[Ca]=sb[ua]);Ob===!1&&ib instanceof Error&&(tc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&
J(ib,$a,{configurable:!0,enumerable:!1,writable:!0,value:tc});for(tc=0;tc<Zb.length;)w(sb,Zb[tc++],Zb[tc++],Zb[tc++],Zb[tc++]);if(Zb.length==0&&Ob==0){sb[ka]=0;Ob=ib;try{throw Error("ka`"+d(ib)+"`"+(ib&&ib.stack?"\n"+ib.stack:""));}catch(ld){Ob=ld}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[Ca],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,Zb,tc){r(sb);var ld=sb[ka],Rb=ld?typeof Zb==="function"?Zb:f:typeof tc==="function"?tc:g;Ob.scheduleMicroTask("Promise.then",function(){try{var mc=sb[Ca],Mc=!!ib&&ja===ib[ja];Mc&&(ib[ua]=mc,ib[xa]=ld);var fd=Ob.run(Rb,void 0,Mc&&Rb!==g&&Rb!==f?[]:[mc]);m(ib,!0,fd)}catch(Nc){m(ib,!1,Nc)}},ib)}function x(sb){var Ob=sb.prototype,ib=H(Ob,"then");if(!ib||ib.writable!==!1&&ib.configurable){var Zb=Ob.then;Ob[oa]=Zb;sb.prototype.then=
function(tc,ld){var Rb=this;return(new fc(function(mc,Mc){Zb.call(Rb,mc,Mc)})).then(tc,ld)};sb[qc]=!0}}function D(sb){return function(Ob,ib){Ob=sb.apply(Ob,ib);if(Ob instanceof fc)return Ob;ib=Ob.constructor;ib[qc]||x(ib);return Ob}}var H=Object.getOwnPropertyDescriptor,J=Object.defineProperty,O=c.symbol,R=[],V=a[O("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ba=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 ta=O("unhandledPromiseRejectionHandler"),ka=O("state"),Ca=O("value"),ja=O("finally"),ua=O("parentPromiseValue"),xa=O("parentPromiseState"),Ra=function(){var sb=!1;return function(Ob){return function(){sb||(sb=!0,Ob.apply(null,arguments))}}},$a=O("currentTaskTrace"),pb=O("rejectionHandledHandler"),Yb=function(){},lc=a.AggregateError,fc=function(sb){if(!(this instanceof fc))throw Error("la");this[ka]=null;this[Ca]=[];try{var Ob=Ra();sb&&sb(Ob(k(this,!0)),Ob(k(this,!1)))}catch(ib){m(this,
!1,ib)}};fc.toString=function(){return"function ZoneAwarePromise() { [native code] }"};fc.resolve=function(sb){return sb instanceof fc?sb:m(new this(null),!0,sb)};fc.reject=function(sb){return m(new this(null),!1,sb)};fc.withResolvers=function(){var sb={};sb.promise=new fc(function(Ob,ib){sb.resolve=Ob;sb.reject=ib});return sb};fc.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 Zb=l(sb),tc=Zb.next();!tc.done;tc=
Zb.next()){var ld=tc.value;ib++;Ob.push(fc.resolve(ld))}}catch(Mc){return Promise.reject(new lc([],"All promises were rejected"))}if(ib===0)return Promise.reject(new lc([],"All promises were rejected"));var Rb=!1,mc=[];return new fc(function(Mc,fd){for(var Nc=0;Nc<Ob.length;Nc++)Ob[Nc].then(function(ge){Rb||(Rb=!0,Mc(ge))},function(ge){mc.push(ge);ib--;ib===0&&(Rb=!0,fd(new lc(mc,"All promises were rejected")))})})};fc.race=function(sb){function Ob(mc){Zb(mc)}function ib(mc){tc(mc)}var Zb,tc,ld=new this(function(mc,
Mc){Zb=mc;tc=Mc});sb=l(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 ld};fc.all=function(sb){return fc.allWithCallback(sb)};fc.allSettled=function(sb){return(this&&this.prototype instanceof fc?this:fc).allWithCallback(sb,{thenCallback:function(Ob){return{status:"fulfilled",value:Ob}},errorCallback:function(Ob){return{status:"rejected",reason:Ob}}})};fc.allWithCallback=function(sb,Ob){var ib,Zb,tc=new this(function(Nc,
ge){ib=Nc;Zb=ge}),ld=2,Rb=0,mc=[];sb=l(sb);for(var Mc=sb.next(),fd={};!Mc.done;fd={curValueIndex:void 0},Mc=sb.next()){(Mc=Mc.value)&&typeof Mc.then==="function"||(Mc=this.resolve(Mc));fd.curValueIndex=Rb;try{Mc.then(function(Nc){return function(ge){mc[Nc.curValueIndex]=Ob?Ob.thenCallback(ge):ge;ld--;ld===0&&ib(mc)}}(fd),function(Nc){return function(ge){Ob?(mc[Nc.curValueIndex]=Ob.errorCallback(ge),ld--,ld===0&&ib(mc)):Zb(ge)}}(fd))}catch(Nc){Zb(Nc)}ld++;Rb++}ld-=2;ld===0&&ib(mc);return tc};da.Object.defineProperty(fc.prototype,
Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});da.Object.defineProperty(fc.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return fc}});fc.prototype.then=function(sb,Ob){var ib,Zb=(ib=this.constructor)==null?void 0:ib[Symbol.species];Zb&&typeof Zb==="function"||(Zb=this.constructor||fc);ib=new Zb(Yb);Zb=b.current;this[ka]==null?this[Ca].push(Zb,ib,sb,Ob):w(this,Zb,ib,sb,Ob);return ib};fc.prototype.catch=function(sb){return this.then(null,
sb)};fc.prototype.finally=function(sb){var Ob,ib=(Ob=this.constructor)==null?void 0:Ob[Symbol.species];ib&&typeof ib==="function"||(ib=fc);Ob=new ib(Yb);Ob[ja]=ja;ib=b.current;this[ka]==null?this[Ca].push(ib,Ob,sb,sb):w(this,ib,Ob,sb,sb);return Ob};fc.resolve=fc.resolve;fc.reject=fc.reject;fc.race=fc.race;fc.all=fc.all;ba=a[ba]=a.Promise;a.Promise=fc;var qc=O("thenPatched");c.patchThen=x;ba&&(x(ba),ia(a,"fetch",function(sb){return D(sb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=R;return fc})},
Gea=function(){ma.__load_patch("toString",function(a){var b=Function.prototype.toString,c=ca("OriginalDelegate"),d=ca("Promise"),e=ca("Error"),f=function(){if(typeof this==="function"){var k=this[c];if(k)return typeof k==="function"?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var g=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&
this instanceof Promise?"[object Promise]":g.call(this)}})},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}},Gc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},Iea=function(a){var b=Hea;return a.hasOwnProperty(b)&&a[b]||null},Jea=function(a){var b;return(a=(b=a==null?void 0:a[Hea])!=null?b:null)?a:null},Lea=function(a){return a&&a.hasOwnProperty(Kea)?a[Kea]:
null},Mea=function(a,b){return Object.is(a,b)},Ic=function(a){var b=Hc;Hc=a;return b},Kc=function(a){if(Nea)throw Error("na");if(Hc!==null){Hc.consumerOnSignalRead(a);var b=Hc.producersTail;if(b===void 0||b.producer!==a){var c=void 0,d=Hc.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Hc.producers,c!==void 0&&c.producer===a)){Hc.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Hc)){if(d){a:{f=Hc;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=Jc(Hc),c={producer:a,consumer:Hc,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Hc.producersTail=c,b!==void 0?b.nextProducer=c:Hc.producers=c,d&&Oea(a,c))}}},Rea=function(a){if(!Jc(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Pea)(a.producerMustRecompute(a)||Qea(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Pea},Sea=function(a){if(a.consumers!==void 0){var b=Nea;
Nea=!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,Sea(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{Nea=b}}},Tea=function(){var a;return((a=Hc)==null?void 0:a.consumerAllowSignalWrites)!==!1},Lc=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Ic(a)},Vea=function(a,b){Ic(b);if(a){a.recomputing=!1;b=a.producersTail;var c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Jc(a)){do c=Uea(c);while(c!==void 0)}b!==
void 0?b.nextProducer=void 0:a.producers=void 0}}},Qea=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;Rea(b);if(c!==b.version)return!0}return!1},Wea=function(a){if(Jc(a))for(var b=a.producers;b!==void 0;)b=Uea(b);a.producers=void 0;a.producersTail=void 0;a.consumers=void 0;a.consumersTail=void 0},Oea=function(a,b){var c=a.consumersTail,d=Jc(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)Oea(a.producer,a)},Uea=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,!Jc(b))for(a=b.producers;a!==void 0;)a=Uea(a);return c},Jc=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0},Yea=function(a,b){var c=Object.create(Xea);
c.computation=a;b!==void 0&&(c.equal=b);a=function(){Rea(c);Kc(c);if(c.value===Oc)throw c.error;return c.value};a[Pc]=c;return a},afa=function(a,b){var c=Object.create(Zea);c.value=a;b!==void 0&&(c.equal=b);a=function(){Kc(c);return c.value};a[Pc]=c;return[a,function(d){return Qc(c,d)},function(d){Tea()||$ea();Qc(c,d(c.value))}]},Qc=function(a,b){Tea()||$ea();a.equal(a.value,b)||(a.value=b,a.version++,Pea++,Sea(a))},cfa=function(a,b,c){var d=Object.create(bfa);d.source=a;d.computation=b;c!=void 0&&
(d.equal=c);a=function(){Rea(d);Kc(d);if(d.value===Oc)throw d.error;return d.value};a[Pc]=d;return a},Rc=function(a){var b=Ic(null);try{return a()}finally{Ic(b)}},Sc=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Sc).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},dfa=function(a,b){return a?b?a+" "+b:a:b||""},efa=function(a,b){return"NG0"+Math.abs(a)+
(b?": "+b:"")},Tc=function(a){return typeof a==="string"?a:a==null?"":String(a)},ffa=function(){throw new Uc(-201,!1);},ifa=function(a){var b=new Uc(a,"");b[gfa]=a;b[hfa]="";return b},Vc=function(a){var b=jfa;jfa=a;return b},kfa=function(a,b,c){if((a=Iea(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;ffa()},Wc=function(a){var b=lfa;lfa=a;return b},nfa=function(a){return a===mfa||(a==null?void 0:a.name)==="\u0275NotFound"},Xc=
function(a){a.__forward_ref__=Xc;a.toString=function(){return Sc(this())};return a},Yc=function(a){return ofa(a)?a():a},ofa=function(a){return typeof a==="function"&&a.hasOwnProperty(pfa)&&a.__forward_ref__===Xc},qfa=function(a,b){b=b===void 0?0:b;var c=lfa;if(c===void 0)throw new Uc(-203,!1);if(c===null)return kfa(a,void 0,b);b={optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)};a=c.retrieve(a,b);if(nfa(a)){if(b.optional)return null;throw a;}return a},Zc=function(a,b){b=b===void 0?0:b;
return(jfa||qfa)(Yc(a),b)},p=function(a,b){return Zc(a,rfa(b))},rfa=function(a){return typeof a==="undefined"||typeof a==="number"?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},sfa=function(a){for(var b=[],c=0;c<a.length;c++){var d=Yc(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Uc(900,!1);for(var e=void 0,f=0,g=0;g<d.length;g++){var k=d[g],m=k.__NG_DI_FLAG__;typeof m==="number"?m===-1?e=k.token:f|=m:e=k}b.push(Zc(e,f))}else b.push(Zc(d))}return b},tfa=function(a,b){a.__NG_DI_FLAG__=
b;a.prototype.__NG_DI_FLAG__=b;return a},vfa=function(a){return a[ufa]||null},$c=function(a){return a.hasOwnProperty(wfa)?a[wfa]:null},xfa=function(a,b){a.forEach(function(c){return Array.isArray(c)?xfa(c,b):b(c)})},yfa=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Afa=function(a,b,c){var d=zfa(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}}},Bfa=function(a,
b){b=zfa(a,b);if(b>=0)return a[b|1]},zfa=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)},Dfa=function(){return{"\u0275providers":Cfa(!0,ad.apply(0,arguments)),"\u0275fromNgModule":!0}},Cfa=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};xfa(ad.apply(1,arguments),function(f){Efa(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&Ffa(d,e);return b},Ffa=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;Gfa(c.providers$jscomp$2,function(f){return function(g){b(g,f.ngModule)}}(c))}},Efa=function(a,b,c,d){a=Yc(a);if(!a)return!1;var e=null,f=Lea(a),g=!f&&(a[bd]||null);if(f||g){if(g&&!g.standalone)return!1;e=a}else{var k=a.ngModule;if(f=Lea(k))e=k;else return!1}k=d.has(e);if(g){if(k)return!1;d.add(e);if(g.dependencies)for(f=typeof g.dependencies==="function"?g.dependencies():g.dependencies,f=l(f),k=f.next();!k.done;k=
f.next())Efa(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);var m;xfa(f.imports,function(w){Efa(w,b,c,d)&&(m||(m=[]),m.push(w))});m!==void 0&&Ffa(m,b)}k||(g=$c(e)||function(){return new e},b({provide:e,useFactory:g,deps:cd},e),b({provide:Hfa,useValue:e,multi:!0},e),b({provide:Ifa,useValue:function(){return Zc(e)},multi:!0},e));f=f.providers;if(f!=null&&!k){var r=a;Gfa(f,function(w){b(w,r)})}}else return!1;return e!==a&&a.providers!==void 0},Gfa=function(a,b){a=l(a);for(var c=a.next();!c.done;c=
a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),Array.isArray(c)?Gfa(c,b):b(c)},Kfa=function(a){return a!==null&&typeof a=="object"&&Jfa in a},dd=function(a){return typeof a==="function"},Nfa=function(){Lfa===void 0&&(Lfa=new Mfa);return Lfa},Pfa=function(a){var b=Iea(a);b=b!==null?b.factory:$c(a);if(b!==null)return b;if(a instanceof ed)throw new Uc(204,!1);if(a instanceof Function)return Ofa(a);throw new Uc(204,!1);},Ofa=function(a){if(a.length>0)throw new Uc(204,!1);var b=Jea(a);
return b!==null?function(){return b.factory(a)}:function(){return new a}},Sfa=function(a){if(Kfa(a))return gd(void 0,a.useValue);a=Qfa(a);return gd(a,Rfa)},Qfa=function(a){var b=void 0;if(dd(a))return b=Yc(a),$c(b)||Pfa(b);if(Kfa(a))b=function(){return Yc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,q(sfa(a.deps||[])))};else if(a&&a.useExisting)b=function(d,e){return Zc(Yc(a.useExisting),e!==void 0&&e&8?8:void 0)};else{var c=Yc(a&&(a.useClass||a.provide));if(a.deps)b=
function(){return new (Function.prototype.bind.apply(c,[null].concat(q(sfa(a.deps)))))};else return $c(c)||Pfa(c)}return b},Tfa=function(a){if(a.destroyed)throw new Uc(205,!1);},gd=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},Ufa=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?Ufa(c,b):c&&c&&c.\u0275providers?Ufa(c.\u0275providers,b):b(c)},id=function(a,b){a instanceof hd?Tfa(a):a=new Vfa(a);a=Wc(a);var c=Vc();try{return b()}finally{Wc(a),
Vc(c)}},jd=function(a){return Array.isArray(a)&&typeof a[1]==="object"},kd=function(a){return Array.isArray(a)&&a[1]===!0},Yfa=function(a){a.type.prototype.ngOnChanges&&(a.setInput=Wfa);return Xfa},Xfa=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===md)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},Wfa=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__=
{previous:md,current:null});var g=f;f=g.current||(g.current={});g=g.previous;var k=g[d];f[d]=new Zfa(k&&k.currentValue,c,g===md);b!==null?b.applyValueToInputSignal(b,c):a[e]=c},nd=function(a){for(;Array.isArray(a);)a=a[0];return a},od=function(a,b){return nd(b[a.index])},$fa=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);b[c]=d},pd=function(a,b){a=b[a];return jd(a)?a:a[0]},qd=function(a,b){return b===null||b===void 0?null:a[b]},aga=function(a){a[2]&1024||(a[2]|=1024,(a[2]&
128)===128&&rd(a))},bga=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},cga=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(8);a[2]&64&&(a[2]|=1024);bga(a)&&rd(a)},rd=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=td(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;a=td(a)}},dga=function(a,b){if((a[2]&256)===256)throw new Uc(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},td=function(a){a=a[3];return kd(a)?a[3]:
a},ega=function(a){var b;return(b=a[7])!=null?b:a[7]=[]},fga=function(a){var b;return(b=a.cleanup)!=null?b:a.cleanup=[]},gga=function(a,b,c,d){b=ega(b);b.push(c);a.firstCreatePass&&fga(a).push(d,b.length-1)},t=function(){return ud.lView},vd=function(){return ud.tView},u=function(a){ud.contextLView=a;return a[8]},v=function(a){ud.contextLView=null;return a},wd=function(){for(var a=ud.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},hga=function(){var a=ud,b=a.currentTNode;return a.isParent?
b:b.parent},xd=function(a,b){var c=ud;c.currentTNode=a;c.isParent=b},jga=function(a){var b=iga;iga=a;return b},yd=function(){var a=ud,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},zd=function(){return ud.bindingIndex++},kga=function(a){var b=ud,c=b.bindingIndex;b.bindingIndex+=a;return c},lga=function(a){var b=ud.currentDirectiveIndex;return b===-1?null:a[b]},nga=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=ud=mga();c.currentTNode=b;c.lView=a;return!0},oga=function(a){var b=mga(),c=a[1];ud=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},mga=function(){var a=ud,b=a===null?null:a.child;return b===null?pga(a):b},pga=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},qga=function(){var a=ud;ud=a.parent;a.currentTNode=null;a.lView=null;return a},rga=function(){var a=qga();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},Ad=function(){var a=ud;return a.tView.data[a.selectedIndex]},
Bd=function(){ud.currentNamespace="svg"},Cd=function(){ud.currentNamespace=null},sga=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,g=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var m=void 0,r=void 0;((r=(m=a).contentHooks)!=null?r:m.contentHooks=[]).push(-c,e)}f&&(m=e=void 0,((m=(e=a).contentHooks)!=null?m:e.contentHooks=[]).push(c,f),m=e=void 0,((m=(e=a).contentCheckHooks)!=null?
m:e.contentCheckHooks=[]).push(c,f));g&&(e=f=void 0,((e=(f=a).viewHooks)!=null?e:f.viewHooks=[]).push(-c,g));k&&(f=g=void 0,((f=(g=a).viewHooks)!=null?f:g.viewHooks=[]).push(c,k),f=g=void 0,((f=(g=a).viewCheckHooks)!=null?f:g.viewCheckHooks=[]).push(c,k));d!=null&&(g=k=void 0,((g=(k=a).destroyHooks)!=null?g:k.destroyHooks=[]).push(c,d))}},uga=function(a,b,c,d){(a[2]&3)===c&&tga(a,b,c,d)},vga=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},tga=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-
1,g=0,k=d!==void 0?a[17]&65535:0;k<f;k++)if(typeof b[k+1]==="number"){if(g=b[k],d!=null&&g>=d)break}else{b[k]<0&&(a[17]+=65536);if(g<e||e==-1){var m=b[k]<0,r=b[k+1],w=a[m?-b[k]:b[k]];m?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,wga(w,r)):wga(w,r);a[17]=(a[17]&4294901760)+k+2}k++}},wga=function(a,b){Dd(4,a,b);var c=Ic(null);try{b.call(a)}finally{Ic(c),Dd(5,a,b)}},xga=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?yga(a,c,e,b[++d]):yga(a,c,e,null))}return a},yga=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)},zga=function(a,b){for(a>>=
16;a>0;)b=b[14],a--;return b},Aga=function(a){return{toString:a}.toString()},Cga=function(a){var b=Bga;Bga=a;return b},Fga=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty(Dga)&&(d=c[Dga]);d==null&&(d=c[Dga]=Ega++);c=d&255;b.data[a+(c>>5)]|=1<<c},Jga=function(a,b){var c=Gga(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Hga(c.data,a),Hga(b,null),Hga(c.blueprint,null));c=Iga(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=zga(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},Hga=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Gga=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},Iga=function(a,b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=Kga(c);if(b===null)break;a++;c=c[14];if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},Lga=function(a){var b=wd();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(xga(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},Mga=function(a,b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=Vc();try{return a?a.get(b,d,c&8):kfa(b,d,c&8)}finally{Vc(e)}}c&8||d!==void 0?b=d:(ffa(),b=void 0);return b},Oga=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,m=b;k!==null&&m!==null&&m[2]&2048&&(m[2]&512)===0;){var r=Nga(k,m,c,f|2);if(r!==Fd){f=r;break a}k=k.parent;if(!k){if(k=m[20])if(k=k.get(c,Fd,f),k!==Fd){f=k;break a}k=Kga(m);m=m[14]}}f=g}if(f!==Fd)return f}a=Nga(a,b,c,d);if(a!==Fd)return a}return Mga(b,c,d,e)},Nga=function(a,b,c,d){var e=Fd;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(Dga)?c[Dga]:void 0,f=typeof f==="number"?f>=0?f&255:Pga:f;if(typeof f==="function"){if(!nga(b,a,d))return d&
1?d&8||e!==void 0?b=e:(ffa(),b=void 0):b=Mga(b,c,d,e),b;try{var g=f(d);if(g!=null||d&8)return g;ffa()}finally{qga()}}else if(typeof f==="number"){g=null;var k=Gga(a,b),m=d&1?b[15][5]:null;if(k===-1||d&4){var r=k===-1?Iga(a,b):b[k+8];r===-1||d&2?k=-1:(g=b[1],k=r&32767,b=zga(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=Qga(w,r,c,g==null?w.componentOffset>-1&&Bga:g!=r&&(w.type&3)!==0,d&1&&m===w);r=x!==null?Rga(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]===m)&&b[k+(f>>5)]&1<<f?(g=a,k=r&32767,b=zga(r,b)):k=-1}}return e},Qga=function(a,b,c,d,e){var f=a.providerIndexes,g=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var m=f>>20;f=e?k+m:a;for(d=d?k:k+m;d<f;d++)if(k=g[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=g[b])&&e.template&&e.type===c?b:null},Rga=function(a,b,c,d,e){var f=a[c],g=b.data;if(f instanceof Sga){var k=f;if(k.resolving)throw ifa(-200);var m=Cga(k.canSeeViewProviders);k.resolving=!0;var r=k.injectImpl?
Vc(k.injectImpl):null;nga(a,d,0);try{if(f=a[c]=k.factory(void 0,e,g,a,d),b.firstCreatePass&&c>=d.directiveStart){var w=g[c],x=w.type.prototype,D=x.ngOnInit,H=x.ngDoCheck;if(x.ngOnChanges){var J=Yfa(w),O;((O=b.preOrderHooks)!=null?O:b.preOrderHooks=[]).push(c,J);var R;((R=b.preOrderCheckHooks)!=null?R:b.preOrderCheckHooks=[]).push(c,J)}if(D){var V;((V=b.preOrderHooks)!=null?V:b.preOrderHooks=[]).push(-c,D)}if(H){var ba;((ba=b.preOrderHooks)!=null?ba:b.preOrderHooks=[]).push(c,H);var oa;((oa=b.preOrderCheckHooks)!=
null?oa:b.preOrderCheckHooks=[]).push(c,H)}}}finally{r!==null&&Vc(r),Cga(m),k.resolving=!1,qga()}}return f},Pga=function(){return new Gd(wd(),t())},Hd=function(a){return Aga(function(){var b=a.prototype.constructor;b=b[wfa]||Tga(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[wfa]||Tga(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Tga=function(a){return ofa(a)?function(){var b=Tga(Yc(a));return b&&b()}:$c(a)},
Kga=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:c===1?a[5]:null},Uga=function(a){return function(){var b=ad.apply(0,arguments);if(a){b=a.apply(null,q(b));for(var c in b)this[c]=b[c]}}},Vga=function(a,b){return Aga(function(){function c(){function e(k,m,r){for(m=k.hasOwnProperty("__parameters__")?k.__parameters__:Object.defineProperty(k,"__parameters__",{value:[]}).__parameters__;m.length<=r;)m.push(null);(m[r]=m[r]||[]).push(g);return k}var f=ad.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=Uga(b);c.prototype.ngMetadataName=a;return c})},Xga=function(a,b,c,d){a=Wga(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},Wga=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)||cd,Dfa(a)];d=d||(typeof a==="object"?void 0:Sc(a));return new hd(c,b||Nfa(),d||null,e)},Yga=function(a){return a.type===4&&a.value!=="ng-template"},
Zga=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=0;f<e.length;f++)if(xga(e[f]))break a;f=e.length}else f=0;for(var g=!1,k=0;k<b.length;k++){var m=b[k];if(typeof m==="number"){if(!g&&(d&1)!==0&&(m&1)!==0)return!1;g&&(m&1)===0||(g=!1,d=m|d&1)}else if(!g)if(d&4){if(d=2|d&1,m!==""&&m!==(a.type!==4||c?a.value:"ng-template")||m===""&&b.length===1){if((d&1)===0)return!1;g=!0}}else if(d&8){var r;if(!(r=e===null)){a:{r=void 0;var w=a,x=0;if(c)for(;x<e.length&&typeof e[x]==="string";x+=2){if(w=
e[x]==="class"){b:{w=e[x+1].toLowerCase();for(var D=0,H=w.length;;){D=w.indexOf(m,D);if(D===-1){w=D;break b}if(D===0||w.charCodeAt(D-1)<=32){var J=m.length;if(D+J===H||w.charCodeAt(D+J)<=32){w=D;break b}}D+=1}w=void 0}w=w!==-1}if(w){m=!0;break a}}else if(Yga(w)){m=!1;break a}x=e.indexOf(1,x);if(x>-1)for(;++x<e.length&&typeof(r=e[x])==="string";)if(r.toLowerCase()===m){m=!0;break a}m=!1}r=!m}if(r){if((d&1)===0)return!1;g=!0}}else{r=b[++k];a:if(e===null)m=-1;else if(x=0,c||!Yga(a)){for(w=!1;x<e.length;){H=
e[x];if(H===m){m=x;break a}if(H===3||H===6)w=!0;else if(H===1||H===2){for(H=e[++x];typeof H==="string";)H=e[++x];continue}else if(H===4)break;else if(H===0){x+=4;continue}x+=w?1:2}m=-1}else b:{x=e.indexOf(4);if(x>-1)for(x++;x<e.length;){w=e[x];if(typeof w==="number")break;if(w===m){m=x;break b}x++}m=-1}if(m===-1){if((d&1)===0)return!1;g=!0}else if(r!==""&&(m=m>f?"":e[m+1].toLowerCase(),d&2&&r!==m)){if((d&1)===0)return!1;g=!0}}}return(d&1)===0||g},$ga=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<
b.length;d++)if(Zga(a,b[d],c))return!0;return!1},aha=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},cha=function(){if(bha!==void 0)return bha;if(typeof document!=="undefined")return document;throw new Uc(210,!1);},Id=function(a,b){jd(b)?
(a.__ngContext__=b[19],dha.set(b[19],b)):a.__ngContext__=b},eha=function(a){for(;a!==null&&!kd(a);)a=a[4];return a},Kd=function(a,b){return new Jd(od(a,b))},fha=function(a){return a instanceof Jd?a.nativeElement:a},Ld=function(a){return a.ownerDocument.defaultView},gha=function(a){return a.ownerDocument},jha=function(a){return a.replace(hha,function(b){return b.replace(iha,"\u200b$1\u200b")})},kha=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;if(d!==null)for(var f=0;f<d.length;){var g=
d[f];if(typeof g==="number"){if(g!==0)break;f++;g=d[f++];var k=d[f++],m=d[f++];a.setAttribute(b,k,m,g)}else k=d[++f],g.charCodeAt(0)===64?a.setProperty(b,g,k):a.setAttribute(b,g,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},mha=function(a){return lha(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},nha=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)},lha=function(a){return a!==null&&(typeof a==="function"||typeof a==="object")},oha=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},pha=function(a,b){var c=iga?64:1088,d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=td(a);if((a[2]&512)!==0&&!b)break;a=b}},qha=function(){return new Pd(t())},rha=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,
1))},Qd=function(a){return typeof a==="function"},sha=function(a){return a instanceof Rd||a&&"closed"in a&&Qd(a.remove)&&Qd(a.add)&&Qd(a.unsubscribe)},Sd=function(){},uha=function(a){tha(function(){throw a;})},Td=function(a){return a},Ud=function(){return vha(ad.apply(0,arguments))},vha=function(a){return a.length===0?Td:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},wha=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},xha=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())})})},yha=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})},zha=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},
Bha=function(a,b){return new Vd(function(c){var d;c.add(b.schedule(function(){d=a[Aha]();zha(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()}})},Dha=function(a,b){return new Vd(function(c){var d=new Rd;d.add(b.schedule(function(){var e=a[Cha]();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})},Eha=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)}))})})})},Fha=function(a){return new TypeError("va`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},Hha=function(a,b){if(a!=null){if(Qd(a[Cha]))return Dha(a,
b);if(Gha(a))return xha(a,b);if(Qd(a==null?void 0:a.then))return Eha(a,b);if(Symbol.asyncIterator&&Qd(a==null?void 0:a[Symbol.asyncIterator]))return yha(a,b);if(Qd(a==null?void 0:a[Aha]))return Bha(a,b)}throw Fha(a);},Xd=function(a,b){return b?Hha(a,b):Wd(a)},Wd=function(a){if(a instanceof Vd)return a;if(a!=null){if(Qd(a[Cha]))return Iha(a);if(Gha(a))return Jha(a);if(Qd(a==null?void 0:a.then))return Kha(a);if(Symbol.asyncIterator&&Qd(a==null?void 0:a[Symbol.asyncIterator]))return Lha(a);if(Qd(a==
null?void 0:a[Aha]))return Mha(a)}throw Fha(a);},Iha=function(a){return new Vd(function(b){var c=a[Cha]();if(Qd(c.subscribe))return c.subscribe(b);throw new TypeError("wa");})},Jha=function(a){return new Vd(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},Kha=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,uha)})},Mha=function(a){return new Vd(function(b){for(var c=a[Aha]();!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()}})},Lha=function(a){return new Vd(function(b){Nha(a,b).catch(function(c){return b.error(c)})})},Nha=function(a,b){var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:Yd(m,2,3);var r=a[Symbol.asyncIterator];f=r!==void 0?r.call(a):new Oha(l(a));case 5:return z(m,f.next(),8);case 8:d=m.yieldResult;if(d.done){m.jumpTo(3);break}g=d.value;b.next(g);m.jumpTo(5);break;case 3:Zd(m);
$d(m,9);if(!d||d.done||!(e=f.return)){m.jumpTo(9);break}return z(m,e.call(f),9);case 9:Zd(m,0,0,1);if(c)throw c.error;ae(m,10,1);break;case 10:ae(m,4);break;case 2:k=be(m);c={error:k};m.jumpTo(3);break;case 4:b.complete(),ce(m)}})},Pha=function(a,b){return b?xha(a,b):Jha(a)},Qha=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=ad.apply(0,arguments),b=de(a);return b?xha(a,b):Pha(a)},fe=function(a){var b=
Qd(a)?a:function(){return a};return new Vd(function(c){return c.error(b())})},Rha=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 Sha)}});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");}},Tha=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())})},Vha=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=Uha;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++))}))})},
Xha=function(a){return A(function(b){return Wha(b)?a.apply(null,q(b)):a(b)})},bia=function(a){if(a.length===1){var b=a[0];if(Yha(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Zha(b)===$ha)return a=aia(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},le=function(){var a=ad.apply(0,arguments),b=de(a),c=Qha(a);a=bia(a);var d=a.args,e=a.keys;if(d.length===0)return Xd([],b);b=new Vd(cia(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(Xha(c)):b},cia=function(a,b,c){c=c===void 0?Td:c;return function(d){dia(b,function(){for(var e=a.length,f=Array(e),g=e,k=a.map(function(){return!1}),m=!0,r={i$jscomp$210:0};r.i$jscomp$210<e;r={i$jscomp$210:r.i$jscomp$210},r.i$jscomp$210++)dia(b,function(w){return function(){Xd(a[w.i$jscomp$210],b).subscribe(new eia(d,function(x){f[w.i$jscomp$210]=x;m&&(k[w.i$jscomp$210]=!0,m=!k.every(Td));m||d.next(c(f.slice()))},function(){return--g===0}))}}(r),d)},d)}},dia=function(a,b,c){a?c.add(a.schedule(b)):
b()},fia=function(a,b,c,d){var e=[],f=0,g=0,k=!1,m=function(r){f++;Wd(c(r,g++)).subscribe(new ke(b,function(w){b.next(w)},void 0,function(){f--;for(var w={};e.length&&f<d;w={bufferedValue:void 0})w.bufferedValue=e.shift(),m(w.bufferedValue);!k||e.length||f||b.complete()}))};a.subscribe(new ke(b,function(r){return f<d?m(r):e.push(r)},void 0,function(){k=!0;!k||e.length||f||b.complete()}));return function(){e=null}},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 fia(d,e,a,c)})},ne=function(a){a=a===void 0?Infinity:a;return me(Td,a)},oe=function(){var a=ad.apply(0,arguments);return ne(1)(Pha(a,de(a)))},pe=function(a){return new Vd(function(b){Wd(a()).subscribe(b)})},qe=function(){var a=ad.apply(0,arguments),b=Qha(a),c=bia(a);a=c.args;c=c.keys;return b?gia(a,c).pipe(A(function(d){return b.apply(null,q(d))})):gia(a,c)},gia=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 m=Wd(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(m.subscribe({next:function(r){return function(w){r.hasValue$jscomp$2||(r.hasValue$jscomp$2=!0,g++);e[r.sourceIndex]=w}}(k),error:function(r){return c.error(r)},complete:function(r){return function(){f++;f!==d&&r.hasValue$jscomp$2||(g===d&&c.next(b?b.reduce(function(w,x,D){return w[x]=
e[D],w},{}):e),c.complete())}}(k)}))}})},re=function(a,b,c){if(Qd(c)){var d=c;c=void 0}if(d)return re(a,b,c).pipe(Xha(d));d=l(Qd(a.addEventListener)&&Qd(a.removeEventListener)?hia.map(function(g){return function(k){return a[g](b,k,c)}}):Qd(a.addListener)&&Qd(a.removeListener)?iia.map(jia(a,b)):Qd(a.on)&&Qd(a.off)?kia.map(jia(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&Gha(a)?me(function(g){return re(g,b,c)})(Pha(a)):new Vd(function(g){if(!e)throw new TypeError("za");var k=function(){var m=
ad.apply(0,arguments);return g.next(1<m.length?m:m[0])};e(k);return function(){return f(k)}})},jia=function(a,b){return function(c){return function(d){return a[c](b,d)}}},lia=function(a,b){return new Vd(function(c){var d=function(){var f=ad.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})},mia=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)})},nia=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=ad.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)(Pha(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)}))})},qia=function(){var a=ad.apply(0,arguments);a=a.length===1&&oia(a[0])?a[0]:a;return a.length===1?Wd(a[0]):new Vd(pia(a))},pia=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))))}},
ria=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?sia: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 m,r=null,w=0,x=function(H){m=zha(k,e,function(){D.unsubscribe();Wd(d({meta:f,lastValue:r,seen:w})).subscribe(k)},
H)};var D=g.subscribe(new ke(k,function(H){var J;(J=m)==null||J.unsubscribe();w++;k.next(r=H);c>0&&x(c)},void 0,void 0,function(){var H;if((H=m)==null||!H.closed){var J;(J=m)==null||J.unsubscribe()}r=null}));x(b!=null?typeof b==="number"?b:+b-e.now():c)})},sia=function(a){throw new tia(a);},via=function(a){return a in uia?(delete uia[a],!0):!1},ye=function(a){return!!a&&(a instanceof Vd||Qd(a.lift)&&Qd(a.subscribe))},wia=function(){},xia=function(a){function b(){a=wia;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()}},yia=function(a){queueMicrotask(function(){return a()});return function(){a=wia}},zia=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}}},Bia=function(a){function b(){xia(function(){a.callbackScheduled=!1;Aia(a);a.isCheckStableRunning=!0;zia(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?Zone.root.run(function(){b()}):a._outer.run(function(){b()}),Aia(a))},Fia=function(a){var b=Cia++,c={};a._inner=a._inner.fork({name:"angular",properties:(c.isAngularZone=!0,c.isAngularZone_ID=b,c["isAngularZone_ID"+b]=!0,c),onInvokeTask:function(d,e,f,g,k,m){if(Dia(m,"__ignore_ng_zone__"))return d.invokeTask(f,
g,k,m);try{return Eia(a),d.invokeTask(f,g,k,m)}finally{(a.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&Bia(a),a._nesting--,zia(a)}},onInvoke:function(d,e,f,g,k,m,r){try{return Eia(a),d.invoke(f,g,k,m,r)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||Dia(m,"__scheduler_tick__")||Bia(a),a._nesting--,zia(a)}},onHasTask:function(d,e,f,g){d.hasTask(f,g);e===f&&(g.change=="microTask"?(a._hasPendingMicrotasks=g.microTask,Aia(a),zia(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}})},Aia=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&a.callbackScheduled===!0?!0:!1},Eia=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Dia=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){Gia(vd(),t(),ud.selectedIndex+(a===void 0?1:a))},Gia=function(a,b,c){(b[2]&3)===3?(a=a.preOrderCheckHooks,a!==null&&tga(b,a,3,c)):(a=a.preOrderHooks,a!==null&&uga(b,a,0,c));ud.selectedIndex=c},Hia=function(a,b,c,d){var e=Ic(null);try{var f=l(a.inputs[c]),g=f.next().value,k=f.next().value,m=f.next().value;f=null;(k&1)!==0&&(f=b[g][Pc]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):m!==null&&(d=m.call(b,d));a.setInput!==
null?a.setInput(b,f,d,c,g):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[g]=d)}finally{Ic(e)}},Jia=function(){return new Iia(t(),wd())},ze=function(a){if(!Kia.has(a)){Kia.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(Iia,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},Mia=function(a,b,c){var d=a.get(Lia);if(Array.isArray(b)){b=l(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;d.queue.add(e);var f=void 0,g=void 0;(f=c)==null||(g=f.detachedLeaveAnimationFns)==null||g.push(e)}}else d.queue.add(b),c==null||(e=c.detachedLeaveAnimationFns)==
null||e.push(b);d.scheduler&&d.scheduler(a)},Nia=function(a,b,c,d){var e;a=a==null?void 0:(e=a[26])==null?void 0:e.enter;if(b!==null&&a&&a.has(c.index))for(b=l(a),c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c=c.next().value,Mia(d,c.animateFns)},He=function(a,b,c,d,e,f,g,k){if(e!=null){var m=!1;if(kd(e))var r=e;else jd(e)&&(m=!0,e=e[0]);var w=nd(e);a===0&&d!==null?(Nia(k,d,f,c),g==null?b.appendChild(d,w):b.insertBefore(d,w,g||null,!0)):a===1&&d!==null?(Nia(k,d,f,c),b.insertBefore(d,w,g||null,
!0)):a===2?Oia(k,f,c,function(x){b.removeChild(null,w,m,x)}):a===3&&Oia(k,f,c,function(){b.destroyNode(w)});r!=null&&Pia(b,a,c,r,f,d,g)}},Qia=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);Ie(b[11],2,a.firstChild,b,null,null,!1)},Ria=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Tia=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)&&Sia(a[1],a),a=a[3];a===null&&(a=b);jd(a)&&Sia(a[1],a);c=a&&a[4]}a=c}else Sia(b[1],b)}},Sia=function(a,b){if((b[2]&256)!==256){var c=Ic(null);try{b[2]&=-129;b[2]|=256;b[24]&&Wea(b[24]);var d;if(a!=null&&(d=a.destroyHooks)!=null)for(var e=0;e<d.length;e+=2){var f=b[d[e]];if(!(f instanceof Sga)){var g=d[e+1];if(Array.isArray(g))for(var k=0;k<g.length;k+=2){var m=f[g[k]],r=g[k+1];Dd(4,m,r);try{r.call(m)}finally{Dd(5,m,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 D=w[d+3];if(D>=0)x[D]();else x[-D].unsubscribe();d+=2}else w[d].call(x[w[d+1]]);x!==null&&(b[7]=null);var H=b[21];if(H!==null)for(b[21]=null,w=0;w<H.length;w++)(0,H[w])();var J=b[23];if(J!==null){b[23]=null;for(var O=l(J),R=O.next();!R.done;R=O.next())R.value.destroy()}b[1].type===1&&b[11].destroy();var V=b[16];if(V!==null&&kd(b[3])){V!==b[3]&&Ria(V,b);var ba=b[18];ba!==null&&ba.detachView(a)}dha.delete(b[19])}finally{Ic(c)}}},
Oia=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&&Uia.add(a),Mia(c,function(){if(e.leave&&e.leave.has(b.index)){var f=e.leave.get(b.index),g=[];if(f){for(var k=0;k<f.animateFns.length;k++){var m=(0,f.animateFns[k])().promise;g.push(m)}e.detachedLeaveAnimationFns=void 0}e.running=Promise.allSettled(g);Via(a,d)}else a&&Uia.delete(a),d(!1)},e)):d(!1)},Via=function(a,b){var c,d=(c=a[26])==null?void 0:c.running;d?d.then(function(){a[26].running=void 0;
Uia.delete(a);b(!0)}):b(!1)},Wia=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:od(b,c)},Xia=function(a,b,c){return a.type&40?od(a,c):null},$ia=function(a,b,c,d){a=Wia(a,d.parent,b);var e=b[11],f=Yia(d.parent||b[5],d,b);if(a!=null)if(Array.isArray(c))for(var g=0;g<c.length;g++){var k=e,m=a,r=c[g];f!==null?k.insertBefore(m,r,f,!1):k.appendChild(m,r)}else f!==null?e.insertBefore(a,
c,f,!1):e.appendChild(a,c);Zia!==void 0&&Zia(e,d,b,c,a)},bja=function(a,b){if(b!==null){var c=b.type;if(c&3)return od(b,a);if(c&4)return aja(-1,a[b.index]);if(c&8){c=b.child;if(c!==null)return bja(a,c);a=a[b.index];return kd(a)?aja(-1,a):nd(a)}if(c&128)return bja(a,b.next);if(c&32)return cja(b,a)()||nd(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:null;if(c!==null){if(Array.isArray(c))return c[0];a=td(a[15]);return bja(a,c)}return bja(a,b.next)}return null},aja=function(a,b){a=10+a+1;if(a<
b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return bja(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 m=d[c.index],r=c.type;g&&b===0&&(m&&Id(nd(m),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,m,c,f,d);else if(r&32){r=cja(c,d);for(var w;w=r();)He(b,a,k,e,w,c,f,d);He(b,a,k,e,m,c,f,d)}else r&16?dja(a,b,d,c,e,f):He(b,a,k,e,m,c,f,d);c=g?c.projectionNext:c.next}}},dja=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)},Pia=function(a,b,c,d,e,f,g){var k=d[7];k!==nd(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)},eja=function(a,b,c,d,e,f,g,k,m,r,w){d=27+d;e=d+e;for(var x=[],D=0;D<e;D++)x.push(D<d?null: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:m,consts:r,incompleteFirstPass:!1,ssrId:w}},gja=function(a,
b,c,d,e,f,g,k,m,r,w){var x=b.blueprint.slice();x[0]=e;x[2]=d|1228;if(r!==null||a&&a[2]&2048)x[2]|=2048;x[17]=0;x[3]=x[14]=a;x[8]=c;x[10]=g||a&&a[10];x[11]=k||a&&a[11];x[9]=m||a&&a[9]||null;x[5]=f;x[19]=fja++;x[6]=w;x[20]=r;x[15]=b.type==2?a[15]:x;return x},hja=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},ija=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},jja=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},lja=function(){if(kja===void 0&&(kja=null,Me.trustedTypes))try{kja=Me.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return kja},mja=function(a){var b;
return((b=lja())==null?void 0:b.createHTML(a))||a},pja=function(a){a=new nja(a);try{var b=!!(new window.DOMParser).parseFromString(mja(""),"text/html")}catch(c){b=!1}return b?new oja(a):a},rja=function(a){a=String(a);return a.match(qja)?a:"unsafe:"+a},Ne=function(a){var b={};a=l(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},sja=function(){for(var a={},b=l(ad.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},
tja=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},wja=function(a){return a.replace(/&/g,"&amp;").replace(uja,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(vja,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},Eja=function(a,b){var c=null;try{xja=xja||pja(a);var d=b?String(b):"";c=xja.getInertBodyElement(d);a=5;b=d;do{if(a===0)throw Error("Ea");a--;d=b;b=c.innerHTML;c=xja.getInertBodyElement(d)}while(d!==
b);var e=new yja,f=(zja(c)||c).firstChild;d=!0;for(a=[];f;){if(f.nodeType===Node.ELEMENT_NODE){b=e;var g=f,k=tja(g).toLowerCase();if(Aja.hasOwnProperty(k)){b.buf.push("<");b.buf.push(k);var m=g.attributes;for(g=0;g<m.length;g++){var r=m.item(g),w=r.name,x=w.toLowerCase();if(Bja.hasOwnProperty(x)){var D=r.value;Cja[x]&&(D=rja(D));b.buf.push(" ",w,'="',wja(D),'"')}}b.buf.push(">");d=!0}else d=!Dja.hasOwnProperty(k)}else f.nodeType===Node.TEXT_NODE&&e.buf.push(wja(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 mja(e.buf.join(""))}finally{if(c)for(c=zja(c)||c;c.firstChild;)c.firstChild.remove()}},zja=function(a){return"content"in a&&a.nodeType===Node.ELEMENT_NODE&&a.nodeName===
"TEMPLATE"?a.content:null},Gja=function(){if(Fja===void 0&&(Fja=null,Me.trustedTypes))try{Fja=Me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Fja},Hja=function(a){var b;return((b=Gja())==null?void 0:b.createHTML(a))||a},Ija=function(a){var b;return((b=Gja())==null?void 0:b.createScriptURL(a))||a},Oe=function(a){var b=Jja();return b?Hja(b.sanitize(1,a)||""):Le(a,"HTML")?
Hja(Ke(a)):Eja(cha(),Tc(a))},Kja=function(a){var b=Jja();return b?b.sanitize(2,a)||"":Le(a,"Style")?Ke(a):Tc(a)},Pe=function(a){var b=Jja();return b?b.sanitize(4,a)||"":Le(a,"URL")?Ke(a):rja(Tc(a))},Lja=function(a){var b=Jja();if(b)return Ija(b.sanitize(5,a)||"");if(Le(a,"ResourceURL"))return Ija(Ke(a));throw new Uc(904,!1);},Mja=function(a,b,c){return(c==="src"&&(b==="embed"||b==="frame"||b==="iframe"||b==="media"||b==="script")||c==="href"&&(b==="base"||b==="link")?Lja:Pe)(a)},Jja=function(){var a=
t();return a&&a[10].sanitizer},Nja=function(a,b,c,d,e){var f=ud.selectedIndex,g=d&2;try{ud.selectedIndex=-1,g&&b.length>27&&Gia(a,b,27),Dd(g?2:0,e,c),c(d,e)}finally{ud.selectedIndex=f,Dd(g?3:1,e,c)}},Oja=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],g=od(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?f.tView=eja(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=jja(b,gja(b,
k,null,hja(f),g,c,null,b[10].rendererFactory.createRenderer(g,f),null,null,null));b[c.index]=f}a.firstCreatePass||Jga(c,b);f=c.initialInputs;for(g=d;g<e;g++){k=a.data[g];var m=Rga(b,a,g,c);Id(m,b);if(f!==null){var r=f[g-d];if(r!==null)for(var w=0;w<r.length;w+=2)Hia(k,m,r[w],r[w+1])}k.template&&(pd(c.index,b)[8]=Rga(b,a,g,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;f=c.index;c=ud.currentDirectiveIndex;try{for(ud.selectedIndex=f;e<d;e++){var x=a.data[e],D=b[e];ud.currentDirectiveIndex=
e;x.hostBindings===null&&x.hostVars===0&&x.hostAttrs===null||x.hostBindings===null||x.hostBindings(1,D)}}finally{ud.selectedIndex=-1,ud.currentDirectiveIndex=c}}},Pja=function(a,b,c){c=c===void 0?od: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}},Rja=function(a,b,c,d){c=d.get(Qja,!1)||c===3||c===4;return a.selectRootElement(b,c)},Uja=function(a,b,c,d,e,f){Qe(a,b[1],b,c,d)?a.componentOffset>-1&&Sja(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),Tja(a,b,c,d,e,f))},Tja=function(a,b,c,d,e,f){a.type&3&&(b=od(a,b),d=f!=null?f(d,a.value||"",c):d,e.setProperty(b,c,d))},Sja=function(a,b){a=pd(b,a);a[2]&16||(a[2]|=64)},Vja=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=a[d];$ga(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},
Wja=function(a,b,c,d,e,f,g){f==null?a.removeAttribute(b,e,c):(d=g==null?Tc(f):g(f,d||"",e),a.setAttribute(b,e,d,c))},Xja=function(a,b,c,d,e){var f=27+c,g=b[1];c=e(g,b,a,d,c);b[f]=c;xd(a,!0);(f=a.type===2)?(kha(b[11],c,a),ud.elementDepthCount!==0&&(a.flags&1)!==1||Id(c,b),ud.elementDepthCount++):Id(c,b);!Re||f&&(a.flags&32)===32||$ia(g,b,c,a)},Yja=function(){var a=wd();ud.isParent?ud.isParent=!1:(a=a.parent,xd(a,!1));return a},Zja=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],Hia(b.data[k],c[k],a[f+1],e),k=!0;if(g)for(g=l(g),a=g.next();!a.done;a=g.next())a=a.value,Hia(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?pd(a.index,b):b;pha(g,5);g=b[8];for(var k=$ja(b,g,c,e),m=f.__ngNextListenerFn__;m;)k=$ja(b,g,m,e)&&k,m=m.__ngNextListenerFn__;
return k}},$ja=function(a,b,c,d){var e=Ic(null);try{return Dd(6,b,c),c(d)!==!1}catch(m){d=m;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),Ic(e)}},cka=function(a,b,c,d,e,f,g,k){var m=(a.flags&1)===1,r=!1,w=null;!d&&m&&(w=aka(b,c,f,a.index));w!==null?((w.__ngLastListenerFn__||w).__ngNextListenerFn__=g,w.__ngLastListenerFn__=g,r=!0):(g=od(a,c),g=d?d(g):g,e=e.listen(g,f,k),f.startsWith("animation")||f.startsWith("transition")||bka(d?function(x){return d(nd(x[a.index]))}:
a.index,b,c,f,k,e,!1));return r},aka=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},bka=function(a,b,c,d,e,f,g){b=b.firstCreatePass?fga(b):null;c=ega(c);var k=c.length;c.push(e,f);b&&b.push(d,a,k,(k+1)*(g?-1:1))},dka=function(a,b,c,d,e,f){var g=b[1];c=b[c][g.data[c].outputs[d]].subscribe(f);bka(a.index,g,b,e,f,c,!0)},eka=function(a,b){var c=a.contentQueries;
if(c!==null){var d=Ic(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];ud.currentQueryIndex=f;k.contentQueries(2,b[g],g)}}}finally{Ic(d)}}},fka=function(a,b,c){ud.currentQueryIndex=0;var d=Ic(null);try{b(a,c)}finally{Ic(d)}},gka=function(a,b,c){if((b.flags&4)!==0){var d=Ic(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{Ic(d)}}},ika=function(a,b,c){oga(b);try{var d=a.viewQuery;
d!==null&&fka(1,d,c);var e=a.template;e!==null&&Nja(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);var f;(f=b[18])!=null&&hka(f,a);a.staticContentQueries&&eka(a,b);a.staticViewQueries&&fka(2,a.viewQuery,c);var g=a.components;if(g!==null)for(c=0;c<g.length;c++){var k=pd(g[c],b),m=k[1];d=m;e=k;for(var r=e.length;r<d.blueprint.length;r++)e.push(d.blueprint[r]);k[0]!==null&&k[6]===null&&(k[6]=null);Dd(18);ika(m,k,k[8]);Dd(19,k[8])}}catch(w){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=
!1),w;}finally{b[2]&=-5,rga()}},jka=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=dfa(e,k);else if(f==2){var m=b[++g];d=dfa(d,k+": "+m+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Ve=function(a,b,c,d,e){var f=a.data[b];f===null?(f=kka(a,b,c,d,e),ud.inI18n&&(f.flags|=32)):f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=hga(),f.injectorIndex=a===null?-1:a.injectorIndex);
xd(f,!0);return f},kka=function(a,b,c,d,e){var f=ud.currentTNode,g=ud.isParent,k=a.data,m=g?f:f&&f.parent,r=m?m.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:m,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};a.firstChild===null&&(a.firstChild=b);f!==null&&(g?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&(f.next=b,b.prev=f));return b},Ye=function(a,b){b=b===void 0?0:b;var c=t();return c===null?Zc(a,b):Oga(wd(),c,Yc(a),b)},Ze=function(){throw Error("Ga");},
oka=function(a,b,c,d,e){var f=d===null?null:{"":-1},g=e(a,c);if(g!==null){for(var k=g,m=e=null,r=l(g),w=r.next();!w.done;w=r.next())if(w=w.value,w.resolveHostDirectives!==null){m=l(w.resolveHostDirectives(g));k=m.next().value;e=m.next().value;m=m.next().value;break}g=k.length;r=!1;for(w=0;w<g;w++){var x=k[w];if(!r&&x.template){r=!0;var D=void 0,H=a,J=c;J.componentOffset=w;((D=H.components)!=null?D:H.components=[]).push(J.index)}D=Jga(c,b);Fga(D,a,x.type)}r=a.data.length;c.flags|=1;c.directiveStart=
r;c.directiveEnd=r+g;c.providerIndexes=r;for(r=0;r<g;r++)w=k[r],w.providersResolver&&w.providersResolver(w);D=x=!1;r=ija(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 ba=H.factory||(H.factory=$c(H.type));ba=new Sga(ba,!!H.template);O.blueprint[J]=ba;V[J]=ba;V=ija(O,V,H.hostVars,Md);if(ba=H.hostBindings){var oa=O.hostBindingOpCodes;oa===null&&(oa=O.hostBindingOpCodes=[]);O=~R.index;a:{for(R=oa.length;R>
0;){var ta=oa[--R];if(typeof ta==="number"&&ta<0){R=ta;break a}}R=0}R!=O&&oa.push(O);oa.push(J,V,ba)}J=r;if(f){if(H.exportAs)for(V=0;V<H.exportAs.length;V++)f[H.exportAs[V]]=J;H.template&&(f[""]=J)}m!==null&&m.has(H)?(V=l(m.get(H)),J=V.next().value,V=V.next().value,c.directiveToIndex.set(H.type,[r,J+c.directiveStart,V+c.directiveStart])):e!==null&&e.has(H)||c.directiveToIndex.set(H.type,r);H.contentQueries!==null&&(c.flags|=4);if(H.hostBindings!==null||H.hostAttrs!==null||H.hostVars!==0)c.flags|=
64;H=H.type.prototype;!x&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&(J=x=void 0,((J=(x=a).preOrderHooks)!=null?J:x.preOrderHooks=[]).push(c.index),x=!0);D||!H.ngOnChanges&&!H.ngDoCheck||(H=D=void 0,((H=(D=a).preOrderCheckHooks)!=null?H:D.preOrderCheckHooks=[]).push(c.index),D=!0);r++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==null&&e.has(k)?(k=e.get(k),lka(0,c,k,b),lka(1,c,k,b),mka(c,b,!0)):(nka(0,c,k,b),nka(1,c,k,b),mka(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 Uc(-301,!1);a.push(d[c],b)}},nka=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);pka(b,e)}},lka=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){var f=c[e];if(a===0){var g=void 0,k=void 0;var m=(k=(g=
b).hostDirectiveInputs)!=null?k:g.hostDirectiveInputs={}}else k=g=void 0,m=(k=(g=b).hostDirectiveOutputs)!=null?k:g.hostDirectiveOutputs={};k=g=void 0;(g=m)[k=f]!=null||(g[k]=[]);m[f].push(d,e);pka(b,f)}},pka=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},mka=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===null||!c&&e===null||c&&f===null||Yga(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);else{for(var g=null,k=0;k<d.length;){var m=
d[k];if(m===0)k+=4;else{if(m!==5){if(typeof m==="number")break;if(!c&&e.hasOwnProperty(m))for(var r=l(e[m]),w=r.next();!w.done;w=r.next()){if(w.value===b){g!=null||(g=[]);g.push(m,d[k+1]);break}}else if(c&&f.hasOwnProperty(m))for(m=f[m],r=0;r<m.length;r+=2)if(m[r]===b){g!=null||(g=[]);g.push(m[r+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=[]);a.initialInputs.push(g)}},qka=function(a,b,c,d,e,f,g){var k=b[1],m=k.consts;f=qd(m,f);a=Ve(k,a,c,d,f);oka(k,b,a,qd(m,g),e);a.mergedAttrs=
Ed(a.mergedAttrs,a.attrs);a.attrs!==null&&jka(a,a.attrs,!1);a.mergedAttrs!==null&&jka(a,a.mergedAttrs,!0);k.queries!==null&&k.queries.elementStart(k,a);return a},rka=function(a,b){sga(a,b);(b.flags&4)!==0&&a.queries.elementEnd(b)},ska=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(nd(f));if(kd(f)){for(var g=d,k=10;k<f.length;k++){var m=f[k],r=m[1].firstChild;r!==null&&ska(m[1],m,r,g)}f[7]!==f[0]&&g.push(f[7])}f=c.type;if(f&8)ska(a,b,c.child,
d);else if(f&32)for(f=cja(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=td(b[15]),ska(g[1],g,f,d,!0)))}c=e?c.projectionNext:c.next}return d},tka=function(a){if(a[25]!==null){for(var b=l(a[25]),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.impl;d.sequences.add(c);d.scheduler.notify(7)}a[25].length=0}},uka=function(a){if(a[23]!==null)for(var b=!0;b;){b=!1;for(var c=l(a[23]),d=c.next(),e={};!d.done;e={effect$jscomp$4:void 0},
d=c.next())e.effect$jscomp$4=d.value,e.effect$jscomp$4.dirty&&(b=!0,e.effect$jscomp$4.zone===null||Zone.current===e.effect$jscomp$4.zone?e.effect$jscomp$4.run():e.effect$jscomp$4.zone.run(function(f){return function(){return f.effect$jscomp$4.run()}}(e)));b=b&&!!(a[2]&8192)}},wka=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=iga;try{for(jga(!0),vka(a,d),d=0;bga(a);){if(d===100)throw new Uc(103,!1);d++;vka(a,1)}}finally{jga(b)}}finally{var e;(e=
c.end)==null||e.call(c)}},xka=function(a,b){for(a=eha(a[12]);a!==null;a=eha(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&vka(d,b)}},vka=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)&&Qea(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];oga(a);b=!0;e=d=null;if(c.type!==2){var m;if((m=a[24])!=null)var r=m;else m=(r=yka.pop())!=null?r:Object.create(zka),
m.lView=a,r=m;e=r;d=Lc(e)}else Hc===null?(b=!1,r=(m=a[24])!=null?m:Object.create(Aka),r.lView=a,e=r,d=Lc(e)):a[24]&&(Wea(a[24]),a[24]=null);try{a[17]=0;ud.bindingIndex=c.bindingStartIndex;f!==null&&Nja(c,a,f,2,g);if(r=(k&3)===3){var w=c.preOrderCheckHooks;w!==null&&tga(a,w,3,null)}else{var x=c.preOrderHooks;x!==null&&uga(a,x,0,null);vga(a,0)}for(var D=eha(a[12]);D!==null;D=eha(D[4]))if(D[2]&2){var H=D[9];for(w=0;w<H.length;w++)aga(H[w])}uka(a);xka(a,0);c.contentQueries!==null&&eka(c,a);if(r){var J=
c.contentCheckHooks;J!==null&&tga(a,J,3)}else{var O=c.contentHooks;O!==null&&uga(a,O,1);vga(a,1)}var R=c.hostBindingOpCodes;if(R!==null)try{for(D=0;D<R.length;D++){var V=R[D];if(V<0)ud.selectedIndex=~V;else{H=V;var ba=R[++D],oa=R[++D];J=ud;J.bindingIndex=J.bindingRootIndex=ba;ud.currentDirectiveIndex=H;var ta=a[H];Dd(24,ta);oa(2,ta);Dd(25,ta)}}}finally{ud.selectedIndex=-1}var ka=c.components;ka!==null&&Bka(a,ka,0);var Ca=c.viewQuery;Ca!==null&&fka(2,Ca,g);if(r){var ja=c.viewCheckHooks;ja!==null&&
tga(a,ja,3)}else{var ua=c.viewHooks;ua!==null&&uga(a,ua,2);vga(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var xa=l(a[22]),Ra=xa.next();!Ra.done;Ra=xa.next()){var $a=Ra.value;$a()}a[22]=null}tka(a);a[2]&=-73}catch(pb){throw rd(a),pb;}finally{e!==null&&(Vea(e,d),b&&(a=e,a.lView[24]!==a&&(a.lView=null,yka.push(a)))),rga()}}}else if(d&8192){R=Ic(null);try{uka(a),xka(a,1),g=c.components,g!==null&&Bka(a,g,1),tka(a)}finally{Ic(R)}}},Bka=function(a,b,c){for(var d=0;d<b.length;d++){var e=
a,f=b[d],g=c;Dd(18);e=pd(f,e);(e[2]&128)===128&&vka(e,g);Dd(19,e[8])}},Cka=function(a,b){b=10+b;if(b<a.length)return a[b]},Eka=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&&Dka(f,b);f=b[18];f!==null&&hka(f,e);cga(b);b[2]|=128;d&&(c=aja(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)},Gka=function(a){a=Fka(a,0);a!==void 0&&Tia(a[1],a)},Fka=function(a,b){if(!(a.length<=10)){var c=10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Ria(e,d);b>0&&(a[c-1][4]=d[4]);a=yfa(a,10+b);Qia(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}},Dka=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)},Hka=function(a){return Object.keys(a).map(function(b){var c=
l(a[b]),d=c.next().value,e=c.next().value;c=c.next().value;b={propName:d,templateName:b,isSignal:(e&1)!==0};c&&(b.transform=c);return b})},Ika=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},Kka=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 Jka(c,b):c},Mka=function(a){var b=a.get(af,null);if(b===null)throw new Uc(407,!1);var c=a.get(Lka,null);a=a.get(bf,null);
return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a,ngReflect:!1}},Nka=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},Rka=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],g=1,k=2;g<a.length;){var m=a[g];if(typeof m==="string")k===2?m!==""&&e.push(m,a[++g]):k===8&&f.push(m);else{if((k&1)!==0)break;k=m}g++}f.length&&e.push.apply(e,[1].concat(q(f)));a=e}f=e=null;
g=0;if(c)for(c=l(c),k=c.next();!k.done;k=c.next())k=k.value,g+=k[Oka].requiredVars,k.create&&(k.targetIdx=0,m=void 0,((m=e)!=null?m:e=[]).push(k)),k.update&&(k.targetIdx=0,m=void 0,((m=f)!=null?m:f=[]).push(k));if(d)for(c=0;c<d.length;c++)if(k=d[c],typeof k!=="function")for(k=l(k.bindings),m=k.next();!m.done;m=k.next()){m=m.value;g+=m[Oka].requiredVars;var r=c+1;if(m.create){m.targetIdx=r;var w=void 0;((w=e)!=null?w:e=[]).push(m)}m.update&&(m.targetIdx=r,r=void 0,((r=f)!=null?r:f=[]).push(m))}b=[b];
if(d)for(d=l(d),c=d.next();!c.done;c=d.next())c=c.value,b.push((typeof c==="function"?c:c.type)[Pka]||null);return eja(0,null,Qka(e,f),1,g,b,null,null,null,[a],null)},Qka=function(a,b){return a||b?function(c){if(c&1&&a)for(var d=l(a),e=d.next();!e.done;e=d.next())e.value.create();if(c&2&&b)for(c=l(b),d=c.next();!d.done;d=c.next())d.value.update()}:null},Ska=function(a){a=a[Oka].kind;return a==="input"||a==="twoWay"},Tka=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)}},Vka=function(a,b,c){return(new Uka({providers:a,parent:b,debugName:c===void 0?null:c,runEnvironmentInitializers:!0})).injector},C=function(a){return Aga(function(){var b=Wka(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(Xka);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=Cfa(!1,d.type);f=f.length>0?Vka([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||cd,_:null,schemas:a.schemas||null,tView:null,id:""});b.standalone&&ze("NgStandalone");Yka(d);b=a.dependencies;d.directiveDefs=Zka(b,$ka);d.pipeDefs=Zka(b,
vfa);d.id=ala(d);return d})},$ka=function(a){return a[bd]||a[Pka]||null},cf=function(a){return Aga(function(){return{type:a.type,bootstrap:a.bootstrap||cd,declarations:a.declarations||cd,imports:a.imports||cd,exports:a.exports||cd,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},df=function(a){return Aga(function(){var b=Wka(a);Yka(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}},Wka=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,g=a.hostAttrs||null,k=a.contentQueries||null,m=a.inputs||md,r=a.exportAs||null,w=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var x=a.selectors||cd,D=a.viewQuery||null,H=a.features||null;var J=a.inputs;if(J==null)var O=md;else{var R={};for(O in J)if(J.hasOwnProperty(O)){var V=J[O];if(Array.isArray(V)){var ba=V[0];var oa=V[1];var ta=void 0;var ka=(ta=V[2])!=null?ta:oa;V=V[3]||null}else ka=oa=V,ba=0,V=null;R[oa]=[O,ba,
V];b[oa]=ka}O=R}a=a.outputs;if(a==null)var Ca=md;else{J={};for(Ca in a)a.hasOwnProperty(Ca)&&(J[a[Ca]]=Ca);Ca=J}return{type:d,providersResolver:null,factory:null,hostBindings:e,hostVars:f,hostAttrs:g,contentQueries:k,declaredInputs:b,inputConfig:m,exportAs:r,standalone:w,signals:c,selectors:x,viewQuery:D,features:H,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:O,outputs:Ca,debugInfo:null}},Yka=function(a){var b;(b=a.features)==null||b.forEach(function(c){return c(a)})},Zka=function(a,
b){return a?function(){var c=typeof a==="function"?a():a,d=[];c=l(c);for(var e=c.next();!e.done;e=c.next())e=b(e.value),e!==null&&d.push(e);return d}:null},ala=function(a){var b=0;a=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,typeof a.consts==="function"?"":a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),!!a.contentQueries,!!a.viewQuery];a=l(a.join("|"));for(var c=
a.next();!c.done;c=a.next())b=Math.imul(31,b)+c.value.charCodeAt(0)<<0;return"c"+(b+2147483648)},bla=function(a){return!!a&&typeof a.then==="function"},cla=function(a){return!!a&&typeof a.subscribe==="function"},ela=function(a){return{"\u0275providers":[{provide:dla,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(Iia,null,{optional:!0});
var e=d.get(bf);if(c!==null){var f=fla(c.view,e,a);b instanceof Pd&&b._lView===c.view&&(b=null)}else f=gla(a,d.get(hla),e);f.injector=d;b!==null&&(f.onDestroyFn=b.onDestroy(function(){return f.destroy()}));return new ila(f)},fla=function(a,b,c){var d=Object.create(jla);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=kla(d,c);a[23]!=null||(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},gla=function(a,b,c){var d=Object.create(lla);d.fn=kla(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},kla=function(a,b){return function(){var c;b(function(d){var e;return((e=(c=a).cleanupFns)!=null?e:c.cleanupFns=[]).push(d)})}},mla=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()},m=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,m))},void 0,function(){g=!0;d&&f&&!f.closed||c.complete()}))})},hf=function(a,b){b=b===void 0?se:b;return mla(function(){return te(a,b)})},nla=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))})},ola=function(a,b,c){return function(d,e){var f=c,g=b,k=0;d.subscribe(new ke(e,function(m){var r=k++;g=f?a(g,m,r):(f=!0,m);e.next(g)},void 0,void 0))}},pla=function(){var a=ad.apply(0,arguments),b=Qha(a);return b?Ud(pla.apply(null,q(a)),Xha(b)):je(function(c,d){cia([c].concat(q(a.length===1&&oia(a[0])?a[0]:a)))(d)})},kf=function(){return pla.apply(null,q(ad.apply(0,arguments)))},qla=function(a){return Qd()?
me(a,void 0,1):me(a,1)},sla=function(){return rla.apply(null,q(ad.apply(0,arguments)))},rla=function(){var a=ad.apply(0,arguments),b=de(a);return je(function(c,d){ne(1)(Pha([c].concat(q(a)),b)).subscribe(d)})},tla=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 m;(m=f)==null||m.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 tla(function(){return c})},ula=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()}))})},vla=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())}))})},wla=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 wla(function(){return c})},xla=function(){return je(function(a,b){a.subscribe(new ke(b,function(c){return Rha(c,b)}))})},pf=function(a){var b=b===void 0?Td:b;var c;a=(c=a)!=null?c:yla;return je(function(d,e){var f,g=!0;d.subscribe(new ke(e,function(k){var m=b(k);if(g||
!a(f,m))g=!1,f=m,e.next(k)}))})},yla=function(a,b){return a===b},Ala=function(a){a=a===void 0?zla: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())}))})},zla=function(){return new Sha},Bla=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()}))})},
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?ula(b):Ala(function(){return new Sha}))}},Dla=function(a){return je(function(b,c){function d(m,r){var w=new Vd(function(x){k.activeGroups++;var D=r.subscribe(x);return function(){D.unsubscribe();--k.activeGroups===0&&k.teardownAttempted&&k.unsubscribe()}});w.key=m;return w}var e=new Map,f=function(m){e.forEach(m);
m(c)},g=function(m){return f(function(r){return r.error(m)})},k=new Cla(c,function(m){try{var r=a(m),w=e.get(r);if(!w){e.set(r,w=new sf);var x=d(r,w);c.next(x)}w.next(m)}catch(D){g(D)}},g,function(){return f(function(m){return m.complete()})},function(){return e.clear()});b.subscribe(k)})},Ela=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=l(c),e=d.next();!e.done;e=d.next())b.next(e.value);b.complete()},function(){c=
null}))})},Gla=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(Fla);b.complete()}))})},Hla=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}))})},Ila=function(){var a=ad.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})},Jla=function(){var a=new wf(1,void 0,void 0);return function(b){return Hla(function(){return a})(b)}},Kla=function(){var a=ad.apply(0,arguments);return a.length?je(function(b,c){pia([b].concat(q(a)))(c)}):Td},Lla=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()})},Mla=function(a,b){return je(ola(a,b,arguments.length>=2))},Nla=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,m=0,r=!1,w=!1,x=function(){g=k=null;r=w=!1};return je(function(D,H){m++;var J;k=(J=k)!=null?J:b();H.add(function(){m--;if(e&&!m&&!w&&!r){var O=g;x();O==null||O.unsubscribe()}});k.subscribe(H);!g&&m>0&&(g=new 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(D).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(Ola(b))(c)}},Ola=function(a){var b=a.bufferSize===void 0?Infinity:a.bufferSize;var c=a.windowTime===void 0?Infinity:a.windowTime;var d=a.refCount;var e=a.scheduler;var f,g=0,k;return function(m,r){g++;if(f)var w=f.subscribe(r);else f=new wf(b,c,e),w=f.subscribe(r),k=m.subscribe({next:function(x){f.next(x)},error:function(x){var D=f;f=k=void 0;D.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);r.add(function(){g--;w.unsubscribe();
d&&g===0&&k&&(k.unsubscribe(),f=k=void 0)})}},yf=function(a){return we(function(b,c){return a<=c})},zf=function(){var a=ad.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(m){return c.next(m)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},
Pla=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)})},Qla=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},Sla=function(a,b){b=b===void 0?Rla:b;var c=b.leading;var d=b.trailing;return je(function(e,f){var g=!1,k=null,m=null,r=!1,w=function(){var J;(J=m)==null||J.unsubscribe();m=null;d&&(H(),r&&f.complete())},x=function(){m=null;r&&f.complete()},D=function(J){return m=Wd(a(J)).subscribe(new ke(f,w,void 0,x))},H=function(){g&&(f.next(k),!r&&D(k));g=!1;k=null};
e.subscribe(new ke(f,function(J){g=!0;k=J;(!m||m.closed)&&(c?H():D(J))},void 0,function(){r=!0;d&&g&&m&&!m.closed||f.complete()}))})},Df=function(a){var b=se,c={leading:!0,trailing:!0};b=b===void 0?se:b;c=c===void 0?Rla:c;var d=te(a,b);return Sla(function(){return d},c)},Ef=function(){var a=ad.apply(0,arguments),b=Qha(a);return je(function(c,d){for(var e=a.length,f=Array(e),g=a.map(function(){return!1}),k=!1,m={i$jscomp$265:0};m.i$jscomp$265<e;m={i$jscomp$265:m.i$jscomp$265},m.i$jscomp$265++)Wd(a[m.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))}}(m),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))}))})},Tla=function(){$ea=function(){throw new Uc(600,"");}},Ula=function(a,b){return Array.isArray(b)?b.reduce(Ula,a):Object.assign({},a,b)},Vla=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},Wla=function(a,b,c,d){var e=Ic(null);try{var f=b.tView,g,k,m,r=gja(a,f,c,a[2]&4096?
4096:16,null,b,null,null,(g=d==null?void 0:d.injector)!=null?g:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,(m=d==null?void 0:d.dehydratedView)!=null?m:null);r[16]=a[b.index];var w=a[18];w!==null&&(r[18]=w.createEmbeddedView(f));ika(f,r,c);return r}finally{Ic(e)}},Ff=function(a,b){return!b||b.firstChild===null||(a.flags&128)===128},Yla=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);Xla(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]},Xla=function(a,b,c){if(a.hostDirectives!==null){a=l(a.hostDirectives);for(var d=a.next();!d.done;d=a.next())if(d=d.value,typeof d==="function"){d=d();d=l(d);for(var e=d.next();!e.done;e=d.next())Zla($la(e.value),b,c)}else Zla(d,b,c)}},Zla=function(a,b,c){var d=a.directive[Pka]||null,e=d.declaredInputs,f=a.inputs,g;for(g in f)f.hasOwnProperty(g)&&(e[f[g]]=e[g]);
Xla(d,b,c);c.set(d,a);b.push(d)},$la=function(a){return typeof a==="function"?{directive:Yc(a),inputs:md,outputs:md}:{directive:Yc(a.directive),inputs:ama(a.inputs),outputs:ama(a.outputs)}},ama=function(a){if(a===void 0||a.length===0)return md;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},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 Uc(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);
var f=a;f.inputs=bma(a.inputs);f.declaredInputs=bma(a.declaredInputs);f.outputs=bma(a.outputs);(f=e.hostBindings)&&cma(a,f);f=e.viewQuery;var g=e.contentQueries;f&&dma(a,f);g&&ema(a,g);f=void 0;g=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&!g.inputs.hasOwnProperty(f)){var m=k.inputs[f];m!==void 0&&(g.inputs[f]=m,g.declaredInputs[f]=k.declaredInputs[f])}f=void 0;g=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(g[f]=k[f]);e.template&&e.data.animation&&(f=
a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=0;f<e.length;f++)(g=e[f])&&g.ngInherit&&g(a),g===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))},bma=function(a){return a===md?{}:a===cd?[]:a},dma=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,e);c(d,e)}:b},ema=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);
c(d,e,f)}:b},cma=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},fma=function(a,b,c){var d=b.insertBeforeIndex;d=Array.isArray(d)?d[0]:d;return d===null?Xia(a,b,c):nd(c[d])},gma=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)}},hma=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=gma,Yia=fma,Zia=f,d.insertBeforeIndex=e)}}}},ima=function(a,b){a=a.data[b];return a===null||typeof a==="string"?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value},jma=function(a,b){a=b[a.currentCaseLViewIndex];return a===null?a:a<0?~a:a},kma=function(a,b,c){a.index=0;c=jma(b,c);c!==null?a.removes=b.remove[c]:a.removes=cd},lma=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);kma(a,a.lView[1].data[~b],a.lView);return lma(a)}if(a.stack.length===0)return a.lView=void 0,null;a.removes=a.stack.pop();a.index=a.stack.pop();return lma(a)},mma=function(){var a={stack:[],index:-1};return function(b,c){for(a.lView=c;a.stack.length;)a.stack.pop();kma(a,b.value,c);return lma.bind(null,a)}},oma=function(){return nma(wd(),t())},pma=function(a){return a[8]||(a[8]=[])},nma=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,jja(b,d);qma(d,b,a,c);return new Hf(d,a,b)},rma=function(a,b,c,d){if(!a[7]){if(c.type&8)d=nd(d);else{d=b[11];var e=d.createComment("");c=od(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},tma=function(a,b,c,d,e,f,g,k){c.firstCreatePass&&(a.mergedAttrs=Ed(a.mergedAttrs,a.attrs),e=a.tView=eja(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);xd(a,!1);k=sma(c,b,a,d);Re&&$ia(c,b,k,a);Id(k,b);a=[k,!0,0,b,null,a,null,k,null,null];b[d+27]=a;jja(b,a)},uma=function(a,b,c,d,e,f,g,k,m,r,w){var x=c+27;if(b.firstCreatePass){if(g=Ve(b,x,4,g||null,k||null),r!=null)for(k=qd(b.consts,r),g.localNames=[],x=0;x<k.length;x+=2)g.localNames.push(k[x],-1)}else g=b.data[x];tma(g,a,b,c,d,e,f,m);r!=null&&Pja(a,g,w)},E=function(a,b,c,d,e,f,g,k){var m=t(),r=vd();f=qd(r.consts,
f);var w=a+27;r.firstCreatePass?(e=Ve(r,w,4,e||null,f||null),oka(r,m,e,qd(r.consts,g),Vja),sga(r,e)):e=r.data[w];tma(e,m,r,a,b,c,d);(e.flags&1)===1&&Oja(r,m,e);g!=null&&Pja(m,e,k);return E},If=function(a,b,c,d,e,f,g,k){var m=t(),r=vd();f=qd(r.consts,f);uma(m,r,a,b,c,d,e,f,void 0,g,k);return If},vma=function(a,b){Re=!0;return b[11].createComment("")},Jf=function(a,b){var c=t(),d=zd();if(Nd(c,d,b)){var e=vd();d=Ad();Qe(d,e,c,a,b)?d.componentOffset>-1&&Sja(c,d.index):(e=od(d,c),Wja(c[11],e,null,d.value,
a,b,null))}return Jf},Kf=function(a,b,c,d){var e=t(),f=zd();if(Nd(e,f,b)){f=Ad();var g=od(f,e);Wja(e[11],g,d,f.value,a,b,c)}return Kf},Cma=function(){var a=t(),b=vd(),c=wd(),d;if(b.firstCreatePass)a:{var e=(d=c.inputs)==null?void 0:d.field;if(e){if(c.componentOffset>-1){var f=c.directiveStart+c.componentOffset;if(e.includes(f)){d=void 0;break a}}if(d=wma(a,e)){c.flags|=1024;c.componentOffset>-1&&(b=b.data[f],xma(b,"value")?c.flags|=2048:xma(b,"checked")&&(c.flags|=4096));if(!(c.flags&22528)&&d.\u0275interopControl){c.flags|=
8192;break a}c.type!==2?b=!1:(b=c.value,b=b==="input"||b==="textarea"||b==="select");if(b){c.flags|=16384;b:{if(c.attrs&&c.value==="input")for(b=0;b<c.attrs.length;b+=2){f=c.attrs[b];if(xga(f))break;if(f==="type"){b=c.attrs[b+1];b=b==="date"||b==="datetime-local"||b==="month"||b==="number"||b==="range"||b==="time"||b==="week";break b}}b=!1}b&&(c.flags|=32768);c.value!=="select"&&(c.flags|=65536)}if(c.flags&22528)break a;throw new Uc(318,"'<"+c.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.");
}}d=void 0}else d=yma(c,a);d&&(c.flags&2048?zma(a,c,d,"value"):c.flags&4096?zma(a,c,d,"checked"):c.flags&8192?Ama(d):Bma(a,c,d),d.\u0275register())},Gma=function(a){var b=t(),c=Ad(),d=zd();Nd(b,d,a)&&Uja(c,b,"field",a,b[11]);(a=yma(c,b))&&(c.flags&2048?Dma(c,b,a,"value"):c.flags&4096?Dma(c,b,a,"checked"):c.flags&8192?Ema(b,a):Fma(c,b,a));zd()},yma=function(a,b){return a.flags&1024?wma(b,a.inputs.field):void 0},wma=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=a[c.value],Hma in c)return c},
xma=function(a,b){var c=a.inputs[b];return c&&(c[1]&1)!==0&&b+"Change"in a.outputs},zma=function(a,b,c,d){var e=b.directiveStart+b.componentOffset;d+="Change";dka(b,a,e,d,d,Se(b,a,function(f){return c.state().setControlValue(f)}));"touchedChange"in vd().data[e].outputs&&dka(b,a,e,"touchedChange","touchedChange",Se(b,a,function(){return Lf(c.state())}))},Ama=function(a){var b=a.\u0275interopControl;b.registerOnChange(function(c){return a.state().setControlValue(c)});b.registerOnTouched(function(){return Lf(a.state())})},
Bma=function(a,b,c){var d=vd(),e=a[11],f=od(b,a),g=function(){var k=c.state();k.setControlValue(Ima(f,k.value))};cka(b,d,a,void 0,e,"input",g,Se(b,a,g));g=function(){Lf(c.state())};cka(b,d,a,void 0,e,"blur",g,Se(b,a,g));b.type===2&&b.value==="select"&&typeof MutationObserver==="function"&&(b=Jma(f,yma(b,a)),gga(d,a,b,b.disconnect))},Jma=function(a,b){var c=new MutationObserver(function(d){d.some(function(e){return Kma(e)})&&(a.value=b.state().value())});c.observe(a,{attributes:!0,attributeFilter:["value"],
characterData:!0,childList:!0,subtree:!0});return c},Kma=function(a){if(a.type==="childList"||a.type==="characterData"){if(a.target instanceof Comment)return!1;for(var b=l(a.addedNodes),c=b.next();!c.done;c=b.next())if(!(c.value instanceof Comment))return!0;a=l(a.removedNodes);for(b=a.next();!b.done;b=a.next())if(!(b.value instanceof Comment))return!0;return!1}return a.type==="attributes"&&a.target instanceof HTMLOptionElement?!0:!1},Dma=function(a,b,c,d){var e=a.directiveStart+a.componentOffset,
f=b[e];e=vd().data[e];var g=c.state(),k=Lma(b);Mma(e,f,k,g,Nma,d);d=l(Oma);for(var m=d.next();!m.done;m=d.next())m=m.value,Mma(e,f,k,g,m,Pma[m]);a.flags&16384&&Fma(a,b,c)},Mma=function(a,b,c,d,e,f){if(f in a.inputs){var g,k=(g=d[e])==null?void 0:g.call(d);Mf(c,e,k)&&Hia(a,b,f,k)}},Ema=function(a,b){var c=b.\u0275interopControl;a=Lma(a);b=b.state();var d=b.value();Mf(a,Nma,d)&&Rc(function(){return c.writeValue(d)});if(c.setDisabledState){var e=b.disabled();Mf(a,Qma,e)&&Rc(function(){return c.setDisabledState(e)})}},
Fma=function(a,b,c){var d=od(a,b),e=b[11];c=c.state();b=Lma(b);var f=c.controlValue();Mf(b,Nma,f)&&Rma(d,f);f=c.name();Mf(b,Sma,f)&&e.setAttribute(d,"name",f);Tma(e,d,b,c,Qma);Tma(e,d,b,c,Uma);Tma(e,d,b,c,Vma);a.flags&32768&&(Wma(e,d,b,c,Xma),Wma(e,d,b,c,Yma));a.flags&65536&&(Wma(e,d,b,c,Zma),Wma(e,d,b,c,$ma))},Tma=function(a,b,c,d,e){d=d[e]();Mf(c,e,d)&&(c=Pma[e],d?a.setAttribute(b,c,""):a.removeAttribute(b,c))},Wma=function(a,b,c,d,e){var f,g=(f=d[e])==null?void 0:f.call(d);Mf(c,e,g)&&(c=Pma[e],
g!==void 0?a.setAttribute(b,c,g.toString()):a.removeAttribute(b,c))},Ima=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"){isNaN(b)?a.value="":a.valueAsNumber=b;return}break;case "date":case "month":case "time":case "week":if(b===null||b instanceof Date){a.valueAsDate=b;return}if(typeof b==="number"){isNaN(b)?a.value="":a.valueAsNumber=b;return}}a.value=b},Lma=function(a){var b=ud.bindingIndex,c=a[b];c===Md&&(c=a[b]={});return c},Mf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},ana=function(a,b,c,d,e){return a===c&&
Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},gna=function(a,b,c,d){var e=void 0,f=void 0,g=0,k=a.length-1;if(Array.isArray(b)){Ic(d);d=b.length-1;for(Ic(null);g<=k&&g<=d;){var m=a.at(g),r=b[g],w=ana(g,m,g,r,c);if(w!==0)w<0&&a.updateValue(g,r),g++;else{var x=a.at(k);w=b[d];var D=ana(k,x,d,w,c);D!==0?(D<0&&a.updateValue(k,w),k--,d--):(m=c(g,m),x=c(k,x),D=c(g,r),Object.is(D,x)?(x=c(d,w),Object.is(x,m)?(bna(a,g,k),a.updateValue(k,w),d--,k--):a.move(k,g),a.updateValue(g,r),g++):(e!=null||(e=new cna),
f!=null||(f=dna(a,g,k,c)),ena(a,e,g,D)?(a.updateValue(g,r),g++,k++):f.has(D)?(e.set(m,a.detach(g)),k--):(r=a.create(g,b[g]),a.attach(g,r),g++,k++)))}}for(;g<=d;)fna(a,e,c,g,b[g]),g++}else if(b!=null){Ic(d);b=b[Symbol.iterator]();Ic(null);for(d=b.next();!d.done&&g<=k;)r=a.at(g),w=d.value,m=ana(g,r,g,w,c),m!==0?(m<0&&a.updateValue(g,w),g++,d=b.next()):(e!=null||(e=new cna),f!=null||(f=dna(a,g,k,c)),m=c(g,w),ena(a,e,g,m)?(a.updateValue(g,w),g++,k++,d=b.next()):f.has(m)?(r=c(g,r),e.set(r,a.detach(g)),
k--):(a.attach(g,a.create(g,w)),g++,k++,d=b.next()));for(;!d.done;)fna(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)})},ena=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),b.delete(d),!0):!1},fna=function(a,b,c,d,e){ena(a,b,d,c(d,e))?a.updateValue(d,e):(b=a.create(d,e),a.attach(d,b))},dna=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=vd();f=qd(k.consts,f);uma(g,k,a,b,c,d,e,f,256);return Nf},Nf=function(a,b,c,d,e,f,g,k){ze("NgControlFlow");var m=t(),r=vd();f=qd(r.consts,f);uma(m,r,a,b,c,d,e,f,512,g,k);return Nf},G=function(a,b){ze("NgControlFlow");var c=t(),d=zd(),e=c[d]!==Md?c[d]:-1;e=e!==-1?c[27+e]:void 0;if(Nd(c,d,a)){d=Ic(null);try{if(e!==void 0&&Gka(e),a!==-1){a=27+a;var f=c[a],g=c[1].data[a],k=Wla(c,g,b,{dehydratedView:null});Eka(f,k,0,Ff(g,null))}}finally{Ic(d)}}else e!==void 0&&(c=Cka(e,0),c!==void 0&&(c[8]=
b))},Of=function(a){return a},Pf=function(a,b){return b},Qf=function(a,b,c,d,e,f,g,k){ze("NgControlFlow");var m=t(),r=vd(),w=t();g=k?g.bind(w[15][8]):g;w[27+a]=new hna(g);uma(m,r,a+1,b,c,d,e,qd(r.consts,f),256)},Rf=function(a){var b=Ic(null),c=ud.selectedIndex;try{var d=t(),e=d[1],f=d[c],g=c+1,k=d[g];f.liveCollection===void 0?f.liveCollection=new ina(k,d,e.data[g]):f.liveCollection.reset();var m=f.liveCollection;gna(m,a,f.trackByFn,b);if(m.needsIndexUpdate)for(a=0;a<m.length;a++)Cka(m.lContainer,
a)[8].$index=a;if(f.hasEmptyBlock){var r=zd(),w=m.length===0;if(Nd(d,r,w)){c+=2;var x=d[c];if(w){var D=e.data[c],H=Wla(d,D,void 0,{dehydratedView:null});Eka(x,H,0,Ff(D,null))}else{if(e.firstUpdatePass){var J,O=(J=x[6])!=null?J:[],R=x[3][11];d=[];for(var V=l(O),ba=V.next();!ba.done;ba=V.next()){var oa=ba.value;if(oa.data.di!==void 0)d.push(oa);else{O=0;var ta=oa.firstChild;if(ta)for(var ka=oa.data.r;O<ka;){var Ca=ta.nextSibling;R.removeChild(null,ta,!1,void 0);ta=Ca;O++}}}x[6]=d}Gka(x)}}}}finally{Ic(b)}},
Sf=function(a,b,c){var d=t(),e=zd();Nd(d,e,b)&&(e=Ad(),Tja(e,d,a,b,d[11],c));return Sf},jna=function(a,b,c){var d=t(),e=zd();if(Nd(d,e,b)){e=vd();var f=Ad();Tja(f,d,a,b,Zja(lga(e.data),f,d),c)}return jna},I=function(a,b,c){var d=t(),e=zd();Nd(d,e,b)&&(e=Ad(),Uja(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?qka(g,e,2,b,Vja,c,d):f.data[g];Xja(c,e,a,b,kna);(c.flags&1)===1&&(a=e[1],Oja(a,e,c),gka(a,c,e));d!=null&&Pja(e,c);return K},L=function(){var a=vd(),
b=Yja();a.firstCreatePass&&rka(a,b);We===b&&(We=null);ud.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},Tf=function(a,b,c,d){var e=t(),f=e[1],g=a+27;if(f.firstCreatePass){var k=f.consts;c=qd(k,c);g=Ve(f,g,2,b,c);g.mergedAttrs=Ed(g.mergedAttrs,g.attrs);if(d!=null)for(k=qd(k,d),g.localNames=[],c=0;c<k.length;c+=
2)g.localNames.push(k[c],-1);g.attrs!==null&&jka(g,g.attrs,!1);g.mergedAttrs!==null&&jka(g,g.mergedAttrs,!0);f.queries!==null&&f.queries.elementStart(f,g);f=g}else f=f.data[g];Xja(f,e,a,b,kna);d!=null&&Pja(e,f);return Tf},Uf=function(){var a=Yja();We===a&&(We=null);ud.elementDepthCount--;return Uf},Vf=function(a,b,c,d){Tf(a,b,c,d);Uf();return Vf},Wf=function(a,b,c){var d=t(),e=d[1],f=a+27;b=e.firstCreatePass?qka(f,d,8,"ng-container",Vja,b,c):e.data[f];Xja(b,d,a,"ng-container",lna);(b.flags&1)===1&&
(a=d[1],Oja(a,d,b),gka(a,b,d));c!=null&&Pja(d,b);return Wf},Xf=function(){var a=vd(),b=Yja();a.firstCreatePass&&rka(a,b);return Xf},Yf=function(a,b,c){Wf(a,b,c);Xf();return Yf},Zf=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=mna(b))return a;b=b.split("-")[0];if(a=mna(b))return a;if(b==="en")return nna;throw new Uc(701,!1);},mna=function(a){a in ona||(ona[a]=Me.ng&&Me.ng.common&&Me.ng.common.locales&&Me.ng.common.locales[a]);return ona[a]},sna=function(a){var b=vd(),c=t();pna>0&&(a=b.data[a],
qna(b,c,Array.isArray(a)?a:a.update,ud.bindingIndex-pna-1,rna));pna=rna=0},una=function(a,b,c,d){for(var e=c[11],f=null,g,k=0;k<b.length;k++){var m=b[k];if(typeof m=="string"){var r=b[++k];c[r]===null&&(c[r]=tna(c,m,Node.TEXT_NODE))}else if(typeof m=="number")switch(m&1){case 0:var w=m>>>17;f===null&&(f=w,g=e.parentNode(d));w===f?(r=d,w=g):(r=null,w=nd(c[w]));w!==null&&(m=(m&131070)>>>1,e.insertBefore(w,c[m],r,!1),m=ima(a,m),m!==null&&typeof m==="object"&&(r=jma(m,c),r!==null&&una(a,m.create[r],c,
c[m.anchorIdx])));break;case 1:m>>>=1,r=b[++k],w=b[++k],Wja(e,nd(c[m]),null,null,r,w,null)}else switch(m){case vna:m=b[++k];r=b[++k];c[r]===null&&(m=c[r]=tna(c,m,Node.COMMENT_NODE),Id(m,c));break;case wna:m=b[++k],r=b[++k],c[r]===null&&(m=c[r]=tna(c,m,Node.ELEMENT_NODE),Id(m,c))}}},qna=function(a,b,c,d,e){for(var f=0;f<c.length;f++){var g=c[f],k=c[++f];if(g&e){g="";for(var m=f+1;m<=f+k;m++){var r=c[m];if(typeof r=="string")g+=r;else if(typeof r=="number")if(r<0)g+=Tc(b[d-r]);else{var w=r>>>2;switch(r&
3){case 1:r=c[++m];var x=c[++m],D=a.data[w];typeof D==="string"?Wja(b[11],b[w],null,D,r,g,x):Uja(D,b,r,g,b[11],x);break;case 0:r=b[w];r!==null&&b[11].setValue(r,g);break;case 2:r=a;w=ima(a,w);x=b;D=w;var H=g;var J=D.cases.indexOf(H);if(J===-1)switch(D.type){case 1:J=(0,Zf(xna)[20])(parseInt(H,10));J=yna[J];H=J!==void 0?J:"other";J=D.cases.indexOf(H);J===-1&&H!=="other"&&(J=D.cases.indexOf("other"));break;case 0:J=D.cases.indexOf("other")}D=J===-1?null:J;jma(w,x)!==D&&(zna(r,w,x),x[w.currentCaseLViewIndex]=
D===null?null:~D,D!==null&&(J=x[w.anchorIdx])&&una(r,w.create[D],x,J));break;case 3:Ana(a,ima(a,w),d,b)}}}}else g=c[f+1],g>0&&(g&3)===3&&(g=ima(a,g>>>2),b[g.currentCaseLViewIndex]<0&&Ana(a,g,d,b));f+=k}},Ana=function(a,b,c,d){var e=d[b.currentCaseLViewIndex];if(e!==null){var f=rna;e<0&&(e=d[b.currentCaseLViewIndex]=~e,f=-1);qna(a,d,b.update[e],c,f)}},zna=function(a,b,c){var d=jma(b,c);if(d!==null)for(b=b.remove[d],d=0;d<b.length;d++){var e=b[d];e>0?(e=nd(c[e]),e!==null&&c[11].removeChild(null,e,void 0,
void 0)):zna(a,ima(a,~e),c)}},Bna=function(a,b,c,d,e,f,g){var k=ija(a,d,1,null),m=k<<2;d=hga();b===d&&(d=null);d===null&&(m|=1);g&&(m|=2,cja===void 0&&(cja=mma()));e.push(m,f===null?"":f);a=kka(a,k,g?32:1,f===null?"":f,null);hma(c,a);c=a.index;xd(a,!1);if(d!==null&&b!==d)if(b=d.insertBeforeIndex,b===null)Yia=fma,Zia=gma,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},Dna=function(a,b,c,d,
e){var f=a.length,g=f+1;a.push(null,null);var k=f+2;b=b.split(Cna);for(var m=0,r=0;r<b.length;r++){var w=b[r];r&1?(w=parseInt(w,10),a.push(-1-w),m|=1<<Math.min(w,31)):w!==""&&a.push(w)}a.push(c<<2|(d?1:0));d&&a.push(d,e);a[f]=m;a[g]=a.length-k;return m},Fna=function(a){for(var b,c="",d=0,e=!1,f;(b=Ena.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)},Hna=function(a,b,c,d,e,f,g){var k=0,m={type:f.type,currentCaseLViewIndex:ija(b,
c,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};d.push(1<<Math.min(f.mainBinding,31),2,-1-f.mainBinding,g<<2|2);var r=b.data[g];r===null?b.data[g]=m:r.value=m;r=f.values;for(var w=[],x=0;x<r.length;x++){for(var D=r[x],H=[],J=0;J<D.length;J++){var O=D[J];typeof O!=="string"&&(O=H.push(O)-1,D[J]="\x3c!--\ufffd"+O+"\ufffd--\x3e")}J=[];w.push(J);O=b;var R=m,V=c,ba=d,oa=e,ta=D.join("");D=[];var ka=[],Ca=[];R.cases.push(f.cases[x]);R.create.push(D);R.remove.push(ka);R.update.push(Ca);ta=pja(cha()).getInertBodyElement(ta);
ta=zja(ta)||ta;k|=ta?Gna(J,O,R,V,ba,D,ka,Ca,ta,oa,H,0):0}k&&d.push(k,1,g<<2|3);a.push({kind:3,index:g,cases:w,currentCaseLViewIndex:m.currentCaseLViewIndex})},Kna=function(a){var b=[],c=[],d=1,e=0;a=a.replace(Ina,function(k,m,r){d=r==="select"?0:1;e=parseInt(m.slice(1),10);return""});a=Jna(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=Jna(a[f++]);b.length>c.length&&c.push(g)}return{type:d,mainBinding:e,cases:b,values:c}},Jna=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),Ina.test(b)?d.push(Kna(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},Gna=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=0;for(m=m.firstChild;m;){var H=ija(b,d,1,null);switch(m.nodeType){case Node.ELEMENT_NODE:var J=m,O=J.tagName.toLowerCase();if(Aja.hasOwnProperty(O)){var R=f,V=wna,ba=O,oa=r;V!==null&&R.push(V);
R.push(ba,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(Cna)?Bja.hasOwnProperty(V)&&(Cja[V]?Dna(k,R.value,H,R.name,rja):Dna(k,R.value,H,R.name,null)):f.push(H<<1|1,R.name,R.value);J={kind:1,index:H,children:[]};a.push(J);D|=Gna(J.children,b,c,d,e,f,g,k,m,H,w,x+1);x===0&&g.push(H)}break;case Node.TEXT_NODE:J=m.textContent||"";O=J.match(Cna);f.push(O?"":J,H,0|r<<17|H<<1);x===0&&g.push(H);O&&(D|=Dna(k,J,H,null,null));a.push({kind:0,
index:H});break;case Node.COMMENT_NODE:if(J=Lna.exec(m.textContent||""))J=w[parseInt(J[1],10)],O=f,R=vna,V=r,R!==null&&O.push(R),O.push("",H,0|V<<17|H<<1),Hna(a,b,d,e,r,J,H),J=g,x===0&&(J.push(~H),J.push(H))}m=m.nextSibling}return D},Ona=function(a,b){var c=c===void 0?-1:c;var d=vd(),e=t();a=27+a;var f=qd(d.consts,b);b=hga();if(d.firstCreatePass){var g=b===null?0:b.index,k=hga(),m=[],r=[],w=[[]],x=[[]];if(c===-1)c=Fna(f);else{var D=f.indexOf(":"+c+"\ufffd")+2+c.toString().length;c=f.search(new RegExp("\ufffd\\/\\*\\d+:"+
c+"\ufffd"));c=Fna(f.substring(D,c))}f=c.replace(Mna," ").split(Nna);for(D=0;D<f.length;D++){var H=f[D];if((D&1)===0){var J=Jna(H);for(H=0;H<J.length;H++){var O=J[H];if((H&1)===0){if(O!==""){var R=x[0],V=d,ba=k,oa=w[0],ta=O.match(Cna);V=Bna(V,ba,oa,e,m,ta?null:O,!1).index;ta&&Dna(r,O,V,null,null);R.push({kind:0,index:V})}}else{if(typeof O!=="object")throw Error("La`"+c);R=Bna(d,k,w[0],e,m,"",!0).index;Hna(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(),xd(hga(),!1)):(O=w[0],R=kka(d,H,64,null,null),hma(O,R),O=R,w.unshift([]),xd(O,!0),J={kind:2,index:H,children:[],type:J===35?0:1},x[0].push(J),x.unshift(J.children))}d.data[a]={create:m,update:r,ast:x[0],parentTNodeIndex:g}}d.type===2?e[15][2]|=32:e[2]|=32;a=d.data[a];d=Wia(d,b===e[5]?null:b,e);a=a.create;b=b&&b.type&8?e[b.index]:null;g=e[11];for(k=0;k<a.length;k++)x=a[k++],m=a[k],r=(x&2)===2,w=(x&1)===1,x>>>=2,c=e[x],f=!1,c===null&&(c=e[x]=tna(e,m,r?Node.COMMENT_NODE:
Node.TEXT_NODE),f=Re),w&&d!==null&&f&&g.insertBefore(d,c,b,!1);ud.inI18n=!0},$f=function(a,b){Ona(a,b);ud.inI18n=!1},ag=function(a){Nd(t(),zd(),a)&&(rna|=1<<Math.min(pna,31));pna++;return ag},bg=function(a){var b=vd(),c=t();a+=27;var d=Ve(b,a,128,null,null);xd(d,!1);$fa(b,c,a,Pna);return bg},cg=function(a){ze("NgLet");$fa(vd(),t(),ud.selectedIndex,a);return a},dg=function(a){a=ud.contextLView[27+a];if(a===Pna)throw new Uc(314,!1);return a},N=function(a,b,c){var d=t();Qna(vd(),d,d[11],wd(),a,b,c);
return N},Rna=function(a,b){var c=wd(),d=t(),e=vd();Qna(e,d,Zja(lga(e.data),c,d),c,a,b);return Rna},Sna=function(a,b,c){var d=t(),e=vd(),f=wd();(f.type&3||c)&&cka(f,e,d,c,d[11],a,b,Se(f,d,b));return Sna},Qna=function(a,b,c,d,e,f,g){var k=!0,m=null;if(d.type&3||g)m!=null||(m=Se(d,b,f)),cka(d,a,b,g,c,e,f,m)&&(k=!1);if(k){var r;a=(r=d.outputs)==null?void 0:r[e];var w;if((r=(w=d.hostDirectiveOutputs)==null?void 0:w[e])&&r.length)for(w=0;w<r.length;w+=2)c=r[w],g=r[w+1],m!=null||(m=Se(d,b,f)),dka(d,b,c,
g,e,m);if(a&&a.length)for(w=l(a),r=w.next();!r.done;r=w.next())r=r.value,m!=null||(m=Se(d,b,f)),dka(d,b,r,e,e,m)}},P=function(a){a=a===void 0?1:a;for(var b=ud.contextLView;a>0;)b=b[14],a--;return(ud.contextLView=b)[8]},eg=function(a){var b=t()[15][5];if(!b.projection){for(var c=a?a.length:1,d=[],e=0;e<c;e++)d.push(null);c=b.projection=d;d=c.slice();for(b=b.child;b!==null;){if(b.type!==128){if(a)a:{e=b;var f=a,g=null;b:{var k=e.attrs;if(k!=null){var m=k.indexOf(5);if((m&1)===0){k=k[m+1];break b}}k=
null}for(m=0;m<f.length;m++){var r=f[m];if(r==="*")g=m;else{if(k===null)r=$ga(e,r,!0);else b:{var w=0;c:for(;w<r.length;w++){var x=r[w];if(k.length===x.length){for(var D=0;D<k.length;D++)if(k[D]!==x[D])continue c;r=!0;break b}}r=!1}if(r){e=m;break a}}}e=g}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},fg=function(a,b,c,d,e,f){b=b===void 0?0:b;var g=t(),k=vd(),m=d?a+1:null;m!==null&&uma(g,k,m,d,e,f,null,c);a=Ve(k,27+a,16,null,c||null);a.projection===null&&(a.projection=b);
ud.isParent=!1;b=!g[6]||We!==null;g[15][5].projection[a.projection]===null&&m!==null?(m=27+m,k=k.data[m],m=g[m],g=Wla(g,k,void 0,{dehydratedView:null}),Eka(m,g,0,Ff(k,null))):b&&(a.flags&32)!==32&&(m=g[11],k=Wia(k,a.parent,g),b=Yia(a.parent||g[5],a,g),dja(m,0,g,a,k,b))},Tna=function(){return this._results[Symbol.iterator]()},Vna=function(){return Una(wd(),t())},Una=function(a,b){return a.type&4?new gg(b,a,Kd(a,b)):null},Wna=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=
c.matches,f=[],g=0;e!==null&&g<e.length;g+=2){var k=e[g];if(k<0)f.push(null);else{var m=f,r=m.push,w=b,x=a[k],D=e[g+1];k=c.metadata.read;D===-1?(k=x,w=k.type&11?Kd(k,w):k.type&4?Una(k,w):null):D===-2?w=k===Jd?Kd(x,w):k===gg?Una(x,w):k===hg?nma(x,w):void 0:w=Rga(w,w[1],D,x);r.call(m,w)}}d.matches=f}return d.matches},Xna=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=Wna(a,b,e,c),c=0;c<f.length;c+=2){var g=f[c];if(g>0)d.push(a[c/2]);else{e=f[c+1];g=b[-g];for(var k=10;k<g.length;k++){var m=
g[k];m[16]===m[3]&&Xna(m[1],m,e,d)}if(g[9]!==null)for(g=g[9],k=0;k<g.length;k++)m=g[k],Xna(m[1],m,e,d)}}return d},$na=function(a,b){var c=t();b=new ig((b&4)===4);gga(a,c,b,b.destroy);var d;return((d=c[18])!=null?d:c[18]=new Yna).queries.push(new Zna(b))-1},jg=function(a,b,c){var d=vd();d.firstCreatePass&&(aoa(d,new boa(a,b,c),-1),(b&2)===2&&(d.staticViewQueries=!0));return $na(d,b)},kg=function(a,b,c,d){var e=vd();if(e.firstCreatePass){var f=wd();aoa(e,new boa(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 $na(e,c)},coa=function(a){return a.split(",").map(function(b){return b.trim()})},aoa=function(a,b,c){a.queries===null&&(a.queries=new doa);a.queries.track(new lg(b,c))},eoa=function(a,b){var c=a[1],d=c.queries.queries[b];return d.crossesNgTemplate?Xna(c,a,b,[]):Wna(c,a,d,b)},ng=function(a){var b=t(),c=vd(),d=ud.currentQueryIndex;ud.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=eoa(b,d),a.reset(b,fha),mg(a)),!0):!1},og=function(){return t()[18].queries[ud.currentQueryIndex].queryList},pg=function(a,b){var c=l(afa(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=foa.bind(a);return a},foa=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},goa=
function(a,b){var c=Yea(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:cd;else{var k=f[18].queries[g].queryList;f=eoa(f,g);k.reset(f,fha);e=a?k.first:k._changesDetected||e._flatValue===void 0?e._flatValue=k.toArray():e._flatValue}if(b&&e===void 0)throw new Uc(-951,!1);return e});var d=c[Pc];d._dirtyCounter=pg(0);d._flatValue=void 0;return c},ioa=function(a,b){var c=a[Pc];c._lView=t();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;
hoa(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},qg=function(a,b,c){ioa(a,jg(b,5,c))},rg=function(a){ud.currentQueryIndex+=a===void 0?1:a},sg=function(a){return ud.contextLView[27+a]},joa=function(a,b,c,d){for(var e=a[c+1],f=b===null,g=d?e>>17&32767:(e&131068)>>2,k=!1;g!==0&&(k===!1||f);){var m=a[g+1],r=a[g];if(r===null||b==null||(Array.isArray(r)?r[1]:r)===b||Array.isArray(r)&&typeof b==="string"&&zfa(r,b)>=0)k=!0,a[g+1]=d?m|1:m|2;g=d?m>>17&32767:(m&131068)>>
2}k&&(a[c+1]=d?e|2:e|1)},koa=function(a,b){var c=tg;if(c===b)return-1;for(b=ug=b;b<c&&a.charCodeAt(b)>32;)b++;b=vg=b;return wg(a,b,c)},poa=function(a,b){var c=tg;b=ug=wg(a,b,c);if(c===b)return-1;for(var d;b<c&&((d=a.charCodeAt(b))===45||d===95||(d&-33)>=65&&(d&-33)<=90||d>=48&&d<=57);)b++;b=vg=b;b=loa(a,b,c);d=b=moa=wg(a,b,c);for(var e=b=-1,f=-1,g=d,k=g;g<c;){var m=a.charCodeAt(g++);if(m===59)break;else m===34||m===39?k=g=noa(a,m,g,c):d===g-4&&f===85&&e===82&&b===76&&m===40?k=g=noa(a,41,g,c):m>32&&
(k=g);f=e;e=b;b=m&-33}b=ooa=k;return loa(a,b,c)},wg=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},loa=function(a,b,c){b=wg(a,b,c);b<c&&b++;return b},noa=function(a,b,c,d){for(var e=-1;c<d;){var f=a.charCodeAt(c++);if(f==b&&e!==92)return c;e=f==92&&e===92?0:f}throw Error();},xg=function(a,b,c){qoa(a,b,c,!1);return xg},yg=function(a,b){qoa(a,b,null,!0);return yg},soa=function(a,b){var c;ooa=moa=vg=ug=0;tg=b.length;for(c=poa(b,wg(b,0,tg));c>=0;c=poa(b,c))roa(a,b.substring(ug,vg),b.substring(moa,
ooa))},zg=function(a){toa(uoa,voa,a,!0)},voa=function(a,b){var c;ooa=moa=vg=ug=0;tg=b.length;for(c=koa(b,wg(b,0,tg));c>=0;c=koa(b,c))Afa(a,b.substring(ug,vg),!0)},qoa=function(a,b,c,d){var e=t(),f=vd(),g=kga(2);f.firstUpdatePass&&woa(f,a,g,d);if(b!==Md&&Nd(e,g,b)){var k=f.data[ud.selectedIndex],m=e[11];b!=null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Sc(Ke(b))));xoa(f,k,e,m,a,e[g+1]=b,d,g)}},toa=function(a,b,c,d){var e=vd(),f=kga(2);e.firstUpdatePass&&woa(e,null,f,d);var g=t();if(c!==
Md&&Nd(g,f,c)){var k=e.data[ud.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var m=g[11],r=g[f+1];if(c==null||c==="")a=cd;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=cd);b=w=0;c=0<r.length?r[0]:null;for(x=0<a.length?a[0]:null;c!==null||x!==null;){var D=w<r.length?r[w+1]:void 0,H=b<a.length?a[b+1]:void 0,J=null,
O=void 0;c===x?(w+=2,b+=2,D!==H&&(J=x,O=H)):x===null||c!==null&&c<x?(w+=2,J=c):(b+=2,J=x,O=H);J!==null&&xoa(e,k,g,m,J,O,d,f);c=w<r.length?r[w]:null;x=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=dfa(f,c?c:"")),Qe(k,e,g,d?"class":"style",c)}},woa=function(a,b,c,d){var e=a.data;if(e[c+1]===null){var f=e[ud.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var g=lga(e),k=d?f.residualClasses:f.residualStyles;if(g===null)(d?f.classBindings:
f.styleBindings)===0&&(b=yoa(null,e,f,b,d),b=zoa(b,f.attrs,d),k=null);else{var m=f.directiveStylingLast;if(m===-1||e[m]!==g)if(b=yoa(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=yoa(null,e,f,g[1],d),g=zoa(g,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=g);else{k=void 0;g=f.directiveEnd;for(m=1+f.directiveStylingLast;m<g;m++)k=zoa(k,e[m].hostAttrs,d);k=zoa(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=
k:f.residualStyles=k);g=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=g;m=!1;if(Array.isArray(g)){var r=g[1];if(r===null||zfa(g,r)>0)m=!0}else r=g;a?k!==0?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,a!==0&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,b!==0&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,b===0?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);m&&(e[c+1]|=2);joa(e,r,c,!0);joa(e,r,c,!1);a=r;g=d?f.residualClasses:f.residualStyles;g!=null&&typeof a==
"string"&&zfa(g,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},yoa=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=zoa(d,k.hostAttrs,e);if(k===a)break;g++}a!==null&&(c.directiveStylingLast=g);return d},zoa=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]),Afa(a,g,c?!0:b[++f]))}return a===void 0?
null:a},roa=function(a,b,c){Afa(a,b,Ke(c))},uoa=function(a,b,c){b=String(b);b===""||b.includes(" ")||Afa(a,b,c)},xoa=function(a,b,c,d,e,f,g,k){if(b.type&3){a=a.data;var m=a[k+1];((m&1)===1?Aoa(a,b,c,e,(m&131068)>>2,g):void 0)===void 0&&(f!==void 0||(m&2)==2&&(f=Aoa(a,null,c,e,k,g)),b=nd(c[ud.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))))}},
Aoa=function(a,b,c,d,e,f){for(var g=b===null,k=void 0;e>0;){var m=a[e],r=Array.isArray(m),w=r?m[1]:m,x=w===null,D=c[e+1];D===Md&&(D=x?cd:void 0);w=x?Bfa(D,d):w===d?D:void 0;r&&w===void 0&&(w=Bfa(m,d));if(w!==void 0&&(k=w,g))return k;e=a[e+1];e=g?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:b.residualStyles,a!=null&&(k=Bfa(a,d)));return k},Q=function(a,b){b=b===void 0?"":b;var c=t(),d=vd();a+=27;var e=d.firstCreatePass?Ve(d,a,1,b,null):d.data[a];Re=!0;b=c[11].createText(b);c[a]=b;Re&&
$ia(d,c,b,e);xd(e,!1)},Boa=function(a,b,c,d){d=d===void 0?"":d;return Nd(a,zd(),c)?b+Tc(c)+d:Md},Coa=function(a,b,c,d,e,f){f=f===void 0?"":f;a=Od(a,ud.bindingIndex,c,e);kga(2);return a?b+Tc(c)+d+Tc(e)+f:Md},Ag=function(a){S("",a);return Ag},S=function(a,b,c){var d=t();a=Boa(d,a,b,c);a!==Md&&Doa(d,a);return S},Bg=function(a,b,c,d,e){var f=t();a=Coa(f,a,b,c,d,e);a!==Md&&Doa(f,a);return Bg},Eoa=function(a,b,c,d,e,f,g,k,m){var r=t();m=m===void 0?"":m;var w=ud.bindingIndex;var x=Od(r,w,b,d);w=Od(r,w+2,
f,k)||x;kga(4);a=w?a+Tc(b)+c+Tc(d)+e+Tc(f)+g+Tc(k)+m:Md;a!==Md&&Doa(r,a);return Eoa},Doa=function(a,b){a[11].setValue(nd(a[ud.selectedIndex]),b)},Cg=function(a,b,c){ff(b)&&typeof b.set==="function"&&(b=b());var d=t(),e=zd();Nd(d,e,b)&&(e=Ad(),Uja(e,d,a,b,d[11],c));return Cg},Dg=function(a,b){var c=ff(a)&&typeof a.set==="function";c&&a.set(b);return c},Eg=function(a,b){var c=t();Qna(vd(),c,c[11],wd(),a,b);return Eg},Fg=function(a){return Nd(t(),zd(),a)?Tc(a):Md},Gg=function(a,b,c){return Boa(t(),a,
b,c===void 0?"":c)},Hg=function(a,b,c,d,e){return Coa(t(),a,b,c,d,e===void 0?"":e)},Foa=function(a,b,c,d,e,f){var g="",k=t();g=g===void 0?"":g;var m=ud.bindingIndex,r=Od(k,m,b,d);k=Nd(k,m+2,f)||r;kga(3);return k?a+Tc(b)+c+Tc(d)+e+Tc(f)+g:Md},Goa=function(a,b,c,d,e){a=Yc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)Goa(a[f],b,c,d,e);else{f=vd();var g=t(),k=wd(),m=dd(a)?a:Yc(a.provide),r=Qfa(a),w=k.providerIndexes&1048575,x=k.directiveStart,D=k.providerIndexes>>20;if(dd(a)||!a.multi)d=new Sga(r,
e),r=Hoa(m,b,e?w:w+D,x),r===-1?(r=Jga(k,g),Fga(r,f,m),Ioa(f,a,b.length),b.push(m),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(d),g.push(d)):(c[r]=d,g[r]=d);else{x=Hoa(m,b,w+D,x);w=Hoa(m,b,w,w+D);var H=x>=0&&c[x];D=w>=0&&c[w];e&&!D||!e&&!H?(x=Jga(k,g),Fga(x,f,m),x=c.length,H=new Sga(e?Joa:Koa,e),H.multi=[],H.index=x,H.componentProviders=0,d&&!e&&H.componentProviders++,H.multi.push(r),!e&&D&&(c[w].providerFactory=H),Ioa(f,a,b.length,0),b.push(m),k.directiveStart++,k.directiveEnd++,
e&&(k.providerIndexes+=1048576),c.push(H),g.push(H)):(b=c[e?w:x],!e&&d&&b.componentProviders++,b=b.multi.push(r)-1,Ioa(f,a,x>-1?x:w,b));!e&&d&&D&&c[w].componentProviders++}}},Ioa=function(a,b,c,d){var e=dd(b),f=!!b.useClass;if(e||f)if(f=(f?Yc(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)},Hoa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},Koa=function(){return Loa(this.multi,
[])},Joa=function(a,b,c,d,e){var f=this.multi;if(this.providerFactory){var g=this.providerFactory.componentProviders;e=Rga(d,d[1],this.providerFactory.index,e);d=e.slice(0,g);Loa(f,d);for(f=g;f<e.length;f++)d.push(e[f])}else d=[],Loa(f,d);return d},Loa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Ig=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=vd();f.firstCreatePass&&(d=!!d.template,Goa(b,f.data,f.blueprint,d,!0),
Goa(e,f.data,f.blueprint,d,!1))}}},Jg=function(a,b){a=yd()+a;var c=t();return c[a]===Md?oha(c,a,b()):c[a]},Kg=function(a,b,c){return Moa(t(),yd(),a,b,c)},Lg=function(a,b,c,d){return Noa(t(),yd(),a,b,c,d)},Mg=function(a,b,c,d,e){return Ooa(t(),yd(),a,b,c,d,e)},Roa=function(a,b,c,d){var e=Poa,f=t(),g=yd()+6,k=Od(f,g,a,b);return Od(f,g+2,c,d)||k?oha(f,g+4,e(a,b,c,d)):Qoa(f,g+4)},Qoa=function(a,b){a=a[b];return a===Md?void 0:a},Moa=function(a,b,c,d,e,f){b+=c;return Nd(a,b,e)?oha(a,b+1,f?d.call(f,e):d(e)):
Qoa(a,b+1)},Noa=function(a,b,c,d,e,f,g){b+=c;return Od(a,b,e,f)?oha(a,b+2,g?d.call(g,e,f):d(e,f)):Qoa(a,b+2)},Ooa=function(a,b,c,d,e,f,g,k){b+=c;c=Od(a,b,e,f);return Nd(a,b+2,g)||c?oha(a,b+3,k?d.call(k,e,f,g):d(e,f,g)):Qoa(a,b+3)},T=function(a,b){var c=vd();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=$c(b.type));b=Vc(Ye);try{var k=Cga(!1),m=g();Cga(k);$fa(c,t(),a,m)}finally{Vc(b)}},U=function(a,b,c){a+=27;var d=t(),e=d[a];return d[1].data[a].pure?Moa(d,yd(),b,e.transform,c,e):e.transform(c)},Ng=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?Noa(e,yd(),b,f.transform,c,d,f):f.transform(c,d)},Soa=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?Ooa(e,yd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},Toa=function(a,b,c){a=a.\u0275cmp;
a.directiveDefs=Zka(b,$ka);a.pipeDefs=Zka(c,vfa)},Og=function(a,b){return Una(a,b)},Woa=function(a,b){function c(){Kc(d);if(d.value===Uoa)throw new Uc(-950,null);return d.value}var d=Object.create(Voa);d.value=a;d.transformFn=b==null?void 0:b.transform;c[Pc]=d;return c},Pg=function(){return new Xoa},Qg=function(a,b){return Woa(a,b)},Yoa=function(a){function b(){Kc(c);if(c.value===Uoa)throw new Uc(952,!1);return c.value}var c=Object.create(Voa),d=new Xoa;c.value=a;b[Pc]=c;b.asReadonly=foa.bind(b);
b.set=function(e){c.equal(c.value,e)||(Qc(c,e),d.emit(e))};b.update=function(e){if(c.value===Uoa)throw new Uc(952,!1);b.set(e(c.value))};b.subscribe=d.subscribe.bind(d);b.destroyRef=d.destroyRef;return b},Zoa=function(a){return Yoa(a)},Rg=function(){return goa(!0,!1)},$oa=function(){return goa(!1,!1)},apa=function(){return goa(!0,!1)},bpa=function(a){var b=wd(),c=t();b.componentOffset>-1&&(a&16)!==16?(a=pd(b.index,c),a=new Sg(a,a)):a=b.type&175?new Sg(c[15],c):null;return a},cpa=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},gpa=function(a){var b=a.ngZoneFactory;var c=a.scheduleInRootZone;b!=null||(b=function(){return new Tg(Object.assign({},dpa(),{scheduleInRootZone:c}))});return[{provide:epa,useValue:!1},{provide:Tg,useFactory:b},{provide:Ifa,multi:!0,useFactory:function(){var d=p(Ug,{optional:!0});return function(){return d.initialize()}}},{provide:Ifa,multi:!0,useFactory:function(){var d=p(Vg);return function(){d.initialize()}}},{provide:fpa,
useValue:c!=null?c:!1}]},ipa=function(){return{"\u0275providers":[{provide:hpa,useValue:!0},gpa({ngZoneFactory:function(){var a=dpa();a.scheduleInRootZone=void 0;a.shouldCoalesceEventChangeDetection&&ze("NgZone_CoalesceEvent");return new Tg(a)},scheduleInRootZone:void 0})]}},dpa=function(){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!1,shouldCoalesceRunChangeDetection:!1}},ppa=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(Tg);return c.run(function(){a.moduleRef?
a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();var d=b.get(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(jpa);g.add(f);a.moduleRef.onDestroy(function(){Vla(a.allPlatformModules,a.moduleRef);e.unsubscribe();g.delete(f)})}else{var k=function(){return b.destroy()},m=a.platformInjector.get(jpa);m.add(k);b.onDestroy(function(){e.unsubscribe();m.delete(k)})}return kpa(d,
c,function(){var r=b.get(Wg),w=r.add(),x=b.get(Xg);lpa(x);return x.donePromise.then(function(){var D=b.get(mpa,"en-US")||"en-US";typeof D==="string"&&(xna=D.toLowerCase().replace(/_/g,"-"));if(!b.get(npa,!0)){if(!a.moduleRef)return b.get(Yg);a.allPlatformModules.push(a.moduleRef);return a.moduleRef}if(!a.moduleRef)return D=b.get(Yg),a.rootComponent!==void 0&&D.bootstrap(a.rootComponent),D;var H;(H=opa)==null||H(a.moduleRef,a.allPlatformModules);return a.moduleRef}).finally(function(){return void r.remove(w)})})})},
qpa=function(a,b){var c=a.injector.get(Yg);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(function(d){return c.bootstrap(d)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(c);else throw new Uc(-403,!1);b.push(a)},kpa=function(a,b,c){try{var d=c();return bla(d)?d.catch(function(e){b.runOutsideAngular(function(){return a(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a(e)}),e;}},vpa=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new ed(d);
return function(f){f=f===void 0?[]:f;if(!rpa()&&(f=[].concat(q(c),q(f),[{provide:e,useValue:!0}]),(a==null?void 0:a(f))==null)){f=spa(f,d);if(rpa())throw new Uc(400,!1);Tla();tpa=f;f.get(Zg);upa(f)}f=rpa();if(!f)throw new Uc(-401,!1);return f}},spa=function(a,b){a=a===void 0?[]:a;return $g({name:b,providers:[{provide:wpa,useValue:"platform"},{provide:jpa,useValue:new Set([function(){return tpa=null}])}].concat(q(a))})},rpa=function(){var a,b;return(b=(a=tpa)==null?void 0:a.get(Zg))!=null?b:null},
upa=function(a){var b=a.get(xpa,null);id(a,function(){b==null||b.forEach(function(c){return c()})})},ah=function(a,b){return Yea(a,b==null?void 0:b.equal)},Apa=function(a,b){if(typeof a==="function")return a=cfa(a,ypa,b==null?void 0:b.equal),zpa(a);a=cfa(a.source,a.computation,a.equal);return zpa(a)},zpa=function(a){var b=a[Pc];a.set=function(c){Rea(b);Qc(b,c);b.dirty=!1;b.lastCleanEpoch=Pea};a.update=function(c){Rea(b);Tea()||$ea();Qc(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=Pea};a.asReadonly=foa.bind(a);
return a},Bpa=function(a){switch(a.status){case "loading":return a.extRequest.reload===0?"loading":"reloading";case "resolved":return a.stream().error===void 0?"resolved":"error";default:return a.status}},bh=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},ch=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},Dpa=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(Iia,null,{optional:!0});b=new Cpa(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)},Epa=function(a,b){a=a[bd]||null;var c=b.elementInjector||Nfa();return(new dh(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},Fpa=function(a){var b=a[bd]||null;if(!b)return null;var c=new dh(b);return{get selector(){return c.selector},get type(){return c.componentType},
get inputs(){return c.inputs},get outputs(){return c.outputs},get ngContentSelectors(){return c.ngContentSelectors},get isStandalone(){return b.standalone},get isSignal(){return b.signals}}},Gpa=function(a){if(a&&!a.createEmbeddedView)throw new Uc(2020,!1);},Hpa=function(a,b,c){a=Zf(a);b=eh([a[1],a[2]],b);return eh(b,c)},Ipa=function(a,b,c){a=Zf(a);b=eh([a[3],a[4]],b);return eh(b,c)},Jpa=function(a,b,c){a=Zf(a);b=eh([a[5],a[6]],b);return eh(b,c)},Kpa=function(a,b){a=Zf(a)[7];return eh(a,b)},Lpa=function(a,
b){a=Zf(a);return eh(a[10],b)},Mpa=function(a,b){a=Zf(a);return eh(a[11],b)},Npa=function(a,b){a=Zf(a)[12];return eh(a,b)},fh=function(a,b){a=Zf(a);var c=a[13][b];if(typeof c==="undefined"){if(b===12)return a[13][0];if(b===13)return a[13][1]}return c},Ppa=function(a){a=Zf(a);if(!a[21])throw new Uc(2303,!1);return(a[21][2]||[]).map(function(b){return typeof b==="string"?Opa(b):[Opa(b[0]),Opa(b[1])]})},Qpa=function(a,b,c){a=Zf(a);if(!a[21])throw new Uc(2303,!1);b=eh([a[21][0],a[21][1]],b)||[];return eh(b,
c)||[]},eh=function(a,b){for(;b>-1;b--)if(typeof a[b]!=="undefined")return a[b];throw new Uc(2304,!1);},Opa=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},gh=function(){return new Uc(2100,!1)},Zpa=function(a,b,c,d){var e=Rpa(a);b=hh(c,b)||b;a=[];for(var f;b;)if(f=Spa.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=Tpa(d,g),e=Upa(e,d));var k="";a.forEach(function(m){a:if(Vpa[m])var r=Vpa[m];
else{switch(m){case "G":case "GG":case "GGG":r=ih(3,1);break;case "GGGG":r=ih(3,2);break;case "GGGGG":r=ih(3,0);break;case "y":r=jh(0,1,0,!1,!0);break;case "yy":r=jh(0,2,0,!0,!0);break;case "yyy":r=jh(0,3,0,!1,!0);break;case "yyyy":r=jh(0,4,0,!1,!0);break;case "Y":r=Wpa(1);break;case "YY":r=Wpa(2,!0);break;case "YYY":r=Wpa(3);break;case "YYYY":r=Wpa(4);break;case "M":case "L":r=jh(1,1,1);break;case "MM":case "LL":r=jh(1,2,1);break;case "MMM":r=ih(2,1);break;case "MMMM":r=ih(2,2);break;case "MMMMM":r=
ih(2,0);break;case "LLL":r=ih(2,1,1);break;case "LLLL":r=ih(2,2,1);break;case "LLLLL":r=ih(2,0,1);break;case "w":r=Xpa(1);break;case "ww":r=Xpa(2);break;case "W":r=Xpa(1,!0);break;case "d":r=jh(2,1);break;case "dd":r=jh(2,2);break;case "c":case "cc":r=jh(7,1);break;case "ccc":r=ih(1,1,1);break;case "cccc":r=ih(1,2,1);break;case "ccccc":r=ih(1,0,1);break;case "cccccc":r=ih(1,3,1);break;case "E":case "EE":case "EEE":r=ih(1,1);break;case "EEEE":r=ih(1,2);break;case "EEEEE":r=ih(1,0);break;case "EEEEEE":r=
ih(1,3);break;case "a":case "aa":case "aaa":r=ih(0,1);break;case "aaaa":r=ih(0,2);break;case "aaaaa":r=ih(0,0);break;case "b":case "bb":case "bbb":r=ih(0,1,1,!0);break;case "bbbb":r=ih(0,2,1,!0);break;case "bbbbb":r=ih(0,0,1,!0);break;case "B":case "BB":case "BBB":r=ih(0,1,0,!0);break;case "BBBB":r=ih(0,2,0,!0);break;case "BBBBB":r=ih(0,0,0,!0);break;case "h":r=jh(3,1,-12);break;case "hh":r=jh(3,2,-12);break;case "H":r=jh(3,1);break;case "HH":r=jh(3,2);break;case "m":r=jh(4,1);break;case "mm":r=jh(4,
2);break;case "s":r=jh(5,1);break;case "ss":r=jh(5,2);break;case "S":r=jh(6,1);break;case "SS":r=jh(6,2);break;case "SSS":r=jh(6,3);break;case "Z":case "ZZ":case "ZZZ":r=Ypa(0);break;case "ZZZZZ":r=Ypa(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":r=Ypa(1);break;case "OOOO":case "ZZZZ":case "zzzz":r=Ypa(2);break;default:r=null;break a}Vpa[m]=r}k+=r?r(e,c,g):m==="''"?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},$pa=function(a,b,c){var d=new Date(0);d.setFullYear(a,
b,c);d.setHours(0,0,0);return d},hh=function(a,b){var c=Zf(a)[0];aqa[c]!=null||(aqa[c]={});if(aqa[c][b])return aqa[c][b];var d="";switch(b){case "shortDate":d=Lpa(a,0);break;case "mediumDate":d=Lpa(a,1);break;case "longDate":d=Lpa(a,2);break;case "fullDate":d=Lpa(a,3);break;case "shortTime":d=Mpa(a,0);break;case "mediumTime":d=Mpa(a,1);break;case "longTime":d=Mpa(a,2);break;case "fullTime":d=Mpa(a,3);break;case "short":d=hh(a,"shortTime");var e=hh(a,"shortDate");d=bqa(Npa(a,0),[d,e]);break;case "medium":d=
hh(a,"mediumTime");e=hh(a,"mediumDate");d=bqa(Npa(a,1),[d,e]);break;case "long":d=hh(a,"longTime");e=hh(a,"longDate");d=bqa(Npa(a,2),[d,e]);break;case "full":d=hh(a,"fullTime"),e=hh(a,"fullDate"),d=bqa(Npa(a,3),[d,e])}d&&(aqa[c][b]=d);return d},bqa=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},kh=function(a,b,c,d,e){var f="";if(a<0||e&&a<=0)e?a=-a+1:(a=-a,f=c===void 0?"-":c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+
a},jh=function(a,b,c,d,e){c=c===void 0?0:c;d=d===void 0?!1:d;e=e===void 0?!1:e;return function(f,g){f=cqa(a,f);if(c>0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=12);else if(a===6)return kh(f,3).substring(0,b);g=fh(g,5);return kh(f,b,g,d,e)}},cqa=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 Uc(2301,
!1);}},ih=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return dqa(e,f,a,b,c,d)}},dqa=function(a,b,c,d,e,f){switch(c){case 2:return Jpa(b,e,d)[a.getMonth()];case 1:return Ipa(b,e,d)[a.getDay()];case 0:var g=a.getHours(),k=a.getMinutes();return f&&(c=Ppa(b),a=Qpa(b,e,d),c=c.findIndex(function(m){if(Array.isArray(m)){var r=l(m);m=r.next().value;r=r.next().value;var w=g>=m.hours&&k>=m.minutes,x=g<r.hours||g===r.hours&&k<r.minutes;if(m.hours<r.hours){if(w&&x)return!0}else if(w||
x)return!0}else if(m.hours===g&&m.minutes===k)return!0;return!1}),c!==-1)?a[c]:Hpa(b,e,d)[g<12?0:1];case 3:return Kpa(b,d)[a.getFullYear()<=0?0:1];default:throw new Uc(2302,!1);}},Ypa=function(a){return function(b,c,d){b=-1*d;c=fh(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(b>=0?"+":"")+kh(e,2,c)+kh(Math.abs(b%60),2,c);case 1:return"GMT"+(b>=0?"+":"")+kh(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+kh(e,2,c)+":"+kh(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+kh(e,
2,c)+":"+kh(Math.abs(b%60),2,c);default:throw new Uc(2310,!1);}}},eqa=function(a){var b=a.getDay();b=b===0?-3:4-b;return $pa(a.getFullYear(),a.getMonth(),a.getDate()+b)},Xpa=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=eqa(c);e=c.getFullYear();var f=$pa(e,0,1).getDay();e=$pa(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return kh(c,a,fh(d,5))}},Wpa=function(a,
b){b=b===void 0?!1:b;return function(c,d){c=eqa(c).getFullYear();return kh(c,a,fh(d,5),b)}},Tpa=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Upa=function(a,b){var c=a.getTimezoneOffset();b=Tpa(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Rpa=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;if(typeof a==="number"&&!isNaN(a))return new Date(a);if(typeof a==="string"){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=
l(a.split("-").map(function(d){return+d}));a=b.next().value;var c=b.next().value;c=c===void 0?1:c;b=b.next().value;return $pa(a,c-1,b===void 0?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(fqa))return gqa(b)}a=new Date(a);if(!(a instanceof Date)||isNaN(a.valueOf()))throw new Uc(2311,!1);return a},gqa=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},hqa=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},nqa=function(a,b,c,d){var e=e===void 0?!1:e;var f=
"",g=!1;if(isFinite(a)){g=iqa(a);e&&(g=jqa(g));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var m=d.match(kqa);if(m===null)throw new Uc(2306,!1);d=m[1];var r=m[3];m=m[5];d!=null&&(f=lqa(d));r!=null&&(e=lqa(r));m!=null?k=lqa(m):r!=null&&e>k&&(k=e)}mqa(g,e,k);e=g.digits;r=g.integerLen;k=g.exponent;d=[];for(g=e.every(function(w){return!w});r<f;r++)e.unshift(0);for(;r<0;r++)e.unshift(0);r>0?d=e.splice(r,e.length):(d=e,e=[0]);f=[];for(e.length>=b.lgSize&&f.unshift(e.splice(-b.lgSize,e.length).join(""));e.length>
b.gSize;)f.unshift(e.splice(-b.gSize,e.length).join(""));e.length&&f.unshift(e.join(""));f=f.join(fh(c,1));d.length&&(f+=fh(c,0)+d.join(""));k&&(f+=fh(c,6)+"+"+k)}else f=fh(c,9);return f=a<0&&!g?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},jqa=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},iqa=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}},mqa=function(a,b,c){if(b>c)throw new Uc(2307,!1);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,g=d[f];if(f>0){d.splice(Math.max(a.integerLen,
f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(g>=5)if(f-1<0){for(g=0;g>f;g--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var m=c!==0,r=b+a.integerLen;if(b=d.reduceRight(function(w,x,D,H){x+=w;H[D]=x<10?x:x-10;m&&(H[D]===0&&D>=r?H.pop():m=!1);return x>=10?1:0},0))d.unshift(b),a.integerLen++},lqa=function(a){a=parseInt(a);if(isNaN(a))throw new Uc(2305,
!1);return a},oqa=function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},pqa=function(a){var b=a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},lh=function(a){return a&&a[0]!=="?"?"?"+a:a},qqa=function(a){return RegExp("^(https?:)?//").test(a)?(a=l(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):a},rqa=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},sqa=function(a,b){b=b.createElement("style");b.textContent=
a;return b},tqa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},vqa=function(a,b){return b.map(function(c){return c.replace(uqa,a)})},wqa=function(a){var b=new Map;a.length>0&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=l(d==-1?[decodeURIComponent(c),""]:[decodeURIComponent(c.slice(0,d)),decodeURIComponent(c.slice(d+1))]);c=d.next().value;d=d.next().value;var e=b.get(c)||[];e.push(d);b.set(c,e)});return b},
zqa=function(a){return encodeURIComponent(a).replace(xqa,function(b,c){var d;return(d=yqa[c])!=null?d:b})},Aqa=function(a){return""+a},Bqa=function(a){return typeof ArrayBuffer!=="undefined"&&a instanceof ArrayBuffer},Cqa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},Dqa=function(a){return typeof FormData!=="undefined"&&a instanceof FormData},Eqa=function(a,b){return b(a)},Fqa=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},Gqa=function(a,
b,c){return function(d,e){return id(c,function(){return b(d,function(f){return a(f,e)})})}},Sqa=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}},
Vqa=function(a,b){var c=a.url.toLowerCase();if(!p(Tqa)||a.method==="GET"||a.method==="HEAD"||c.startsWith("http://")||c.startsWith("https://"))return b(a);c=p(mh).getToken();var d=p(Uqa);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},Xqa=function(a){return function(b,c){var d,e=(d=c==null?void 0:c.injector)!=null?d:p(Ae);return new Wqa(e,function(){var f=typeof b==="function"?b():b;if(f!==void 0){typeof f==="string"&&(f={url:f});var g=f.headers instanceof nh?f.headers:
new nh(f.headers),k=f.params instanceof oh?f.params:new oh({fromObject:f.params}),m,r;var w=new ph((m=f.method)!=null?m:"GET",f.url,(r=f.body)!=null?r:null,{headers:g,params:k,reportProgress:f.reportProgress,withCredentials:f.withCredentials,keepalive:f.keepalive,cache:f.cache,priority:f.priority,mode:f.mode,redirect:f.redirect,responseType:a,context:f.context,transferCache:f.transferCache,credentials:f.credentials,referrer:f.referrer,referrerPolicy:f.referrerPolicy,integrity:f.integrity,timeout:f.timeout})}else w=
void 0;return w},c==null?void 0:c.defaultValue,c==null?void 0:c.parse,c==null?void 0:c.equal)}},Yqa=function(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)},Zqa=function(a){return a.toString().indexOf("`")===-1},ara=function(){var a=null;if(!$qa)return a;try{var b=function(c){return c};a=$qa.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a},cra=function(){bra===void 0&&(bra=ara());return bra},rh=function(a){var b=cra();a=b?b.createHTML(a):a;return new qh(a)},
sh=function(a){return a instanceof qh},th=function(a){if(sh(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("na");},uh=function(a){return document.createRange().createContextualFragment(th(rh(a[0])))},wh=function(a){var b=cra();a=b?b.createScriptURL(a):a;return new vh(a)},xh=function(a){if(a instanceof vh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("na");},Ah=function(a){return a instanceof yh},dra=function(a){if(Ah(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("na");
},fra=function(a){return new era(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},hra=function(a,b){b=b===void 0?gra:b;if(Ah(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof era&&d.isValid(a))return new yh(a)}},Bh=function(a){var b=b===void 0?gra:b;return hra(a,b)||ira},kra=function(a){if(jra.test(a))return a},Ch=function(a){return a instanceof yh?dra(a):kra(a)},Dh=function(a,b){if(sh(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 rh(a)},Fh=function(a){return Eh(a)},Eh=function(a){var b=Dh("");return rh(a.map(function(c){return th(Dh(c))}).join(th(b).toString()))},nra=function(a){if(!lra.test(a))throw Error("na");if(mra.indexOf(a.toUpperCase())!==
-1)throw Error("na");},Hh=function(a,b,c){nra(a);var d="<"+a;b&&(d+=ora(b));Array.isArray(c)||(c=c===void 0?[]:[c]);pra.indexOf(a.toUpperCase())!==-1?d+=">":(b=Fh(c.map(function(e){return sh(e)?e:Dh(String(e))})),d+=">"+b.toString()+"</"+a+">");return rh(d)},ora=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!lra.test(e))throw Error("na");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("na");qra.indexOf(e.toLowerCase())!==-1&&(f=Ah(f)?f.toString():kra(String(f))||
"about:invalid#zClosurez");f=e+'="'+Dh(String(f))+'"';b+=" "+f}}return b},Ih=function(a){var b=ad.apply(1,arguments);if(b.length===0)return wh(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return wh(c)},sra=function(a,b){a=xh(a).toString();var c=a.split(/[?#]/),d=/[?]/.test(a)?"?"+c[1]:"";return rra(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)},rra=function(a,b,c,d){function e(g,k){g!=null&&(Array.isArray(g)?g.forEach(function(m){return e(m,k)}):(b+=f+encodeURIComponent(k)+
"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return wh(a+b+c)},ura=function(){if(tra===void 0&&(tra=null,typeof window!=="undefined")){var a=window;a.trustedTypes!==void 0&&(tra=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return tra},vra=function(a){var b;return((b=ura())==null?void 0:b.createHTML(a))||a},wra=function(a){return a.buttons===
0||a.detail===0},xra=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)},Jh=function(a){var b=ad.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},Ara=function(){if(yra)return yra;if(typeof document!=="object"||!document)return yra=new Set(zra);var a=document.createElement("input");return yra=new Set(zra.filter(function(b){a.setAttribute("type",
b);return a.type===b}))},Cra=function(){if(Bra==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Bra=!0}}))}finally{Bra=Bra||!1}return Bra},Kh=function(a){return Cra()?a:!!a.capture},Era=function(){if(Dra==null){if(typeof document!=="object"||!document||typeof Element!=="function"||!Element)return Dra=!1;var a;Dra=((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 Dra},Gra=function(){if(typeof document!=="object"||!document)return 0;if(Fra==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);Fra=0;a.scrollLeft===0&&(a.scrollLeft=1,Fra=a.scrollLeft===
0?1:2);a.remove()}return Fra},Ira=function(a){if(Hra==null){var b=typeof document!=="undefined"?document.head:null;Hra=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Hra&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Lh=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},Mh=function(a){return a.composedPath?
a.composedPath()[0]:a.target},Jra=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},Nh=function(a){return Array.isArray(a)?a:[a]},Oh=function(a){return a!=null&&""+a!=="false"},Ph=function(a){return a==null?"":typeof a==="string"?a:a+"px"},Qh=function(a){return a instanceof Jd?a.nativeElement:a},Rh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?arguments.length===
2?b===void 0?0:b:0:Number(a)},Kra=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},Lra=function(a){if(!Kra(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},Mra=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},Nra=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},
Ora=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},Qra=function(a,b,c){var d=Pra(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,d.join(" ")))},Sh=function(a,b,c){var d=Pra(a,b);c=c.trim();d=d.filter(function(e){return e!==
c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},Pra=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},Rra=function(a,b){return typeof a==="string"?(b||"")+"/"+a:a},Tra=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+Sra++)},Ura=function(a){return ye(a)?a:ee(a)},Vra=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},Wra=function(a){return a&&
typeof a.connect==="function"&&!(a instanceof uf)},Xra=function(a,b){return a.start==b.start&&a.end==b.end},Zra=function(a){return new Yra(a.get(Th),a.get(Uh))},$ra=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})},asa=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})},Wh=function(a,b){return new bsa(a.get(Vh),a.get(Th),a.get(Tg),b)},$h=function(a,
b){return new Xh(b,a.get(Th),a.get(Uh),a.get(Yh),a.get(Zh))},ai=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},dsa=function(a){if(typeof a!=="number"&&a!=null){var b=l(a.split(csa));a=b.next().value;return(b=b.next().value)&&b!=="px"?null:parseFloat(a)}return a||null},esa=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)}},ni=function(a,b){a.get(bi).load(ci);var c=
a.get(Zh),d=a.get(Uh),e=a.get(di),f=a.get(Yg),g=a.get(ei),k=a.get(fi,null,{optional:!0})||a.get(af).createRenderer(null,null),m=new gi(b),r,w,x=(w=(r=a.get(fsa,null,{optional:!0}))==null?void 0:r.usePopover)!=null?w:!0;m.direction=m.direction||g.value;if("showPopover"in d.body){var D;m.usePopover=(D=b==null?void 0:b.usePopover)!=null?D:x}else m.usePopover=!1;g=d.createElement("div");r=d.createElement("div");g.id=e.getId("cdk-overlay-");g.classList.add("cdk-overlay-pane");r.appendChild(g);m.usePopover&&
(r.setAttribute("popover","manual"),r.classList.add("cdk-overlay-popover"));var H,J;e=m.usePopover?(H=m.positionStrategy)==null?void 0:(J=H.getPopoverInsertionPoint)==null?void 0:J.call(H):null;gsa(c).appendChild(r);if(e)if(e instanceof Element)e.after(r);else if(e.type==="parent"){var O;(O=e.element)==null||O.appendChild(r)}var R;return new hi(new ii(g,f,a),r,g,m,a.get(Tg),a.get(ji),d,a.get(ki),a.get(li),(R=b==null?void 0:b.disableAnimations)!=null?R:a.get(mi,null,{optional:!0})==="NoopAnimations",
a.get($e),k)},jsa=function(){var a;if(((a=p(hsa,{optional:!0}))==null?0:a.animationsDisabled)||p(mi,{optional:!0})==="NoopAnimations")return"di-disabled";isa!=null||(isa=p(oi).matchMedia("(prefers-reduced-motion)").matches);return isa?"reduced-motion":"enabled"},pi=function(){return jsa()!=="enabled"},ksa=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)},lsa=function(a){a&1&&M(0,"mat-pseudo-checkbox",1);
a&2&&(a=P(),I("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},msa=function(a){a&1&&M(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),I("disabled",a.disabled))},nsa=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(),B(),S("(",a.group.label,")"))},osa=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},psa=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):c},qsa=function(a,b){b=Ch(b);b!==void 0&&
(a.href=b)},rsa=function(a,b){a.src=xh(b).toString()},tsa=function(a,b){a.removeAttribute("srcdoc");if(!(b instanceof vh))throw new ssa(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]);rsa(a,b)},qi=function(a,b,c,d){b=Ch(b);return b!==void 0?a.open(b,c,d):null},usa=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")||""},ri=function(a,b){a.src=xh(b);(b=usa(a.ownerDocument))&&a.setAttribute("nonce",b)},vsa=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("na");a.innerHTML=th(b)},xsa=function(a,b,c,d){if(a.length===0)throw Error("na");a=a.map(function(f){if(f instanceof wsa)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)},ysa=function(a){a&1&&M(0,"img",3);a&2&&(a=P(),I("src",a.iconUrl(),Pe))},zsa=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()()}},Asa=function(){return Math.random().toString(36).substring(2,10).padEnd(8,"0")},si=function(){var a=function(){throw Error();};
Object.setPrototypeOf(a,a.prototype);return a},Csa=function(a,b){var c=c===void 0?Bsa:c;return new ti(a,b,c)},Gsa=function(a,b,c,d,e){b=Dsa(b,d);b!=null&&(c=Esa(a,c),e(b,a),Fsa(a,c))},Ksa=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=$da(d[0]);var f=d[1],g=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++g],typeof f==="function"&&(e.isMessageSet=!0,Hsa!=null||(Hsa=f),Isa!=null||(Isa=d[g+1]),f=d[g+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]===
"number"&&f[0]>0;){for(var m=0;m<f.length;m++)k[f[m]]=f;f=d[++g]}for(m=1;f!==void 0;){typeof f==="number"&&(m+=f,f=d[++g]);var r=void 0;if(f instanceof ti)var w=f;else w=Jsa,g--;f=void 0;if((f=w)==null?0:f.$$isMsg){f=d[++g];r=d;var x=g;typeof f==="function"&&(f=f(),r[x]=f);r=f}f=d[++g];x=m+1;typeof f==="number"&&f<0&&(x-=f,f=d[++g]);for(;m<x;m++){var D=k[m];r?c(e,m,w,r,D):b(e,m,w,D)}}return d[a]=e},Msa=function(a){return Array.isArray(a)?a[0]instanceof ti?a:[Lsa,a]:[a,void 0]},Dsa=function(a,b){if(a instanceof
W)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return bea(a,b)},Nsa=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,g,k){return e(f,g,k,d)}:e},Psa=function(a,b,c,d,e){var f=c.$$binaryReaderFn,g,k;a[b]=function(m,r,w){return f(m,r,w,k||(k=Ksa(Osa,Nsa,Psa,d).messageMetadata),g||(g=Qsa(d)),e)}},Qsa=function(a){var b=a[Rsa];if(b!=null)return b;var c=Ksa(Osa,Nsa,Psa,a);b=c.isMessageSet?function(d,e){return Hsa(d,e,c)}:function(d,e){for(;Ssa(e)&&e.nextWireType_!=
4;){var f=e.nextField_,g=c[f];if(g==null){var k=c.extensions;k&&(k=k[f])&&(k=Tsa(k),k!=null&&(g=c[f]=k))}if(g==null||!g(e,d,f)){k=e;g=k.fieldCursor_;Usa(k);if(k.discardUnknownFields)var m=void 0;else{var r=k.decoder_.getCursor()-g;k.decoder_.cursor_=g;m=k.decoder_.readByteString(r)}r=k=g=void 0;var w=d;m&&((g=(k=(r=w[bc])!=null?r:w[bc]=new Oda)[f])!=null?g:k[f]=[]).push(m)}}if(d=Dda(d))d.reviveUnknownFields=c.binaryFields[Vsa];return!0};a[Rsa]=b;a[Vsa]=Wsa.bind(a);return b},Wsa=function(a,b,c,d){var e=
this[Osa],f=this[Rsa],g=bea(void 0,e.messageMetadata),k=Dda(a);if(k){var m=!1,r=e.extensions;if(r){e=function(J,O,R){if(R.length!==0)if(r[O])for(J=l(R),O=J.next();!O.done;O=J.next()){O=Xsa(O.value);try{m=!0,f(g,O)}finally{O.free()}}else d==null||d(a,O,R)};if(b==null)Mda(k,e);else if(k!=null){var w=k[b];w&&e(k,b,w)}if(m){var x=a[Ta]|0;if(x&2&&x&2048&&(c==null||!c.reviveIntoImmutable))throw Error();var D=kb(x),H=function(J,O){if(uc(a,J,D)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;
default:throw Error();}O!=null&&(x=nc(a,x,J,O,D));delete k[J]};b==null?lca(g,g[Ta]|0,function(J,O){H(J,O)}):H(b,uc(g,b,D))}}}},Tsa=function(a){a=Msa(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=Qsa(a),d=Ksa(Osa,Nsa,Psa,a).messageMetadata;return function(e,f,g){return b(e,f,g,d,c)}}return b},ata=function(a){return Ksa(Ysa,Zsa,$sa,a)},Zsa=function(a,b,c){a[b]=c.$$binaryWriterFn},$sa=function(a,b,c,d){var e,f,g=c.$$binaryWriterFn;a[b]=function(k,m,r){return g(k,m,r,f||(f=ata(d).messageMetadata),e||
(e=bta(d)))}},bta=function(a){var b=a[cta];if(!b){var c=ata(a);b=function(d,e){return dta(d,e,c)};a[cta]=b}return b},dta=function(a,b,c){lca(a,a[Ta]|0,function(d,e){if(e!=null){var f=eta(c,d);f?f(b,e,d):d<500||ub(fta,3)}});(a=Dda(a))&&Mda(a,function(d,e,f){ui(b,b.encoder_.end());for(d=0;d<f.length;d++)ui(b,ec(f[d])||new Uint8Array(0))})},eta=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Msa(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=bta(c),f=ata(c).messageMetadata;c=a.isMessageSet?
Isa(f,e):function(g,k,m){return d(g,k,m,f,e)}}else c=d;return a[b]=c}},vi=function(a,b,c){return new ti(a,b,c)},wi=function(a,b,c){nc(a,a[Ta]|0,b,c,kb(a[Ta]|0))},gta=function(a,b,c){a.writeInt64(c,cda(b))},hta=function(a,b,c){a.writeBool(c,zb(b))},jta=function(a,b,c){b=Tb(b);b!=null&&ita(a,c,Waa(b,!1))},kta=function(a,b,c,d,e){b=Dsa(b,d);b!=null&&(c=Esa(a,c),e(b,a),Fsa(a,c))},lta=function(a,b,c){b=b==null||typeof b=="string"||b instanceof Za?b:void 0;a.writeBytes(c,b)},mta=function(a,b,c){if(a.nextWireType_!==
2)return!1;a=a.readByteString();wi(b,c,a===Ya()?void 0:a);return!0},nta=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},pta=function(a,b,c,d){c==null||b==null&&(b=c.internalDoNotUse_ctor);if(xi(a,1).split("/").pop()!=d)return null;d=typeof b==="function"?b:b.constructor;var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=uc(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`"+Ica(b));f=hda(b,d,!0,c);if(!(f instanceof d))throw Error("cb`"+f.constructor.displayName+"`"+d.displayName);(d=!!(2&c))||(f=Xb(f));b!==f&&(nc(a,c,2,f),d||kc(a));b=f}else b=b==null||b instanceof Za?b:typeof b==="string"?ica(b):void 0,b=c(ota(b!=null?b:Ya())),fb(a)?fb(b)||(b=lea(b)):fb(b)&&(b=Xb(b));return b},qta=function(a,b){var c=function(d,e){var f={treatNewDataAsImmutable:!0};e&&Object.assign(f,e);d=Xsa(d,void 0,void 0,
f);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Qsa(b)(k,d);var m=g}finally{d.free()}return m};c.internalDoNotUse_ctor=a;return c},tta=function(a){return function(b){var c=new rta;dta(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,ata(a));return sta(c)}},uta=function(a){return lb(function(b){return b instanceof a&&!fb(b)})},vta=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("ea`"+Ica(b)+"`"+b);Wa(b);return new a(b)}},yi=function(a){return function(b){return wta(a,
b)}},xta=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"}},
yta=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}},zta=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""}},zi=function(a){a&&typeof a.dispose=="function"&&a.dispose()},Bta=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=++Ata;this.removed=this.callOnce=!1},Ai=
function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Bi=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Cta=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Dta=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Eta=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Fta=function(a,b){return a!==null&&b in a},Gta=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Hta=function(a,b){return(b=Gta(a,
b))&&a[b]},Ita=function(a){for(var b in a)return!1;return!0},Jta=function(a){for(var b in a)delete a[b]},Kta=function(a,b){b in a&&delete a[b]},Lta=function(a,b,c){if(a!==null&&b in a)throw Error("db`"+b);a[b]=c},Mta=function(a,b){return a!==null&&b in a?a[b]:void 0},Ci=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ota=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<Nta.length;f++)c=Nta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=
d[c])}},Di=function(a){this.src=a;this.listeners={};this.typeCount_=0},Pta=function(){this.replacer_=void 0},Qta=function(){},Rta=function(a){return rh(a)},Sta=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," ")):"")}}},Tta=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]},Uta=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Uta(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+Ei(b)))},Vta=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Uta(a[b],a[b+1],c);return c.join("&")},Wta=function(a){var b=[],c;for(c in a)Uta(c,a[c],b);return b.join("&")},Xta=function(a,b){var c=arguments.length==2?Vta(arguments[1],0):Vta(arguments,1);return Tta(a,
c)},Yta=function(a,b){b=Wta(b);return Tta(a,b)},Zta=function(a,b,c){c=c!=null?"="+Ei(c):"";return Tta(a,b+c)},aua=function(a,b){var c=a.search($ta);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," "))},bua=function(a,b){b.stack&&(a.stack+="\n"+b.stack);
return a},Gi=function(a){Fi.call(this);this.handler_=a;this.keys_={}},cua=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""},Hi=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0},dua=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)},hua=function(a){var b=eua(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new fua:new dua;if(b.startsWith("application/x-protobuf")){a=eua(a,"Content-Transfer-Encoding");if(!a)return new Hi;if(a.toLowerCase()=="base64")return new gua}return null},jua=function(a){var b=(new iua).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},Wi=function(a){var b={id:a.getMessageId(),sessionId:a.getSessionId(),client:a.getClient(),text:a.getText(),sender:Ii(a,5),isUser:Ii(a,5)===1?!0:!1,createdTimestamp:a.getCreationTimestamp()};a.hasFeedback()&&(b.feedback=a.getFeedback());Ji(a,Ki,10)&&(b.rewrite=X(a,Ki,10));Ji(a,kua,14)&&(b.responseMetadata=X(a,kua,14));Li(a,Mi,13)>0&&(b.relatedResources=Ni(a,Mi,13,Oi()));Ji(a,Pi,17)&&(b.executionMetadata=X(a,Pi,17));Qi(a,20)&&(b.hasPrivateContent=Ri(a,20));Qi(a,19)&&(b.hasRedactions=Ri(a,
19));a.getUserProvidedContextCount()>0&&(b.userProvidedContext=a.getUserProvidedContextList().map(function(c){a:{var d=Si;jc(c);if(void 0===lua){if(Ti(c,d,2)!==2){c=void 0;break a}}else vea(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,void 0,d,2);c=Ui(c,Vi,2)}return c}));Qi(a,18)&&(b.isFallback=Ri(a,18));Li(a,mua,27)>0&&(b.interactiveElements=Ni(a,mua,27,Oi()));return b},qua=function(a){var b=nua((new Xi).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&&Zi(b,Ki,10,a.rewrite);a.responseMetadata&&Zi(b,kua,14,a.responseMetadata);a.relatedResources&&$i(b,13,a.relatedResources);a.executionMetadata&&Zi(b,Pi,17,a.executionMetadata);a.hasPrivateContent!==void 0&&oua(b,a.hasPrivateContent);a.hasRedactions!==void 0&&aj(b,19,a.hasRedactions);a.userProvidedContext&&b.setUserProvidedContextList(a.userProvidedContext.map(function(c){return pua(new bj,c)}));a.isFallback!==
void 0&&aj(b,18,a.isFallback);a.interactiveElements&&$i(b,27,a.interactiveElements);return b},tua=function(a){var b=a.some(function(c){return cj(c,rua,4,dj)});a=a.some(function(c){return cj(c,sua,3,dj)});if(b)return"MOMA";if(a)return"YAQS"},vua=function(a){var b=a.getMessagesList(),c,d={serverId:a.getSessionId(),lastUsedTimestamp:X(a,ej,4),messages:b.map(Wi),title:(c=a.getTitle())!=null?c:"",modelId:uua(b),agentId:a.getAgentId(),agentVersion:a.getAgentVersion(),conversationAgentId:a.getConversationAgentId(),
conversationAgentModelId:a.getConversationAgentModelId(),sessionState:a.getSessionState()};a.hasPrivacyMode()&&(d.privacyMode=a.getPrivacyMode());if(a=tua(b.flatMap(function(e){return Ni(e,Mi,13,Oi())})))d.threadSource=a;return d},uua=function(a){return a.find(function(b){return b.getModelId()==="duckie_on_gemini_flash_32k"})?"duckie_on_gemini_flash_32k":""},wua=function(){return tla(function(){return Xd(Promise.resolve(void 0))})},fj=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))}},xua=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()},zua=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=yua(b==null?void 0:
b.equal);var f=(b==null?0:b.requireSync)?pg({kind:0},{equal:c}):pg({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 m;(m=g)==null||m()},complete:function(){var k;(k=g)==null||k()}});if((b==null?0:b.requireSync)&&f().kind===0)throw new Uc(601,!1);var g=e==null?void 0:e.onDestroy(a.unsubscribe.bind(a));return ah(function(){var k=f();switch(k.kind){case 1:return k.value;case 2:throw k.error;
case 0:throw new Uc(601,!1);}},{equal:b==null?void 0:b.equal})},yua=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)}},Aua=function(){},Bua=function(a){var b=pg.apply(null,[a].concat(q([]))),c=new gj;return{valueSignal:b,get value(){return b()},change:c,ngOnDestroy:function(){c.complete()}}},Cua=function(a,b){for(var c=a.length;c--;)b(a[c])},Dua=function(){},Eua=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?Rh(a.substring(0,
a.length-2)):a.endsWith("s")?Rh(a.substring(0,a.length-1))*1E3:a==="0"?0:null},Fua=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},Gua=function(a,b){return{type:7,name:a,definitions:b,options:{}}},hj=function(a,b){return{type:4,styles:b===void 0?null:b,timings:a}},ij=function(a){return{type:6,styles:a,offset:null}},jj=function(a,b){return{type:0,name:a,styles:b,options:void 0}},
kj=function(a,b){return{type:1,expr:a,animation:b,options:null}},Hua=function(a){a&1&&M(0,"a",1)},Iua=function(a){return a==null?void 0:ch(a)},Jua=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," "))},Kua=function(){},Lua=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),Ag(a.error))},Mua=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},Nua=function(){return"https://static.corp.google.com/devtools/codereview/new_logo_only.svg"},
Oua=function(){return"https://www.gstatic.com/images/branding/productlogos/code_search/v2/192px.svg"},Pua=function(){return"https://static.corp.google.com/devtools/codereview/g3doc_icon.svg"},Qua=function(){return"https://www.gstatic.com/images/branding/productlogos/buganizer/v1/192px.svg"},Rua=function(){return"https://www.gstatic.com/devnotify/snipit.svg"},Sua=function(){return"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg"},Tua=function(){return"https://moma.corp.google.com/images/go_links_logo_192px.svg"},
Uua=function(){return"https://www.gstatic.com/devopsconsole/images/home/gerrit_2.svg"},Vua=function(){return"https://www.gstatic.com/nightwatch/eldar/eldar.png"},lj=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0},mj=function(a,b){this.width=a;this.height=b},Zua=function(){for(var a;a=Wua.remove();){try{a.fn.call(a.scope)}catch(b){sa(b)}Xua.put(a)}Yua=!1},ava=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:$ua(a):null},bva=function(a,b,
c){for(c||(a=ava(a));a&&!b(a);)a=ava(a)},dva=function(a){if(cva.has(a))return cva.get(a);throw Error("yb`"+a);},fva=function(a){if(eva.has(a))return eva.get(a);throw Error("zb`"+a);},gva=function(a){for(var b=new Map,c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},hva=function(){return nj?"Webkit":oj?"Moz":null},iva=function(a,b){if(b&&a in b)return a;var c=hva();return c?(c=c.toLowerCase(),a=c+pj(a),b===void 0||a in b?a:null):null},rj=function(a){var b=
b===void 0?jva:b;var c=Bba(a),d=function(e){e=l(e);e.next();e=qj(e);return b(c,e)};return function(){var e=ad.apply(0,arguments),f=this||ra,g=kva.get(f);g||(g={},kva.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=l(g);g=k.next().value;k=qj(k);g=a.apply(g,k);f=f[e]=g}return f}},lva=function(a){sj.call(this);this.domHelper_=a||tj();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=uj(this.domHelper_.document_,this.eventType_,
vj(this.handleChange_,this))},wj=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},xj=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d},mva=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},nva=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;w=r=0}function b(x){for(var D=g,H=0;H<64;H+=4)D[H/4]=x[H]<<24|x[H+1]<<16|x[H+2]<<8|x[H+3];for(H=16;H<80;H++)x=D[H-3]^D[H-8]^D[H-14]^D[H-16],D[H]=(x<<1|x>>>31)&
4294967295;x=e[0];var J=e[1],O=e[2],R=e[3],V=e[4];for(H=0;H<80;H++){if(H<40)if(H<20){var ba=R^J&(O^R);var oa=1518500249}else ba=J^O^R,oa=1859775393;else H<60?(ba=J&O|R&(J|O),oa=2400959708):(ba=J^O^R,oa=3395469782);ba=((x<<5|x>>>27)&4294967295)+ba+V+oa+D[H]&4294967295;V=R;R=O;O=(J<<30|J>>>2)&4294967295;J=x;x=ba}e[0]=e[0]+x&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+R&4294967295;e[4]=e[4]+V&4294967295}function c(x,D){if(typeof x==="string"){x=unescape(encodeURIComponent(x));
for(var H=[],J=0,O=x.length;J<O;++J)H.push(x.charCodeAt(J));x=H}D||(D=x.length);H=0;if(r==0)for(;H+64<D;)b(x.slice(H,H+64)),H+=64,w+=64;for(;H<D;)if(f[r++]=x[H++],w++,r==64)for(r=0,b(f);H+64<D;)b(x.slice(H,H+64)),H+=64,w+=64}function d(){var x=[],D=w*8;r<56?c(k,56-r):c(k,64-(r-56));for(var H=63;H>=56;H--)f[H]=D&255,D>>>=8;b(f);for(H=D=0;H<5;H++)for(var J=24;J>=0;J-=8)x[D++]=e[H]>>J&255;return x}for(var e=[],f=[],g=[],k=[128],m=1;m<64;++m)k[m]=0;var r,w;a();return{reset:a,update:c,digest:d,digestString:function(){for(var x=
d(),D="",H=0;H<x.length;H++)D+="0123456789ABCDEF".charAt(Math.floor(x[H]/16))+"0123456789ABCDEF".charAt(x[H]%16);return D}}},ova=function(){this.document_=document||{cookie:""}},uva=function(a,b){b=b===void 0?pva:b;if(!qva){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"));rva((a.brands||[]).map(function(e){var f=new sva;return yj(f,1,e.brand).setVersion(e.version)}));
typeof a.mobile==="boolean"&&aj(tva,2,a.mobile);qva=a.getHighEntropyValues(b)}var d=new Set(b);return qva.then(function(e){var f=tva.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&yj(f,4,e.platformVersion);d.has("architecture")&&yj(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&yj(f,7,e.uaFullVersion);return f.serialize()}).catch(function(){return tva.serialize()})},vva=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=
a},wva=function(a){for(var b=zj.lastWindowEvent.target;b;){if(b===a)return!0;b=b.parentElement}return!1},xva=function(a){if(a)return typeof a==="function"?a():a},yva=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},zva=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},Ava=function(a,b){return Aj(b,a)},Bva=function(a,b,c){b[a]=c},Cva=function(){return{}},Hva=function(a,b){var c=new a;return b==
null?c:Dva(b,Eva,Fva,Gva,a)},Eva=function(a,b){return b[a]},Fva=function(a,b,c){b.Serializable$values[a]=c},Gva=function(a){if(a==null)throw Error("Mb");return new a},Dva=function(a,b,c,d,e){e=d(e);for(var f=Iva(a,e),g=f.arrays||{},k=f.objects||{},m=f.objectMaps||{},r=l(f.keys||[]),w=r.next(),x={};!w.done;x={mapMetadata:void 0},w=r.next()){w=w.value;var D=b(w,a);if(D!=null){var H=void 0;if(g.hasOwnProperty(w)){if(f.emptyArrayIsUnset&&D.length===0)continue;H=Jva(D,b,c,d,!0,!0,g[w])}else if(k.hasOwnProperty(w))H=
Jva(D,b,c,d,!1,!0,k[w]);else if(m.hasOwnProperty(w))x.mapMetadata=m[w],H=x.mapMetadata.isPropertyArray?D.map(function(J){return function(O){return Kva(O,J.mapMetadata,b,c,d)}}(x)):Kva(D,x.mapMetadata,b,c,d);else if(Array.isArray(D)){if(f.emptyArrayIsUnset&&D.length===0)continue;H=Jva(D,b,c,d,!0,!1)}else H=D;c(w,e,H)}}return e},Kva=function(a,b,c,d,e){for(var f={},g=l(Object.keys(a)),k=g.next();!k.done;k=g.next()){k=k.value;var m=a[k];m!=null&&(f[k]=Jva(m,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},
Jva=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(m){return Dva(m,b,c,d,g)}):e&&!f?k=a.map(function(m){return m}):!e&&f?k=Dva(a,b,c,d,g):typeof a==="object"?k=JSON.parse(JSON.stringify(a)):k=a;return k},Iva=function(a,b){if(b instanceof Bj)a=zva(b.getPartialClassMetadata());else if(a instanceof Bj)a=zva(a.getPartialClassMetadata());else throw Error("Ob");return a},Lva=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}},Mva=function(a,b,c){c=c===void 0?{}:c;b=l(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=l(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},Nva=function(a){if(!a.ok)throw Error(a.statusText);return a.json()},Ova=function(a,b){return(window.injected||new Map).get(a)||b},Qva=function(a){return function(b,c){if(typeof c==="object")b=Pva(a,b,c);else{var d=b.hasOwnProperty(c);b.constructor.createProperty(c,a);b=
d?Object.getOwnPropertyDescriptor(b,c):void 0}return b}},Tva=function(a,b,c){if(a.nodeType!==1)return Rva;b=b.toLowerCase();if(b==="innerhtml"||b==="innertext"||b==="textcontent"||b==="outerhtml")return function(){return th(Cj)};var d=Sva.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");}:Rva},Wva=function(a,b){if(!Uva(a)||!a.hasOwnProperty("raw"))throw Error("Xb");return Vva!==void 0?Vva.createHTML(b):
b},Fj=function(a,b,c,d){c=c===void 0?a:c;if(b===Dj)return b;var e,f=d!==void 0?(e=c.__directives)==null?void 0:e[d]:c.__directive;e=Xva(b)?void 0:b._$litDirective$;var g;if(((g=f)==null?void 0:g.constructor)!==e){var k,m;(k=f)==null||(m=k._$notifyDirectiveConnectionChanged)==null||m.call(k,!1);e===void 0?f=void 0:(f=new e(a),f._$initialize(a,c,d));if(d!==void 0){var r,w;((w=(r=c).__directives)!=null?w:r.__directives=[])[d]=f}else c.__directive=f}f!==void 0&&(b=Fj(a,f._$resolve(a,b.values),f,d));return b},
$va=function(a){this._$disconnectableChildren!==void 0?(Yva(this),this._$parent=a,Zva(this)):this._$parent=a},bwa=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++)awa(d[a],!1),Yva(d[a]);else d!=null&&(awa(d,!1),Yva(d));else awa(this,a)},cwa=function(a){a&1&&M(0,"span",21)},dwa=function(a){a&1&&(K(0,"label",20),fg(1,1),F(2,cwa,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))},ewa=function(a){a&1&&F(0,dwa,3,5,"label",20);a&2&&(a=P(),G(a._hasFloatingLabel()?0:-1))},fwa=function(a){a&1&&M(0,"div",7)},gwa=function(){},hwa=function(a){a&1&&E(0,gwa,0,0,"ng-template",13);a&2&&(P(2),a=sg(1),I("ngTemplateOutlet",a))},iwa=function(a){a&1&&(K(0,"div",9),F(1,hwa,1,1,null,13),L());a&2&&(a=
P(),I("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),B(),G(a._forceDisplayInfixLabel()?-1:1))},jwa=function(a){a&1&&(K(0,"div",10,2),fg(2,2),L())},kwa=function(a){a&1&&(K(0,"div",11,3),fg(2,3),L())},lwa=function(){},mwa=function(a){a&1&&E(0,lwa,0,0,"ng-template",13);a&2&&(P(),a=sg(1),I("ngTemplateOutlet",a))},nwa=function(a){a&1&&(K(0,"div",14,4),fg(2,4),L())},owa=function(a){a&1&&(K(0,"div",15,5),fg(2,5),L())},pwa=function(a){a&1&&M(0,"div",16)},qwa=function(a){a&1&&(K(0,"div",18),fg(1,
6),L())},rwa=function(a){a&1&&(K(0,"mat-hint",22),Q(1),L());a&2&&(a=P(2),I("id",a._hintLabelId),B(),Ag(a.hintLabel))},swa=function(a){a&1&&(K(0,"div",19),F(1,rwa,2,2,"mat-hint",22),fg(2,7),M(3,"div",23),fg(4,8),L());a&2&&(a=P(),B(),G(a.hintLabel?1:-1))},uwa=function(a){return a==null||twa(a)===0},twa=function(a){if(a!=null){if(Array.isArray(a)||typeof a==="string")return a.length;if(a instanceof Set)return a.size}return null},vwa=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}},wwa=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}},xwa=function(a){return uwa(a.value)?{required:!0}:null},ywa=function(a){return function(b){var c,d,e=(d=(c=b.value)==null?void 0:c.length)!=null?d:twa(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},Awa=function(a){if(!a)return zwa;
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(uwa(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},zwa=function(){return null},Bwa=function(a){return a!=null},Cwa=function(a){return bla(a)?Xd(a):a},Dwa=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===0?null:b},Ewa=function(a,
b){return b.map(function(c){return c(a)})},Fwa=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Gwa=function(a){if(!a)return null;var b=a.filter(Bwa);return b.length==0?null:function(c){return Dwa(Ewa(c,b))}},Hwa=function(a){return a!=null?Gwa(Fwa(a)):null},Iwa=function(a){if(!a)return null;var b=a.filter(Bwa);return b.length==0?null:function(c){c=Ewa(c,b).map(Cwa);return qe(c).pipe(A(Dwa))}},Jwa=function(a){return a!=null?Iwa(Fwa(a)):null},Kwa=function(a,
b){return a===null?[b]:Array.isArray(a)?[].concat(q(a),[b]):[a,b]},Lwa=function(a,b){return Array.isArray(a)?a.includes(b):a===b},Mwa=function(a){var b=[Gj],c=a?Array.isArray(a)?a:[a]:[];(b?Array.isArray(b)?b:[b]:[]).forEach(function(d){Lwa(c,d)||c.push(d)});return c},Nwa=function(a,b){return[].concat(q(b.path),[a])},Twa=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":c;Owa(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)}Pwa(a,b);Qwa(a,b);Rwa(a,b);Swa(a,b)},Vwa=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Uwa(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Wwa=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Swa=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)})}},Owa=function(a,b){var c=a._rawValidators;b.validator!==null?Xwa(a,Kwa(c,b.validator)):typeof c==="function"&&Xwa(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?Ywa(a,Kwa(c,b.asyncValidator)):typeof c==="function"&&Ywa(a,[c]);c=function(){return Hj(a)};Wwa(b._rawValidators,c);Wwa(b._rawAsyncValidators,c)},Uwa=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(){};Wwa(b._rawValidators,a);Wwa(b._rawAsyncValidators,a);return c},Pwa=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn===
"change"&&Zwa(a,b)})},Rwa=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&Zwa(a,b);a.updateOn!=="submit"&&Lf(a)})},Zwa=function(a,b){a._pendingDirty&&$wa(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Qwa=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)})},
axa=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},bxa=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)})},cxa=function(a){if(!a)return null;var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Ij?b=e:Object.getPrototypeOf(e.constructor)===Jj?c=e:d=e});return d?d:c?c:b?b:null},Kj=function(a){return a!=
null&&!Array.isArray(a)&&typeof a==="object"},dxa=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Uc(1E3,"");if(!a[c])throw new Uc(1001,"");},exa=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Uc(1002,"");})},fxa=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===2&&"value"in a&&"disabled"in a},gxa=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},hxa=function(a,b,c){for(var d=0;d<
a.length;d++){var e=a[d],f=b[d];if(e[0]===":")c[e.substring(1)]=f;else if(e!==f.path)return!1}return!0},ixa=function(a,b,c){var d=c.path.split("/"),e=d.indexOf("**");if(e===-1){if(d.length>a.length||c.pathMatch==="full"&&(b.hasChildren()||d.length<a.length))return null;var f={};a=a.slice(0,d.length);return hxa(d,a,f)?{consumed:a,posParams:f}:null}if(e!==d.lastIndexOf("**"))return null;f=d.slice(0,e);d=d.slice(e+1);if(f.length+d.length>a.length||c.pathMatch==="full"&&b.hasChildren()&&c.path!=="**")return null;
b={};return hxa(f,a.slice(0,f.length),b)&&hxa(d,a.slice(a.length-d.length),b)?{consumed:a,posParams:b}:null},jxa=function(a){return new Promise(function(b,c){a.pipe(rf()).subscribe({next:function(d){return b(d)},error:function(d){return c(d)}})})},Lj=function(a,b){var c=a?kxa(a):void 0,d=b?kxa(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!lxa(a[d],b[d]))return!1;return!0},kxa=function(a){return[].concat(q(Object.keys(a)),q(Object.getOwnPropertySymbols(a)))},
lxa=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},Mj=function(a){return ye(a)?a:bla(a)?Xd(Promise.resolve(a)):ee(a)},mxa=function(a){return ye(a)?jxa(a):Promise.resolve(a)},pxa=function(a,b,c){return nxa[c.paths](a.root,b.root,c.matrixParams)&&oxa[c.queryParams](a.queryParams,b.queryParams)&&!(c.fragment==="exact"&&a.fragment!==b.fragment)},qxa=
function(a,b){return Lj(a,b)},sxa=function(a,b,c){if(!Nj(a.segments,b.segments)||!rxa(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!sxa(a.children[d],b.children[d],c))return!1;return!0},txa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return lxa(a[c],b[c])})},vxa=function(a,b,c){return uxa(a,b,b.segments,c)},uxa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,
c.length),Nj(a,c)&&!b.hasChildren()&&rxa(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Nj(a.segments,c)||!rxa(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!vxa(a.children[e],b.children[e],d))return!1;return!0}e=c.slice(0,a.segments.length);c=c.slice(a.segments.length);return Nj(a.segments,e)&&rxa(a.segments,e,d)&&a.children.primary?uxa(a.children.primary,b,c,d):!1},rxa=function(a,b,c){return b.every(function(d,e){return oxa[c](a[e].parameters,d.parameters)})},wxa=function(a,
b){return Nj(a,b)&&a.every(function(c,d){return Lj(c.parameters,b[d].parameters)})},Nj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},xxa=function(a,b){var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d==="primary"&&(c=c.concat(b(e,d)))});Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d!=="primary"&&(c=c.concat(b(e,d)))});return c},Axa=function(a){return a.segments.map(function(b){return yxa(b.path)+
zxa(b.parameters)}).join("/")},Bxa=function(a,b){if(!a.hasChildren())return Axa(a);if(b){b=a.children.primary?Bxa(a.children.primary,!1):"";var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d!=="primary"&&c.push(d+":"+Bxa(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=xxa(a,function(d,e){return e==="primary"?[Bxa(a.children.primary,!1)]:[e+":"+Bxa(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?Axa(a)+"/"+b[0]:
Axa(a)+"/("+b.join("//")+")"},Cxa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Dxa=function(a){return Cxa(a).replace(/%3B/gi,";")},yxa=function(a){return Cxa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},zxa=function(a){return Object.entries(a).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return";"+yxa(b)+"="+yxa(c)}).join("")},Exa=function(a){a=Object.entries(a).map(function(b){b=l(b);
var c=b.next().value;b=b.next().value;return Array.isArray(b)?b.map(function(d){return Dxa(c)+"="+Dxa(d)}).join("&"):Dxa(c)+"="+Dxa(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},Gxa=function(a){return(a=a.match(Fxa))?a[0]:""},Hxa=function(a){var b={};return a.segments.length>0?new Oj([],(b.primary=a,b)):a},Ixa=function(a){for(var b={},c=l(Object.entries(a.children)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=Ixa(e);if(d==="primary"&&
e.segments.length===0&&e.hasChildren())for(d=l(Object.entries(e.children)),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b[e]=f}else if(e.segments.length>0||e.hasChildren())b[d]=e}a=new Oj(a.segments,b);a.numberOfChildren===1&&a.children.primary&&(b=a.children.primary,a=new Oj(a.segments.concat(b.segments),b.children));return a},Qj=function(a){return a instanceof Pj},Jxa=function(a){function b(f){for(var g={},k=l(f.children),m=k.next();!m.done;m=k.next()){m=m.value;
var r=b(m);g[m.outlet]=r}g=new Oj(f.url,g);f===a&&(c=g);return g}var c,d=b(a.root);d=Hxa(d);var e;return(e=c)!=null?e:d},Qxa=function(a,b,c,d,e){for(var f=a;f.parent;)f=f.parent;if(b.length===0)return Kxa(f,f,f,c,d,e);b=Lxa(b);if(b.isAbsolute&&b.commands.length===1&&b.commands[0]=="/")return Kxa(f,f,new Oj([],{}),c,d,e);var g=f;if(b.isAbsolute)a=new Mxa(g,!0,0);else if(a)if(a.parent===null)a=new Mxa(a,!0,0);else{g=a;a=a.segments.length-1+(Nxa(b.commands[0])?0:1);for(var k=b.numberOfDoubleDots;k>a;){k-=
a;g=g.parent;if(!g)throw new Uc(4005,!1);a=g.segments.length}a=new Mxa(g,!1,a-k)}else a=new Mxa(g,!1,NaN);b=a.processChildren?Oxa(a.segmentGroup,a.index,b.commands):Pxa(a.segmentGroup,a.index,b.commands);return Kxa(f,a.segmentGroup,b,c,d,e)},Nxa=function(a){return typeof a==="object"&&a!=null&&!a.outlets&&!a.segmentPath},Rxa=function(a){return typeof a==="object"&&a!=null&&a.outlets},Sxa=function(a,b,c){a||(a="\u0275");var d=new Pj,e={};d.queryParams=(e[a]=b,e);return c.parse(c.serialize(d)).queryParams[a]},
Kxa=function(a,b,c,d,e,f){var g={};d=l(Object.entries(d!=null?d:{}));for(var k=d.next(),m={};!k.done;m={key$jscomp$567:void 0},k=d.next()){var r=l(k.value);k=r.next().value;r=r.next().value;m.key$jscomp$567=k;k=r;g[m.key$jscomp$567]=Array.isArray(k)?k.map(function(w){return function(x){return Sxa(w.key$jscomp$567,x,f)}}(m)):Sxa(m.key$jscomp$567,k,f)}a=a===b?c:Txa(a,b,c);a=Hxa(Ixa(a));return new Pj(a,g,e)},Txa=function(a,b,c){var d={};Object.entries(a.children).forEach(function(e){var f=l(e);e=f.next().value;
f=f.next().value;d[e]=f===b?c:Txa(f,b,c)});return new Oj(a.segments,d)},Lxa=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new Uxa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if(typeof e==="object"&&e!=null){if(e.outlets){var g={};Object.entries(e.outlets).forEach(function(k){var m=l(k);k=m.next().value;m=m.next().value;g[k]=typeof m==="string"?m.split("/"):m});return[].concat(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,m){if(m!=0||k!==".")m==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(q(d),[e])},[]);return new Uxa(c,b,a)},Vxa=function(a){if(Rxa(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Pxa=function(a,b,c){a!=null||(a=new Oj([],{}));if(a.segments.length===0&&a.hasChildren())return Oxa(a,b,c);a:{var d=a;for(var e=0,f=b,g={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=g;break a}var k=d.segments[f],
m=c[e];if(Rxa(m))break;m=""+m;var r=e<c.length-1?c[e+1]:null;if(f>0&&m===void 0)break;if(m&&r&&typeof r==="object"&&r.outlets===void 0){if(m!=k.path||!Lj(r,k.parameters)){d=g;break a}e+=2}else{r={};if(m!=k.path||!Lj(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 Oj(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new Oj(a.segments.slice(d.pathIndex),a.children),Oxa(b,0,e)):d.match&&e.length===
0?new Oj(a.segments,{}):d.match&&!a.hasChildren()?Wxa(a,b,c):d.match?Oxa(a,0,e):Wxa(a,b,c)},Oxa=function(a,b,c){if(c.length===0)return new Oj(a.segments,{});var d=Vxa(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=Oxa(a.children.primary,b,c),new Oj(a.segments,c.children);Object.entries(d).forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;typeof g==="string"&&(g=[g]);g!==null&&
(e[f]=Pxa(a.children[f],b,g))});Object.entries(a.children).forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;d[f]===void 0&&(e[f]=g)});return new Oj(a.segments,e)},Wxa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(Rxa(f))return a=Xxa(f.outlets),new Oj(d,a);if(e===0&&Nxa(c[0]))d.push(new Rj(a.segments[b].path,Yxa(c[0]))),e++;else{f=Rxa(f)?f.outlets.primary:""+f;var g=e<c.length-1?c[e+1]:null;f&&g&&Nxa(g)?(d.push(new Rj(f,Yxa(g))),e+=2):(d.push(new Rj(f,
{})),e++)}}return new Oj(d,{})},Xxa=function(a){var b={};Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;typeof d==="string"&&(d=[d]);d!==null&&(b[c]=Wxa(new Oj([],{}),0,d))});return b},Yxa=function(a){var b={};Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b[c]=""+d});return b},Zxa=function(a,b){a.providers&&!a._injector&&(a._injector=Vka(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},Sj=function(a){return a.outlet||
"primary"},$xa=function(a,b){var c=a.filter(function(d){return Sj(d)===b});c.push.apply(c,q(a.filter(function(d){return Sj(d)!==b})));return c},Tj=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},aya=function(a,b){if(a===b.value)return b;b=l(b.children);
for(var c=b.next();!c.done;c=b.next())if(c=aya(a,c.value))return c;return null},bya=function(a,b){if(a===b.value)return[b];for(var c=l(b.children),d=c.next();!d.done;d=c.next())if(d=bya(a,d.value),d.length)return d.unshift(b),d;return[]},cya=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},eya=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[dya]=d.title);return a},fya=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return fya(a,c)})},gya=
function(a){var b=a.children.length>0?" { "+a.children.map(gya).join(", ")+" } ":"";return""+a.value+b},hya=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Lj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);Lj(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(!Lj(d[f],e[f])){d=!1;break a}d=!0}}d||
a.urlSubject.next(c.url);Lj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},iya=function(a,b){var c=Lj(a.params,b.params)&&wxa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||iya(a.parent,b.parent))},jya=function(a){var b=a.children&&a.children.map(jya);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=kya);
return a},nya=function(a,b,c){a=lya(a,b._root,c?c._root:void 0);return new mya(a,b)},lya=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=oya(a,b,c);return new Uj(d,b)}d=pya(b.value);b=b.children.map(function(e){return lya(a,e)});return new Uj(d,b)},oya=function(a,b,c){return b.children.map(function(d){for(var e=l(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return lya(a,d,f);return lya(a,
d)})},pya=function(a){return new Vj(new Wj(a.url),new Wj(a.params),new Wj(a.queryParams),new Wj(a.fragment),new Wj(a.data),a.outlet,a.component,a)},rya=function(a){var b=Qj(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=qya(0);c.url=a;c.navigationBehaviorOptions=b;return c},qya=function(a){var b=Error("bc`");b.ngNavigationCancelingError=!0;b.cancellationCode=a;return b},sya=function(a){return!!a&&a.ngNavigationCancelingError},Xj=function(){return Af(function(a){return le(a.map(function(b){return b.pipe(nf(1),
zf(tya))})).pipe(A(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===tya)return tya;if(c===!1||Qj(c))return c}return!0}),we(function(b){return b!==tya}),nf(1))})},uya=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)}})},Yj=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||Iea(a)!==null?b.get(a):
a:d},xya=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=cya(b);a.children.forEach(function(g){var k=f[g.value.outlet],m=d.concat([g.value]),r=e;r=r===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:r;var w=g.value,x=k?k.value:null,D=c?c.getContext(g.value.outlet):null;if(x&&w.routeConfig===x.routeConfig){var H=vya(x,w,w.routeConfig.runGuardsAndResolvers);H?r.canActivateChecks.push(new wya(m)):(w.data=x.data,w._resolvedData=x._resolvedData);w.component?
xya(g,k,D?D.children:null,m,r):xya(g,k,c,m,r);H&&D&&D.outlet&&D.outlet.isActivated&&r.canDeactivateChecks.push(new yya(D.outlet.component,x))}else x&&zya(k,D,r),r.canActivateChecks.push(new wya(m)),w.component?xya(g,null,D?D.children:null,m,r):xya(g,null,c,m,r);delete f[g.value.outlet]});Object.entries(f).forEach(function(g){var k=l(g);g=k.next().value;k=k.next().value;return zya(k,c.getContext(g),e)});return e},vya=function(a,b,c){if(typeof c==="function")return c(a,b);switch(c){case "pathParamsChange":return!Nj(a.url,
b.url);case "pathParamsOrQueryParamsChange":return!Nj(a.url,b.url)||!Lj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!iya(a,b)||!Lj(a.queryParams,b.queryParams);default:return!iya(a,b)}},zya=function(a,b,c){var d=cya(a),e=a.value;Object.entries(d).forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;e.component?b?zya(g,b.children.getContext(f),c):zya(g,null,c):zya(g,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new yya(b.outlet.component,
e)):c.canDeactivateChecks.push(new yya(null,e)):c.canDeactivateChecks.push(new yya(null,e))},Aya=function(a){return typeof a==="function"},Bya=function(a){return a instanceof Sha||(a==null?void 0:a.name)==="EmptyError"},Eya=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})):Cya(f,d,e,a).pipe(me(function(k){return k&&typeof k==="boolean"?Dya(d,
g,a,b):ee(k)}),A(function(k){return Object.assign({},c,{guardsResult:k})}))})},Cya=function(a,b,c,d){return Xd(a).pipe(me(function(e){return Fya(e.component,e.route,c,b,d)}),rf(function(e){return e!==!0},!0))},Dya=function(a,b,c,d){return Xd(b).pipe(qla(function(e){var f=e.route.parent;f!==null&&d&&d(new Gya(f));f=ee(!0);var g=e.route;g!==null&&d&&d(new Hya(g));g=ee(!0);return oe(f,g,Iya(a,e.path,c),Jya(a,e.route,c))}),rf(function(e){return e!==!0},!0))},Jya=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=Tj(b))!=null?f:c,k=Yj(e,g);f=k&&Aya(k.canActivate)?k.canActivate(b,a):id(g,function(){return k(b,a)});return Mj(f).pipe(rf())})});return ee(d).pipe(Xj())},Iya=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,m=(k=Tj(e.node))!=null?k:c,r=Yj(g,m);g=r&&Aya(r.canActivateChild)?r.canActivateChild(d,a):id(m,function(){return r(d,a)});return Mj(g).pipe(rf())});return ee(f).pipe(Xj())})});return ee(b).pipe(Xj())},Fya=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,m=(k=Tj(b))!=null?k:e,r=Yj(g,m);g=r&&Aya(r.canDeactivate)?r.canDeactivate(a,b,c,d):id(m,function(){return r(a,b,c,d)});return Mj(g).pipe(rf())});
return ee(f).pipe(Xj())},Lya=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=Yj(f,a);f=g&&Aya(g.canLoad)?g.canLoad(b,c):id(a,function(){return g(b,c)});f=Mj(f);return d?f.pipe(Bf(uya(d))):f});return ee(e).pipe(Xj(),Kya())},Kya=function(){return Ud(Cf(function(a){if(typeof a!=="boolean")throw rya(a);}),A(function(a){return a===!0}))},Mya=function(a,b,c,d){var e=b.canMatch;if(!e||e.length===0)return ee(!0);e=e.map(function(f){var g=Yj(f,a);f=g&&
Aya(g.canMatch)?g.canMatch(b,c):id(a,function(){return g(b,c)});f=Mj(f);return d?f.pipe(Bf(uya(d))):f});return ee(e).pipe(Xj(),Kya())},Nya=function(a,b,c){if(typeof a==="string")return Promise.resolve(a);var d=b.queryParams,e=b.fragment,f=b.routeConfig,g=b.url,k=b.outlet,m=b.params,r=b.data,w=b.title;return jxa(Mj(id(c,function(){return a({params:m,data:r,queryParams:d,fragment:e,routeConfig:f,url:g,outlet:k,title:w})})))},Qya=function(a,b,c,d,e){var f=Oya(a,b,c);if(!f.matched)return ee(f);d=Zxa(b,
d);return Mya(d,b,c,e).pipe(A(function(g){return g===!0?f:Object.assign({},Pya)}))},Oya=function(a,b,c){if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>0)?Object.assign({},Pya):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||ixa)(c,a,b);if(!a)return Object.assign({},Pya);var d={},e;Object.entries((e=a.posParams)!=null?e:{}).forEach(function(g){var k=l(g);g=k.next().value;k=k.next().value;d[g]=k.path});e=a.consumed.length>
0?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,positionalParamSegments:(f=a.posParams)!=null?f:{}}},Uya=function(a,b,c,d){if(c.length>0&&Rya(a,c,d)){var e=Oj;a=new Oj(c,a.children);c={};c.primary=a;a=l(d);for(d=a.next();!d.done;d=a.next())if(d=d.value,d.path===""&&Sj(d)!=="primary"){var f=new Oj([],{});c[Sj(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===
0&&Sya(a,c,d)){b=Oj;e=a.segments;f=a.children;var g={};d=l(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,Tya(a,c,k)&&!f[Sj(k)]){var m=new Oj([],{});g[Sj(k)]=m}a=Object.assign({},f,g);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new Oj(a.segments,a.children),slicedSegments:c};return c},Rya=function(a,b,c){return c.some(function(d){return Tya(a,b,d)&&Sj(d)!=="primary"})},Sya=function(a,b,c){return c.some(function(d){return Tya(a,b,d)})},Tya=function(a,b,c){return(a.hasChildren()||
b.length>0)&&c.pathMatch==="full"?!1:c.path===""},Wya=function(a,b,c,d,e,f,g,k){g=g===void 0?"emptyOnly":g;return y(function(m){return m.return((new Vya(a,b,c,d,e,g,f,k)).recognize())})},Xya=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)})},Yya=function(a){return(a=a.value.routeConfig)&&a.path===""},Zya=function(a){var b=[],c=new Set;a=l(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$211:void 0},d=
a.next())e.node$jscomp$211=d.value,Yya(e.node$jscomp$211)?(d=b.find(function(f){return function(g){return f.node$jscomp$211.value.routeConfig===g.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,q(e.node$jscomp$211.children)),c.add(d)):b.push(e.node$jscomp$211)):b.push(e.node$jscomp$211);a=l(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=Zya(e.children),b.push(new Uj(e.value,d));return b.filter(function(f){return!c.has(f)})},aza=function(a,b,c,d,e,f,g){var k=a.get($ya);return me(function(m){return ee(m).pipe(Af(function(r){return k(a,
b,c,d,r.extractedUrl,e,f,g)}),A(function(r){return Object.assign({},m,{targetSnapshot:r.state,urlAfterRedirects:r.tree})}))})},dza=function(a,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=l(f);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!g.has(k)){k=l(bza(k));for(var m=k.next();!m.done;m=k.next())g.add(m.value)}var r=0;return Xd(g).pipe(qla(function(w){if(f.has(w))return cza(w,
d,a,b);w.data=eya(w,w.parent,a).resolve;return ee(void 0)}),Cf(function(){return r++}),Ela(),me(function(){return r===g.size?ee(c):ue}))})},bza=function(a){var b=a.children.map(function(c){return bza(c)}).flat();return[a].concat(q(b))},cza=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[dya]=e.title);return pe(function(){a.data=eya(a,a.parent,c).resolve;return eza(f,a,b,d).pipe(A(function(g){a._resolvedData=g;a.data=
Object.assign({},a.data,g);return null}))})},eza=function(a,b,c,d){var e=kxa(a);if(e.length===0)return ee({});var f={};return Xd(e).pipe(me(function(g){return fza(a[g],b,c,d).pipe(rf(),Cf(function(k){f[g]=k}))}),Ela(),A(function(){return f}),jf(function(g){return Bya(g)?ue:fe(g)}))},fza=function(a,b,c,d){var e,f=(e=Tj(b))!=null?e:d,g=Yj(a,f);a=g.resolve?g.resolve(b,c):id(f,function(){return g(b,c)});return Mj(a)},gza=function(a){return Af(function(b){var c=a(b);return c?Xd(c).pipe(A(function(){return b})):
ee(b)})},mza=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return z(r,mxa(id(b,function(){return a.loadChildren()})),2);case 2:return d=r.yieldResult,z(r,hza(iza(d)?d["default"]:d),3);case 3:e=r.yieldResult;if(e instanceof jza||Array.isArray(e)){f=e;r.jumpTo(4);break}return z(r,Promise.resolve(new kza(e)),5);case 5:f=r.yieldResult;case 4:return c&&c(a),Array.isArray(f)?k=f:(g=f.create(b).injector,k=g.get(lza,[],{optional:!0,self:!0}).flat()),m=k.map(jya),r.return({routes:m,
injector:g})}})},iza=function(a){return a&&typeof a==="object"&&"default"in a},hza=function(a){var b;return y(function(c){switch(c.nextAddress){case 1:c.jumpTo(2);break;case 5:Zj(c,2);break;case 3:b=be(c),console.error(b);case 2:return c.return(a)}})},pza=function(a,b,c){var d=a.get(nza),e=a.get(Uh);if(!e.startViewTransition||d.skipNextTransition)return d.skipNextTransition=!1,new Promise(function(r){return setTimeout(r)});var f,g=new Promise(function(r){f=r}),k=e.startViewTransition(function(){f();
return oza(a)});k.ready.catch(function(){});var m=d.onViewTransitionCreated;m&&id(a,function(){return m({transition:k,from:b,to:c})});return g},oza=function(a){return new Promise(function(b){Ge({read:function(){return setTimeout(b)}},{injector:a})})},qza=function(a,b){a.events.pipe(we(function(c){return c instanceof ak||c instanceof bk||c instanceof ck||c instanceof dk}),A(function(c){return c instanceof ak||c instanceof dk?0:c instanceof bk&&(c.code===0||c.code===1)?2:1}),we(function(c){return c!==
2}),nf(1)).subscribe(function(){b()})},rza=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},sza=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",Fg(a.label))("iconUrl",Fg(a.imgSrc))("linkUrl",Fg(a.fullUrl))("showRemoveButton",!0))},tza=function(a){a&1&&(K(0,"span",11),Q(1,"Links:"),L(),Qf(2,sza,1,7,"link-chip",12,Pf));a&2&&(P(2),a=dg(0),B(2),Rf(a))},uza=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=dg(2),B(4),S(" ",a," "))},vza=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," "))},wza=function(a){a&1&&(K(0,"div",1),F(1,tza,4,0)(2,uza,5,1,"span",9)(3,vza,7,1,"span",10),L());if(a&2){P();a=dg(0);var b=dg(2);B();G(a&&a.length>0?1:b?2:3)}},xza=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()()}},yza=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"))},zza=function(a){a&1&&Yf(0,null,0)},Aza=function(a){if(a&1){var b=t();K(0,"message-input",2);N("submitMessage",function(c){u(b);var d=P();return v(d.submitMessage.emit(c))});L()}a&2&&(a=P(),I("inputText",a.inputText())("inputPlaceholder",a.inputPlaceholder()))},Bza=function(a){a&1&&(Tf(0,"span"),Q(1),Uf());a&2&&(a=P(),B(),Ag(a.overrideAgentName))},Cza=function(a){a&1&&(Tf(0,"a",2),Q(1,"Duckie"),Uf())},Dza=function(a){a&1&&Yf(0,null,0)},Eza=function(a){a&1&&M(0,"reminder-blurb")},
Fza=function(a){a&1&&(K(0,"div",1),M(1,"div",4)(2,"div",5)(3,"div",6),L())},Gza=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," "))},Iza=function(a,b){a&1&&(K(0,"div",7)(1,"div",8),Q(2),L(),Qf(3,Gza,2,4,"button",9,Hza),L());a&2&&(a=b.$implicit,
b=P(),yg("hidden",b.isLoading()),B(2),Ag(a.title),B(),Rf(a.examples))},fk=function(a,b){Jza[a]=(Jza[a]||0)+1;if(typeof b==="function")return Kza(a,function(){return Object.assign({},b.apply(null,q(ad.apply(0,arguments))),{type:a})});switch(b?b._as:"empty"){case "empty":return Kza(a,function(){return{type:a}});case "props":return Kza(a,function(c){return Object.assign({},c,{type:a})});default:throw Error("dc");}},gk=function(){return{_as:"props",_p:void 0}},Kza=function(a,b){return Object.defineProperty(b,
"type",{value:a,writable:!1})},Lza=function(a){if(a===null||a===void 0)throw Error("ec`Store Injector");},Mza=function(a){return typeof a==="function"},Nza=function(a,b){return a===b},hk=function(a,b,c){b=b===void 0?Nza:b;c=c===void 0?Nza:c;var d=null,e=null,f;return{memoized:function(){if(f!==void 0)return f.result;if(!d)return e=a.apply(null,arguments),d=arguments,e;a:{var g=arguments;for(var k=d,m=b,r=0;r<g.length;r++)if(!m(g[r],k[r])){g=!0;break a}g=!1}if(!g)return e;g=a.apply(null,arguments);
d=arguments;return c(e,g)?e:e=g},reset:function(){e=d=null},setResult:function(g){f={result:g}},clearResult:function(){f=void 0}}},jk=function(){return ik(hk).apply(null,q(ad.apply(0,arguments)))},Oza=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]))},ik=function(a){var b=b===void 0?{stateFn:Oza}:b;return function(){var c=ad.apply(0,arguments);if(Array.isArray(c[0])){var d=
l(c);c=d.next().value;d=qj(d);c=[].concat(q(c),q(d))}else c.length===1&&Pza(c[0])&&(c=Qza(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,ad.apply(0,arguments))}),m=hk(function(r,w){return b.stateFn.apply(null,[r,e,w,k])});return Object.assign(m.memoized,{release:function(){m.reset();k.reset();g.forEach(function(r){return r.release()})},projector:k.memoized,setResult:m.setResult,clearResult:m.clearResult})}},
Pza=function(a){return!!a&&typeof a==="object"&&Object.values(a).every(function(b){return typeof b==="function"})},Qza=function(a){var b=Object.values(a),c=Object.keys(a);return[].concat(q(b),[function(){var d=ad.apply(0,arguments);return c.reduce(function(e,f,g){var k={};return Object.assign({},e,(k[f]=d[g],k))},{})}])},Rza=function(a,b){b=b===void 0?{}:b;for(var c=Object.keys(a),d={},e=0;e<c.length;e++){var f=c[e];typeof a[f]==="function"&&(d[f]=a[f])}var g=Object.keys(d);return function(k,m){k=
k===void 0?b:k;for(var r=!1,w={},x=0;x<g.length;x++){var D=g[x],H=k[D],J=(0,d[D])(H,m);w[D]=J;r=r||J!==H}return r?w:k}},Sza=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))},{})},Tza=function(){var a=ad.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))}},Uza=function(a,b){Array.isArray(b)&&b.length>0&&(a=Tza.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)}}},Vza=function(a){var b=Array.isArray(a)&&a.length>0?Tza.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)}}},Xza=function(a,b){return function(c,d){d=b.action(d)?Wza(d):d;c=a(c,d);return b.state()?Wza(c):c}},Wza=function(a){Object.freeze(a);var b=Mza(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)&&!Mza(c)||Object.isFrozen(c)||Wza(c)}});return a},Zza=function(a,b){return function(c,d){if(b.action(d)&&!Yza())throw Error("ic`"+d.type);return a(c,d)}},bAa=function(a,b){return function(c,d){if(b.action(d)){var e=$za(d);aAa(e,"action")}c=a(c,d);b.state()&&(d=$za(c),aAa(d,"state"));return c}},$za=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];Mza(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?$za(e,[].concat(q(b),[d])):{path:[].concat(q(b),[d]),value:e});return d},!1):{path:["root"],value:a}},aAa=function(a,b){if(a!==!1){var c=a.path.join(".");
b=Error("jc`"+b+"`"+c+"`"+b);b.value=a.value;b.unserializablePath=c;throw b;}},fAa=function(){return[{provide:cAa,multi:!0,deps:[dAa],useFactory:eAa}]},eAa=function(a){if(a.strictActionTypeUniqueness&&(a=Object.entries(Jza).filter(function(b){b=l(b);b.next();return b.next().value>1}).map(function(b){return l(b).next().value}),a.length))throw Error("kc`"+a.map(function(b){return'"'+b+'"'}).join(", "));},gAa=function(a,b){a=a===void 0?{state:void 0}:a;var c=l(b);b=c.next().value;c=c.next().value;return{state:c(a.state,
b),action:b}},kk=function(a,b){var c=ad.apply(2,arguments);return function(d){if(typeof a==="string"){var e=[b].concat(q(c)).filter(Boolean);d=d.pipe(Ila.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("lc`"+typeof a);return d.pipe(pf())}},hAa=function(a){return typeof a==="function"?a():a},lk=function(){var a=ad.apply(0,arguments),b=a.pop();a=a.map(function(c){return c.type});return{reducer:b,types:a}},mk=function(a){for(var b=
new Map,c=l(ad.apply(1,arguments)),d=c.next(),e={};!d.done;e={on:void 0},d=c.next()){e.on=d.value;d=l(e.on.types);for(var f=d.next(),g={};!f.done;g={existingReducer:void 0},f=d.next())f=f.value,g.existingReducer=b.get(f),g.existingReducer?b.set(f,function(k,m){return function(r,w){return k.on.reducer((0,m.existingReducer)(r,w),w)}}(e,g)):b.set(f,e.on.reducer)}return function(k,m){k=k===void 0?a:k;var r=b.get(m.type);return r?r(k,m):k}},nk=function(a){var b=a.actions;return b.length===1?b[0]:iAa(a)},
ok=function(a){return function(b,c){if(c.type===iAa.type&&c.actions.length>0){var d=l(c.actions);c=d.next().value;d=qj(d);b=a(b,c);c=l(d);for(d=c.next();!d.done;d=c.next())b=a(b,d.value);return b}return a(b,c)}},kAa=function(a,b){var c=jAa.get(a);c||(c={timer:0,actions:[]},jAa.set(a,c));c.actions.push(b);c.timer||(c.timer=setTimeout(function(){c.timer=0;a.dispatch(nk({actions:c.actions}));c.actions=[]}))},pk=function(a){var b=l(a);a=b.next().value;b=b.next().value;return{previousValue:a,currentValue:b}},
qk=function(a,b){return{previousValue:a.previousValue&&b(a.previousValue)||null,currentValue:a.currentValue&&b(a.currentValue)||null}},tk=function(a,b,c,d,e,f,g,k){return new rk({getKey:a,getSelector:function(m,r){var w=r.getSelector(c,m),x=d?r.getSelector(d,m):void 0,D=e?r.getSelector(e,m):void 0,H=f?r.getSelector(f,m):void 0,J=g?r.getSelector(g,m):void 0;m=k?r.getSelector(k,m):void 0;return x&&D&&H&&J&&m?le([w,x,D,H,J,m]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=
R.next().value;var oa=R.next().value;var ta=R.next().value;R=R.next().value;return sk(O,V,ba,oa,ta,R,b)})):x&&D&&H&&J?le([w,x,D,H,J]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=R.next().value;var oa=R.next().value;R=R.next().value;return sk(O,V,ba,oa,R,b)})):x&&D&&H?le([w,x,D,H]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=R.next().value;R=R.next().value;return sk(O,V,ba,R,b)})):x&&D?le([w,x,D]).pipe(A(function(O){var R=l(O);O=R.next().value;
var V=R.next().value;R=R.next().value;return sk(O,V,R,b)})):x?le([w,x]).pipe(A(function(O){var R=l(O);O=R.next().value;R=R.next().value;return sk(O,R,b)})):w.pipe(A(function(O){return sk(O,b)}))}})},lAa=function(a,b){return a===b},mAa=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)?
Hba(a,b):a===b;return a},uk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},nAa=function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},vk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId+",layerId:"+a.layerId},wk=function(a){return"chartId:"+a.chartId},xk=function(a){return"chartGroupId:"+a.chartGroupId},oAa=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId},pAa=function(){return jk(yk,
function(a){return a.focus})},qAa=function(){return jk(yk,function(a){return a.hoverDisabled})},zk=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},Ak=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},rAa=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},Bk=function(a){var b=a.chartId;return jk(sAa,function(c){return c.entities[b]})},
uAa=function(a){var b=function(d){return!(typeof d==="string"&&/^\s*$/.test(d))},c=a.findIndex(b);b=tAa(a,b);return c>=0&&b>=0?a.slice(c,b+1):[]},vAa=function(a){for(var b=[],c=0;c<a.subtokens_.length;++c)b.push(a.subtoken(c));b=uAa(b);return b=b.map(function(d){return d instanceof Ck?new Ck(d.toString().trim()):d.trim()})},wAa=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.append(c.value)},xAa=function(a){if(a instanceof Ck)return new Ck(a.toString().trim());if(a instanceof Dk){a=vAa(a);
if(a.length>0){var b=new Dk(a.shift());wAa(b,a);return b}return new Dk("")}return a instanceof Ek?(a=vAa(a),a.length>0?(b=new Ek(a.shift()),wAa(b,a),b):new Ek("")):typeof a==="string"?a.trim():a},zAa=function(a){var b=a.chartId;return jk(yAa,function(c){return c.entities[b]})},AAa=function(a){var b=a.chartId;var c=[];return jk(yAa,function(d){var e=[];if(d=d.entities[b]){d=l(Object.values(d.byLayer.entities));for(var f=d.next();!f.done;f=d.next())if(f=f.value){f=l(Object.values(f.bySeries.entities));
for(var g=f.next();!g.done;g=f.next())(g=g.value)&&g.dataSeriesMetadata&&e.push(g.dataSeriesMetadata)}}return e.length===c.length&&c.every(function(k,m){return k===e[m]})?c:c=e})},DAa=function(a){return jk(AAa({chartId:a.chartId}),function(b){var c={metric:new Set,shortMetric:new Set,aligner:new Set,primaryReducer:new Set,secondaryReducer:new Set,filter:{}};b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=c,f=d.value,g=null;f&&f.metric&&f.metric.type&&(g=f.metric.type);g&&e.metric.add(g);f&&f.shortMetric&&
e.shortMetric.add(f.shortMetric);if(f.requestParams&&(f.requestParams["aggregation.perSeriesAligner"]&&e.aligner.add(f.requestParams["aggregation.perSeriesAligner"]),f.requestParams["aggregation.crossSeriesReducer"]&&e.primaryReducer.add(f.requestParams["aggregation.crossSeriesReducer"]),f.requestParams["secondaryAggregation.crossSeriesReducer"]&&e.secondaryReducer.add(f.requestParams["secondaryAggregation.crossSeriesReducer"]),g&&f.requestParams.filter))for(e.filter[g]||(e.filter[g]={count:0,entries:{}}),
d=e.filter[g].entries,e.filter[g].count++,e=BAa(new Fk(f.requestParams.filter)),f=0;e&&f<e.length;){var k=e[f++],m=e[f++];g=e[f++];k=k&&k.toString();m=m&&m.toString();g=g&&g.toString();k&&m&&g&&(k=k.replace(/\./g,"").replace(/"/g,"")+(CAa[m]||""),d[k]||(d[k]={count:0,set:new Set}),d[k].count++,d[k].set.add(m+g))}}return{metric:c.metric.size,shortMetric:c.shortMetric.size,aligner:c.aligner.size,primaryReducer:c.primaryReducer.size,secondaryReducer:c.secondaryReducer.size,filter:c.filter}})},FAa=function(a){var b=
a.chartGroupId;return jk(EAa,function(c){return c.entities[b]})},GAa=function(){var a=ad.apply(0,arguments);return function(b){return b.pipe(Ef.apply(null,q(a)),A(function(c){c=l(c);c.next();return qj(c)}))}},Gk=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()})}})})}},HAa=function(a){return a.viewHandler&&a.viewHandlerUsingContext===
void 0},IAa=function(a){return a.viewHandlerUsingContext&&a.viewHandler===void 0},JAa=function(a){return a.componentHandler&&a.componentHandlerUsingContext===void 0},KAa=function(a){return a.componentHandlerUsingContext&&a.componentHandler===void 0},Hk=function(a){return a.chartId},Ik=function(a,b){return function(c,d){d=d.chartId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartId:d}),c)}},Jk=function(a){return function(b,c){return a.removeOne(c.chartId,b)}},Kk=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)}},LAa=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)}},MAa=function(a){return a.chartGroupId},NAa=function(a,b){return function(c,d){d=d.chartGroupId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartGroupId:d}),c)}},OAa=function(a){return function(b,c){return a.removeOne(c.chartGroupId,b)}},Lk=function(a){return a.layerId},QAa=function(){var a=Mk,b=PAa;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)}},Nk=function(a,b,c){return c&&b&&c!=="chart_group"?
"chartId:"+b+",xAxisId:"+c:"chartGroupId:"+a},RAa=function(a){return Nk(a.chartGroupId,a.chartId,a.xAxisId)},SAa=function(){},TAa=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)},Pk=function(a,b){if(b)a:{a="TimeZoneConstants"in UAa?UAa.TimeZoneConstants["en-US"]:void 0;a=a!=null?a:VAa;if(b){var c,d=(c=a[b])!=null?c:a[TAa(b)];if(d){b=Ok(d);break a}}b=Intl.DateTimeFormat().resolvedOptions().timeZone;
b=(b=a[TAa(b)])?Ok(b):Ok(WAa)}else b=Ok(a!=null?a:WAa);return b},YAa=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)&&XAa(a==null?void 0:a.ticks,b==null?void 0:b.ticks):a===b},XAa=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},ZAa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},$Aa=function(a){return{key:a,coef:1,suffix:a,base:0,scale:0}},aBa=function(a){return{key:a,coef:1,suffix:a,compatibilityKeys:["0"],operators:[],
components:[$Aa(a)]}},eBa=function(a){var b=a.match(bBa);if(!b)return $Aa(a);var c=b[1]||"";b=b[2]||"";if(!c&&!b)return $Aa(a);c&&!b&&(b="1");a=cBa[b];if(c){var d=dBa[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},Qk=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 fBa(a)},fBa=function(a){var b=/^(.*?)(\.|\/)?([^\/\.]*)$/,
c=l(a.match(b)||[]);c.next();var d=c.next().value,e=c.next().value;c=c.next().value;var f=e;if(c){a=gBa[c]||c;c=l(a.match(b)||[]);c.next();b=c.next().value;e=c.next().value;c=c.next().value;b&&(d=(d||"").concat(f||"",b),f=e,a=c);b=eBa(a);if(d&&f){d=fBa(d);var g=eBa(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=hBa(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 aBa(a)},hBa=function(a,
b,c){var d;a=(d=iBa[(a===void 0?1:a)+","+b])!=null?d:[];d=null;a=l(a);for(b=a.next();!b.done;b=a.next())b=eBa(b.value),b.coef===c&&(d=b);return d},jBa=function(a,b,c){c=c===void 0?{}:c;a=Qk(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=iBa[(g.scale||1)+","+g.base];k?(g=k.indexOf(g.key),g=g<0?null:(g=k[g+(f?1:-1)])?eBa(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=Qk(c);break}}}var m,r;return(r=(m=d)==null?void 0:m.key)!=null?r:null},Rk=function(a){return a!==null&&a!=="{not_a_unit}"},Sk=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("Dc");return 0}throw d;}}return c},kBa=function(a){return/^((.*)[/]\2)|1$/.test(a)},lBa=function(a,b){return a.compatibilityKeys.some(function(c){return b.compatibilityKeys.includes(c)})||kBa(a.key)&&kBa(b.key)},mBa=function(a){a=Qk(a);return kBa(a.key)},nBa=function(a){return(a=a.match(/(\{[^}]*\})/))?a[1]:null},oBa=function(a,b){a=Qk(a);b=Qk(b);return lBa(a,b)?a.components.length<b.components.length:!1},pBa=function(a,b){if(a===b)return!0;if(!Rk(a)||!Rk(b))return!1;
a=Qk(a);b=Qk(b);return lBa(a,b)},Tk=function(a,b){if(a===b)return 1;if(!Rk(a)||!Rk(b))return null;a=Qk(a);b=Qk(b);return lBa(a,b)?a.coef/b.coef:null},Uk=function(a,b,c,d){d=d===void 0?!1:d;return c===null||c===void 0?null:a===b?d?c:Sk(c):Rk(a)&&Rk(b)?(a=Tk(a,b))?d?c*a:Sk(c*a):null:null},qBa=function(a,b){b=b===void 0?{}:b;return jBa(a,!0,b)},rBa=function(a,b){b=b===void 0?{}:b;return jBa(a,!1,b)},xBa=function(a,b,c){sBa(tBa,3);uBa(tBa,0);tBa.showTrailingZeros_=!1;b=Rk(b)&&Qk(b)||aBa("");var d=a<0?
"-":"";a=(c==null?0:c.ignoreFloatImprecision)?Math.abs(a):Sk(Math.abs(a));if(a===0&&(c==null||!c.forceUnitZero))return{negativeSign:"",unitPrefix:"",integerDigits:"0",decimalSeparator:"",fractionDigits:"",unitSuffix:""};var e=tBa;(c==null?0:c.maximumFractionDigits)&&sBa(e,c.maximumFractionDigits);(c==null?0:c.significantDigits)&&uBa(e,c.significantDigits);if(c==null?0:c.showTrailingZeros)e.showTrailingZeros_=c.showTrailingZeros!=0;if(a!==0&&(a<1E-9||a>1E12)&&(e=vBa,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?rBa(c.key):qBa(c.key);if(!g)break;c=Qk(g)}f=Tk(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=wBa);a=e.format(a).split(Vk.DECIMAL_SEP);return{negativeSign:d,unitPrefix:b.prefix||"",integerDigits:a[0]||"",decimalSeparator:a.length===2?Vk.DECIMAL_SEP:"",fractionDigits:a[1]||"",unitSuffix:b.suffix||""}},yBa=function(a){return a.negativeSign+a.unitPrefix+a.integerDigits+
a.decimalSeparator+a.fractionDigits},Wk=function(a,b,c){a=xBa(a,b,c);return yBa(a)+a.unitSuffix},BBa=function(a,b){var c=Sk(Math.abs(a.min)),d=Sk(Math.abs(a.max)),e=Math.min(c,d);d=Math.max(c,d);var f=b.idealMaxMagnitude-b.idealMinMagnitude;c=a.unit;if(pBa(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(;zBa(f,g,b,a.unit);){c=d;d=ABa(f,d,b);if(!d)break;
g=Uk(a.unit,d,e);if(g===null)break;g=Math.log10(g)}}b=Uk(a.unit,c,a.min);e=Uk(a.unit,c,a.max);return b===null||e===null?a:{min:b,max:e,unit:c}},zBa=function(a,b,c,d){if((b>c.countPrefixMaxMagnitude||b<c.countPrefixMinMagnitude)&&pBa(d,"1"))return!1;switch(a){case 2:return b>c.idealMinMagnitude;case 1:return b<c.idealMaxMagnitude;default:return!1}},ABa=function(a,b,c){c=c===void 0?{}:c;if(!b)return null;switch(a){case 2:return qBa(b,c);case 1:return rBa(b,c);default:return null}},DBa=function(a,b){return CBa.format(a,
b)},EBa=function(a){return a.includes("%")||a==="ratio"||a==="percent"},GBa=function(a,b){var c="",d="";if(a===null)return{value:c,unit:d};b!==null&&mBa(b)&&(b=nBa(b)||b);if(b===""||b==="{not_a_unit}")b="1";var e=BBa({min:0,max:a,unit:b},FBa).unit;a=Uk(b,e,a);if(a===null)return{value:c,unit:d};d=xBa(a,e);c=yBa(d);d=d.unitSuffix;return{value:c,unit:d}},HBa=function(a,b,c){if(!a)return null;for(var d=-Infinity,e=Infinity,f=Infinity,g=l(a.series),k=g.next();!k.done;k=g.next()){k=l(k.value.data);for(var m=
k.next();!m.done;m=k.next()){m=m.value;var r=void 0;if(!(b!==null&&((r=m.x0)!=null?r:m.x).valueOf()<b||c!==null&&m.x.valueOf()>c)){var w=r=void 0;d=Math.max(d,m.y,(r=m.y0)!=null?r:d,(w=m.y1)!=null?w:d);w=r=void 0;e=Math.min(e,m.y,(r=m.y0)!=null?r:e,(w=m.y1)!=null?w:e);f=Math.min(f,Math.abs(m.y||f),Math.abs(m.y0||f),Math.abs(m.y1||f))}}}return d===-Infinity||e===Infinity?null:{priority:1,absoluteMin:f,min:e,max:d,unit:a.unit}},IBa=function(a,b){return{x0:b,x1:a,max:-Infinity,min:Infinity,absoluteMin:Infinity}},
JBa=function(a){return a.filter(function(b){return!isNaN(b.y)&&isFinite(b.y)})},KBa=function(a){if(a==null||!a.series)return null;var b=new Map;a=l(a.series);for(var c=a.next();!c.done;c=a.next()){c=JBa(c.value.data);c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.x.valueOf(),f=void 0,g=void 0,k=b.get(e)||IBa(e,(g=(f=d.x0)==null?void 0:f.valueOf())!=null?g:void 0),m=g=f=void 0;k.max=Math.max(k.max,d.y,(f=d.y0)!=null?f:-Infinity,(g=d.y1)!=null?g:-Infinity,(m=d.max)!=null?m:-Infinity);
m=g=f=void 0;k.min=Math.min(k.min,d.y,(f=d.y0)!=null?f:Infinity,(g=d.y1)!=null?g:Infinity,(m=d.min)!=null?m:Infinity);k.absoluteMin=Math.min(k.absoluteMin,Math.abs(d.y||Infinity),Math.abs(d.y0||Infinity),Math.abs(d.y1||Infinity),Math.abs(d.min||Infinity));b.set(e,k)}}return b.size===0?null:Array.from(b.values()).sort(function(r,w){return r.x1-w.x1})},Xk=function(a,b,c,d,e,f){if(!a)return null;e&&f&&(c=Uk(f,e,c),d=Uk(f,e,d));e={max:-Infinity,min:Infinity,absoluteMin:Infinity};if(c)a:{f=0;for(var g=
a.length-1,k=Math.floor((f+g)/2);f<g;){if(c<a[k].x1)g=k;else if(c>a[k].x1)f=k+1;else{c=k;break a}k=Math.floor((f+g)/2)}var m;c=(m=k)!=null?m:0}else c=0;if(d)a:{g=0;m=a.length-1;for(f=Math.ceil((g+m)/2);g<m;){k=void 0;if(d<((k=a[f].x0)!=null?k:a[f].x1))m=f-1;else if(g=void 0,d>((g=a[f].x0)!=null?g:a[f].x1))g=f;else{d=f;break a}f=Math.ceil((g+m)/2)}var r;d=(r=f)!=null?r:a.length-1}else d=a.length;a=l(a.slice(c,d+1));for(r=a.next();!r.done;r=a.next())r=r.value,e.max=Math.max(e.max,r.max),e.min=Math.min(e.min,
r.min),e.absoluteMin=Math.min(e.absoluteMin,r.absoluteMin||Infinity);return Object.assign({},{priority:1},e,{unit:b})},Yk=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))},LBa=function(a){if(!a)return null;var b=a.xAxisUnit||"ms_since_epoch",c=-Infinity,d=Infinity;a=l(a.series);for(var e=a.next();!e.done;e=a.next()){e=l(e.value.data);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.x.valueOf();
var k=void 0;g=(k=g.x0)==null?void 0:k.valueOf();f>c&&(c=f);f<d&&(d=f);g!==void 0&&(g>c&&(c=g),g<d&&(d=g))}}return c===-Infinity||d===Infinity?null:{priority:1,min:d,max:c,unit:b}},MBa=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]},NBa=function(a){return!a.min||a.min>0?Object.assign({},a,{min:0}):!a.max||a.max<0?Object.assign({},a,{max:0}):a},OBa=function(a){if(!a)return null;var b=new Set;a=l(a.series);for(var c=a.next();!c.done;c=
a.next()){c=l(c.value.data);for(var d=c.next();!d.done;d=c.next())b.add(d.value.x)}return{categories:[].concat(q(b.values()))}},PBa=function(a){if(!a)return null;for(var b=Infinity,c=-Infinity,d=l(a.series),e=d.next();!e.done;e=d.next()){e=l(e.value.data);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=void 0;b=Math.min(b,f.y,(g=f.y1)!=null?g:Infinity);g=void 0;c=Math.max(c,f.y,(g=f.y1)!=null?g:-Infinity)}}b=Math.min(0,b);c=Math.max(0,c);return{priority:1,min:b,max:c,unit:a.unit}},QBa=function(a,
b){if(a.length===0)return null;var c=0,d=0,e=Infinity,f=-Infinity;a=l(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.priority;var m=k.min,r=k.max;k.unit!=="ms_since_epoch"||b!==void 0&&!b.includes(g)||(k=void 0,m=(k=m)!=null?k:e,k=void 0,r=(k=r)!=null?k:f,e=l(MBa(m,g,e,c,Math.min)),c=e.next().value,e=e.next().value,f=l(MBa(r,g,f,d,Math.max)),d=f.next().value,f=f.next().value)}return e===Infinity||f===-Infinity?null:{min:e,max:f}},SBa=function(a,b,c){var d=QBa(a),e=QBa(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=Sk((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=Zk.FIVE_MINUTES,g=Infinity,k=l(RBa),m=k.next();!m.done;m=k.next()){m=m.value;var r=Math.abs(e-a/m)/e;r>g||(f=m,g=r)}a=f;e=
Pk(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"})},VBa=function(a,b){return SBa(a,b,function(c,d,e){var f=[],g=$k(e,new Date(c.min))*6E4;var k=c.min-g;k=k+(d-k%d)%d+g;var m;g=(m=TBa[d])==null?void 0:m.format(new Date(k-d),e);for(m=$k(e,new Date(k));k<=c.max;k+=d){var r=$k(e,new Date(k));r!==m&&(m=(r-m)*6E4,m%d!==0&&(k+=m));m=r;r=UBa[d].format(new Date(k),e);var w=void 0,x=(w=
TBa[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})},WBa=function(a){return[].concat(q(new Set(a.map(function(b){return b.categories}).flat())))},XBa=function(a){return{categories:WBa(a)}},YBa=function(a,b,c){if(a.length===0)return null;for(var d=0,e=0,f=Infinity,g=-Infinity,k=null,m=l(a),r=m.next();!r.done;r=m.next()){var w=r.value;r=w.unit;w=w.constraints;var x=void 0;!r||k&&!oBa(r,k)||((x=w)==null?0:x.onlyApplyIfUnitCompatible)||
(k=r)}k&&mBa(k)&&(k=nBa(k)||k);m=l(a);for(r=m.next();!r.done;r=m.next()){var D=r.value;r=D.priority;x=D.min;w=D.max;var H=void 0;D=(H=D.unit)!=null?H:k;x=x!==void 0&&x!==null?Uk(D,k,x):null;w=w!==void 0&&w!==null?Uk(D,k,w):null;x!==null&&(f=l(MBa(x,r,f,d,Math.min,b)),d=f.next().value,f=f.next().value);w!==null&&(g=l(MBa(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=Sk(f,b);g=Sk(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!pBa(J,k)})&&(d=null);return{min:f,max:g,unit:d}},ZBa=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}},cCa=function(a,b,c){c=c===void 0?40:c;var d=Sk(a.max-a.min);if(d===0)return Sk(a.max)===0?1:Math.pow(10,
Math.floor(Math.log10(a.max)));a=Math.max(2,Math.min(10,Math.floor(b/c)));b=Infinity;c=d;for(var e=1;e<a;e++){var f=d/e,g=f;var k=e===a-1?1:3;var m=Math.floor(Math.log(g)/Math.LN10);g/=Math.pow(10,m);switch(k===void 0?3:k){case 1:k=g>5?10:g>2?5:g>1?2:1;break;case 2:k=g<2?1:g<5?2:g<10?5:10;break;default:k=g>=$Ba?10:g>=aCa?5:g>=bCa?2:1}m=k*Math.pow(10,m);f=Math.abs(m-f);f<=b&&(b=f,c=m)}return c},dCa=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(Sk(c)===Sk(d)){var e=c-b;c=c>=0&&e<0?0:e;d+=b}return{min:Sk(c),max:Sk(d),unit:a.unit}},eCa=function(a){return a},fCa=function(a,b,c,d){d=d===void 0?eCa:d;for(var e=[],f=a.min,g={maximumFractionDigits:9},k={domain:a};f<=a.max;){e.push({label:c(f,a.unit||"1",g,k),value:f});var m=Sk(f+b);if(m===f||m<a.min){e.push({label:c(a.max,a.unit||"1",g,k),value:a.max});break}f=m}return d(e,a.unit)},gCa=function(a){return a.reduce(function(b,c){c=String(c.value).split(".")[1];return Math.max(b,
c?c.length:0)},0)+2},jCa=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?Wk:f.valueFormatter;var k=c===void 0?{}:c;c=k.neverScaleRates;var m=k.neverScaleUnits;var r=k.ignoreAllUnitsIfIncompatible;k=k.minYRangePercent;d=d===void 0?eCa:d;e=e===void 0?40:e;var w=YBa(a,[0,1],r),x=w?ZBa(w):null;a=YBa(a,void 0,r);if(!a)return{min:null,max:null,unit:null,tickIncrement:null,absoluteMin:void 0,
ticks:[],scaleType:0,maximumFractionDigits:void 0};b===4&&x&&x.unit===a.unit&&(x.min>a.min&&(a.min=x.min),x.max<a.max&&(a.max=x.max));var D;m?D={min:a.min,max:a.max,unit:a.unit}:D=BBa(a,{neverScaleRates:c,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:hCa,countPrefixMinMagnitude:iCa});w&&(a=Tk(w.unit,D.unit)||1,a=(k!=null?k:.01)*(a*w.max-a*w.min),b===4&&D.max-D.min<a&&(a=Sk((a-(D.max-D.min))/2),D={min:D.min-a,max:D.max+a,unit:D.unit}));a=cCa(D,g,e);g=dCa(D,a);e=fCa(g,a,f,d);c=D.max-
D.min;(b===4||b===2)&&c>0&&(b=e.filter(function(H){return H.value>=D.min&&H.value<=D.max}),d=fCa(D,a,f,d),b.length>=2?(g=D,e=b):d.length>=2&&(g=D,e=d));d=gCa(e);return Object.assign({},g,{ticks:e,scaleType:0,maximumFractionDigits:d})},kCa=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"},al=function(a,b,c,d,e){return(e-a)/(b-a)*(d-c)+c},bl=function(a,b,c,d,e){return a===c?b:(b*(c-e)+d*(e-a))/(c-a)},lCa=function(a,b,c,d,e){return c.map(function(f,
g){return al(a,b,c[g],d[g],e)})},mCa=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}},nCa=function(a,b,c,d,e,f,g){var k=mCa(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 al(a+f,b,c,d,k)},cl=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)},oCa=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)))},dl=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timezoneOffset)===a.timezoneOffset)},el=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timeZoneId)===a.timeZoneId)},fl=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&
f!==null){var g=d?Tk(a,d)||1:1;return function(k){return al(e*g,f*g,b,c,k)}}return null},gl=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Tk(a,d)||1:1;return function(k){return al(b,c,e*g,f*g,k.valueOf())}}return null},qCa=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"#"+pCa(a);case 3:return"#"+pCa(a);case 2:return"#"+
a.repeat(3);case 1:return"#"+a.repeat(6);default:return""}},pCa=function(a){return a.split("").map(function(b){return b+b}).join("")},hl=function(a,b){if(typeof a!=="string")return a;if(a.trim().startsWith("light-dark("))return rCa.style.color=a,b.appendChild(rCa),a=getComputedStyle(rCa).color,b.removeChild(rCa),a;if(!a.startsWith("var(--"))return a;var c=a.match(sCa);if(!c)return a;var d=l(c);d.next();c=d.next().value;d=d.next().value;b=getComputedStyle(b);return b?(a=b.getPropertyValue(c))?a.match(tCa)?
qCa(a):a:d===void 0?"":d.match(tCa)?qCa(d):d:a},uCa=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)},il=function(a,b,c){var d;b=b===void 0?{}:b;d||(d=vCa.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=hl(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=hl(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);uCa(a,d)},kl=function(a,b,c,d,e,f){e=e===void 0?"transparent":e;var g=a.getContext("2d");if(!g)throw Error("Ec");f||(f=vCa.scaleFactor);var k=Math.floor(d*f),m=Math.floor(c*f);if(a.width!==k||a.height!==m)a.style.width=d+"px",a.style.height=c+"px",a.width=k,a.height=m;uCa(g,f);jl(a,e,b,f)},jl=function(a,b,c,d,e){b=b===void 0?"transparent":b;var f=a.getContext("2d");if(!f)throw Error("Ec");d||
(d=vCa.scaleFactor);f.save();b==="transparent"?f.clearRect(0,0,a.width/d,a.height/d):(f.fillStyle=hl(b,c),f.globalAlpha=e!=null?e:1,f.fillRect(0,0,a.width/d,a.height/d),f.fill());f.restore()},ll=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)})},ml=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},wCa=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?0:f;a.save();for(var g=b,k=b.length;k>=0;k--){var m=k===b.length?b.slice(0,k):b.slice(0,k)+"...";if(a.measureText(m).width<=e){g=m;break}}a.translate(c,d);f&&a.rotate(f);a.textAlign="center";a.fillText(g,0,0);a.restore()},xCa=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},nl=
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},yCa=function(a){var b=a.chartGroupId;return jk(ol,function(c){return c.entities[b]})},ACa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?zCa(a==null?void 0:a.categories,b==null?void 0:b.categories):a===b},zCa=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},BCa=function(a){return Nk(a.chartGroupId,a.chartId,a.xAxisId)},CCa=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Nk(b,c,a.xAxisId)},pl=function(a){return a.filter(function(b){return!b.ignoreSeriesForHighlighting})},DCa=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(pl(d.selectedSeries)).concat(pl(d.hoveredSeries))},[])));b=Array.from(new Set(b.reduce(function(c,d){return c.concat(pl(d.selectedSeries)).concat(pl(d.hoveredSeries))},[])));return a.length===0&&b.length>0||b.length===0&&a.length>0}}return!1},ECa=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})},ql=function(a,b){return a.length!==b.length||ECa(a,b)||ECa(b,a)},rl=function(a,b){var c=a.previousValue,d=a.currentValue;if(d){if(!c)return!0;a=[];var e=[];if(b)a=d.byLayer.entities[b],a=((a==null?void 0:a.selectedSeries)||[]).concat((a==null?
void 0:a.hoveredSeries)||[]),e=c.byLayer.entities[b],e=((e==null?void 0:e.selectedSeries)||[]).concat((e==null?void 0:e.hoveredSeries)||[]);else{b=l(Object.values(d.byLayer.entities));for(d=b.next();!d.done;d=b.next())(d=d.value)&&(a=a.concat(d.selectedSeries).concat(d.hoveredSeries));c=l(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries).concat(b.hoveredSeries))}return ql(pl(a),pl(e))}return!1},FCa=function(a,b){var c=a.previousValue,d=
a.currentValue;if(!d||!c)return[];a=[];var e=[];if(b){e=c.byLayer.entities[b];var f;a=((f=d.byLayer.entities[b])==null?void 0:f.selectedSeries)||[];e=(e==null?void 0:e.selectedSeries)||[]}else{b=l(Object.values(d.byLayer.entities));for(f=b.next();!f.done;f=b.next())(f=f.value)&&(a=a.concat(f.selectedSeries));c=l(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries))}a=a.map(function(k){return k.seriesId});var g=e.map(function(k){return k.seriesId});
return a.filter(function(k){return!g.includes(k)})},GCa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?YAa(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},HCa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?YAa(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:
b.maximumFractionDigits):a===b},sl=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)}},tl=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:Pk();if(!(c=ICa[d])){for(var e=c=Infinity,f=l(RBa),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=ICa[c])?d:JCa}return c(a,b)},QCa=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>=KCa[0]){var e=KCa.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>=LCa[0]&&(e=LCa.map(function(f){return a/f}).find(function(f){return Math.abs(f-Math.round(f))<
MCa}),e!==void 0&&(d=Math.round(e),c=1));b>=NCa[0]&&(b=NCa.map(function(f){return a/f}),c=b.find(function(f){return Math.abs(f-Math.round(f))<OCa}),d=c!==void 0?Math.round(c):b[0],c=0);return(new PCa).format(d,c)},RCa=function(){return jk(yk,function(a){return a.dashboard})},UCa=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(SCa(d))});Bd();K(2,"svg",9);M(3,"path");L()()()}a&2&&(a=b.ngIf,b=P(2),I("ngStyle",Lg(3,TCa,a.left+"px",a.top+"px")),B(2),Kf("fill",b.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE),B(),Kf("d",b.topButtonIconPath))},VCa=function(a){a&1&&(Wf(0),E(1,UCa,4,6,"div",6),T(2,"async"),Xf());a&2&&(a=P(),B(),I("ngIf",U(2,1,a.actionButtonPosition$)))},WCa=function(a){a&1&&M(0,"mat-icon",14)},XCa=function(a){a&1&&M(0,"mat-icon",15)},cDa=function(a,b){if(a&1){var c=t();K(0,
"div",10,0)(2,"div",11);Q(3);L();K(4,"div",12)(5,"button",13);T(6,"async");T(7,"async");N("click",function(d){var e=u(c).ngIf,f=P();return v(YCa(f,d,e.locked))});F(8,WCa,1,0,"mat-icon",14)(9,XCa,1,0,"mat-icon",15);L()()()}a&2&&(a=b.ngIf,b=P(),I("ngClass",Mg(13,ZCa,a.locked,a.draggable,a.dragging))("ngStyle",Mg(17,$Ca,a.top+"px",a.height+"px",a.height/2+"px")),B(2),I("ngStyle",Lg(21,aDa,a.height/2+"px",a.height/4+"px")),Kf("aria-label","Pin at "+a.label),B(),S(" ",a.label," "),B(),I("ngStyle",Mg(24,
bDa,a.height+"px",a.height+"px",a.height*.1+"px")),B(),Kf("aria-label",a.locked?U(6,9,b.xAxisUnpinAriaLabelObservable):U(7,11,b.xAxisPinAriaLabelObservable))("aria-describedby",a.locked?b.xAxisCursorDescribedById:null),B(3),G(a.locked?8:9))},dDa=function(a){return a.button===0&&!(ul&&a.ctrlKey)},vl=function(a,b){a=b==null?void 0:b.byYAxis.entities[a.yAxisId];var c=b==null?void 0:b.domain;b=b==null?void 0:b.category;var d,e,f,g={x:(e=(d=c==null?void 0:c.hover)!=null?d:(b==null?0:b.hover)?0:null)!=
null?e:null,y:(f=a==null?void 0:a.hover)!=null?f:null},k,m,r;d={x:(m=(k=c==null?void 0:c.click)!=null?k:(b==null?0:b.click)?0:null)!=null?m:null,y:(r=a==null?void 0:a.click)!=null?r:null};var w,x,D;k={x:(x=(w=c==null?void 0:c.focus)!=null?w:(b==null?0:b.focus)?0:null)!=null?x:null,y:(D=a==null?void 0:a.focus)!=null?D:null};var H,J,O;w={x:(J=(H=c==null?void 0:c.multiselectAnchor)!=null?H:(b==null?0:b.multiselectAnchor)?0:null)!=null?J:null,y:(O=a==null?void 0:a.multiselectAnchor)!=null?O:null};return{hover:g.x===
null&&g.y===null?null:g,click:d.x===null&&d.y===null?null:d,focus:k.x===null&&k.y===null?null:k,multiselectAnchor:w.x===null&&w.y===null?null:w}},eDa=function(a,b,c,d){if(b&&c){var e=b.getTimezoneOffset()-$k(d,b);a=new Date(b);a.setMinutes(b.getMinutes()+e);e=c.getTimezoneOffset()-$k(d,c);var f=new Date(c);f.setMinutes(c.getMinutes()+e);a=a.getFullYear()===f.getFullYear()&&a.getMonth()===f.getMonth()&&a.getDate()===f.getDate();e=l(a?[10,6]:[10,10]);a=e.next().value;e=e.next().value;return(new wl(a)).format(b,
d)+" - "+(new wl(e)).format(c,d)}return c?(new wl(10)).format(c,d):a?(new wl(10)).format(a,d):""},fDa=function(a,b,c){return b&&c?b+" - "+c:c?""+c:a?""+a:""},gDa=function(a,b){a&1&&(Tf(0,"div",0),fg(1),Q(2),fg(3,1),Uf());a&2&&(B(2),S(" ",b," "))},xl=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},yl=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,
g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null&&b!==c){var m=Tk(e,d)||1;return a===1&&k!==null?function(r){return nCa(f,g,c,b,r,k,m)}:function(r){return al(f*m,g*m,c,b,r)}}return null},hDa=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null){var m=Tk(e,d)||1;return a===1&&k!==null?function(r){var w=mCa(f,g,k===void 0?.001:k,m===void 0?1:m),x=w.fakeZero,D=w.difference;r=al(c,b,w.negMin+D,w.posMax,r);return Math.log(x)-
r>1E-12?-Math.exp(-(r-D)):r-Math.log(x)>1E-12?Math.exp(r):0}:function(r){return al(c,b,f*m,g*m,r)}}return null},iDa=function(a){a&1&&(Bd(),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))},jDa=function(a){a&1&&(Bd(),K(0,"svg",11),M(1,"path",12),E(2,iDa,3,2,"g",13),L());a&2&&(a=P(2),B(),Kf("stroke-dasharray",a.lineDash?a.lineDash:null),B(),I("ngIf",a.shape))},kDa=function(a){a&1&&(Bd(),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))},lDa=function(a){a&1&&(Bd(),K(0,"svg",16),M(1,"path",17)(2,"path",12),E(3,kDa,3,2,"g",13),L());a&2&&(a=P(2),B(3),I("ngIf",a.shape))},mDa=function(a){a&1&&(Bd(),K(0,"svg",18),M(1,"path",19)(2,"path",20),L())},nDa=function(a){a&1&&(Bd(),K(0,"svg",21),M(1,"path",22)(2,"path",23),L())},oDa=function(a){a&1&&(Bd(),K(0,"svg",24),M(1,"path",25),L())},pDa=function(a){a&1&&(Bd(),M(0,"path",29))},qDa=function(a){a&1&&(Bd(),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))},rDa=function(a){a&1&&(Bd(),K(0,"svg",26),E(1,pDa,1,0,"path",27)(2,qDa,3,2,"g",28),L());a&2&&(a=P(2),B(),I("ngIf",!a.shape),B(),I("ngIf",a.shape))},sDa=function(a){a&1&&(Bd(),K(0,"svg",31),M(1,"circle",32),L())},uDa=function(a){a&1&&(K(0,"i",3),E(1,jDa,3,2,"svg",4)(2,lDa,4,1,"svg",5)(3,mDa,3,0,"svg",6)(4,nDa,3,0,"svg",7)(5,oDa,2,0,"svg",8)(6,rDa,3,2,"svg",9)(7,sDa,2,0,"svg",10),L());a&2&&(a=P(),I("ngSwitch",a.keyShape)("ngStyle",Lg(8,tDa,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"))},vDa=function(a){a&1&&(Bd(),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+")"))},wDa=function(a){a&1&&(Bd(),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+")"))},xDa=function(a){a&1&&(K(0,"i",33),E(1,vDa,6,5,"svg",34)(2,wDa,6,5,"ng-template",null,1,Og),L());if(a&2){a=sg(3);var b=P();I("ngStyle",Lg(3,tDa,b.hollow?"#fff":b.color||"#000",b.color||"#000"));B();I("ngIf",b.shape)("ngIfElse",a)}},yDa=function(a){a&
1&&(Bd(),K(0,"svg",2),M(1,"polygon",3),L())},zDa=function(a){if(a&1){var b=t();Tf(0,"div",0);Sna("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))});Tf(1,"div",1);fg(2);Uf()()}a&2&&(a=P(),zg(a._classList),yg("mat-menu-panel-animations-disabled",
a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating()),Sf("id",a.panelId),Kf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},ADa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,"more_vert"),L()());a&2&&(P(),a=sg(2),I("matMenuTriggerFor",a))},zl=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]},BDa=function(a,b){var c=Object.keys(a).sort();c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);e||(e=new Set,b.set(d,e));e.add(a[d])}},CDa=function(a){var b=
new Map,c=new Map,d=new Map,e=new Map;a=l(a);for(var f=a.next();!f.done;f=a.next())if(f=f.value)BDa(f.resource&&f.resource.labels||{},b),BDa(f.metric&&f.metric.labels||{},c),BDa(f.metadata||{},d),BDa(f.labels||{},e);return{resource:b,metric:c,metadata:d,uncategorized:e}},DDa=function(a){var b=a.indexOf(".");return(b=b>=0?[a.slice(0,b),a.slice(b+1)]:null)?b[0]+"."+Al(b[1]):Al(a)},EDa=function(a){var b=[];try{var c=BAa(new Fk(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},FDa=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d.size>1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},GDa=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d.size===1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},HDa=function(){return[[{isDefault:!0,
title:"Name",template:"${getName()}",tokenizer:new Bl("${getName()}")}]]},JDa=function(a){var b;return((b=a[0])==null?0:b.labels)?(b=a.filter(function(c){return!!c}).map(function(c){return c.labels}).reduce(function(c,d){if(!d)return c;d=l(Object.keys(d));for(var e=d.next();!e.done;e=d.next())(e=e.value)&&!c.includes(e)&&c.push(e);return c},[]),b.length===0?[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new Bl("${name}")}]]:[b.map(function(c){var d=IDa(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 Bl("${labels."+d+"}")}})]):[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new Bl("${name}")}]]},KDa=function(a,b){var c=1,d=[],e=function(ka,Ca){d.push({isDefault:!0,title:ka,template:Ca,tokenizer:new Bl(Ca),uniqueId:c++})},f=function(ka,Ca){d.push({isDefault:!1,title:ka,template:Ca,tokenizer:new Bl(Ca),
uniqueId:c++})},g=a.find(function(ka){return!!ka});if(!g)return null;g=g.requestParams;var k=CDa(a);a=k.resource;var m=k.metric,r=k.metadata;k=k.uncategorized;var w=[];if(g){var x=[],D;if((D=g["secondaryAggregation.groupByFields"])==null?0:D.length)x=g["secondaryAggregation.groupByFields"];else{var H;if((H=g["aggregation.groupByFields"])==null?0:H.length)x=g["aggregation.groupByFields"]}x.forEach(function(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=FDa(a),O=FDa(m),R=FDa(r);D=FDa(k);var V=GDa(a),
ba=GDa(m),oa=GDa(r);H=GDa(k);var ta=function(ka,Ca){Ca=ka.indexOf(Ca);Ca!==-1&&delete ka[Ca]};w.forEach(function(ka){if(ka.indexOf("resource.labels.")===0){var Ca=Al(ka.substring(16));ta(J,Ca);ta(V,Ca);Ca==="project"&&(ta(J,"project_id"),ta(V,"project_id"))}ka.indexOf("metric.labels.")===0&&(Ca=Al(ka.substring(14)),ta(O,Ca),ta(ba,Ca));ka.indexOf("metadata.")===0&&(ka=DDa(ka.substring(9)),ta(R,ka),ta(oa,ka))});if(!b&&J.length===0&&O.length===0&&R.length===0&&D.length===0&&g&&(e("Metric","${shortMetric}"),
g.filter&&(b=EDa(g.filter))))for(b=l(b),g=b.next();!g.done;g=b.next())g=g.value,g.indexOf("metric.label.")===0&&(a=Al(g.substring(13)),e(a,"${metric.labels."+a+"}"),ta(O,a),ta(ba,a),ta(w,"metric.labels."+a)),g.indexOf("resource.label.")===0&&(a=Al(g.substring(15)),e(a,"${resource.labels."+a+"}"),ta(J,a),ta(V,a),ta(w,"resource.labels."+a),a==="project"&&(ta(J,"project_id"),ta(V,"project_id"),ta(w,"resource.labels.project_id"))),g.indexOf("metadata.")===0&&(a=DDa(g.substring(9)),e(a,"${metadata."+IDa(a)+
"}"),ta(R,a),ta(oa,a),ta(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 Ca=ka;Ca.indexOf("resource.labels.")===0&&(Ca=Al(Ca.substring(16)),ka="resource.labels."+Ca);Ca.indexOf("metric.labels.")===0&&(Ca=Al(Ca.substring(14)),ka="metric.labels."+Ca);Ca.indexOf("metadata.")===0&&(Ca=DDa(Ca.substring(9)),ka="metadata."+IDa(Ca));e(Ca,"${"+ka+"}")}});J.forEach(function(ka){ka==="instance_id"||ka==='"instance_id"'?(e("Name (from instance_id)",
"${instanceNameOrId()}"),ka=Al(ka),f(ka,"${resource.labels."+ka+"}")):ka==="credential_id"||ka==='"credential_id"'?(e("Name (from credential_id)","${credentialNameOrId()}"),ka=Al(ka),f(ka,"${resource.labels."+ka+"}")):(ka=Al(ka),e(ka,"${resource.labels."+ka+"}"))});O.forEach(function(ka){ka=Al(ka);e(ka,"${metric.labels."+ka+"}")});R.forEach(function(ka){ka=DDa(ka);e(ka,"${metadata."+IDa(ka)+"}")});D.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=Al(ka);f(ka,"${resource.labels."+ka+"}")});ba.forEach(function(ka){ka=Al(ka);f(ka,"${metric.labels."+ka+"}")});oa.forEach(function(ka){ka=DDa(ka);f(ka,"${metadata."+IDa(ka)+"}")});H.forEach(function(ka){f(ka,"${labels."+ka+"}")});return d.length===0?null:[d]},IDa=function(a){return a.replace(/\./g,"\\.").replace(/'/g,"\\'")},LDa=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},MDa=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(LDa(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},NDa=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},ODa=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:[]},PDa=function(a,b,c){if(b!==
void 0)b={formatter:new Bl(b),labelTables:null,seriesMetadata:null};else if(b=c?JDa(a):KDa(a,!1)){c=MDa(a);a=a?a.map(NDa):null;for(var d="",e=l(b),f=e.next();!f.done;f=e.next())if(f=f.value){f=l(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,g.isDefault&&c.get(g.title)!==!1){var k=void 0;d+=((k=g.template)!=null?k:"")+'" "'}}b=d?{formatter:new Bl(d),labelTables:b,seriesMetadata:a}:{formatter:null,labelTables:b,seriesMetadata:a}}else b={formatter:null,labelTables:b,seriesMetadata:a};return b},
RDa=function(a,b){var c=c===void 0?QDa: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 lCa(e*(g-1),e*g,b[g],b[g+1],f)}},QDa=function(a){return a},SDa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},TDa=function(a){a&1&&(K(0,"span"),Q(1,"SELECTED"),L())},UDa=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," "))},VDa=function(a){a&1&&M(0,
"td",4)},WDa=function(a){a&1&&(K(0,"tr")(1,"td",3),T(2,"async"),F(3,SDa,2,0,"span")(4,TDa,2,0,"span"),L(),F(5,UDa,4,2),T(6,"async"),F(7,VDa,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)}},XDa=function(a){a&1&&Yf(0)},ZDa=function(a){a&1&&E(0,XDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",
b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,YDa,a.metadata,a.name))}},$Da=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},aEa=function(a){a&1&&(K(0,"td",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.timeshiftDisplayValue||"-"," "))},bEa=function(a){a&1&&Yf(0)},dEa=function(a){a&1&&E(0,bEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Mg(2,cEa,a.rawValue,a.metadata,a.displayValue))}},eEa=function(a){a&
1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayValue," "))},fEa=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)}},gEa=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,ZDa,1,5,"ng-container")(6,$Da,1,1),L()(),F(7,aEa,2,1,"td",9),T(8,"async"),K(9,"td",10),F(10,dEa,1,6,"ng-container")(11,eEa,1,1),L(),F(12,fEa,2,2,"td",4),L());if(a&2){a=b.$implicit;
b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();yg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B(2);G(b.seriesRowTemplate?5:6);B(2);G(U(8,13,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},hEa=function(a,
b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("",b," above"))},iEa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},jEa=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," "))},kEa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),T(2,"async"),F(3,hEa,2,1,"span"),T(4,"async"),T(5,"async"),Nf(6,iEa,2,0,"span"),L(),F(7,jEa,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)}},lEa=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," "))},mEa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),T(2,"async"),K(3,"span"),Q(4," \u2014 "),L()(),F(5,lEa,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)}},oEa=function(a){a&1&&(F(0,WDa,8,8,"tr"),T(1,"async"),Qf(2,gEa,13,15,"tr",null,Of),T(4,"async"),F(5,kEa,9,11,"tr",2),T(6,"async"),T(7,"async"),T(8,"async"),T(9,"async"),F(10,mEa,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;Rf((d=U(4,5,a.selectedStreamsObservable))!=null?d:Jg(19,nEa));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)}},pEa=function(a){a&1&&Yf(0)},qEa=function(a){a&1&&E(0,pEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,YDa,a.metadata,a.name))}},rEa=function(a){a&
1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},sEa=function(a){a&1&&(K(0,"td",10),Q(1),L());a&2&&(a=P().$implicit,yg("strong",a.isInteracted),B(),S(" ",a.timeshiftDisplayValue||"-"," "))},tEa=function(a){a&1&&Yf(0)},uEa=function(a){a&1&&E(0,tEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Mg(2,cEa,a.rawValue,a.metadata,a.displayValue))}},vEa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a.displayValue," "))},
wEa=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," "))},xEa=function(a){a&1&&F(0,vEa,1,1)(1,wEa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},yEa=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)}},AEa=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,qEa,1,5,"ng-container")(6,rEa,1,1),L()(),F(7,sEa,2,3,"td",16),T(8,"async"),K(9,"td",10),F(10,uEa,1,6,"ng-container")(11,xEa,2,1),L(),F(12,yEa,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();yg("strong",a.isInteracted);B();I("ngStyle",Kg(16,zEa,b.minWidth+"px"));B();G(b.seriesRowTemplate?
5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},BEa=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 ")}},CEa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},DEa=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"))},EEa=function(a){a&1&&(F(0,CEa,2,0,"span"),T(1,"async"),T(2,"async"),Nf(3,DEa,3,3,"span"));a&2&&(a=P(4),G(U(1,1,a.streamsBelowCountObservable)===0?0:U(2,3,a.streamsBelowCountObservable)?3:-1))},FEa=function(a){a&1&&(K(0,"tr",14)(1,"td",17),F(2,BEa,4,5,"span")(3,EEa,4,5),L()());a&2&&(a=P(3),B(2),G(a.compact?2:3))},GEa=function(a){a&1&&(Qf(0,AEa,13,18,"tr",null,Of),T(2,"async"),F(3,FEa,4,1,"tr",14),T(4,"async"),T(5,"async"));
if(a&2){a=P(2);var b;Rf((b=U(2,1,a.streamsObservable))!=null?b:Jg(7,nEa));B(3);G(U(4,3,a.streamsAboveCountObservable)||U(5,5,a.streamsBelowCountObservable)?3:-1)}},HEa=function(a){a&1&&(K(0,"div",0)(1,"table")(2,"tbody",1),F(3,oEa,13,20),F(4,GEa,6,8),L()()());a&2&&(a=P(),B(2),yg("compact",a.compact),B(),G(a.hideSelectedSection?-1:3),B(),G(a.onlyShowSelectedSeriesInternal?-1:4))},IEa=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},JEa=function(a){a=a===void 0?1:a;return function(b,c){return(a||1)*(b.name||"").localeCompare(c.name||"")}},KEa=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))})}},LEa=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}},MEa=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}},NEa=function(a){a&1&&(K(0,"span"),Q(1,":"),L())},OEa=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);Ag(b.valueLabel);B();S(" ",a.displayValue," ")}},QEa=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(PEa(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,NEa,2,0,"span",10);L();E(6,OEa,4,2,"span",11);L()()}a&2&&(a=b.$implicit,b=P(2),B(),yg("selected",a.isSelected&&
b.enableSelection),B(2),I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape),B(),S(" ",a.name),B(),I("ngIf",a.displayValue&&!a.hideValue&&!b.hideAllValues),B(),I("ngIf",!a.hideValue&&!b.hideAllValues))},TEa=function(a){a&1&&(K(0,"div",4),E(1,QEa,7,8,"div",5),T(2,"async"),L());a&2&&(a=P(),I("ve",a.ve.ChartLegendPane)("ngClass",Kg(7,REa,a.enableScrolling)),Kf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(),I("ngForOf",U(2,5,a.streamsObservable)||Jg(9,SEa)))},UEa=function(a){a&
1&&(K(0,"li",17),Q(1," Loading... "),L())},VEa=function(a){a&1&&(K(0,"li",17),Q(1," 0 time series "),L())},XEa=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(PEa(f,e))})("focusout",function(){var e=u(c).$implicit,f=P(2);return v(PEa(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();yg("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",WEa(d,a,U(3,15,d.anyStreamInteractedObservable)));B(4);S(" ",a.name," ");B(2);S(" ",a.name," ")}},YEa=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 "))},ZEa=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,UEa,2,0,"li",14);T(5,"async");T(6,"async");E(7,VEa,2,0,"li",
14);T(8,"async");T(9,"async");E(10,XEa,9,17,"li",15);T(11,"async");E(12,YEa,3,3,"li",16);T(13,"async");L()}a&2&&(a=P(),yg("scrollable",a.enableScrolling)("narrow",U(2,16,a.narrowSubject))("column-display",a.useColumnDisplay())("hidden-trivial-legend",U(3,18,a.hideSingleSeriesLegendsObservable)),I("ve",a.ve.ChartLegendPane),Kf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(4),I("ngIf",U(5,20,a.isLoadingObservable)===!0&&(U(6,22,a.condensedStreamsObservable)||Jg(32,SEa)).length===
0),B(3),I("ngIf",U(8,24,a.isLoadingObservable)!==!0&&(U(9,26,a.condensedStreamsObservable)||Jg(33,SEa)).length===0&&!a.hideSingleSeriesLegends),B(3),I("ngForOf",U(11,28,a.condensedStreamsObservable))("ngForTrackBy",a.trackByStreamId),B(2),I("ngIf",(U(13,30,a.additionalStreamsObservable)||0)>0))},$Ea=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}}}},bFa=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(){u(b);var c=P(3);aFa(c);Cl(c.interactionService,"click",Fl.ve.HovercardCloseButton,c.el.nativeElement);return v()})("focus",function(c){u(b);P(3).onFocus(c);return v()});M(2,
"mat-icon",10);L()}a&2&&(a=P(3),yg("close-button-small",a.chartQuickActionsEnabled),I("matTooltip",a.closeAriaLabel)("matTooltipClass","close-tooltip"),Kf("aria-label",a.closeAriaLabel),B(2),yg("close-icon-small",a.chartQuickActionsEnabled))},cFa=function(a){a&1&&(K(0,"span"),$f(1,3),L())},dFa=function(a){a&1&&(Wf(0),M(1,"mat-icon",13),E(2,cFa,2,0,"span",14),T(3,"async"),Xf());a&2&&(a=P(4),B(2),I("ngIf",a.hasSeriesActionType&&U(3,1,a.shouldShowSeriesActionText$)))},eFa=function(a){a&1&&(M(0,"mat-icon",
15),K(1,"span"),Ona(2,4),M(3,"b"),ud.inI18n=!1,L())},fFa=function(a){a&1&&(K(0,"div",11),E(1,dFa,4,3,"ng-container",12),T(2,"async"),E(3,eFa,4,0,"ng-template",null,2,Og),L());if(a&2){a=sg(4);var b=P(3);B();I("ngIf",U(2,2,b.isPinned$))("ngIfElse",a)}},gFa=function(a){if(a&1){var b=t();K(0,"ac-hovercard-dialog",6);T(1,"async");T(2,"async");N("focusin",function(e){u(b);var f=P(2);return v(f.onFocusIn(e))});E(3,bFa,3,7,"button",7);T(4,"async");T(5,"async");fg(6);E(7,fFa,5,4,"div",8);T(8,"async");L()}if(a&
2){a=P(2);var c,d;I("grabFocusAndUseAsModal",(c=U(1,5,a.grabFocusAndUseAsModalObservable))!=null?c:!1)("isPinned",(d=U(2,7,a.isPinned$))!=null?d:!1)("ariaLabel",a.ariaLabel());B(3);I("ngIf",U(4,9,a.isPinned$)||U(5,11,a.grabFocusAndUseAsModalObservable));B(4);I("ngIf",U(8,13,a.pinningEnabled$)&&!a.hidePinPrompt)}},hFa=function(a){a&1&&(E(0,gFa,9,15,"ac-hovercard-dialog",5),T(1,"async"));a&2&&(a=P(),I("ngIf",U(1,1,a.showHovercard)&&!a.hideHovercard))},iFa=function(a){return{label:String(a),value:a}},
jFa=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},kFa=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}},lFa=function(a){var b=a.ticks;a=a.grid.columns;var c=a.map(function(){return!1});c.length>=1&&(c[0]=!0);c.length>=2&&(c[a.length-1]=!0);if(!b||b.length===0)return c;b=l(b);
for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=Infinity,f=0,g=0;g<a.length;g++){var k=Math.abs(a[g].metadata.timeMs-d.value);if(k<e)e=k,f=g;else break}c[f]=!0}return c},Gl=function(a,b){var c=1;c=c===void 0?1:c;b=b===void 0?1:b;if(!a)return[null,null];var d=l(a);a=d.next().value;d=d.next().value;var e=null,f=null;a>=c&&(e=a-c);d>=b&&(f=d-b);return[e,f]},mFa=function(a){var b={instanceNameOrId:function(d){var e,f,g=d==null?void 0:(e=d.metric)==null?void 0:(f=e.labels)==null?void 0:f.instance_name,
k,m;d=d==null?void 0:(k=d.resource)==null?void 0:(m=k.labels)==null?void 0:m.instance_id;var r;return(r=g!=null?g:d)!=null?r:""}};if(a){var c=new Bl(a);b.getName=function(d){var e;return(e=c.format(d,mFa()))!=null?e:""}}else b.getName=function(d){var e;return(e=d.name)!=null?e:""};return b},nFa=function(a){return{label:String(a),value:a}},oFa=function(a,b){return function(c){var d=Uk(a,b,c);return{label:d!==null?Wk(d,b):Wk(c,a),value:d!=null?d:void 0}}},pFa=function(a){var b;return(b=a.name)!=null?
b:a.id},qFa=function(a,b){a=a.map(function(e){var f;return(f=e.metadata)!=null?f:null});var c=PDa(a).formatter;if(c){var d=mFa(b);return function(e){var f;return c.format((f=e.metadata)!=null?f:null,d)||pFa(e)}}return pFa},rFa=function(){return{x:0,y:0,height:0,width:0}},sFa=function(a,b,c,d){return function(e){var f=e.x,g=e.x0,k=e.y,m=e.y0,r=e.y1,w=0,x=0;e=Math.round(a(f.valueOf())||0);if((d==null?0:d.centerInOutputPeriod)&&(g!==void 0||(d==null?0:d.outputPeriodMs))&&(g=g==null?void 0:g.valueOf(),
g===void 0&&(d==null?0:d.outputPeriodMs)&&(g=f.valueOf()-(d==null?NaN:d.outputPeriodMs)),g!==void 0)){e=Math.round(a((f.valueOf()+g)/2)||0);x=Math.floor(a(f.valueOf())||0);f=Math.floor(a(g)||0);var D;x=Math.abs(x-f)*((D=d==null?void 0:d.widthMultiplier)!=null?D:1)}k=Math.round(b(k)||0);m!==void 0&&r!==void 0&&(k=Math.round(b((r+m)/2)||0),r=Math.floor(b(r)||0),m=Math.floor(b(m)||0),w=Math.abs(r-m));return e<c.left&&e+x/2<c.left||e>c.right&&e-x/2>c.right||k<c.top&&k+w/2<c.top||k>c.bottom&&k-w/2>c.bottom?
{x:e,y:k,height:w,width:x,outOfBounds:!0}:{x:e,y:k,height:w,width:x}}},tFa=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=pFa);f||(f=iFa);g||(g=nFa);k||(k=rFa);for(var m=[],r=new Set,w=l(b.series),x=w.next();!x.done;x=w.next()){x=x.value;m.push({label:e(x),metadata:{seriesId:x.id}});x=l(x.data);for(var D=x.next();!D.done;D=x.next())D=D.value,k(D).outOfBounds||r.add(D.x.valueOf())}e=
Array.from(r);e.sort(function(R,V){return R-V});e=kFa(e,f);f=e.columns;e=e.xToColIndex;r=jFa(m.length,f.length);for(w=0;w<b.series.length;w++){x=r[w];D=l(b.series[w].data);for(var H=D.next();!H.done;H=D.next()){var J=H.value;H=e.get(J.x.valueOf());if(H!==void 0&&(H=x[H])){H.position=k(J);J=g(J.y);var O=J.value;H.label=J.label;H.value=O}}}return{rows:m,columns:f,values:r,xAxisState:c,yAxisState:d,audioChartContext:a}},Jl=function(a,b,c,d){d=d===void 0?!1:d;var e=a.length>0&&a[a.length-1].x.valueOf()-
a[0].x.valueOf()>0,f=Hl(a,b,d?void 0:Il(c));if(f===a.length-1||a.length<2)return f;e=f+(e?1:-1);var g=a[f],k=a[e];if(!g&&!k)return 0;if(!g&&k)return e;if(!k&&g)return f;a=g.x.valueOf();var m;g=d?void 0:((m=g.x0)==null?void 0:m.valueOf())||(c?a-c:void 0);m=k.x.valueOf();var r;d=d?void 0:((r=k.x0)==null?void 0:r.valueOf())||(c?m-c:void 0);return(g&&b>=g&&b<=a?0:Math.abs(b-a))<=Math.abs(b-(d||m))?f:e},Il=function(a){return function(b){var c;return((c=b.x0)==null?void 0:c.valueOf())||(a?b.x.valueOf()-
a:void 0)}},Kl=function(a,b,c,d){b=Math.abs(c.x.valueOf()-b.x.valueOf());return a?d?{gapDetected:b>Math.max(a*2,6E5),gapWidthMs:b}:{gapDetected:b>=a*2,gapWidthMs:b}:{gapDetected:!1,gapWidthMs:b}},Hl=function(a,b,c){if(a.length>0?a[a.length-1].x.valueOf()-a[0].x.valueOf()>0:1){for(var d=0,e=a.length-1,f=Math.ceil((e+d)/2);d<e;){var g=a[f],k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f-1;else break;f=Math.ceil((e+d)/2)}return f||0}d=a.length-1;e=0;for(f=Math.floor((e+
d)/2);e<d;){g=a[f];k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f+1;else break;f=Math.floor((e+d)/2)}return f},uFa=function(a,b,c){var d=a.data.length>0&&a.data[a.data.length-1].x.valueOf()-a.data[0].x.valueOf()>0,e=Hl(a.data,b-c);a=Hl(a.data,b+c);return e===a?d?[e,e+1]:[a-1,a]:[Math.min(e,a),Math.max(e,a)]},yFa=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=vFa([].concat(q(c),q(f)),(g=a.xAxis)!=null?g:{});var k,m;return{values:b,earcons:e,xAxis:Object.assign({},f,{density:(m=(k=a.xAxis)==null?void 0:k.density)!=null?m:wFa([c].concat(q(xFa(e).values())),f)}),yAxis:Object.assign({},vFa(d,a.yAxis||{}))}},xFa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.x;d=d.earcon;var e=b.get(d);e===void 0?b.set(d,[c]):e.push(c)}return b},wFa=function(a,b){a=a.map(zFa).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},zFa=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},vFa=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}},AFa=function(a,
b,c,d,e){return c+(e-a)*(c-d)/(a-b)},BFa=function(a){var b=a.min,c=a.max,d=c===b?function(){return-6}:function(e){return AFa(b,c,-24,12,e)};return function(e){e=d(e);return 440*Math.pow(2,e/12)}},EFa=function(a){var b=b===void 0?.13:b;var c=CFa(a.xAxis),d=DFa(a.xAxis,b),e=BFa(a.yAxis),f=a.values.map(function(k){var m=k.x;return{frequency:e(k.y),onset:d(m),pan:c(m)}}),g=a.earcons.map(function(k){var m=k.x;return{earcon:k.earcon,onset:d(m),pan:c(m)}});return{notes:f,earcons:g,durationSeconds:(a.xAxis.density-
1)*b}},DFa=function(a,b){var c=a.min,d=a.max,e=(a.density-1)*b;return c===d?function(){return 0}:function(f){return AFa(c,d,0,e,f)}},CFa=function(a){var b=a.min,c=a.max;return b===c?function(){return 0}:function(d){return AFa(b,c,-1,1,d)}},HFa=function(a){var b=FFa,c;return y(function(d){if(d.nextAddress==1){if(b instanceof GFa)var e=b.privateDoNotAccessOrElseWrappedScript;else throw Error("na");c=wh(URL.createObjectURL(new Blob([e.toString()],{type:"text/javascript"})));return z(d,a.audioWorklet.addModule(c.toString()),
2)}URL.revokeObjectURL(c.toString());ce(d)})},IFa=function(a){a=th(a).toString();var b=new Ll;yj(b,2,a);return b},JFa=function(a){if(!a)return null;a=Ml(a,2);return a===null||a===void 0?null:rh(a)},KFa=function(a){if(!a)return null;a=Ml(a,3);return a===null||a===void 0?null:new yh(a)},LFa=function(a){if(!a)return null;a=Ml(a,6);if(a===null||a===void 0)a=null;else{var b=cra();a=b?b.createScript(a):a;a=new GFa(a)}return a},MFa=function(a){var b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1){b=
a.context;for(var r=b.createBuffer(1,5*b.sampleRate,b.sampleRate),w=0;w<1;w++)for(var x=r.getChannelData(w),D=0,H=0;H<x.length;H++)D=(D+.02*(Math.random()*2-1))/1.02,x[H]=D;w=b.createBufferSource();w.buffer=r;w.loop=!0;c=w;c.start(b.currentTime);d=b.createGain();d.gain.value=0;e=b.createGain();c.connect(d).connect(e);return z(m,HFa(b),2)}f=new AudioWorkletNode(b,"rectifier-worklet");f.channelCountMode="explicit";f.channelCount=1;g=new AudioWorkletNode(b,"threshold-worklet");g.channelCountMode="explicit";
g.channelCount=1;k=new AudioWorkletNode(b,"slew-worklet");k.channelCountMode="explicit";k.channelCount=1;a.connect(f).connect(g).connect(k).connect(d.gain);return m.return(e)})},OFa=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",NFa(a)?0:-1),B(3),Ag(a.AUDIO_HEADER))},SFa=function(a,b){if(a&1){var c=t();Wf(0);K(1,"th",
23)(2,"button",24,3);N("click",function(){var d=u(c).$implicit,e=P();return v(PFa(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()();Xf()}a&2&&(a=b.$implicit,b=P(),B(),I("ngStyle",Lg(7,QFa,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",RFa(b,
a.colIndex+1)),B(2),S(" ",a.column.label," "))},UFa=function(a){a&1&&(Wf(0),M(1,"mat-icon",31),Xf());a&2&&(a=P(3),B(),I("svgIcon",TFa(a)?"ac:music_off":"ac:music_note"))},YFa=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();VFa(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,UFa,2,1,"ng-container",
20);L()()}if(a&2){a=P().$implicit;var c=P();I("ngStyle",Lg(10,QFa,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);Ag(WFa(c,a.rowIndex));B();Kf("id",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B();S(" ",XFa(c,a.rowIndex)," ");B();I("ngIf",!!c.internalAudioValues[a.rowIndex].audioChartOptions)}},
ZFa=function(a,b){if(a&1){var c=t();Wf(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()();Xf()}a&2&&(a=b.$implicit,b=P(2),B(),I("ngStyle",Roa(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," "))},aGa=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,YFa,8,13,"td",27)(7,ZFa,5,11,"ng-container",18);L()}a&
2&&(a=b.$implicit,b=P(),Kf("aria-rowindex",a.rowIndex+2),B(),I("ngStyle",Lg(11,QFa,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",$Fa(b,a.rowIndex+1)),B(3),Ag(a.row.label),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalValues[a.rowIndex]))("ngForTrackBy",b.trackColumnById))},bGa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),$f(3,9),L()()())},dGa=
function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),$f(3,10),L()()());a&2&&(a=P(),B(3),ag(cGa(a)),sna(30))},Nl=function(a,b,c,d,e,f,g){f=f===void 0?"default":f;if(!a)return null;var k=b!=null?b:(new Date).valueOf(),m=Infinity;a=a.series.map(function(r){var w=r.data;if(w.length===0||!b)return{seriesId:r.id,value:null};var x=w[w.length-1].x.valueOf()-w[0].x.valueOf()>0;if(f==="default")var D=Jl(w,b,d,!0);else f==="left_only"?D=Hl(w,b):(D=w.length>0&&w[w.length-1].x.valueOf()-w[0].x.valueOf()>0,D=Hl(w,
b)+(D?1:-1));var H=D;if(H<0||H>=w.length)return{seriesId:r.id,value:null};var J=D=w[H],O=!1;if(!g||Math.abs(D.x.valueOf()-b)>g)if(d){var R=w[H+(x?-1:1)];w=w[H+(x?1:-1)];var V,ba;if(b<=((ba=(V=D.x0)==null?void 0:V.valueOf())!=null?ba:D.x.valueOf())&&R)O=Kl(d,R,D,e).gapDetected;else if(b>=D.x.valueOf()&&w)O=Kl(d,D,w,e).gapDetected;else if(b>D.x.valueOf()&&!w)O=Math.abs(b-D.x.valueOf())>d;else{var oa,ta;if(b<((ta=(oa=D.x0)==null?void 0:oa.valueOf())!=null?ta:D.x.valueOf())&&!R){var ka;V=(ka=D.x0)==null?
void 0:ka.valueOf();O=V===void 0?Math.abs(b-D.x.valueOf())>d*2:Math.abs(b-V)>d}}}else g&&(O=!0);O?c==="zero_fill"?J={x:new Date(k),y:0}:J=null:(k=D.x.valueOf(),Math.abs(k-b)<Math.abs(m-b)&&(m=k));return{seriesId:r.id,value:J}});d===null&&c==="gap_detection"&&(k=m);return{values:a,timeRange:{x:k}}},eGa=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},fGa=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})},gGa=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})},iGa=function(a){a=Xaa(a);var b=0,c=a.length,d={a:-1640531527,b:-1640531527,c:314159265},e;for(e=c;e>=12;e-=12,b+=12)d.a+=Ol(a,b),d.b+=Ol(a,b+4),d.c+=Ol(a,b+8),hGa(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+
9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.b+=Ol(a,b+4);d.a+=Ol(a,b);break;case 7:d.b+=(a[b+6]&255)<<16;case 6:d.b+=(a[b+5]&255)<<8;case 5:d.b+=a[b+4]&255;case 4:d.a+=Ol(a,b);break;case 3:d.a+=(a[b+2]&255)<<16;case 2:d.a+=(a[b+1]&255)<<8;case 1:d.a+=a[b]&255}return hGa(d)},hGa=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},Ol=function(a,
b){return jGa(a[b])+(jGa(a[b+1])<<8)+(jGa(a[b+2])<<16)+(jGa(a[b+3])<<24)},jGa=function(a){return a>127?a-256:a},Pl=function(a){return typeof a==="string"?a:a.length===0?kGa[0]:a[0].color},lGa=function(a,b){a&1&&(Wf(0),K(1,"div",1),Q(2),L(),Xf());a&2&&(a=b.ngIf,B(2),S(" ",a," "))},mGa=function(a,b){a&1&&(Tf(0,"div",0),fg(1),Q(2),fg(3,1),Uf());a&2&&(B(2),S(" ",b," "))},nGa=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),Ag(U(4,1,a.nonblockingErrorMessageObservable)))},
oGa=function(a,b){a&1&&(Wf(0),K(1,"div")(2,"span",1)(3,"span",2),Q(4),L(),M(5,"BR"),K(6,"span",3),Q(7),L()()(),Xf());if(a&2){a=b.ngIf;b=P();B(4);var c;Ag((c=a==null?null:a.label)!=null?c:"");B(3);var d,e;Eoa(" ",b.aboveLabel," ",(d=a==null?null:a.lowerBound)!=null?d:"",", ",b.belowLabel," ",(e=a==null?null:a.upperBound)!=null?e:"")}},pGa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,"more_vert"),L()());a&2&&(P(),a=sg(2),I("matMenuTriggerFor",a))},qGa=function(a){a&1&&Yf(0)},sGa=function(a){a&
1&&E(0,qGa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,rGa,a.metadata,a.name))}},tGa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},uGa=function(a){a&1&&(K(0,"td",8),Q(1),L());a&2&&(a=P().$implicit,yg("strong",a.isInteracted),B(),S(" ",a.timeshiftDisplayValue||"-"," "))},vGa=function(a){a&1&&Yf(0)},xGa=function(a){a&1&&E(0,vGa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",
b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,wGa,a.rawValue))}},yGa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a.displayValue," "))},zGa=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," "))},AGa=function(a){a&1&&F(0,yGa,1,1)(1,zGa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},BGa=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)}},DGa=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,sGa,1,5,"ng-container")(6,tGa,1,1),L()(),F(7,uGa,2,3,"td",7),T(8,"async"),K(9,"td",8),F(10,xGa,1,4,"ng-container")(11,AGa,2,1),L(),F(12,BGa,2,2,"td",9),L());if(a&2){a=b.$implicit;b=P(2);B(2);var c;I("color",(c=a.color)!=null?c:b.AC_SYS_COLOR_CHART_ON_SURFACE)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",
b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();yg("strong",a.isInteracted);B();I("ngStyle",Kg(16,CGa,b.minWidth+"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},FGa=function(a){a&1&&(K(0,"cdk-virtual-scroll-viewport",0)(1,"table")(2,"tbody",1),E(3,DGa,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:Jg(5,EGa))("cdkVirtualForTrackBy",a.trackByIndex)}},GGa=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},IGa=function(a){a&1&&M(0,"div",5);a&2&&(a=P(),I("ngStyle",Kg(1,HGa,a.childHeight+"px")))},JGa=function(a){a&1&&(K(0,"span",4),
Q(1),L());a&2&&(a=P(),B(),Ag(a.placeholder))},KGa=function(a){a&1&&fg(0)},LGa=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),Ag(a.triggerValue))},MGa=function(a){a&1&&(K(0,"span",5),F(1,KGa,1,0)(2,LGa,2,1,"span",11),L());a&2&&(a=P(),B(),G(a.customTrigger?1:2))},NGa=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))});fg(2,1);L()}a&2&&(a=P(),zg(Gg("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme())),
yg("mat-select-panel-animations-enabled",!a._animationsDisabled),I("ngClass",a.panelClass),Kf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},OGa=function(a){a&1&&(K(0,"mat-option",10),$f(1,3),L());a&2&&(a=P(),I("value",a.TIMESHIFT_COLUMN_UNIQUE_ID),B(),ag(a.timeshiftName),sna(28))},PGa=function(a){a&1&&(Wf(0),K(1,"mat-option",10),$f(2,4),L(),Xf());a&2&&(a=P(),B(),I("value",a.labelsModel.selectableColumns==null?
null:a.labelsModel.selectableColumns[0].uniqueId),B(),ag(a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].title),sna(29))},QGa=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," "))},RGa=function(a){a&1&&E(0,QGa,2,4,"mat-option",12);a&2&&(a=P(),I("ngForOf",a.labelsModel.selectableColumns))},Ql=function(a){var b=ad.apply(1,arguments);if(a==null)throw TypeError("Hc");
b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!=null)for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a},SGa=function(){var a=Rl.supportsDOMEvents;return typeof a==="function"?a():a},UGa=function(a,b){a=a.filter(function(e){return!TGa[e]});if(a.length>0){var c=a.join(", ");try{var d=Rl.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 TGa[e]=d})}catch(e){console.error(e)}}},VGa=function(a){var b={};return a.filter(function(c){return b.hasOwnProperty(c)?!1:b[c]=!0})},WGa=function(a,b){return Ql(a,b?{mqAlias:b.alias,suffix:b.suffix}:{})},YGa=function(a){var b=l(XGa(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}},XGa=function(a){a=a?a.toLowerCase():"";var b=
l(a.split(" "));a=b.next().value;b=b.next().value;var c=a;ZGa.find(function(d){return d===c})||(c=ZGa[0]);return[c,$Ga(b)]},aHa=function(a){a=l(XGa(a));var b=a.next().value;a.next();return b.indexOf("row")>-1},$Ga=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},bHa=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},cHa=function(){var a=Rl.supportsDOMEvents;return typeof a===
"function"?a():a},eHa=function(a,b,c){var d=bHa(b);c.forEach(function(e){dHa(d,e,a)})},dHa=function(a,b,c){Object.keys(a).forEach(function(d){for(var e=l(Array.isArray(a[d])?a[d]:[a[d]]),f=e.next();!f.done;f=e.next())c.setStyle(b,d,f.value)})},fHa=function(a,b){var c=c===void 0?!1:c;var d="";if(a&&cHa())try{var e=d=cHa()?a.style[b]:"";c||(d=e||getComputedStyle(a).getPropertyValue(b))}catch(f){}return d?d.trim():"block"},gHa=function(a){return a.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")},hHa=
function(a){return(a.length>0?a.charAt(0):"").toUpperCase()+(a.length>1?a.slice(1):"")},kHa=function(){iHa.forEach(function(a){a.suffix&&a.suffix!==""||(a.suffix=a.alias.replace(jHa,"|").split("|").map(hHa).join(""),a.overlapping=a.overlapping||!1)});return iHa},mHa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Kg(1,lHa,!(a.xAxisPinEnabled&&a.hoveredColumn===2&&(a.currentSortColumn.id!==2||(a.currentSortColumn.direction||0)===0)))))},nHa=function(a){a&1&&M(0,"mat-icon",23)},oHa=function(a){a&
1&&M(0,"mat-icon",24)},pHa=function(a){a&1&&M(0,"mat-icon",28)},qHa=function(a){a&1&&M(0,"mat-icon",29)},tHa=function(a,b){if(a&1){var c=t();K(0,"span",27);N("click",function(){u(c);var d=P(2);rHa(d,"MAIN",1);sHa(d);return v()});Q(1);E(2,pHa,1,0,"mat-icon",17)(3,qHa,1,0,"mat-icon",18);L()}a&2&&(a=b.$implicit,b=P(2),zg(Gg("sortable-column legend-table-cell ",a)),I("fxFlex",Fg(b.columnFlexWidth))("matTooltip",Fg(a)),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))},uHa=function(a){a&1&&(K(0,"div",25),E(1,tHa,4,11,"span",26),L());a&2&&(a=P(),B(),I("ngForOf",a.columnKeys))},vHa=function(a){a&1&&M(0,"mat-icon",22);if(a&2){var b=P().index;a=P(2);b=a.labelsModel.selectedColumns[b].uniqueId;I("ngClass",Kg(1,lHa,!(a.hoveredColumn===b&&(a.currentSortColumn.id!==10+b||(a.currentSortColumn.direction||0)===0))))}},wHa=function(a){a&1&&M(0,"mat-icon",28)},xHa=function(a){a&1&&M(0,"mat-icon",
29)},CHa=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);rHa(f,"LABEL",10+f.labelsModel.selectedColumns[e].uniqueId);sHa(f);return v()});Q(2);E(3,vHa,1,3,"mat-icon",5)(4,wHa,1,0,"mat-icon",17)(5,xHa,1,0,"mat-icon",18);L()()}if(a&2){a=b.$implicit;b=b.index;var d=
P(2);zg(Gg("ac-legend-key sortable-column ",a.toLowerCase().replace(/[^\w]+/g,"-")," ac-a11y-keyboard-focusable ac-table-legend-label-header-container"));I("fxFlex",Gg("",d.labelsModel.labelPercents[b],"%"));Kf("aria-sort",yHa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-colindex",2+b);B();I("matTooltip",Fg(a))("ve",d.ve.ColumnSortButton)("veClick",!0);Kf("title",zHa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-label",a);B();S(" ",a," ");B();I("ngIf",!(AHa(d,d.labelsModel.selectedColumns[b].uniqueId)||
BHa(d,d.labelsModel.selectedColumns[b].uniqueId)));B();I("ngIf",AHa(d,d.labelsModel.selectedColumns[b].uniqueId));B();I("ngIf",BHa(d,d.labelsModel.selectedColumns[b].uniqueId))}},DHa=function(a){a&1&&(Wf(0),E(1,CHa,6,17,"div",30),Xf());a&2&&(a=P(),B(),I("ngForOf",a.labelsModel.labelHeaders))},FHa=function(a){a&1&&(K(0,"span",33),Q(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.timeshiftName))("ngStyle",Lg(7,EHa,"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," "))},GHa=function(a){a&1&&(K(0,"span",34),Q(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.statsModeSummaryColumnLabel))("ngStyle",Lg(7,EHa,"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," "))},HHa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Kg(1,lHa,!(a.xAxisPinEnabled&&a.hoveredColumn===1E3&&(a.currentSortColumn.id!==1E3||(a.currentSortColumn.direction||0)===0)))))},IHa=function(a){a&1&&M(0,"mat-icon",28)},JHa=function(a){a&1&&M(0,"mat-icon",29)},LHa=function(a){a&1&&M(0,"span",35);a&2&&(a=P(),I("ngStyle",Kg(1,KHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},MHa=function(a){a&1&&(K(0,"span",36)(1,"span",37),
Q(2),L()());a&2&&(a=P(),I("ngStyle",Kg(2,KHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")),B(2),S(" ",a.streamActionsMenuTooltip," "))},NHa=function(a){a&1&&(K(0,"div",18)(1,"span",19),Q(2),L()());a&2&&(a=P(),B(),I("matTooltip",Fg(a.stream.name)),B(),S(" ",a.stream.name," "))},PHa=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",Gg("",c.labelPercents[b],"%"))("matTooltip",Fg(a))("ngStyle",Jg(8,OHa));Kf("role",b===0?"rowheader":"cell")("aria-colindex",
2+b);B();S(" ",a," ")}},RHa=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.stream.timeshiftValue))("ngStyle",Lg(6,QHa,"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," "))},SHa=function(a){a&1&&(K(0,"div",22),Q(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.stream.statsModeSummaryValue))("ngStyle",Lg(6,QHa,"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," "))},UHa=function(a){a&1&&M(0,"div",23);a&2&&(a=P(),I("ngStyle",Kg(1,THa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},VHa=function(a){a&1&&(K(0,"div",24)(1,"button",25),M(2,"mat-icon",26),L()());if(a&2){a=P();var b=sg(17);I("ngStyle",Kg(4,THa,"translateX("+(-1*a.widthDifference+
a.scrollLeft)+"px)"));B();I("matTooltip",a.streamActionsMenuTooltip)("matMenuTriggerFor",b);Kf("aria-label",a.streamActionsMenuTooltip)}},XHa=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",WHa(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))},ZHa=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(PEa(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",WHa(b))("streamActions",b.streamActions)("widthDifference",b.widthDifference)("timeshift",!!b.timeshiftName)("showStatsModeSummaryColumn",!!b.statsModeSummaryColumnLabel),Kf("aria-rowindex",YHa(b,a)))},$Ha=function(a){a&1&&(K(0,"div",11),E(1,ZHa,1,11,"ac-table-legend-row",12),L());a&2&&(a=P(),B(),I("ngForOf",a.viewPortStreams)("ngForTrackBy",a.trackByStreamName))},aIa=function(){return new Uc(3008,!1)},Sl=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);
return!a||a.length<2?0:bIa(parseFloat(a[1]),a[2])},bIa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},dIa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=0,e="";if(typeof a==="string"){var f=a.match(cIa);if(f===null){b.push(new Uc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=bIa(parseFloat(f[1]),f[2]);var g=f[3];g!=null&&(d=bIa(parseFloat(g),f[4]));(f=f[5])&&(e=f)}c||(c=!1,f=b.length,a<0&&(b.push(new Uc(3100,!1)),c=!0),d<0&&(b.push(new Uc(3101,!1)),c=!0),
c&&b.splice(f,0,new Uc(3E3,!1)));b={duration:a,delay:d,easing:e}}return b},eIa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},Tl=function(a,b,c){b.forEach(function(d,e){var f=kIa(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},Ul=function(a,b){b.forEach(function(c,d){d=kIa(d);a.style[d]=""})},lIa=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},nIa=function(a,b,c){var d=b.params||
{};a=mIa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Uc(3001,!1))})},mIa=function(a){var b=[];if(typeof a==="string"){for(var c;c=oIa.exec(a);)b.push(c[1]);oIa.lastIndex=0}return b},pIa=function(a,b,c){var d=""+a,e=d.replace(oIa,function(f,g){g=b[g];g==null&&(c.push(new Uc(3003,!1)),g="");return g.toString()});return e==d?a:e},kIa=function(a){return a.replace(qIa,function(){return ad.apply(0,arguments)[1].toUpperCase()})},sIa=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,rIa(a,k))}}(c))}}return b},Vl=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 Uc(3004,!1);}},rIa=function(a,b){return window.getComputedStyle(a)[b]},Xl=function(a){switch(a.length){case 0:return new Wl;case 1:return a[0];default:return new tIa(a)}},vIa=function(a,b,c){b=b===void 0?new Map:b;c=c===void 0?new Map:c;var d=[],e=[],f=-1,g=null;a.forEach(function(k){var m=
k.get("offset"),r=m==f,w=r&&g||new Map;k.forEach(function(x,D){var H=D;if(D!=="offset")switch(H=kIa(H),x){case "!":x=b.get(D);break;case "*":x=c.get(D);break;default:x=uIa(H,x,d)}w.set(H,x)});r||e.push(w);g=w;f=m});if(d.length)throw new Uc(3502,!1);return e},xIa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&wIa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&wIa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&wIa(c,"destroy",a))})}},
wIa=function(a,b,c){var d=c.totalTime;b=yIa(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},yIa=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}},Yl=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},zIa=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},BIa=function(a){a=a.parentNode||
a.host||null;return a===AIa?null:a},CIa=function(a,b){for(;b;){if(b===a)return!0;b=BIa(b)}return!1},FIa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=DIa(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 Uc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(EIa(d,e));f[0]!="<"||d=="*"&&e=="*"||c.push(EIa(e,d));d=void 0}}return d}):c.push(a);return c},
DIa=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 Uc(3016,!1)),"* => *"}},EIa=function(a,b){var c=GIa.has(a)||HIa.has(a),d=GIa.has(b)||HIa.has(b);return function(e,f){var g=a=="*"||a==e,k=b=="*"||b==f;!g&&c&&typeof e==="boolean"&&(g=e?GIa.has(a):HIa.has(a));!k&&d&&typeof f==="boolean"&&
(k=f?GIa.has(b):HIa.has(b));return g&&k}},JIa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(IIa,""));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]},KIa=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},LIa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:dIa(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=dIa(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Zl=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},MIa=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}},OIa=function(a,b,c,d,e,f,g,k,m,r){f=f===void 0?new Map:f;g=g===void 0?new Map:g;r=r===void 0?[]:r;return(new NIa).buildKeyframes(a,b,c,d,e,f,g,k,m,r)},PIa=function(a,b){var c=new Map,d;a.forEach(function(e){if(e==="*"){d!=null||(d=b.keys());e=l(d);for(var f=
e.next();!f.done;f=e.next())c.set(f.value,"*")}else for(e=l(e),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;c.set(f,g)}});return c},QIa=function(a,b,c,d,e,f,g,k,m,r,w,x,D){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:g,timelines:k,queriedElements:m,preStyleProps:r,postStyleProps:w,totalTime:x,errors:D}},RIa=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},SIa=function(a,b){var c=Object.assign({},
b);Object.entries(a).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;e!=null&&(c[d]=e)});return c},UIa=function(a,b){return new TIa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},VIa=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))},WIa=function(a){return a&&a.nodeType===1},XIa=function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},ZIa=function(a,b,
c){var d=[];b.forEach(function(g){return d.push(XIa(g))});var e=[];c.forEach(function(g,k){var m=new Map;g.forEach(function(r){var w=rIa(k,r);m.set(r,w);w&&w.length!=0||(k.__ng_removed=YIa,e.push(k))});a.set(k,m)});var f=0;b.forEach(function(g){return XIa(g,d[f++])});return e},$Ia=function(a,b){function c(g){if(!g)return 1;var k=f.get(g);if(k)return k;var m=g.parentNode;d.has(m)?k=m:e.has(m)?k=1:k=c(m);f.set(g,k);return k}var d=new Map;a.forEach(function(g){return d.set(g,[])});if(b.length==0)return d;
var e=new Set(b),f=new Map;b.forEach(function(g){var k=c(g);k!==1&&d.get(k).push(g)});return d},$l=function(a,b){var c;(c=a.classList)==null||c.add(b)},am=function(a,b){var c;(c=a.classList)==null||c.remove(b)},bJa=function(a,b,c){Xl(c).onDone(function(){return aJa(a,b)})},dJa=function(a){var b=[];cJa(a,b);return b},cJa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof tIa?cJa(d.players,b):b.push(d)}},eJa=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},fJa=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},iJa=function(a,b){var c=null,d=null;Array.isArray(b)&&b.length?(c=gJa(b[0]),b.length>1&&(d=gJa(b[b.length-1]))):b instanceof Map&&(c=gJa(b));return c||d?new hJa(a,c,d):null},gJa=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},jJa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},kJa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},lJa=function(a,b){var c=function(){var d=a.apply(this,[].concat(q(ad.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},mJa=function(a){var b=function(){var c=a.apply(this,[].concat(q(ad.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=
Oh(c)}}});return b},nJa=function(a){var b=function(){var c=a.apply(this,[].concat(q(ad.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=Oh(c)}}});return b},oJa=function(){return{diameter:100}},pJa=function(a){a&1&&(Bd(),M(0,"circle",4));if(a&2){a=P();var b=sg(1);xg("animation-name","mat-progress-spinner-stroke-rotate-"+a._spinnerAnimationLabel)("stroke-dashoffset",
a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Kf("r",a._getCircleRadius())}},qJa=function(a){a&1&&(Bd(),M(0,"circle",4));if(a&2){a=P();var b=sg(1);xg("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Kf("r",a._getCircleRadius())}},
rJa=function(a){a&1&&(Wf(0),M(1,"mat-icon",1),Xf());a&2&&(a=P(2),B(),I("svgIcon",Foa("",a.iconSpec.iconset,"-",a.iconSpec.size,":",a.iconSpec.icon)))},sJa=function(a){a&1&&(Wf(0),K(1,"mat-icon"),Q(2),L(),Xf());a&2&&(a=P(2),B(2),Ag(a.iconSpec.icon))},tJa=function(a){a&1&&(Wf(0),M(1,"mat-spinner",2),Xf());a&2&&(a=P(2),B(),I("diameter",a.iconSpec.sizePx)("strokeWidth",a.iconSpec.sizePx/10))},uJa=function(a){a&1&&(Wf(0),E(1,rJa,2,4,"ng-container",0)(2,sJa,3,1,"ng-container",0)(3,tJa,2,2,"ng-container",
0),Xf());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"))},vJa=function(a){switch(a){case "large":return 32;case "medium":return 24;case "small":return 18;default:wb(a)}},wJa=function(a){a&1&&(Bd(),K(0,"svg",11),M(1,"circle",12),L());a&2&&(a=P(),Kf("viewBox",a._viewBox()),B(),xg("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),
"%"),Kf("r",a._circleRadius()))},yJa=function(a){a.id||(a.id="ace-labelledby-message-goog_"+xJa++)},BJa=function(a,b){var c=zJa(a);c.some(function(d){return d.trim()===b.trim()})||(c.length===0&&(yJa(a),c.push(a.id.trim())),c.push(b.trim()),AJa(a,"aria-labelledby",c.join(" ")))},CJa=function(a,b){var c=zJa(a).filter(function(d){return d!==b.trim()});c.length===1&&c[0]===a.id?a.removeAttribute("aria-labelledby"):AJa(a,"aria-labelledby",c.join(" "))},zJa=function(a){return(a.getAttribute("aria-labelledby")||
"").match(/\S+/g)||[]},EJa=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(DJa(c))});Q(1);L()}a&2&&(a=P(),Kf("aria-label",a.action.ariaLabel),B(),S(" ",a.action.label," "))},FJa=function(a){if(a&1){var b=t();K(0,"a",3);N("click",function(){u(b);var c=P();return v(DJa(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," "))},GJa=function(a){a&1&&(K(0,"button",4),
M(1,"ace-icon",5),L())},HJa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},IJa=function(a){a&1&&(Wf(0),Q(1),E(2,HJa,1,1,"ace-tooltip-action",6),Xf());a&2&&(a=P(),B(),S(" ",a.tooltipRef.content," "),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},JJa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},KJa=function(a){a&1&&(Wf(0),M(1,"span",8),E(2,JJa,1,1,"ace-tooltip-action",6),Xf());a&2&&(a=P(),
B(),I("innerHTML",a.tooltipRef.content.html,Oe),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},LJa=function(a){a&1&&Yf(0)},MJa=function(a){a&1&&(Wf(0),E(1,LJa,1,0,"ng-container",9),Xf());a&2&&(P(),a=sg(6),B(),I("ngTemplateOutlet",a))},NJa=function(a){a&1&&Yf(0)},OJa=function(a){a&1&&E(0,NJa,1,0,"ng-container",10);a&2&&(a=P(),I("ngTemplateOutlet",a.tooltipRef.content)("ngTemplateOutletContext",a.tooltipRef.aceTooltipTemplateData))},PJa=function(a,b){a&&b(a)&&PJa(a.parentNode,b)},QJa=function(a){var b=
void 0;PJa(a,function(c){return c.classList&&c.classList.contains("cfc-remove-from-tab-order")?(b=c,!1):!0});return b},RJa=function(a){var b;(b=!a.offsetParent||a.disabled)||(b=!!QJa(a));return b?!1:(a=a.attributes.getNamedItem("tabindex"))&&Number(a.value)===-1?!1:!0},XJa=function(a,b){var c=SJa++,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,TJa[UJa].push(d));VJa||(VJa=!0,window.requestAnimationFrame(WJa))}},WJa=function(){VJa=!1;var a=TJa[UJa],b=a.length;UJa=(UJa+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},YJa=function(a,
b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(b,e,c-b,d.bottom-e);var k=new Path2D,m=Math.max(b,d.left),r=!1;b<d.left&&c-b>=4?(m=c-b>=12?d.left+8:Math.max(c-4,d.left),r=!0,k.moveTo(m,e+1.5),k.lineTo(m+1.5,e)):k.moveTo(m,e);var w=Math.min(c,d.right),x=!1;c>d.right?c>d.right&&c-b>=4&&(w=d.right-c>=12?d.right-8:Math.min(c,d.right-4),x=!0,k.lineTo(w-1.5,e),k.lineTo(w,e+1.5),k.lineTo(w-1.5,f)):(k.lineTo(w,e),k.lineTo(w,f));r?k.lineTo(m+1.5,f):k.lineTo(m,f);k.closePath();b=new Path2D;b.rect(d.left,0,
d.right-d.left,d.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(g);a.restore();a.save();a.globalAlpha=.25;a.fill(k);a.restore();r&&(g=new Path2D,g.moveTo(m-1,e+1.5),g.lineTo(d.left,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(g),a.restore());x&&(m=new Path2D,m.moveTo(w+1,e+1.5),m.lineTo(d.right,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(m),a.restore())},ZJa=function(a,
b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(Math.max(b,d.left),e,Math.min(2,c-b),d.bottom-e);var k=new Path2D;k.rect(Math.min(c-2,d.right-2),e,Math.min(2,c-b),d.bottom-e);var m=new Path2D;b=Math.max(b,d.left);m.rect(b,e,Math.min(c,d.right)-b,f-e);(new Path2D).rect(d.left,0,d.right-d.left,d.bottom);a.save();a.globalAlpha=1;a.fill(m);a.fill(g);a.fill(k);a.restore()},$Ja=function(a,b,c,d,e){var f=e.top-7,g=e.top,k=new Path2D;k.moveTo(c+2,f);k.lineTo(d-2,f);k.arcTo(d,f,d,f+2,2);k.lineTo(d,e.bottom);
k.lineTo(c,e.bottom);k.lineTo(c,f+2);k.arcTo(c,f,c+2,f,2);k.closePath();var m=new Path2D;m.moveTo(c-1,e.bottom);m.lineTo(c-1,f+2);m.arcTo(c-1,f-1,c+2,f-1,3);m.lineTo(d-2,f-1);m.arcTo(d+1,f-1,d+1,f+2,3);m.lineTo(d+1,e.bottom);var r=new Path2D;c<e.left?r.moveTo(e.left,f):r.moveTo(c+2,f);if(d>e.right){var w=e.right;c+7+2>e.right&&(w=Math.max(e.right,c+7));r.lineTo(w,f);r.lineTo(w+3,(g+f)/2);r.lineTo(w,g)}else c+7>d?(w=c+7,r.lineTo(w-2,f),r.arcTo(w,f,w,f+2,2)):(r.lineTo(d-2,f),r.arcTo(d,f,d,f+2,2),r.lineTo(d,
g));c<e.left?(r.lineTo(e.left,g),r.lineTo(e.left-3,(g+f)/2),r.lineTo(e.left,f)):(c+7+2>e.right||c+7>d||c+7+2>d?(w=d,c+7>d&&(w=c+7),c+7+2>e.right&&(w=Math.max(e.right,c+7)),d<=w&&d>w-1?r.lineTo(w,g+7):(r.lineTo(w,g+7-4),r.arcTo(w,g+7,w-2,g+7,2))):(r.lineTo(c+7+2,g),r.arcTo(c+7,g,c+7,g+2,2),r.lineTo(c+7,g+7-4),r.arcTo(c+7,g+7,c+7-2,g+7,2)),r.lineTo(c,g+7),r.lineTo(c,f+2),r.arcTo(c,f,c+2,f,2));r.closePath();c=new Path2D;c.rect(e.left,0,e.right-e.left,e.bottom);a.save();a.clip(c);a.globalCompositeOperation=
"destination-out";a.fill(k);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(k);a.restore();a.save();a.clip(c);a.strokeStyle=hl("var(--ac-sys-color-annotation-surface, #FFF)",b);a.globalCompositeOperation="destination-out";a.lineWidth=2;a.stroke(m);a.restore();a.save();a.fill(r);a.restore()},aKa=function(a,b,c,d){a.save();var e=d.top-7,f=d.top,g=c+18,k=new Path2D;k.moveTo(c,d.bottom);k.lineTo(c,e+2);k.arcTo(c,e,c+2,e,2);if(g>d.right){var m=c+7;k.lineTo(m-2,e);k.arcTo(m,e,m,e+2,2)}else k.lineTo(g-
2,e),k.arcTo(g,e,g,e+2,2),k.lineTo(g,f-2),k.arcTo(g,f,g-2,f,2),k.lineTo(c+7+2,f),k.arcTo(c+7,f,c+7,f+2,2);k.lineTo(c+7,f+7-2);k.arcTo(c+7,f+7,c+7-2,f+7,2);k.lineTo(c+1+2,f+7);k.arcTo(c+1,f+7,c+1,f+7+2,2);k.lineTo(c+1,d.bottom);k.lineTo(c,d.bottom);k.closePath();m=new Path2D;m.moveTo(c-1,d.bottom);m.lineTo(c-1,e+2);m.arcTo(c-1,e-1,c+2,e-1,3);g>d.right?(g=c+7,m.lineTo(g-2,e-1),m.arcTo(g+1,e-1,g+1,e+2,3)):(m.lineTo(g-2,e-1),m.arcTo(g+1,e-1,g+1,e+2,3),m.lineTo(g+1,f-2),m.arcTo(g+1,f+1,g-2,f+1,3),m.lineTo(c+
7+2,f+1),m.arcTo(c+7,f+1,c+7+1,f+2,1));m.lineTo(c+7+1,f+7-2);m.arcTo(c+7+1,f+7+1,c+7-2,f+7+1,3);m.lineTo(c+1+2,f+7+1);m.arcTo(c+1+1,f+7+1,c+1+1,f+7+2,1);m.lineTo(c+1+1,d.bottom);a.strokeStyle=hl("var(--ac-sys-color-annotation-surface, #FFF)",b);a.lineWidth=2;a.stroke(m);a.fill(k);a.restore()},bKa=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()},cKa=function(a,b,c,d,e,f){var g=e.size;e=l(e);for(var k=e.next();!k.done;k=e.next()){var m=1-Math.pow(1-f,1/g);a.strokeStyle=hl(k.value,b);bKa(a,c,d,m)}},dKa=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()},eKa=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)},fKa=function(a,b,c){a=a.currentValue;var d,e=a==null?void 0:(d=a.data)==null?void 0:d.sort(function(D,H){return D.start-H.start});a=a==null?void 0:a.state;if(e==null||!e.length||!a)return[];d=[];var f=null;e=l(e);for(var g=e.next(),k={};!g.done;k={style$jscomp$46:void 0},g=e.next()){g=g.value;var m=a.domainMap(g.start),r=void 0,w=(r=g.end&&a.domainMap(g.end))!=null?r:null;k.style$jscomp$46=b.getStyle(g.style);
m!==null&&m<a.bodyLeft&&(w!==null&&w>a.bodyLeft||g.isOngoing)&&(m=a.bodyLeft);if(!(m===null||m<a.bodyLeft||m>a.bodyRight)){r=eKa(f,8);var x=m+(w&&w-m<24?(w-m-24+4)/2:0);w!==null||g.isOngoing||(x=Math.max(4,m-9));if(f&&x<=f.iconLeft+r){f.icons.filter(function(D){return function(H){return H.icon===D.style$jscomp$46.icon&&H.color===D.style$jscomp$46.color}}(k)).length||f.icons.push({styleId:k.style$jscomp$46.style,icon:k.style$jscomp$46.icon,color:k.style$jscomp$46.color});f.annotationIds.push(g.annotationId);
g.annotationContent&&f.annotationContents.push(g.annotationContent);if(w!==null||g.isOngoing)f.hasDuration=!0;f.hasDuration?f.iconLeft=f.bodyLeft-4:(r=eKa(f),f.bodyCenter+=(m-f.bodyCenter)/f.annotationIds.length,f.iconLeft=Math.max(4,f.bodyCenter-r/2))}else f&&(f.estimatedButtonWidth=eKa(f,8),d.push(f)),f={icons:[{styleId:k.style$jscomp$46.style,icon:k.style$jscomp$46.icon,color:k.style$jscomp$46.color}],top:0,iconLeft:x-4,bodyLeft:m,bodyCenter:w!==null?w-m:m,estimatedButtonWidth:0,hasDuration:w!==
null,annotationIds:[g.annotationId],annotationContents:g.annotationContent?[g.annotationContent]:[]}}}f&&(f.estimatedButtonWidth=eKa(f,8),d.push(f));if(c!==void 0)for(b=l(d),a=b.next();!a.done;a=b.next())a.value.icons.sort(function(D,H){D=c.get(D.icon);H=c.get(H.icon);return D===H?0:D?H?D>H?-1:1:-1:1});return d},gKa=function(a){return a===null?0:28+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},hKa=function(a,b){a=a.currentValue;var c,d=a==null?void 0:(c=a.data)==null?
void 0:c.sort(function(x,D){return x.start-D.start});c=a==null?void 0:a.state;if(d==null||!d.length||!c)return[];a=[];var e=null;d=l(d);for(var f=d.next(),g={};!f.done;g={style$jscomp$47:void 0},f=d.next()){f=f.value;var k=c.domainMap(f.start),m=void 0,r=(m=f.end&&c.domainMap(f.end))!=null?m:null;g.style$jscomp$47=b.getStyle(f.style);k!==null&&k<c.bodyLeft&&(r!==null&&r>c.bodyLeft||f.isOngoing)&&(k=c.bodyLeft);if(!(k===null||k<c.bodyLeft||k>c.bodyRight)){m=gKa(e);var w=k;e&&w<=e.iconLeft+m?(e.icons.filter(function(x){return function(D){return D.icon===
x.style$jscomp$47.icon&&D.color===x.style$jscomp$47.color}}(g)).length||e.icons.push({styleId:g.style$jscomp$47.style,icon:g.style$jscomp$47.icon,color:g.style$jscomp$47.color}),e.annotationIds.push(f.annotationId),f.annotationContent&&e.annotationContents.push(f.annotationContent)):(e&&(e.estimatedButtonWidth=gKa(e),a.push(e)),e={icons:[{styleId:g.style$jscomp$47.style,icon:g.style$jscomp$47.icon,color:g.style$jscomp$47.color}],top:0,iconLeft:w-3,bodyLeft:k,bodyCenter:k,estimatedButtonWidth:0,hasDuration:r!==
null,annotationIds:[f.annotationId],annotationContents:f.annotationContent?[f.annotationContent]:[]})}}e&&(e.estimatedButtonWidth=gKa(e),a.push(e));return a},iKa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},kKa=function(a,b){a&1&&(Wf(0),K(1,"i",10),Bd(),K(2,"svg",11),M(3,"path",12)(4,"path",13),L()(),Xf());if(a&2){a=b.$implicit;b=b.index;var c=P().$implicit,d=P();B();I("ngStyle",Lg(4,jKa,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))}},lKa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},rKa=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(mKa(f,e))})("mouseenter",function(){var e=u(c).$implicit,f=P();return v(nKa(f,e))})("mouseleave",function(){u(c);P().highlightedAnnotation=null;return v()});
K(1,"div",5);E(2,iKa,2,1,"span",6);K(3,"div",7);E(4,kKa,5,7,"ng-container",8);L();E(5,lKa,2,1,"span",6);L()()}if(a&2){a=b.$implicit;b=P();var d=sg(3);yg("annotation-cluster-button",!b.newVisuals)("new-annotation-cluster-button",b.newVisuals);I("ngStyle",Lg(15,oKa,a.iconLeft+"px",a.top+"px"))("aceTooltip",d)("aceTooltipTemplateData",Kg(18,pKa,a))("aceTooltipInteractive",!0)("aceTooltipPosition",b.tooltipPosition)("ve",b.ve.AnnotationButton)("veClick",!0);B(2);I("ngIf",b.newVisuals&&a.annotationIds.length>
1);B();I("ngStyle",Kg(20,qKa,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)}},sKa=function(a){a&1&&(Wf(0),K(1,"div"),Q(2),L(),Xf());a&2&&(a=P().$implicit,B(2),Ag(a))},tKa=function(a){a&1&&Yf(0)},uKa=function(a){a&1&&(Wf(0),E(1,tKa,1,0,"ng-container",19),Xf());if(a&2){var b=P();a=b.$implicit;b=b.index;var c=P(2).$implicit;B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,pKa,c.annotationIds[b]))}},
vKa=function(a){a&1&&(Wf(0),M(1,"div",20),Xf());a&2&&(a=P().$implicit,B(),I("innerHTML",a.toString(),Oe))},wKa=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P().$implicit,B(),S(" ",a," "))},xKa=function(a,b){if(a&1){var c=t();Wf(0);K(1,"div",15);N("mouseover",function(){var d=u(c).index,e=P(2).$implicit,f=P();return v(nKa(f,e,d))})("mouseout",function(){u(c);P(3).highlightedAnnotation=null;return v()});Wf(2,16);E(3,sKa,3,1,"ng-container",17)(4,uKa,2,4,"ng-container",17)(5,vKa,2,1,"ng-container",17)(6,
wKa,2,1,"ng-container",18);Xf();L();Xf()}a&2&&(a=b.$implicit,P(3),B(2),I("ngSwitch",a instanceof gg?"TemplateRef":typeof a),B(),I("ngSwitchCase","string"),B(),I("ngSwitchCase","TemplateRef"),B(),I("ngSwitchCase","Object"))},yKa=function(a){a&1&&Yf(0)},zKa=function(a){a&1&&E(0,yKa,1,0,"ng-container",19);if(a&2){a=P(2).$implicit;var b=P();I("ngTemplateOutlet",b.clusterActionTemplate)("ngTemplateOutletContext",Kg(2,pKa,a.annotationIds))}},AKa=function(a){a&1&&(Wf(0),E(1,xKa,7,4,"ng-container",8),F(2,
zKa,1,4,"ng-container"),Xf());if(a&2){a=P().$implicit;var b=P();B();I("ngForOf",a.annotationContents);B();G(b.clusterActionTemplate?2:-1)}},BKa=function(a){a&1&&Yf(0)},CKa=function(a){a&1&&(Wf(0),E(1,BKa,1,0,"ng-container",19),Xf());if(a&2){a=P(2).$implicit;var b=P();B();I("ngTemplateOutlet",b.tooltipContentTemplate)("ngTemplateOutletContext",Kg(2,pKa,a.annotationIds))}},DKa=function(a){a&1&&E(0,CKa,2,4,"ng-container",14);if(a&2){a=P(2);var b=sg(5);I("ngIf",a.tooltipContentTemplate)("ngIfElse",b)}},
EKa=function(a,b){a&1&&E(0,AKa,3,2,"ng-container",14)(1,DKa,1,2,"ng-template",null,2,Og);a&2&&(a=b.$implicit,b=sg(2),I("ngIf",(a.annotationContents==null?null:a.annotationContents.length)>0)("ngIfElse",b))},FKa=function(a){a&1&&fg(0)},GKa=function(a,b){var c=0,d=0,e=a.data;b=b.data;for(var f=[],g=e.length>1&&e[e.length-1].x.valueOf()-e[0].x.valueOf()>0;c<e.length||d<b.length;){var k=e[c],m=b[d];k&&!m?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):!k&&m?(f.push(Object.assign({},m,{y0:m.y,y1:m.y})),
d++):k&&m&&(k.x.valueOf()===m.x.valueOf()?(f.push(Object.assign({},k,{y0:Math.min(k.y,m.y),y1:Math.max(k.y,m.y)})),c++,d++):g&&k.x.valueOf()<m.x.valueOf()||!g&&k.x.valueOf()>m.x.valueOf()?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):(f.push(Object.assign({},m,{y0:m.y,y1:m.y})),d++))}return Object.assign({},a,{data:f})},HKa=function(a){var b=a.data.map(function(c){return Object.assign({},c,{y:0})});return Object.assign({},a,{data:b})},bm=function(a,b,c){return c===Infinity?!1:Math.abs(b.x.valueOf()-
a.x.valueOf())>c*2},IKa=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},JKa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?bm:c;return a.reduceRight(function(d,e){var f=l(d).next().value,g=l(f).next().value;g&&c(g,e,b)?d.unshift([e]):f.unshift(e);return d},[[]])},KKa=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}},LKa=function(a,b,c){c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],m=k.left,r=k.top,w=k.height,x=k.width;k=Math.ceil(c*x);x=m+x+k;if(b.x>=m-k)if(b.x<x)if(b.y>=r)if(b.y<r+w){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f},MKa=function(a){return Iba(a.reverse().map(function(b){b=l(b);b.next();return b.next().value}).flat(),function(b){return b.height===
0?void 0:b.metadata.point.x.valueOf()})},NKa=function(a,b){b=b===void 0?0:b;a=l(a.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=0;d<c.length;d++){var e=c[d],f=c[d-1];d===0?(f=e.height,e.height=Math.max(1,e.height-b/2),e.top+=f-e.height):(e.height=Math.max(1,e.height-b),e.top=f.top-b-e.height)}}},QKa=function(a,b){b=b===void 0?!0:b;var c=OKa(),d=[].concat(q(a.series)).reverse();b=(b?PKa(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})},OKa=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})}},PKa=function(a){var b=RKa(a),c=SKa(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=TKa(f,b);d=d&&
TKa(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})})},TKa=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))},UKa=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},WKa=function(a,b,c){b=l([b,c].sort(function(f,
g){return VKa(f,g)}));var d=b.next().value,e=b.next().value;b=UKa(a,function(f){return VKa(f.x,d)});c=UKa(a,function(f){return VKa(f.x,e)});return b===-1||c===-1?[]:a.slice(b+1,c)},RKa=function(a){a=a.reduce(function(b,c){c=l([c.data,c.shiftedData===void 0?[]:c.shiftedData]);for(var d=c.next();!d.done;d=c.next()){d=l(d.value);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.x.valueOf();b.has(f)||b.set(f,Object.assign({},e,{y:0}))}}return b},new Map);return[].concat(q(a.entries())).sort(function(b,
c){b=l(b).next().value;c=l(c).next().value;return VKa(b,c)}).map(function(b){b=l(b);b.next();return b.next().value})},VKa=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},SKa=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?[]:WKa(a,d,e);return[c].concat(q(d))}},XKa=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})},YKa=function(a){if(a&1){var b=t();Wf(0);M(1,"mat-icon",7)(2,"span",8);K(3,"button",9);N("click",function(){u(b);P(3).installAgentRequest.emit();return v()});$f(4,1);L();Xf()}a&2&&(a=P(3),B(2),I("innerHTML",a.opsAgentInstallPrompt,Oe),B(),I("ve",a.ve.InstallAgentButton)("veClick",!0))},ZKa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3).ngIf,B(),
S("",a[0].details.queryName,": "))},$Ka=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()}},aLa=function(a){a&1&&(M(0,"mat-icon",10),K(1,"span",11),E(2,ZKa,2,1,"span",2),M(3,"span",8),L(),E(4,$Ka,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)}},bLa=function(a){a&1&&(K(0,"div",4),T(1,
"async"),T(2,"async"),K(3,"div",5),E(4,YKa,5,3,"ng-container",6),T(5,"async"),E(6,aLa,5,3,"ng-template",null,0,Og),L()());if(a&2){a=sg(7);var b=P(2);yg("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)}},cLa=function(a,b){a&1&&(Wf(0),E(1,bLa,8,11,"div",3),T(2,"async"),Xf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",a.length>0&&U(2,1,b.errorDismissedObservable)===!1))},dLa=function(a){a&
1&&(K(0,"span",6,1),Q(2),L());a&2&&(a=P(),B(2),Ag(a.unitLabel))},eLa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.unitLabel))},fLa=function(a){a&1&&(K(0,"span",7,2),Q(2),E(3,eLa,2,1,"span",8),L());a&2&&(a=P(),I("title",a.currentValueLabel),B(2),S(" ",a.currentValueLabel),B(),I("ngIf",!a.showUnitAboveValue))},gLa=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]},hLa=function(a,b){var c=a.y.bucketCounts,d=l(gLa(a,0)),e=d.next().value,
f=d=d.next().value;if(e!==void 0&&f!==void 0){if(e>=b)return-1;if(e<=b&&f>=b)return 0}for(d=1;d<c.length;d++)if(f=l(gLa(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},iLa=function(a){return a[0]+" - "+a[1]},jLa=function(a,b,c){return function(d){var e=d[0],f;d=(f=d[1])!=null?f:null;f=l([e,d].map(function(g){if(g===null)return null;g=Uk(a,b,g)||0;return Wk(g,b,{maximumFractionDigits:c})}));e=f.next().value;f=f.next().value;if(e===
null)throw Error("Oc");return f===null?(new cm("above {LOWER}")).format({LOWER:e}):(new cm("between {LOWER} and {UPPER}")).format({LOWER:e,UPPER:f})}},kLa=function(){return{x:0,y:0,height:0,width:0}},lLa=function(a,b){return function(c,d){var e=c.x,f=c.x0,g=c.y,k=0,m;c=Math.floor((m=a(e.valueOf()))!=null?m:0);f=f==null?void 0:f.valueOf();if(f!==void 0){var r;c=Math.floor((r=a((e.valueOf()+f)/2))!=null?r:0);var w;k=Math.floor((w=a(e.valueOf()))!=null?w:0);var x;w=Math.floor((x=a(f))!=null?x:0);k=Math.abs(k-
w)}x=l(zl(g,d));d=x.next().value;x=x.next().value;d=Math.floor(b(d!=null?d:0));var D;x=Math.floor(b((D=x)!=null?D:0));return{x:c,y:(d+x)/2,height:Math.abs(x-d),width:k}}},mLa=function(a,b){var c;return String((c=a.bucketCounts[b])!=null?c:"-")},nLa=function(){return function(a,b){var c=a.bucketCounts[b]||0;b=c.toString();a=(c*100/a.count).toFixed();return(new cm("{COUNT} ({PERCENT}%)")).format({COUNT:b,PERCENT:a})}},oLa=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=iLa);f||(f=iFa);g||(g=mLa);a||(a=kLa);b=b.series[0];if(!b)return null;var k,m=(k=b.data[0])==null?void 0:k.y;if(!m)return null;k=[];for(var r=b.data.reduce(function(O,R){return Math.max(O,R.y.bucketCounts.length)},0)-1;r>=0;r--)k.push({label:e(zl(m,r)),metadata:{seriesId:b.id,bucketIndex:r}});e=new Set;m=l(b.data);for(r=m.next();!r.done;r=m.next())r=r.value,a(r,0).x>=0&&e.add(r.x.valueOf());e=Array.from(e);e.sort(function(O,R){return O-
R});e=kFa(e,f);f=e.columns;e=e.xToColIndex;m=jFa(k.length,f.length);b=l(b.data);for(r=b.next();!r.done;r=b.next()){r=r.value;var w=e.get(r.x.valueOf());if(w!==void 0)for(var x=r.y,D=0;D<k.length;D++){var H=k[D].metadata.bucketIndex,J=m[D][w];J&&H!==void 0&&(J.position=a(r,H),J.label=g(x,H))}}return{rows:k,columns:f,values:m,xAxisState:c,yAxisState:d}},pLa=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},qLa=function(a){a&1&&Vf(0,"div",2)},rLa=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))},sLa=function(a){a&1&&M(0,"mat-progress-bar",5);a&2&&(a=P(2),Kf("aria-label",a.loadingIndicatorLabel))},tLa=function(a){a&1&&(K(0,"div",1),E(1,rLa,1,3,"mat-spinner",2)(2,sLa,1,1,"mat-progress-bar",3),L());a&2&&(a=P(),xg("height",a.bodyHeight,"px")("width",a.bodyWidth,"px")("top",a.bodyTop,"px")("left",a.bodyLeft,"px"),B(),I("ngIf",!a.useProgressBar),B(),I("ngIf",a.useProgressBar))},uLa=function(a){return(a=
String(a).match(/^(-?[\d.]+)(?:([a-zA-Z%]+))?$/))?{value:Number(a[1]),unit:(a[2]||"").toLowerCase()}:null},vLa=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),Ag(a.summaryHeader))},wLa=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," "))},xLa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),Ag(a.summaryFooter))},yLa=function(a){a&1&&(K(0,"div",3,0),E(2,vLa,2,1,"span",4)(3,wLa,3,2,"span",5)(4,xLa,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))},zLa=function(a){a&1&&(Tf(0,"div",1),fg(1),Uf())},ALa=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},BLa=function(a,b){return(a==null?void 0:a.version)!==(b==null?void 0:b.version)},CLa=function(a,b,c){c=c===void 0?!1:c;if(!a)return!0;var d=l(a);a=d.next().value;d=d.next().value;var e=l(b);b=e.next().value;e=e.next().value;return c?b<=d&&a<=e:a<=e&&b<=d},DLa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?!1:c;return a.reduceRight(function(d,e){var f=l(d).next().value,g=l(f).next().value;g&&Kl(b,g,e,c).gapDetected?d.unshift([e]):f.unshift(e);return d},[[]])},ELa=function(){return{getInitialState:function(a){a=
a===void 0?{}:a;return Object.assign({ids:[],entities:{}},a)}}},dm=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}},FLa=function(a){function b(m,r){var w=a(m);if(w in r.entities)return 2;r.ids.push(w);r.entities[w]=m;return 1}function c(m,r){var w=!1;m=l(m);for(var x=m.next();!x.done;x=m.next())w=b(x.value,r)!==2||w;return w?1:2}function d(m,r){var w=
a(m);if(w in r.entities)return r.entities[w]=m,0;r.ids.push(w);r.entities[w]=m;return 1}function e(m,r){var w=(m instanceof Array?m:r.ids.filter(function(x){return m(r.entities[x])})).filter(function(x){return x in r.entities}).map(function(x){return delete r.entities[x]}).length>0;w&&(r.ids=r.ids.filter(function(x){return x in r.entities}));return w?1:2}function f(m,r){return g([m],r)}function g(m,r){var w={};m=m.filter(function(x){return x.id in r.entities});return m.length>0?m.filter(function(x){var D=
Object.assign({},r.entities[x.id],x.changes),H=a(D),J=H!==x.id;J&&(w[x.id]=H,delete r.entities[x.id]);r.entities[H]=D;return J}).length>0?(r.ids=r.ids.map(function(x){return w[x]||x}),1):0:2}function k(m,r){var w=[],x=[];m=l(m);for(var D=m.next();!D.done;D=m.next()){D=D.value;var H=a(D);H in r.entities?x.push({id:H,changes:D}):w.push(D)}x=g(x,r);r=c(w,r);switch(!0){case r===2&&x===2:return 2;case r===1||x===1:return 1;default:return 0}}return{removeAll:function(m){return Object.assign({},m,{ids:[],
entities:{}})},addOne:dm(b),addMany:dm(c),setAll:dm(function(m,r){r.ids=[];r.entities={};c(m,r);return 1}),setOne:dm(d),setMany:dm(function(m,r){m=m.map(function(w){return d(w,r)});switch(!0){case m.some(function(w){return w===1}):return 1;case m.some(function(w){return w===0}):return 0;default:return 2}}),updateOne:dm(f),updateMany:dm(g),upsertOne:dm(function(m,r){return k([m],r)}),upsertMany:dm(k),removeOne:dm(function(m,r){return e([m],r)}),removeMany:dm(e),map:dm(function(m,r){var w=r.ids.reduce(function(x,
D){var H=m(r.entities[D]);H!==r.entities[D]&&x.push({id:D,changes:H});return x},[]).filter(function(x){return x.id in r.entities});return g(w,r)}),mapOne:dm(function(m,r){var w=m.map;m=m.id;var x=r.entities[m];if(!x)return 2;w=w(x);return f({id:m,changes:w},r)})}},GLa=function(a,b){function c(w,x){return d([w],x)}function d(w,x){w=w.filter(function(D){return!(a(D)in x.entities)});if(w.length===0)return 2;m(w,x);return 1}function e(w,x){var D=a(w);return D in x.entities?(x.ids=x.ids.filter(function(H){return H!==
D}),m([w],x),1):c(w,x)}function f(w,x){return g([w],x)}function g(w,x){var D=[];w=w.filter(function(O){if(O.id in x.entities){var R=Object.assign({},x.entities[O.id],O.changes),V=a(R);delete x.entities[O.id];D.push(R);O=V!==O.id}else O=!1;return O}).length>0;if(D.length===0)return 2;var H=x.ids,J=[];x.ids=x.ids.filter(function(O,R){if(O in x.entities)return!0;J.push(R);return!1});m(D,x);return!w&&J.every(function(O){return x.ids[O]===H[O]})?0:1}function k(w,x){var D=[],H=[];w=l(w);for(var J=w.next();!J.done;J=
w.next()){J=J.value;var O=a(J);O in x.entities?H.push({id:O,changes:J}):D.push(J)}H=g(H,x);x=d(D,x);switch(!0){case x===2&&H===2:return 2;case x===1||H===1:return 1;default:return 0}}function m(w,x){w.sort(b);for(var D=[],H=0,J=0;H<w.length&&J<x.ids.length;){var O=w[H],R=a(O),V=x.ids[J];b(O,x.entities[V])<=0?(D.push(R),H++):(D.push(V),J++)}x.ids=H<w.length?D.concat(w.slice(H).map(a)):D.concat(x.ids.slice(J));w.forEach(function(ba){x.entities[a(ba)]=ba})}var r=FLa(a);return{removeOne:r.removeOne,removeMany:r.removeMany,
removeAll:r.removeAll,addOne:dm(c),updateOne:dm(f),upsertOne:dm(function(w,x){return k([w],x)}),setAll:dm(function(w,x){x.entities={};x.ids=[];d(w,x);return 1}),setOne:dm(e),setMany:dm(function(w,x){w=w.map(function(D){return e(D,x)});switch(!0){case w.some(function(D){return D===1}):return 1;case w.some(function(D){return D===0}):return 0;default:return 2}}),addMany:dm(d),updateMany:dm(g),upsertMany:dm(k),map:dm(function(w,x){var D=x.ids.reduce(function(H,J){var O=w(x.entities[J]);O!==x.entities[J]&&
H.push({id:J,changes:O});return H},[]);return g(D,x)}),mapOne:dm(function(w,x){var D=w.map;w=w.id;var H=x.entities[w];if(!H)return 2;D=D(H);return f({id:w,changes:D},x)})}},HLa=function(){return{getSelectors:function(a){var b=function(f){return f.ids},c=function(f){return f.entities},d=jk(b,c,function(f,g){return f.map(function(k){return g[k]})}),e=jk(b,function(f){return f.length});return a?{selectIds:jk(a,b),selectEntities:jk(a,c),selectAll:jk(a,d),selectTotal:jk(a,e)}:{selectIds:b,selectEntities:c,
selectAll:d,selectTotal:e}}}},em=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},ELa(),HLa(),a?GLa(d,a):FLa(d))},JLa=function(a,b){return ILa(a,b)},LLa=function(a,b){return KLa(a,b)},NLa=function(a,b){return MLa(a,b)},PLa=function(a,b){return OLa(a,b)},RLa=function(a,b){return QLa(a,b)},TLa=function(a,b){return SLa(a,b)},VLa=function(a,b){return ULa(a,b)},YLa=function(a,b,c,
d){var e=a.entities[b];e||(e=WLa(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:XLa.upsertOne(d,c.byLayer)});return fm.upsertOne(d,a)},$La=function(a,b){return ZLa(a,b)},bMa=function(a,b){return aMa(a,b)},dMa=function(a,b){return cMa(a,b)},fMa=function(a,b){return eMa(a,b)},hMa=function(a,b){return gMa(a,b)},iMa=function(a){var b=[];a=l(Object.values(a));for(var c=a.next();!c.done;c=a.next())if(c=
c.value,Array.isArray(c))b=b.concat(c);else if(c)return!0;if(b.length===0)return!1;a=b.sort(function(f,g){return f[0].valueOf()-g[0].valueOf()});b=[];a=l(a);for(c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;var e=b[b.length-1];b.length===0||c>e[1]?b.push([c,d]):d>e[1]&&(e[1]=d)}return b},kMa=function(a,b){return jMa(a,b)},mMa=function(a,b){return lMa(a,b)},oMa=function(a,b,c){c=l(c);for(var d=c.next();!d.done;d=c.next())d=nMa(d.value.requirements).margins,d.left>
a&&(a=d.left),d.right>b&&(b=d.right);return{left:a,right:b}},qMa=function(a,b){if((a==null?0:a.useChartGroupHorizontalMargins)||b.some(function(e){return e.useChartGroupHorizontalMargins})){var c=oMa(a.margins.left,a.margins.right,b),d=c.left;c=c.right;a.useChartGroupHorizontalMargins&&(a.margins.left=d,a.margins.right=c);return pMa(b,d,c)}return[]},pMa=function(a,b,c){var d=[];a=l(a.filter(function(f){return f.useChartGroupHorizontalMargins}));for(var e=a.next();!e.done;e=a.next())e=e.value,b===
e.margins.left&&c===e.margins.right||d.push(Object.assign({},e,{margins:Object.assign({},e.margins,{left:b,right:c})}));return d},rMa=function(a,b,c){return Object.values(a.entities).filter(function(d){return!!d}).filter(function(d){return d.chartGroupId===b&&d.chartId!==c})},nMa=function(a){for(var b=gm.getInitialState({}),c=0,d=0,e=0,f=0,g=l(a),k=g.next();!k.done;k=g.next())k=k.value,k.reservedMargins&&(k.reservedMargins.top&&(b=gm.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,
top:c}),b),c+=k.reservedMargins.top),k.reservedMargins.right&&(b=gm.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,right:d}),b),d+=k.reservedMargins.right),k.reservedMargins.bottom&&(b=gm.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,bottom:e}),b),e+=k.reservedMargins.bottom),k.reservedMargins.left&&(b=gm.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,left:f}),b),f+=k.reservedMargins.left));a=l(a);for(g=a.next();!g.done;g=a.next())g=
g.value,g.overlappingMargins&&(g.overlappingMargins.top&&(c=Math.max(c,g.overlappingMargins.top)),g.overlappingMargins.right&&(d=Math.max(d,g.overlappingMargins.right)),g.overlappingMargins.bottom&&(e=Math.max(e,g.overlappingMargins.bottom)),g.overlappingMargins.left&&(f=Math.max(f,g.overlappingMargins.left)));return{margins:{top:Math.max(0,c),right:Math.max(0,d),bottom:Math.max(0,e),left:Math.max(0,f)},reservedMarginsByLayer:b}},tMa=function(a,b){return sMa(a,b)},hm=function(a,b,c){(a=a.entities[b])||
(a=uMa(b));(b=a.byLayer.entities[c])||(b=Object.assign({},vMa,{layerId:c,selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null}));return{chartState:a,layerState:b}},xMa=function(a,b){return wMa(a,b)},zMa=function(a,b){return yMa(a,b)},CMa=function(a,b,c,d){b=a.entities[b]||Object.assign({},AMa,{chartId:b});var e=b.byLayer.entities[c];d=d(e);if(d===e)return a;if(d)c=BMa.upsertOne(d,b.byLayer);else if(e)c=BMa.removeOne(c,b.byLayer);else return a;return im.upsertOne(Object.assign({},
b,{byLayer:c}),a)},DMa=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},EMa=function(a,b,c){var d=new Map;b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.set(e.seriesId,e.value);b=[];e=l(a);for(var f=e.next();!f.done;f=e.next())if(f=f.value){var g=
f.seriesId,k=d.get(g);if(k!==f.atTimeKey[c]){var m={};b.push(Object.assign({},f,{atTimeKey:Object.assign({},f.atTimeKey,(m[c]=k,m)),seriesId:g}))}}return b.length?b:a},GMa=function(a,b){return FMa(a,b)},IMa=function(a,b){return HMa(a,b)},KMa=function(a,b){return JMa(a,b)},MMa=function(a,b){return LMa(a,b)},QMa=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=c.getLabel())!=null?d:"";d=void 0;b.push({name:e,id:e,data:((d=Ni(c,NMa,2,Oi()))!=null?d:[]).filter(function(f){return cj(f,
OMa,1,PMa)&&jm(f,OMa,1,PMa).hasEndTime()}).map(function(f){f=jm(f,OMa,1,PMa);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"}},RMa=function(a,b){if(a&1){var c=t();K(0,"button",2);T(1,"interactiveButtonTooltip");N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});Q(2);L()}a&2&&(yg("has-action-key",!!xi(b,
3)),I("matTooltip",U(1,4,b)),B(2),S(" ",b.getLabel()," "))},SMa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},TMa=function(a,b){a&1&&(F(0,RMa,3,6,"button",0),F(1,SMa,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)}},UMa=function(a,b){a&1&&Qf(0,TMa,2,2,null,null,Of);a&2&&Rf(b)},VMa=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()," "))},WMa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},XMa=function(a,b){a&1&&(F(0,VMa,2,4,"button",0),F(1,WMa,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)}},YMa=function(a,b){a&1&&Qf(0,XMa,2,2,null,null,Of);a&2&&Rf(b)},ZMa=function(a){a&1&&(K(0,"mat-icon"),
Q(1),L());a&2&&(a=P(),zg(Gg("dialog-icon ",a.iconType)),B(),Ag(a.iconType))},$Ma=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),Ag(a.data.title))},aNa=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),Ag(a.data.message))},bNa=function(a){a&1&&Yf(0)},dNa=function(a){a&1&&(K(0,"div"),E(1,bNa,1,0,"ng-container",9),L());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.data.contentTemplate)("ngTemplateOutletContext",Kg(2,cNa,a.data.contentTemplateContext)))},eNa=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()}},fNa=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=dg(0),B(),S(" ",a?"Unarchive thread":"Archive thread"," "))},gNa=function(a){a&1&&Yf(0,null,0)},hNa=function(a){a&1&&M(0,"session-actions",1);a&2&&(a=P(),I("sessionSummary",a.sessionSummary()))},iNa=function(a){a&1&&fg(0,4)},jNa=function(a){a&
1&&(K(0,"div",11),M(1,"input",12),K(2,"div",13),Bd(),K(3,"svg",14),M(4,"path",15),L(),Cd(),M(5,"div",16),L()());a&2&&(a=P(),yg("mdc-checkbox--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},kNa=function(a){a&1&&(K(0,"div",17),M(1,"input",18),K(2,"div",19),M(3,"div",20)(4,"div",21),L()());a&2&&(a=P(),yg("mdc-radio--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},lNa=function(){},mNa=function(a){a&1&&(K(0,"span",4),E(1,lNa,0,0,"ng-template",6),L());
a&2&&(P(),a=sg(3),B(),I("ngTemplateOutlet",a))},nNa=function(){},oNa=function(a){a&1&&(K(0,"span",5),E(1,nNa,0,0,"ng-template",6),L());a&2&&(P(),a=sg(5),B(),I("ngTemplateOutlet",a))},pNa=function(){},qNa=function(a){a&1&&E(0,pNa,0,0,"ng-template",6);a&2&&(P(),a=sg(1),I("ngTemplateOutlet",a))},rNa=function(){},sNa=function(a){a&1&&(K(0,"span",9),E(1,rNa,0,0,"ng-template",6),L());a&2&&(P(),a=sg(3),B(),I("ngTemplateOutlet",a))},tNa=function(){},uNa=function(a){a&1&&(K(0,"span",9),E(1,tNa,0,0,"ng-template",
6),L());a&2&&(P(),a=sg(5),B(),I("ngTemplateOutlet",a))},vNa=function(){},wNa=function(a){a&1&&E(0,vNa,0,0,"ng-template",6);a&2&&(P(),a=sg(1),I("ngTemplateOutlet",a))},xNa=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)})},yNa=function(a){a&1&&M(0,"mat-progress-spinner",
1);a&2&&I("diameter",32)},zNa=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()())},BNa=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(3);return v(ANa(c))});K(1,"mat-icon");Q(2,"close");L()()}},CNa=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=sg(5),d=P(2);return v(d.searchText$.next(c.value))});L();F(6,BNa,3,0,"button",14);L()()}a&2&&(a=sg(5),B(6),G(a.value!==""?6:-1))},DNa=function(a){a&1&&M(0,"mat-divider")},ENa=function(a){a&1&&(K(0,"mat-list-item",16),Q(1,"No results found"),L())},FNa=function(a){a&1&&(K(0,"mat-icon",20),Q(1,"privacy_tip"),L())},GNa=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))},INa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);return v(HNa(c))});K(1,"mat-icon");Q(2,"keyboard_arrow_down");L();Q(3," Show more ");L()}},JNa=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()}},KNa=function(a){a&1&&F(0,INa,4,0,"button",23)(1,
JNa,4,0,"button",23);a&2&&(a=P(4),G(a.isShowingMoreNavItems?1:0))},NNa=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);km(k.duckieEventTrackerService,lm((new mm).setSessionId(g.sessionId)),207765);LNa(k.routingService,g.sessionId);k.navItemClicked.emit();return v()});K(2,"span",18)(3,"span",19);Q(4);L();F(5,FNa,2,0,"mat-icon",20);L();F(6,GNa,2,1,"div",21);L();F(7,KNa,2,1)}if(a&2){a=b.$implicit;b=b.$index;var d=P(),e=P(2),f=dg(0);I("title",
Fg(a.title))("activated",MNa(a,U(1,7,e.currentThreadId$)));B(4);Ag(a.title);B();G(e.sessionDeletionEnabled||a.privacyMode!==e.PrivacyMode.CONTENT_PRIVATE||f?-1:5);B();G(f?-1:6);B();G(b===e.initialNavItems-1&&e.initialNavItems<d.length?7:-1)}},PNa=function(a,b){a&1&&(F(0,ENa,2,0,"mat-list-item",16),Qf(1,NNa,8,9,null,null,ONa));a&2&&(a=P(2),G(a.showFilter&&b.length===0?0:-1),B(),Rf(b.slice(0,a.numDisplayedItems)))},QNa=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?ANa(e):e.clearSearch();return v()});K(9,"mat-icon");Q(10,"filter_list");L()()()();F(11,zNa,6,0);T(12,"async");F(13,CNa,7,1,"div",9)(14,DNa,1,0,"mat-divider");F(15,PNa,3,1);T(16,"async");L()}if(a&2){var c;a=P();var d=dg(0);yg("has-top-banner",U(1,9,a.isGeminiModelSelected$));B(8);yg("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)}},RNa=function(a){a&1&&Yf(0,null,0)},SNa=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()}},TNa=function(a){a&1&&Yf(0,null,0)},UNa=function(a){a&1&&M(0,"new-topic-button")},VNa=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P(2);return v(c.onCloseBannerButtonClicked())});
K(2,"mat-icon");Q(3,"close");L()()()}},WNa=function(a){a&1&&(K(0,"div",1)(1,"span"),Q(2),L(),F(3,VNa,4,0,"div",2),L());a&2&&(a=P(),yg("info-banner",a.bannerType()===a.duckieBannerType.INFO)("warning-banner",a.bannerType()===a.duckieBannerType.WARNING)("error-banner",a.bannerType()===a.duckieBannerType.ERROR),B(2),S(" ",a.bannerText()," "),B(),G(a.dismissalType()===a.duckieDissmissalType.DISMISSABLE?3:-1))},XNa=function(a){a&1&&Yf(0,null,0)},YNa=function(a){a&1&&M(0,"big-bird-outage")},ZNa=function(a){a&
1&&Yf(0,null,0)},$Na=function(a){a&1&&M(0,"general-announcement")},aOa=function(a){a&1&&Yf(0,null,0)},bOa=function(a){a&1&&M(0,"incognito-banner")},cOa=function(a){for(var b=new Set;b.size<3;)b.add(a[Math.floor(Math.random()*a.length)]);return Array.from(b)},dOa=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," "))},fOa=function(a,b){a&1&&(K(0,"div",1)(1,"div",2),Q(2),L(),K(3,"div",3),Qf(4,dOa,2,4,"button",4,eOa),L()());a&2&&(a=b.$implicit,B(2),Ag(a.title),B(2),Rf(a.examples))},hOa=function(a,b){a&1&&Qf(0,fOa,6,1,"div",1,gOa);a&2&&Rf(b)},iOa=function(a){a&1&&Yf(0,null,0)},jOa=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()))},mOa=
function(a){var b=Array.from(kOa.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",lOa]:[b,kOa.get(b)]},nOa=function(a){var b;return(b=mOa(a))==null?void 0:b[1]},pOa=function(a){if(oOa==null){var b=typeof document!=="undefined"?document.head:null;oOa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return oOa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!==
"undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},qOa=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()});fg(1);L()}a&2&&(a=P(),zg(a.className),I("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},nm=function(a){return{fieldType:3,fieldName:a}},rOa=function(a){a&1&&(K(0,"span",3),fg(1,1),
L())},sOa=function(a){a&1&&(K(0,"span",6),fg(1,2),L())},tOa=function(a){a&1&&(K(0,"span",3),fg(1,1),K(2,"span",7),Bd(),K(3,"svg",8),M(4,"path",9),L()()())},uOa=function(a){a&1&&(K(0,"span",6),fg(1,2),L())},vOa=function(a){a&1&&M(0,"incognito-banner-wrapper")},wOa=function(a){a&1&&M(0,"general-announcement-wrapper")},xOa=function(a){a&1&&M(0,"banner",6);a&2&&(a=P().$implicit,I("bannerType",a.getType())("bannerText",a.getText())("dismissalType",Ii(a,2)))},yOa=function(a,b){a&1&&F(0,xOa,1,3,"banner",
6);a&2&&(a=b.$implicit,P(),Ji(a,om,4)?(b=X(a,om,4),a=new Date,a.setHours(0,0,0,0),b=new Date(b.getYear(),b.getMonth()-1,b.getDay()),a=a<=b):a=!0,G(a?0:-1))},zOa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},AOa=function(a){a&1&&(M(0,"reminder-blurb-wrapper"),F(1,zOa,1,0,"big-bird-outage-wrapper"));a&2&&(a=P(),B(),G(a.duckieBigBirdStrikeEnabled?1:-1))},BOa=function(a){a&1&&Yf(0)},DOa=function(a,b){a&1&&E(0,BOa,1,0,"ng-container",9);a&2&&(P(2),a=sg(13),I("ngTemplateOutlet",a)("ngTemplateOutletContext",
Kg(2,COa,b)))},EOa=function(a){a&1&&(K(0,"div",7),Q(1," Get assistance with "),L())},FOa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},GOa=function(a){if(a&1){var b=t();F(0,DOa,1,4,"ng-container")(1,EOa,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,FOa,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)}},HOa=function(a){a&1&&(K(0,"mat-icon",22),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.iconName))},IOa=function(a,b){a&1&&(K(0,"mat-chip-option",21),F(1,HOa,2,1,"mat-icon",22),Q(2),L());if(a&2){a=b.$implicit;b=P();P();var c=sg(12),d=sg(20),e=P();zg(Gg("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," ")}},KOa=function(a){a&1&&(Qf(0,IOa,3,8,"mat-chip-option",20,JOa),T(2,"async"));a&2&&(a=P(2),Rf(U(2,0,a.availableConversationAgents$)))},MOa=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(LOa(e,d))});F(9,KOa,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)}},NOa=function(a){a&1&&Yf(0)},OOa=function(a){a&1&&E(0,NOa,1,0,"ng-container",9);if(a&2){a=P().configuration;P();var b=sg(15);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,COa,a))}},POa=function(a){a&1&&(M(0,"hr"),K(1,"div",25),Q(2),L());a&2&&(a=P().configuration,B(2),S(" ",a.onboardingDescription," "))},QOa=function(a,b){a&1&&(K(0,"div",23),F(1,OOa,1,4,"ng-container"),
K(2,"h1",24),Q(3),L(),F(4,POa,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))},ROa=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))},SOa=function(a){a&1&&Yf(0,null,0)},TOa=function(a){a&1&&M(0,"onboarding",3);a&2&&(a=P(),I("configurationKey",a.configurationKey())("pageId",a.pageId()))},UOa=function(a){a&1&&(K(0,"div",6),Q(1," Responses below are visible only to you and your protected results are used. "),
L())},VOa=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()()()}},WOa=function(){},XOa=function(a){a&1&&fg(0)},YOa=function(){},ZOa=function(a){a&1&&E(0,YOa,0,0,"ng-template",12);a&2&&(a=P().$implicit,I("cdkPortalOutlet",a.templateLabel))},$Oa=function(a){a&1&&Q(0);
a&2&&(a=P().$implicit,Ag(a.textLabel))},aPa=function(a,b){if(a&1){var c=t();K(0,"div",7,2);N("click",function(){var f=u(c),g=f.$implicit;f=f.$index;var k=P(),m=sg(1);return v(k._handleClick(g,m,f))})("cdkFocusChange",function(f){var g=u(c).$index,k=P();return v(k._tabFocusChanged(f,g))});M(2,"span",8)(3,"div",9);K(4,"span",10)(5,"span",11);F(6,ZOa,1,1,null,12)(7,$Oa,1,1);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=sg(1),e=P();zg(a.labelClass);yg("mdc-tab--active",e.selectedIndex===b);I("id",e._getTabLabelId(a,
b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);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)}},bPa=function(a){a&1&&fg(0)},cPa=function(a,b){if(a&1){var c=
t();K(0,"mat-tab-body",13);N("_onCentered",function(){u(c);var e=P();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){u(c);var f=P();return v(f._setTabBodyWrapperHeight(e))})("_beforeCentering",function(e){u(c);var f=P();return v(f._bodyCentered(e))});L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();zg(a.bodyClass);I("id",d._getTabContentId(b))("content",a.content)("position",a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);Kf("tabindex",
d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(a,b))("aria-hidden",d.selectedIndex!==b)}},dPa=function(){},ePa=function(a){a&1&&(Tf(0,"span",1),Bd(),Tf(1,"svg",2),Vf(2,"path",3),Uf()())},fPa=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()," "))},gPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"GoogleSearchResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,
B(3),S(" ",xi(a,2)," "))},hPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"displaySnippet: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,34)," "))},iPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"searchQueryScore: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",rm(a,3)," "))},jPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"StatusWrtResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ii(a,4)," "))},kPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactSource: "),L(),Q(3),
L());a&2&&(a=P().$implicit,B(3),S(" ",Ii(a,5)," "))},lPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactUrlSource: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,6)," "))},nPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"EntityMentions: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ni(a,mPa,8,Oi())," "))},oPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"SourceTitle: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,9)," "))},pPa=function(a){a&1&&(K(0,"div")(1,"strong"),
Q(2,"RankembedSimilarity: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",rm(a,11)," "))},qPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RelatedQuestion: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,13)," "))},sPa=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,rPa,23)," "))},tPa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"IsCitable: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ri(a,14)," "))},uPa=function(a){a&
1&&(K(0,"div")(1,"strong"),Q(2,"FilteredByShield: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ri(a,16)," "))},vPa=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;var c;a=(c=sm?ada(tm(a,17,void 0,void 0,bda)):ada(tm(a,17),!0))!=null?c:b;S(" ",a," ")}},wPa=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()," "))},xPa=function(a){a&1&&(K(0,"div")(1,
"strong"),Q(2,"IsSupplementalFact: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ri(a,20)," "))},zPa=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,yPa,32)," "))},APa=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);Ag((b=X(a,um,27))==null?null:Ri(b,1));B(5);Ag((c=X(a,um,27))==null?null:X(c,vm,2));B(5);Ag((d=X(a,um,27))==null?null:d.getIcon());B(5);Ag((e=X(a,um,27))==null?null:e.getLastModificationTime());B(5);Ag((f=X(a,um,27))==null?null:xi(f,5))}},
CPa=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,BPa,28)," "))},EPa=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,DPa,29)," "))},GPa=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,FPa,30)," "))},HPa=function(a,b){a&1&&(K(0,"li"),E(1,fPa,4,1,"div",11)(2,gPa,4,1,"div",11)(3,
hPa,4,1,"div",11)(4,iPa,4,1,"div",11)(5,jPa,4,1,"div",11)(6,kPa,4,1,"div",11)(7,lPa,4,1,"div",11)(8,nPa,4,1,"div",11)(9,oPa,4,1,"div",11)(10,pPa,4,1,"div",11)(11,qPa,4,1,"div",11)(12,sPa,4,1,"div",11)(13,tPa,4,1,"div",11)(14,uPa,4,1,"div",11)(15,vPa,4,1,"div",11)(16,wPa,4,1,"div",11)(17,xPa,4,1,"div",11)(18,zPa,4,1,"div",11)(19,APa,29,5,"div",11)(20,CPa,4,1,"div",11)(21,EPa,4,1,"div",11)(22,GPa,4,1,"div",11),L());a&2&&(a=b.$implicit,B(),I("ngIf",a.hasGoogleSearchQuery()),B(),I("ngIf",wm(a,2)),B(),
I("ngIf",wm(a,34)),B(),I("ngIf",tm(a,3,void 0,void 0,xb)!=null),B(),I("ngIf",xm(a,4)),B(),I("ngIf",xm(a,5)),B(),I("ngIf",wm(a,6)),B(),I("ngIf",Ni(a,mPa,8,Oi()).length>0),B(),I("ngIf",wm(a,9)),B(),I("ngIf",tm(a,11,void 0,void 0,xb)!=null),B(),I("ngIf",wm(a,13)),B(),I("ngIf",Ji(a,rPa,23)),B(),I("ngIf",Qi(a,14)),B(),I("ngIf",Qi(a,16)),B(),I("ngIf",(sm?$ca(tm(a,17,void 0,void 0,bda)):$ca(tm(a,17)))!=null),B(),I("ngIf",a.hasTimestamp()),B(),I("ngIf",Qi(a,20)),B(),I("ngIf",Ji(a,yPa,32)),B(),I("ngIf",Ji(a,
um,27)),B(),I("ngIf",Ji(a,BPa,28)),B(),I("ngIf",Ji(a,DPa,29)),B(),I("ngIf",Ji(a,FPa,30)))},IPa=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()," "))},KPa=function(a){a&1&&(Wf(0),K(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),Q(4," Cited Headings "),L()(),E(5,IPa,10,2,"li",6),L(),Xf());a&
2&&(a=P().$implicit,B(5),I("ngForOf",Ni(a,JPa,5,Oi())))},LPa=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,KPa,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(" ",Ri(a,6)," "),B(4),S(" ",a.getIsPrivateDocument()," "),B(2),I("ngIf",Ni(a,JPa,5,Oi()).length>0))},MPa=function(a){a&1&&(Wf(0),K(1,"ul"),E(2,LPa,27,7,"li",6),L(),Xf());if(a&2){var b;a=P().$implicit;B(2);I("ngForOf",(b=ym(a))==null?null:zm(b))}},NPa=function(a,b){a&1&&(Wf(0),E(1,MPa,3,1,"ng-container",11),Xf());if(a&2){var c;a=b.$implicit;B();I("ngIf",(c=ym(a))==
null?null:zm(c))}},OPa=function(a,b){a&1&&(K(0,"mat-tab",12)(1,"div"),E(2,NPa,2,1,"ng-container",6),L()());a&2&&(a=b.ngIf,B(2),I("ngForOf",a))},QPa=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),Ag(a==null?null:xi(a,2)),B(4),Ag(PPa(a==null?null:Ii(a,3))),B(4),Ag(a==null?null:xi(a,1)))},VPa=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,HPa,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,OPa,3,1,"mat-tab",9),K(23,"mat-tab",10),E(24,QPa,13,3,"div",11),L()()());if(a&2){var c;a=b.ngIf;b=P();B();I("selectedIndex",2);B(4);Ag(a.getModelId());B(4);Ag(xi(a,3));B(4);var d;(c=X(a,RPa,4))==
null?d=null:(c=X(c,SPa,2))==null?d=null:d=Ni(c,TPa,1,Oi());I("ngForOf",d);B(4);Ag(X(a,UPa,5));B(4);Ag(a.getModelOverrideOptions());B();I("ngIf",b.messageData.relatedResources);B(2);I("ngIf",b.messageData.executionMetadata)}},WPa=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())},XPa=function(a){a&1&&(K(0,"mat-error",12),$f(1,0),L())},$Pa=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);Eg("ngModelChange",function(d){var e=u(c).$index,f=P();Dg(f.rewriteSourcesList[e],d)||(f.rewriteSourcesList[e]=d);return v(d)});L()();K(6,"button",11);N("click",function(){var d=u(c).$index,e=P();e.rewriteSourcesList.splice(d,1);e.rewriteSourcesList.length===0&&e.rewriteSourcesList.push("");return v()});K(7,"mat-icon");Q(8," close ");L()()();F(9,XPa,2,0,"mat-error",12);L()}a&2&&(a=b.$index,b=P(),B(5),I("name",
Gg("source_",a)),Cg("ngModel",b.rewriteSourcesList[a]),B(),I("disabled",b.rewriteSourcesList.length===1&&!YPa(b.rewriteSourcesList[a])),B(3),G(ZPa(b,b.rewriteSourcesList[a])?-1:9))},aQa=function(a){a&1&&Yf(0,null,0)},bQa=function(a){a&1&&M(0,"source-urls-form",2,1);a&2&&(a=P(),I("showWarning",a.showWarning()))},dQa=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(" ",cQa.get(a)," "))},eQa=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);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.otherReason,c)||(d.otherReason=c);return v(c)});L()()}a&2&&(a=P(2),B(5),Cg("ngModel",a.otherReason))},fQa=function(a){a&1&&M(0,"source-urls-form-wrapper",13,2);a&2&&I("showWarning",!0)},gQa=function(a){a&1&&F(0,eQa,7,1)(1,fQa,2,1,"source-urls-form-wrapper",13);a&2&&(a=P(),G(a.sessionDeletionEnabled||
!a.hasPrivateContent()?0:1))},hQa=function(a){a&1&&(K(0,"mat-error",10),$f(1,3),L());a&2&&(B(),ag("*Please select some reasons or provide other feedback."),sna(28))},iQa=function(a){a&1&&Yf(0,null,0)},jQa=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()))},kQa=function(a){a&
1&&(K(0,"div",2)(1,"span",4),Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.confirmationMessage," "))},lQa=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$)))},mQa=function(a){a&1&&Yf(0,null,0)},nQa=function(a){a&1&&M(0,"feedback-with-rewrite",
1);a&2&&(a=P(),I("messageData",a.messageData()))},oQa=function(a){a&1&&Yf(0,null,0)},pQa=function(a){a&1&&M(0,"interactive-elements",1);a&2&&(a=P(),I("interactiveElements",a.interactiveElements()))},qQa=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()()()}},rQa=function(a){a&1&&(K(0,"mat-icon",2),Q(1,"note"),L())},sQa=function(a){a&1&&M(0,"img",3);a&2&&(a=P().$implicit,I("src",Fg(a.getIconUrl()),Pe))},tQa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",6),Q(2,"public"),L(),K(3,"span"),Q(4,"External"),L()())},uQa=function(a){a&1&&M(0,"private-citation-chip-tooltip")},wQa=function(a,b){if(a&1){var c=t();K(0,"div",1);F(1,rQa,2,0,"mat-icon",2)(2,sQa,1,2,"img",3);K(3,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v(vQa(e,d))});Q(4);
L();F(5,tQa,5,0,"div",5);F(6,uQa,1,0,"private-citation-chip-tooltip");L()}a&2&&(a=b.$implicit,b=P(2),B(),G(Ri(a,6)?1:a.getIconUrl()?2:-1),B(2),I("href",Fg(a.getUrl()),Pe)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),S("",a.getTitle()||a.getUrl()," "),B(),G(Ri(a,6)?5:-1),B(),G(a.getIsPrivateDocument()?6:-1))},xQa=function(a){a&1&&(K(0,"div",0),Q(1," Sources "),L(),Qf(2,wQa,7,9,"div",1,Pf));a&2&&(a=P(),B(2),Rf(a.citedNonRecitationDocuments()))},zQa=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(vQa(e,d))});Q(3);L()()()}a&2&&(a=b.$implicit,b=P(2),B(2),I("href",Fg(a.getUrl()),Pe)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),S("",yQa(a)," "))},AQa=function(a){a&1&&(K(0,"div",0),Q(1," Licensed Sources "),L(),K(2,"ol",7),Qf(3,zQa,4,6,"li",8,Pf),L());a&2&&(a=P(),B(3),Rf(a.recitationSources()))},BQa=function(a){a&1&&Yf(0,null,0)},CQa=function(a){a&1&&M(0,"message-citations",
1);a&2&&(a=P(),I("messageData",a.messageData()))},DQa=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),Ag(U(3,2,a.duckieLoadingPhrase$)))},EQa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S("",a.isExpanded?"Hide":"Show"," thinking"))},FQa=function(a){a&1&&Yf(0)},HQa=function(a){if(a&1){var b=t();K(0,"div",2)(1,"p",3)(2,"button",4);N("click",function(){u(b);var e=P(),f=P(),g=e.id;e.isExpanded=!e.isExpanded;var k=f.messagePartsService,
m=e.id;k.expansionStates.set(m,!k.isExpanded(m));e.isExpanded=f.messagePartsService.isExpanded(e.id);km(f.duckieEventTrackerService,lm((new mm).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,DQa,4,
4);T(4,"async");Nf(5,EQa,2,1,"span");K(6,"mat-icon",5);Q(7);L()()();K(8,"div",6);E(9,FQa,1,0,"ng-container",7);L()()}if(a&2){a=P();var c=P(),d=sg(3);B(2);Kf("aria-expanded",a.isExpanded);B();G(c.experimentsService.duckieStreamingMvpEnabled&&U(4,10,c.isStreamingThoughts$)?3:5);B(4);Ag(a.isExpanded?"expand_less":"expand_more");B();yg("hidden",!a.isExpanded)("padded-s",a.isExpanded);Kf("aria-hidden",!a.isExpanded);B();I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(12,GQa,a.hiddenMessageParts))}},
IQa=function(a){a&1&&Yf(0)},JQa=function(a){a&1&&E(0,IQa,1,0,"ng-container",7);if(a&2){a=P();P();var b=sg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,GQa,a.hiddenMessageParts))}},KQa=function(a,b){a&1&&F(0,HQa,10,14,"div",2)(1,JQa,1,4,"ng-container");a&2&&(a=P(),G(a.experimentsService.displayDuckieThoughtsEnabled?0:b.hasAnyThought?-1:1))},LQa=function(a){a&1&&Yf(0)},NQa=function(a){a&1&&E(0,LQa,1,0,"ng-container",7);if(a&2){a=P().$implicit;P(2);var b=sg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Kg(2,MQa,a))}},OQa=function(a,b){a&1&&(M(0,"span",9),F(1,NQa,1,4,"ng-container"));a&2&&(a=b.$implicit,I("innerHtml",a.html,Oe),B(),G(a.functionCalls.length>0?1:-1))},PQa=function(a,b){a&1&&Qf(0,OQa,2,2,null,null,Pf);a&2&&Rf(b.parts)},QQa=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),Ag(a[1]))},RQa=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),Qf(6,QQa,5,
2,"div",15,Pf),L()());a&2&&(a=b.$implicit,B(3),Ag(a.name),B(3),Rf(a.args))},SQa=function(a,b){a&1&&(K(0,"div",10),Qf(1,RQa,8,1,"div",11,Pf),L());a&2&&(a=b.part,B(),Rf(a.functionCalls))},TQa=function(a){a&1&&Yf(0,null,0)},UQa=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()))},VQa=function(a){a&1&&M(0,"img",0);a&
2&&(a=P(),I("src",a.avatarUrl,Pe))},WQa=function(a){a&1&&M(0,"img",12);if(a&2){a=P();yg("custom-logo",!!a.agentIconUrl());var b;I("src",(b=a.agentIconUrl())!=null?b:"https://www.gstatic.com/devnotify/duckie256.png",Pe)}},XQa=function(a){a&1&&Q(0," You ")},YQa=function(a){a&1&&Q(0);if(a&2){a=P();var b;S(" ",(b=a.agentDisplayName())!=null?b:"Duckie"," ")}},ZQa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",13),Q(2," warning "),L(),Q(3," Contains licensed content, use with caution "),K(4,"a",14)(5,"mat-icon",
15),Q(6,"open_in_new"),L(),Q(7," View usage policy "),L()())},$Qa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(2),I("interactiveElements",a.messageData().interactiveElements))},aRa=function(a,b){a&1&&(M(0,"div",16),F(1,$Qa,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))},bRa=function(a){a&1&&(K(0,"p",6),Q(1," Responses were not retained because protected results were used in this thread. "),
L())},cRa=function(a){a&1&&(K(0,"div",7),Q(1),L());a&2&&(a=P(),B(),S(" ",a.messageData().text," "))},dRa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(),I("interactiveElements",a.messageData().interactiveElements))},eRa=function(a){a&1&&M(0,"typing-dots");a&2&&(a=P(),yg("use-compact-view",a.useCompactView()))},fRa=function(a){a&1&&(K(0,"p",10),Q(1," No response available, please retry. "),L())},gRa=function(a){a&1&&M(0,"message-citations-wrapper",17);a&2&&(a=P(2),I("messageData",
a.messageData()))},hRa=function(a){a&1&&M(0,"message-metadata",17);a&2&&(a=P(2),I("messageData",a.messageData()))},iRa=function(a){a&1&&(F(0,gRa,1,1,"message-citations-wrapper",17),F(1,hRa,1,1,"message-metadata",17),T(2,"async"));a&2&&(a=P(),G(a.messageData().isFallback?-1:0),B(),G(U(2,2,a.showResponseMetadata$)?1:-1))},jRa=function(a){a&1&&M(0,"feedback-with-rewrite-wrapper",17);a&2&&(a=P(2),I("messageData",a.messageData()))},lRa=function(a){if(a&1){var b=t();K(0,"div",11);F(1,jRa,1,1,"feedback-with-rewrite-wrapper",
17);K(2,"button",18);N("click",function(){u(b);var c=P();return v(kRa(c))});K(3,"mat-icon");Q(4,"content_copy");L()()()}a&2&&(a=P(),B(),G(a.messageData().isUser?-1:1))},mRa=function(a){a&1&&Yf(0,null,0)},nRa=function(a){a&1&&M(0,"message",1);a&2&&(a=P(),I("messageData",a.messageData())("useCompactView",a.useCompactView())("isDuckieThinking",a.isDuckieThinking()))},oRa=function(a){a&1&&Yf(0,null,0)},pRa=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()))},qRa=function(a){a&1&&(Tf(0,"div",0),Vf(1,"img",1),Q(2),Uf());a&2&&(a=P(),B(),Sf("src",a.config.imgSrc,Pe)("alt",a.config.imgAlt),B(),S(" ",a.config.title," "))},rRa=function(a){a&1&&Yf(0,null,0)},sRa=function(a){a&1&&M(0,"thread-source-header",1);a&2&&(a=P(),I("thread",a.thread()))},tRa=function(a){a&1&&M(0,"mat-progress-spinner",
1);a&2&&I("diameter",32)},uRa=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))},wRa=function(a){if(a&1){var b=t();K(0,"button",23);N("click",function(){u(b);var c=P(4);return v(vRa(c))});K(1,"mat-icon",11);Q(2,"edit");L()()}},xRa=function(a){a&1&&(F(0,uRa,5,3),T(1,"async"),Nf(2,wRa,3,0,"button",20));if(a&2){var b;a=P(3);G((b=U(1,1,a.hasPrivateContent$))?0:2,b)}},
yRa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Big Bird "),L())},zRa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Agentic Search "),L())},ARa=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())},BRa=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))},CRa=
function(a){a&1&&(K(0,"div",27),Q(1),L());if(a&2){a=P(4);var b=dg(0);B();S("+",b.length-a.maxVisibleUserProvidedContextCount)}},DRa=function(a){if(a&1){var b=t();K(0,"div",14)(1,"p",25);Q(2);L();Qf(3,BRa,1,4,"link-chip",26,Of);F(5,CRa,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=dg(0);B(2);S(" Context (",c.length,") ");B();Rf(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"," ")}},ERa=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=dg(0),B(),I("matTooltip",Hg("",a.conversationAgentId,", ",a.conversationAgentModelId)))},FRa=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()())},GRa=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",Fg(a.imgSrc),Pe),B(),I("href",Fg(a.fullUrl),Pe),B(),Ag(a.fullUrl))},HRa=function(a){a&1&&(K(0,"div",17),Qf(1,GRa,4,5,"div",32,Of),L());a&2&&(P(3),a=dg(0),B(),Rf(a))},IRa=function(a){a&1&&(K(0,"div",18),M(1,"big-bird-outage-wrapper"),L())},JRa=function(a){a&
1&&M(0,"private-content-divider-tooltip")},KRa=function(a,b){a&1&&(F(0,JRa,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)}},LRa=function(a,b){a&1&&(F(0,KRa,2,3),T(1,"async"),M(2,"message-wrapper",35),T(3,"async"));if(a&2){var c;a=b.$implicit;b=P(3);G((c=U(1,4,b.firstPrivateContentMessageIndex$))?0:-1,c);B(2);I("messageData",a)("useCompactView",b.useCompactView())("isDuckieThinking",!!U(3,6,b.threadService.isDuckieThinking$))}},
ORa=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,xRa,3,3);T(7,"async");K(8,"mat-chip-listbox");F(9,yRa,2,0,"mat-chip-option",8);F(10,zRa,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(MRa(f))});Q(18,"Copy conversation as markdown");L()()()()();F(19,ARa,4,0,"div",13);F(20,DRa,10,4,"div",
14);F(21,ERa,4,3,"div",15);F(22,FRa,8,0,"div",16);T(23,"async");F(24,HRa,3,0,"div",17);L();F(25,IRa,2,0,"div",18);K(26,"div",19);Qf(27,LRa,4,8,null,null,NRa);L()}if(a&2){a=sg(16);P();var c=dg(0),d=P(),e=dg(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);Rf(c==null?null:c.messages)}},PRa=function(a){a&1&&(bg(0),T(1,"async"),F(2,ORa,29,16));a&2&&(a=
cg(U(1,1,P().thread$)),B(2),G(a?2:-1))},RRa=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(QRa(d,c))});L()}a&2&&(a=P(),I("messageData",U(1,1,a.lastDuckieMessage$)))},SRa=function(a){a&1&&Yf(0,null,0)},TRa=function(a){a&1&&M(0,"thread",3);a&2&&(a=P(),I("useCompactView",a.useCompactView())("inputPlaceholder",a.inputPlaceholder()))},
URa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),yg("mat-drawer-shown",a._isShowingBackdrop()))},VRa=function(a){a&1&&(K(0,"mat-drawer-content"),fg(1,2),L())},WRa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),yg("mat-drawer-shown",a._isShowingBackdrop()))},XRa=function(a){a&1&&(K(0,"mat-sidenav-content"),fg(1,2),L())},YRa=function(a){a&
1&&M(0,"onboarding-wrapper",1);a&2&&(a=P(),I("configurationKey",a.configurationKey))},ZRa=function(a){a&1&&M(0,"thread-wrapper",2);a&2&&I("useCompactView",!0)},$Ra=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},Bm=function(a){return new Am(a.year,a.month-1,a.day)},aSa=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},bSa=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},cSa=function(a,b){if(a&&b){var c=
l(b.split(":"));b=c.next().value;c=c.next().value;return new Cm(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))}},dSa=function(a,b){return a.size!==b.size?!1:[].concat(q(a)).every(function(c){return b.has(c)})},eSa=function(a){var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=l(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},fSa=function(a,b){if(!dSa(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}}},gSa=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)}))},hSa=function(a,b){return a.size>=b.size&&[].concat(q(b)).every(function(c){return a.has(c)})},Dm=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(!Dm(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?dSa(a,b):!1;if(sh(a)||sh(b))return sh(a)&&sh(b)?a===b||a.toString()===b.toString():!1;if(a instanceof W||b instanceof W)return a instanceof W&&b instanceof W?iSa(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(!jSa.call(b,f)||!Dm(a[f],b[f]))return!1}return!0}return!1},kSa=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=l(b),f=e.next();!f.done;f=e.next())if(Dm(c,f.value)){d=!0;break}d||b.push(c)}return b},lSa=function(a,b){for(var c=a.length-1;c>=0;c--)Dm(a[c],b)&&a.splice(c,1)},mSa=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},oSa=function(a){return Object.assign.apply(Object,[{}].concat(q(nSa.map(function(b){var c={};return c[b]=a[b],c}))))},Em=function(a){if(a!==null&&a!==void 0&&!["boolean","function","number","string"].includes(typeof a))if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Em(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof
Map){b=new Map;a=l(a);for(c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(Em(c),Em(d))}a=b}else if(a instanceof Set){b=new Set;a=l(a);for(c=a.next();!c.done;c=a.next())b.add(Em(c.value));a=b}else if(!sh(a))if(a instanceof W)a=a.clone();else{b={};c=l(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b[d]=Em(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},pSa=function(a){return typeof a===
"number"},qSa=function(a){return typeof a==="string"},Fm=function(a){return Array.isArray(a)&&a.every(qSa)},rSa=function(a){return Array.isArray(a)&&a.every(pSa)},sSa=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},tSa=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},uSa=function(a){if(a){if(pSa(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new Am(b)}b=
a.split("/");if(b.length===3)return a=Gm(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new Am(a,Gm(b[0])-1,Gm(b[1]));if(b.length===1)return uSa(Number(a))}return new Am},vSa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},wSa=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},xSa=function(a,b){return a.map(function(c){return c[b]})},ySa=function(a,b){return a.filter(function(c){return!b.has(c)})},zSa=function(a,b){for(var c=l(a),d=c.next();!d.done;d=
c.next())if(!b.has(d.value))return!1;b=l(b);for(c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0},Hm=function(a,b){return ySa(a,new Set(b))},ASa=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(Aa).filter(function(d){return!!d})},BSa=function(a,b){a=new URL(a);return a.host+a.pathname+b},Im=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},Jm=function(a){a=Im(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},CSa=function(a){return a?aSa(uSa(a)):null},DSa=function(a){return a?(a=Km(a),isNaN(a)?null:a):null},FSa=function(a){return ESa.format(Bm(a))},GSa=function(a){return a.textValue!=null?a.textValue:a.dateValue!=null?FSa(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(FSa).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=null?a.repeatedNumericValue.values.map(String).join(", "):""},HSa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},ISa=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}},JSa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},KSa=function(a){return a.user!==void 0},LSa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return pj(a.replace(/_/g," ").toLowerCase())}},MSa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},Mm=function(a){return a?a.map(Lm):[]},Nm=function(a){a=
(a!=null?a:[]).map(function(b){return{sortKey:Lm(b),user:b}});a.sort(function(b,c){return b.sortKey.localeCompare(c.sortKey)});return a.map(function(b){return b.user})},Lm=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":MSa(a)?Om(a)||"[No Data]":"[No Data]":""},Om=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Pm=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},NSa=function(a){var b=
[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Pm(c.value));return b},Qm=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""}},Tm=function(a,b,c,d){var e;return{status:a,displayValue:(e=Sm.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},ZSa=function(){return[OSa,PSa,QSa,RSa,SSa,TSa,USa,VSa,WSa,XSa,YSa]},$Sa=function(a){var b=a.getId(),c=Um(a,3,void 0,jb);var d=Vm(a,2,Oi(),jb);a=Wm(a,4,Oi(),jb);return Ok({id:b,std_offset:c,names:d,transitions:a||[]})},an=function(a){var b=a.emailAddress,
c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Xm;b&&Ym(e,1,b);c&&Ym(e,2,c);(d==null?0:d.length)&&Zm(e,4,d);if(a)switch(a){case "UNSPECIFIED":$m(e,3,0);break;case "ACTIVE":$m(e,3,1);break;case "DELETED":$m(e,3,2);break;case "UNAVAILABLE":$m(e,3,3);break;default:wb(a)}return e},cn=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=xi(a,2))b.obfuscatedEmailAddress=c;c=Ii(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("ad`"+c);}a=Vm(a,4,Oi(bn));if(a==null?0:a.length)b.aliases=a;return b},dn=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},en=function(a){if(a!=null)return String(a)},fn=function(a){if(a!=null&&a!=="0"&&(typeof a!=="number"||Number.isInteger(a)&&!(a<=0)))return String(a)},gn=function(a){return a==null?void 0:a},aTa=function(){return function(a){return a==null?"<none>":a}},hn=function(a){return a!=
null},bTa=function(a){if(a!=null)return a/1E3},eTa=function(a){var b=a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=jn(a,4);var f=X(a,cTa,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:xi(f,3),theme:dTa[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:Ni(a,Xm,10,Oi()).length>0?Ni(a,Xm,10,Oi()).map(cn):void 0}},
fTa=function(a){return eTa(a.getIt())},gTa=function(a){return a.getIt().getTrackersList().map(eTa)},hTa=function(a){return{trackers:a.getIt().getTrackersList().map(eTa),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},iTa=function(a){return console==null?!1:typeof console[a]==="function"},kn=function(){iTa("debug")&&console.debug.apply(console,ad.apply(0,arguments))},ln=function(){iTa("info")&&console.info.apply(console,ad.apply(0,arguments))},jTa=function(){iTa("log")&&
console.log.apply(console,ad.apply(0,arguments))},mn=function(){iTa("warn")&&console.warn.apply(console,ad.apply(0,arguments))},kTa=function(){iTa("error")&&console.error.apply(console,ad.apply(0,arguments))},on=function(a){if(a!=null)return nn(a)},nn=function(a){return Mb(a)?Number(a):String(a)},lTa=function(a){if(a!=null){var b=a.getYear();if(b==null)mn("No year. dateToJs");else{var c=a.getDay();if(c==null)mn("No day. dateToJs");else if(a=a.getMonth(),a==null)mn("No month. dateToJs");else return{year:b,
day:c,month:a}}}},mTa=function(a){var b=new om;pn(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},qn=function(a){if(a!=null){var b=nn(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},rn=function(a){var b=new ej;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},nTa=function(a){var b=new tn;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},oTa=function(a){if(a!=null){var b=nn(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},pTa=function(a){if(a!=null)return Number(a.toDate())},
un=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 rn({seconds:a,nanos:b})},qTa=function(a){return qn(un(a*1E3))},vn=function(a){if(!a)return 0;a=nn(a.getSeconds())*1E9+a.getNanos();return Math.round(a/1E3)},rTa=function(a){return a?a==="ASCENDING"?"asc":"desc":""},wn=function(a,b,c){return function(d,e){e=e===void 0?c:e;return sTa(d,a,b,e)}},sTa=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))},xn=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},yn=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:a.localeCompare(b)},OTa=function(a){var b={};Qi(a,1)&&(b.showFullHistory=Ri(a,1));Qi(a,2)&&(b.useCodefont=Ri(a,2));zn(a,5)&&(b.resultsPerPage=Um(a,5));Qi(a,26)&&(b.showRecentEventsFirst=Ri(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns=
{column:c.getColumnList().map(tTa).filter(hn)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(uTa).filter(hn)};wm(a,7)&&(b.bannerMessageId=xi(a,7));if(c=X(a,vTa,3)){var d={};xm(c,1)&&(d.reportedPriority=An(Ii(c,1)));xm(c,2)&&(d.assignedPriority=An(Ii(c,2)));xm(c,3)&&(d.verifiedPriority=An(Ii(c,3)));xm(c,4)&&(d.ccdPriority=An(Ii(c,4)));xm(c,9)&&(d.collaboratorPriority=An(Ii(c,9)));xm(c,5)&&(d.starredPriority=An(Ii(c,5)));Qi(c,6)&&(d.excludeChangesByMe=Ri(c,6));Qi(c,7)&&(d.unsubscribeFromAll=
Ri(c,7));Qi(c,8)&&(d.enableV2Prefs=Ri(c,8));b.notificationPreferences=d}if(d=X(a,wTa,9)){c={showHotlists:Ri(d,1),showStatusIcons:Ri(d,4),wrapComponents:Ri(d,3),wrapTitles:Ri(d,2),rtlComponentPath:Ri(d,5)};var e=wc(d,6,Vb);c.fieldStatus=Object.fromEntries(e.entries());d=wc(d,7,Vb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},zn(c,1)&&(d.leftSidebarWidth=Um(c,1)),Qi(c,2)&&(d.expandIssueSlo=Ri(c,2)),zn(c,3)&&(d.rightSidebarWidth=Um(c,3)),b.layoutPreferences=
d;if(d=a.getDateTimePreferences())c={},wm(d,1)&&(c.calendarFormat=xi(d,1)),wm(d,2)&&(c.timeFormat=xi(d,2)),d.hasTimeZone()&&(c.timeZone=d.getTimeZone()),xm(d,7)&&(d=Ii(d,7),c.sloEtaViewAs=xTa[d]),b.dateTimePreferences=c;if(d=X(a,Bn,8))c={},xm(d,1)&&(d=d.getDensity(),c.density=yTa[d]),b.themePreferences=c;if(c=a.getHomepagePreferences())d={},xm(c,1)&&(d.resourceType=zTa(Ii(c,1,1))),Pb(tm(c,2))!=null&&(d.resourceId=Cn(c,2)),b.homepagePreferences=d;if(c=X(a,ATa,17))d={},Qi(c,1)&&(d.enableAllHotkeys=
Ri(c,1,!0)),b.keyboardPreferences=d;Pb(tm(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=Cn(a,16));Qi(a,18)&&(b.autoCcOnComment=Ri(a,18));Ji(a,BTa,33)&&(e=X(a,BTa,33),c=Ii(e,3),d=Ii(e,2),e=Ii(e,1),b.commentFormattingPreferences={commentCreateOverride:CTa(c),commentDisplayOverride:CTa(d),lastPublishMode:CTa(e)});Ji(a,DTa,21)&&(c=X(a,DTa,21),d={},Qi(c,2)&&(d.announcementDismissed=Ri(c,2)),Qi(c,1)&&(d.enableBugScreensaver=Ri(c,1)),b.bugScreensaverPreferences=d);Ji(a,ETa,24)&&(c=X(a,ETa,24),d={},Dn(c,
1)&&(d.announcementDismissedMillis=nn(En(c,1))),b.g3nPreferences=d);if(c=X(a,FTa,23))c=Ni(c,Fn,1,Oi()),b.teamWarningPreferences={componentTeamWarnings:c.map(GTa)};c=xc(a,25,ej,Vb);c.size&&(b.dismissalTimestamps=HTa(c));c=a.getCollapsedMap();c.size&&(b.collapsed=Object.fromEntries(c.entries()));Qi(a,29)&&(b.showInlineImages=a.getShowInlineImages());Ji(a,ITa,28)&&(c=X(a,ITa,28),d={},xm(c,1)&&(d.commentFilter=JTa(Ii(c,1))),b.commentFilterPreferences=d);if(c=X(a,Gn,31))b.missionControlPreferences=KTa(c);
Ji(a,LTa,32)&&(b.scopePreferences=MTa(X(a,LTa,32)));c=xc(a,34,Hn,Ub);if(c.size){a=new Map;c=l(c.entries());for(d=c.next();!d.done;d=c.next())e=l(d.value),d=e.next().value,e=e.next().value,a.set(String(d),{open:e.getOpen(),searchScope:NTa[Ii(e,2,1)],componentScope:In(e,3),includeDescendants:Ri(e,4)});b.assistiveIssuePickerPreferences=a}return b},tTa=function(a){if(a.hasType()){var b=a.getType();b={type:PTa[b]};a.hasCustomFieldId()&&(b.customFieldId=nn(a.getCustomFieldId()));return b}},uTa=function(a){var b=
a.getColumn();if(b=b&&tTa(b)){if(xm(a,2))a:switch(a=Ii(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}}},An=function(a){return QTa[a]},CTa=function(a){if(a!==0)return RTa(STa[a])},zTa=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)}},
GTa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asString());Dn(a,2)&&(b.dismissMillis=nn(En(a,2)));return b},HTa=function(a){a=Array.from(a.entries(),function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},JTa=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)}},MTa=function(a){var b=
jn(a,1),c=qn(X(a,ej,2));a=Ni(a,Jn,3,Oi()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:In(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},WTa=function(a){var b=TTa(UTa(new LTa,a.starredTeams),a.starredTriageViews.map(function(c){var d=(new Jn).setTeamId(c.teamId);return Kn(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&VTa(b,rn(a.lastAutomaticStarsUpdate));return b},KTa=function(a){var b=zn(a,3)?Um(a,3):void 0,c=zn(a,6)?Um(a,6):void 0,d=zn(a,5)?Um(a,
5):void 0,e=zn(a,4)?Um(a,4):void 0,f=Qi(a,10)?Ri(a,10):void 0,g=Qi(a,11)?Ri(a,11):void 0,k=Qi(a,12)?Ri(a,12):void 0,m=Ln(a,7,Oi()).map(function(R){return XTa[R]}),r=Ln(a,8,Oi()).map(function(R){return XTa[R]}),w=YTa(Ni(a,Mn,18,Oi())),x=ZTa(Ni(a,Nn,19,Oi())),D=$Ta(Ni(a,On,20,Oi())),H=aUa(Ni(a,Pn,21,Oi())),J=bUa(Ni(a,Qn,22,Oi())),O=cUa(Ni(a,Rn,24,Oi()));b={workAreaUrls:Vm(a,1,Oi(bn)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,needsAttentionSources:m,needsAttentionBuganizerFilteredSignals:w,
needsAttentionDriveFilteredSignals:x,needsAttentionGerritFilteredSignals:D,needsAttentionChangelistFilteredSignals:H,needsAttentionGoogleTasksFilteredSignals:J,needsAttentionIrmFilteredSignals:O,myTasksSources:r,hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:g,isMyTasksSourcesConfigured:k};c=wc(a,9,kda);c.size&&(b.workAreaQuickFilters=dUa(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},dUa=function(a){var b={};a=l(a.entries());for(var c=a.next();!c.done;c=
a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;(d=eUa(d))&&(b[c]=d)}return b},fUa=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}},eUa=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"}},vUa=function(a){var b=new Sn;a.showFullHistory!=null&&aj(b,1,a.showFullHistory);a.useCodefont!=null&&aj(b,2,a.useCodefont);a.resultsPerPage!=null&&Tn(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(gUa(a.displayColumns));if(a.sortColumns!=null){var c=hUa(a.sortColumns);Zi(b,Un,6,c)}a.bannerMessageId!=
null&&yj(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new vTa;d=Vn(d,1,Wn[c.reportedPriority]);d=Vn(d,2,Wn[c.assignedPriority]);d=Vn(d,3,Wn[c.verifiedPriority]);d=Vn(d,4,Wn[c.ccdPriority]);d=Vn(d,9,Wn[c.collaboratorPriority]);d=Vn(d,5,Wn[c.starredPriority]);d=aj(d,6,c.excludeChangesByMe);d=aj(d,7,c.unsubscribeFromAll);c=aj(d,8,c.unsubscribeFromAll);Zi(b,vTa,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new wTa,d=aj(d,1,c.showHotlists),
d=aj(d,2,c.wrapTitles),d=aj(d,3,c.wrapComponents),d=aj(d,4,c.showStatusIcons),d=aj(d,5,c.rtlComponentPath),c.fieldStatus!=null&&iUa(c.fieldStatus,wc(d,6,Vb)),c.modeForField!=null&&iUa(c.modeForField,wc(d,7,Vb)),Zi(b,wTa,9,d));a.layoutPreferences!=null&&(c=a.layoutPreferences,d=new jUa,c.leftSidebarWidth!=null&&Tn(d,1,c.leftSidebarWidth),c.expandIssueSlo!=null&&aj(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&Tn(d,3,c.rightSidebarWidth),Zi(b,jUa,10,d));a.dateTimePreferences!=null&&(c=a.dateTimePreferences,
d=new Xn,d=yj(d,1,c.calendarFormat),d=yj(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Vn(d,7,kUa[c.sloEtaViewAs]),Zi(b,Xn,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new Bn).setDensity(lUa[c.density]),Zi(b,Bn,8,c));if(a.homepagePreferences!=null){c=a.homepagePreferences;d=new mUa;if(c.resourceType!=null){var e=nUa(c.resourceType);Vn(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);Zi(b,mUa,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,d=new ATa,c=aj(d,1,c.enableAllHotkeys),
Zi(b,ATa,17,c));a.newFeaturesAcknowledgedMillis!=null&&Yn(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&aj(b,18,a.autoCcOnComment);a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new BTa,c.commentCreateOverride&&Vn(d,3,oUa[pUa(c.commentCreateOverride)]),c.commentDisplayOverride&&Vn(d,2,oUa[pUa(c.commentDisplayOverride)]),c.lastPublishMode&&Vn(d,1,oUa[pUa(c.lastPublishMode)]),Zi(b,BTa,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,
d=new DTa,c.enableBugScreensaver!=null&&aj(d,1,c.enableBugScreensaver),c.announcementDismissed!=null&&aj(d,2,c.announcementDismissed),Zi(b,DTa,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new ETa,c.announcementDismissedMillis!=null&&Kn(d,1,c.announcementDismissedMillis),Zi(b,ETa,24,d));a.teamWarningPreferences!=null&&(c=qUa(a.teamWarningPreferences),Zi(b,FTa,23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=xc(b,25,ej,Vb),d=l(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=
l(e.value);e=f.next().value;f=f.next().value;c.set(e,rUa(f))}a.collapsed!=null&&iUa(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&aj(b,26,a.showRecentEventsFirst);a.showInlineImages!=null&&aj(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new ITa,d.commentFilter!=null&&(d=sUa(d.commentFilter),Vn(c,1,d)),Zi(b,ITa,28,c));a.missionControlPreferences!=null&&(c=tUa(a.missionControlPreferences),Zi(b,Gn,31,c));a.scopePreferences!=null&&(c=WTa(a.scopePreferences),
Zi(b,LTa,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=xc(b,34,Hn,Ub),c=l(c.entries()),d=c.next();!d.done;d=c.next()){d=l(d.value);var g=d.next().value;f=d.next().value;d=a;e=d.set;g=mb(g);var k=(new Hn).setOpen(f.open);k=Vn(k,2,uUa[f.searchScope]);k=Kn(k,3,f.componentScope);f=aj(k,4,f.includeDescendants);e.call(d,g,f)}return b},gUa=function(a){return(new Zn).setColumnList(a.column.map(function(b){return wUa(b)}))},wUa=function(a){var b=(new $n).setType(xUa[a.type]);
a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},hUa=function(a){return(new Un).setColumnList(a.column.map(function(b){var c=(new ao).setColumn(wUa(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 Vn(c,2,b)}))},nUa=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)}},RTa=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";switch(yUa[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},pUa=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";switch(bo[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"}},qUa=function(a){var b=new FTa;a.componentTeamWarnings!=null&&zUa(b,a.componentTeamWarnings.map(function(c){var d=new Fn;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&Kn(d,2,c.dismissMillis);return d}));return b},sUa=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)}},tUa=function(a){var b=
new Gn;a.workAreaUrls&&Zm(b,1,a.workAreaUrls);a.collapsed&&iUa(a.collapsed,b.getCollapsedMap());if(a.workAreaQuickFilters){for(var c=a.workAreaQuickFilters,d={},e=l(Object.keys(c)),f=e.next();!f.done;f=e.next())f=f.value,d[f]=fUa(c[f]);iUa(d,wc(b,9,kda))}a.myTasksTab!=null&&Tn(b,3,a.myTasksTab);a.workAreaTab!=null&&Tn(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&Tn(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=null&&Tn(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&AUa(b,a.needsAttentionSources.map(BUa));
a.myTasksSources&&CUa(b,a.myTasksSources.map(BUa));a.hideBadgeInNav!=null&&aj(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&aj(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=null&&aj(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&DUa(b,co(a.needsAttentionBuganizerFilteredSignals,function(g,k){return(new Mn).setSignal(EUa[g]).setChecked(k)}));a.needsAttentionDriveFilteredSignals&&FUa(b,co(a.needsAttentionDriveFilteredSignals,
function(g,k){return(new Nn).setSignal(GUa[g]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&HUa(b,co(a.needsAttentionGerritFilteredSignals,function(g,k){return(new On).setSignal(IUa[g]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&JUa(b,co(a.needsAttentionChangelistFilteredSignals,function(g,k){return(new Pn).setSignal(KUa[g]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&LUa(b,co(a.needsAttentionGoogleTasksFilteredSignals,function(g,k){return(new Qn).setSignal(MUa[g]).setChecked(k)}));
a.needsAttentionIrmFilteredSignals&&NUa(b,co(a.needsAttentionIrmFilteredSignals,function(g,k){return(new Rn).setSignal(OUa[g]).setChecked(k)}));return b},BUa=function(a){return PUa[a]},YTa=function(a){return a.reduce(function(b,c){return b.set(QUa[c.getSignal()],c.getChecked())},new Map)},ZTa=function(a){return a.reduce(function(b,c){return b.set(RUa[c.getSignal()],c.getChecked())},new Map)},$Ta=function(a){return a.reduce(function(b,c){return b.set(SUa[c.getSignal()],c.getChecked())},new Map)},aUa=
function(a){return a.reduce(function(b,c){return b.set(TUa[c.getSignal()],c.getChecked())},new Map)},bUa=function(a){return a.reduce(function(b,c){return b.set(UUa[c.getSignal()],c.getChecked())},new Map)},cUa=function(a){return a.reduce(function(b,c){return b.set(VUa[c.getSignal()],c.getChecked())},new Map)},iUa=function(a,b){a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},co=function(a,b){var c=[];a.forEach(function(d,
e){c.push(b(e,d))});return c},mo=function(){if(WUa==null){eo==null&&(eo=new XUa(YUa.buganizerSessionJspb));Ji(eo,fo,2)||eo.setConfig(new fo);if(!Ji(eo,go,9)){var a=eo;var b=new go;Zi(a,go,9,b)}eo.hasUser()||eo.setUser(new ho);Ji(eo,Sn,7)||(a=eo,b=new Sn,Zi(a,Sn,7,b));a=eo;b=a.hasUser()?a.getUser():new ho;b=Ri(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};
var c=Ji(a,fo,2)?a.getConfig():new fo;for(var d=new Map,e=l(wc(c,4,ida).entries()),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;d.set(f,g)}e=new ZUa(io(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:jn(c,13).map(fn).filter(hn),indefiniteRetentionComponentsAllowlist:jn(c,20).map(fn).filter(hn),trustedEmailDomainsAllowlist:Vm(c,22,Oi(bn)),helpMeFixSidebarComponentAllowlist:jn(c,23).map(fn).filter(hn),batchDedupeComponentAllowlist:jn(c,28).map(fn).filter(hn),gppLlmChatComponentAllowlist:jn(c,30).map(fn).filter(hn),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl(),experimentState:e};d=OTa(Ji(a,Sn,7)?a.getUserPreferences():new Sn);
f=Ji(a,go,9)?X(a,go,9):new go;e=Ni(f,jo,1,Oi()).map($Sa);Ji(f,ko,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:f.getMessageId(),dismissible:Ri(f,3,void 0,jb),tags:f.getTagsList(bn)}):f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();g=a.getCspNonce();var k=a.getFrontendAccessMode(),m=a.getMustAcknowledgeTerms(),r=a.getShowNewFeaturesDialog(),w=a.getAppBaseHref(),x=Ji(a,lo,11)?fTa(a.getTracker()):null,D;Ji(a,$Ua,12)?(D=a.getPassiveLoginIframeUrl())?(D=Ml(D,4),D=D===null||D===
void 0?null:wh(D)):D=null:D=null;WUa={user:b,config:c,xsrfToken:f,cspNonce:g,frontendAccessMode:k,mustAcknowledgeTerms:m,showNewFeaturesDialog:r,userPreferences:d,preload:e,appBaseHref:w,tracker:x,passiveLoginIframeUrl:D,userRequiresCaptcha:Ri(a,13)}}return WUa},aVa=function(a){return a.frontendAccessMode||"INTERNAL"},bVa=function(){return aVa(mo())==="INTERNAL"},no=function(a,b){if(b)vsa(a,b);else for(;a.lastChild;)a.lastChild.remove()},cVa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;
a=a.nextSibling}return!0},oo=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},dVa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},eVa=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");no(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");no(b,a.markdownFormat.content);return b.innerText}return a.literalFormat?(b=document.createElement("div"),
no(b,a.literalFormat.content),b.innerText):""},po=function(a){return!!a&&fVa.test(a)&&!gVa.test(a)},jVa=function(a){a=a===void 0?"":a;return!hVa(a)||a.endsWith("-robots@google.com")||iVa(a)},iVa=function(a){return kVa.some(function(b){return a.endsWith(b)})},hVa=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},qo=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},lVa=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":""))+")"},mVa=function(a){if(a){var b=new Cm;b.setTime(a.getTime());return b}},ro=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},nVa=function(a){if(a)return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},oVa=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)}},pVa=function(a){if(a==null)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});
return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},qVa=function(a){return a==null?!1:Date.now()>qo(a)},so=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},rVa=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},to=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},sVa=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,
g=(f=c.get(e))!=null?f:[];g.push(d);c.set(e,g)}return c},tVa=function(a,b){return rVa([].concat(q(a.keys())),function(c){return b(a.get(c),c)})},uVa=function(a){var b=new Map;a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(d,c)}return b},vVa=function(a){var b=new Map;a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},wVa=function(a,b){return(a!=null?a:
0)+(b!=null?b:0)},xVa=function(a){return a.length===0?0:a.reduce(wVa)/a.length},yVa=function(a,b){b=b===void 0?xVa(a):b;if(a.length===0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce(wVa)/(a.length-1);return Math.sqrt(a)},uo=function(a,b){if(a<5)return!1;if(!zVa.get(b)){var c=xVa(b),d=yVa(b,c);zVa.set(b,{mean:c,stdDev:d})}b=zVa.get(b);return a-b.mean>b.stdDev*2},vo=function(a){return!(a==null||!a.commentNumber)},AVa=function(a){return a.unlinkifiedComment!==""?!0:a.formattedComment?
eVa(a.formattedComment)!=="":!1},BVa=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},CVa=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},DVa=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)))},wo=function(a){var b;return a==null?void 0:(b=a.snapshot)==null?
void 0:b[0]},EVa=function(a){var b;return Lm((b=wo(a))==null?void 0:b.assigneeUser)||void 0},FVa=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("-")},GVa=function(a){if(a==null)return"";
var b=a.attachments.map(FVa).join("-"),c=[];if(a.commentReactions&&a.commentReactions.size>0){var d,e=l((d=a.commentReactions)==null?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=l(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var g,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(g=a.commentContentVerdict)==null?void 0:(k=g.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,a.commentRetention,
"["+c+"]"].join("-")},HVa=function(a){return a.map(function(b){return b.commentNumber}).filter(hn).reduce(function(b,c){return Math.max(b,c)},1)},IVa=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||GVa(d)!==GVa(e)))return!1}return!0},yo=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=xo.get(a))==null?void 0:d.open)!=null?e:!1},JVa=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=xo.get(a);return b==null?!1:!(b==null?0:b.open)},LVa=function(a){return KVa(a,"FIXED")},KVa=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)},MVa=function(a){return a.isArchived==null?!1:
!a.isArchived},NVa=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},PVa=function(){var a=zo;return wn(function(b){var c,d;return(d=OVa.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},xn)},QVa=function(){var a=zo;return wn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},yn)},RVa=function(){var a=zo;return wn(function(b){var c;
return(c=a(b))==null?void 0:c.snapshot[0].type},yn)},SVa=function(){var a=zo;return wn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},yn)},TVa=function(a){return wn(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},xn)},UVa=function(a){return wn(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},xn)},
XVa=function(){var a=VVa;return wn(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===WVa?1:c!==WVa&&b?c?yn(b,c):1:-1})},YVa=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"},$Va=function(a){return wn(function(b){b=a(b);return ZVa[YVa(b)]},xn)},aWa=function(){var a=zo;return wn(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},xn)},Ao=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},bWa=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"},Bo=function(a){if(!bWa(a))return!1;var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=
9},cWa=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})}},eWa=function(a,b,c){b=dWa.get(c)||new Set(c.map(function(e){return e.issueId}));dWa.set(c,b);var d;a=l((d=a.parentIssueIds)!=null?d:[]);for(d=a.next();!d.done;d=a.next())if(b.has(d.value))return!1;return!0},gWa=function(a,b){fWa.get(b)||fWa.set(b,[b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?
void 0:f.oneDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=null?g:0})]);var c=l(fWa.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return uo(b[a],b)||uo(d[a],d)||uo(c[a],c)},hWa=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}},iWa=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}},jWa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.snapshot[0].componentId;var d=void 0,e=(d=b.get(c))!=null?d:0;b.set(c,e+1);if(!f||b.get(f)<b.get(c))var f=c}return f},kWa=function(a){var b=sVa(a,function(e){return e.issueId});a=[];b=l(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a.push(c+": "+d.map(function(e){return e.message}).join(", "))}return a.join("\n")},
Eo=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""},lWa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Eo(c);b.has(d)?b.get(d).push(c):b.set(d,[c])}return b},mWa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=[],e=void 0;d.push((e=Om(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},Go=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(Fo[a.allocation.involvement]);
else{var g;((g=a.allocation)==null?void 0:g.percentage)!==void 0&&c.push(Math.round(a.allocation.percentage*100)+"%")}var k;if((k=a.allocation)==null?0:k.startDate)b=a.allocation.startDate,c.push("Start: "+b.year+"-"+b.month+"-"+b.day);var m;if((m=a.allocation)==null?0:m.endDate)a=a.allocation.endDate,c.push("End: "+a.year+"-"+a.month+"-"+a.day)}return e+(c.length?" ("+c.join(" - ")+")":"")}return a.placeholder?"Placeholder: "+a.placeholder.count+" "+a.placeholder.role:""},nWa=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}},oWa=function(a){if(a.type!=="ANY_ISSUE_EDIT")return!1;var b,c,d,e,f,g,k,m;return!((b=a.content)==null?0:(c=b.issueModification)==null?0:(d=c.addMask)==null?0:d.length)&&!((e=a.content)==null?0:(f=e.issueModification)==null?0:(g=f.removeMask)==null?0:g.length)&&!((k=a.content)==null?0:(m=k.issueModification)==null?0:m.comment)},pWa=function(a,b){a=Em(a);var c,d=(c=a.content)==null?void 0:c.issueModification;b=b.snapshot[0];if(!d)return a;
var e;c=new Set((e=d.addMask)!=null?e:[]);var f;e=new Set((f=d.removeMask)!=null?f:[]);f=d.addState;d=d.removeState;c.has("status")&&(f==null?void 0:f.status)===b.status&&c.delete("status");c.has("priority")&&(f==null?void 0:f.priority)===b.priority&&c.delete("priority");c.has("severity")&&(f==null?void 0:f.severity)===b.severity&&c.delete("severity");var g,k;c.has("assignee")&&(f==null?void 0:(g=f.assigneeUser)==null?void 0:g.emailAddress)===((k=b.assigneeUser)==null?void 0:k.emailAddress)&&c.delete("assignee");
var m;!e.has("assignee")||((m=b.assigneeUser)==null?0:m.emailAddress)||e.delete("assignee");var r,w;c.has("verifier")&&(f==null?void 0:(r=f.verifierUser)==null?void 0:r.emailAddress)===((w=b.verifierUser)==null?void 0:w.emailAddress)&&c.delete("verifier");var x;!e.has("verifier")||((x=b.verifierUser)==null?0:x.emailAddress)||e.delete("verifier");var D,H,J=new Set((H=(D=b.ccUsers)==null?void 0:D.map(Om))!=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(Om(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 ba;if(d==null?0:(ba=d.ccUsers)==null?0:ba.length){var oa;d.ccUsers=d==null?void 0:(oa=d.ccUsers)==null?void 0:oa.filter(function(pb){return J.has(Om(pb))});var ta;(d==null?0:(ta=d.ccUsers)==null?0:ta.length)||e.delete("ccs")}else e.delete("ccs")}var ka,Ca=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!Ca.has(pb)});var ua;(f==null?0:(ua=f.hotlistId)==null?0:ua.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 Ca.has(pb)});var Ra;(d==null?0:(Ra=d.hotlistId)==null?0:Ra.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},qWa=function(a){var b=a.match(/```json\n([\s\S]*?)\n```/);if(b)return b[1];b=a.indexOf("{");var c=a.lastIndexOf("}");return b!==-1&&c!==-1&&b<c?a.substring(b,c+1):a},sWa=function(a,b){a=qWa(a);return rWa(a,b).filter(function(c){return!oWa(c)})},
rWa=function(a,b){a=tWa(a);if(!a)return[];if(a.triage_recommendations)var c=!0;else console.error("triage_recommendations is missing."),c=!1;return c?Object.values(a.triage_recommendations).map(function(d,e){var f=Date.now(),g=Math.floor(f/1E3);f=f%1E3*1E6;var k=nWa(),m=nWa(),r=[],w=[],x=void 0;d.assignee_email&&(k.assigneeUser=uWa(d.assignee_email),r.push("assignee"));d.cc_emails&&(k.ccUsers=d.cc_emails.map(uWa).filter(hn),r.push("ccs"));var D=fn(d.component_id);D&&(k.componentId=D,r.push("componentId"));
if(d.custom_fields_to_update){D=[];for(var H=[],J=l(d.custom_fields_to_update),O=J.next();!O.done;O=J.next())O=O.value,O.value!=null?(O=vWa(O),O!=null&&D.push(O)):H.push({customFieldId:O.field_id});D.length>0&&(k.customField=D,r.push("customField"));H.length>0&&(m.customField=H,w.push("customField"))}d.hotlist_ids_to_add&&(k.hotlistId=d.hotlist_ids_to_add.filter(hn),r.push("hotlists"));d.hotlist_ids_to_remove&&(m.hotlistId=d.hotlist_ids_to_remove.filter(hn),w.push("hotlists"));D=fn(d.issue_id);d.issue_comment&&
D&&(x={issueId:D,commentNumber:0,formattingMode:"MARKDOWN",version:0,unlinkifiedComment:d.issue_comment,redacted:!1,commentReactions:new Map,formattedComment:void 0,lastEditorUser:void 0,entityStatus:void 0,piiRetention:void 0,piiRetentionState:void 0,etag:void 0,lastModified:0},r.push("comment"));if(D=fn(d.mark_as_duplicate_of))k.duplicateOfIssueId=D,r.push("duplicateOfIssueId");d.priority&&(k.priority=d.priority,r.push("priority"));d.severity&&(k.severity=d.severity,r.push("severity"));d.status&&
(k.status=d.status,r.push("status"));d.verifier_email&&(k.verifierUser=uWa(d.verifier_email),r.push("verifier"));return{name:"recommendationSources/"+b+"/recommendations/"+e,source:"recommendationSources/"+b,resource:"issues/"+d.issue_id,type:D?"ISSUE_DEDUPLICATION":"ANY_ISSUE_EDIT",recommendation:D?"issues/"+D:"any-issue-edit",score:1,confidence:"VERY_HIGH",createTime:{seconds:g,nanos:f},content:{issueModification:{addState:k,addMask:r,removeState:m,removeMask:w,comment:x}},rationale:d.triage_decision_explanation?
{text:d.triage_decision_explanation,formattingMode:"MARKDOWN",createTime:{seconds:g,nanos:f}}:void 0}}):(console.error("Failed to validate JSON response:",a),[])},tWa=function(a){try{return JSON.parse(a)}catch(b){console.error("Failed to parse JSON response:",b,a)}},uWa=function(a){return a.includes("@")?Pm(a):Pm(a+"@google.com")},wWa=function(a){return/\d{4}-\d{2}-\d{2}/.test(a)?(a=new Date(a),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate()}):CSa(a)},vWa=function(a){var b=a.field_id;
if(!(b<=0))switch(a.type){case "TEXT":return{customFieldId:b,textValue:a.value};case "ENUM":return{customFieldId:b,enumValue:a.value};case "NUMERIC":return{customFieldId:b,numericValue:a.value};case "DATE":return(a=wWa(a.value))?{customFieldId:b,dateValue:a}:void 0;case "REPEATED_TEXT":return{customFieldId:b,repeatedTextValue:{values:a.value}};case "REPEATED_ENUM":return{customFieldId:b,repeatedEnumValue:{values:a.value}};case "REPEATED_NUMERIC":return{customFieldId:b,repeatedNumericValue:{values:a.value}};
case "REPEATED_DATE":return a=a.value.map(wWa).filter(hn),{customFieldId:b,repeatedDateValue:{values:a}}}},xWa=function(a){a&1&&M(0,"span",1);a&2&&(a=P(),I("innerHtml",a.data.htmlMessage,Oe))},yWa=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(),B(),Ag(a.data.message))},zWa=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," "))},AWa=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," "))},BWa=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()}},Ho=function(){return new CWa},DWa=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)}},EWa=function(a){function b(){var e,
f,g,k;return y(function(m){if(m.nextAddress==1){if(d||c.length===0)return m.return();d=!0;e=[].concat(q(c));c=[];f=l(e);g=f.next()}if(m.nextAddress!=3){if(g.done)return d=!1,z(m,b(),0);k=g.value;return z(m,a.apply(null,q(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}g=f.next();return m.jumpTo(2)})}var c=[],d=!1;return function(){var e=ad.apply(0,arguments),f=new CWa;c.push({args:e,returnValue:f});b();return f.promise}},FWa=function(a){var b=!1;return function(){var c=ad.apply(0,
arguments);if(!b)return b=!0,a.apply(null,q(c))}},GWa=function(a){var b=new Map;return function(){var c=ad.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}},VVa=function(a){return a},Jo=function(a){return function(){var b=Io.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}}},HWa=function(a){return function(b){b===!0?Io.setItem(a,"1"):
Io.removeItem(a)}},IWa=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in a&&"flagName"in a&&"value"in a?!0:!1},JWa=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?Date.parse(b.overrideUntilDate)>Date.now():!0})}},KWa=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.")},NWa=function(){if(LWa("flag-overrides")()){var a=Ko("flag-overrides")();
if(a&&typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&a.overrides.every(IWa))return JWa(a);MWa();console.warn("Could not parse flag overrides.")}},MWa=function(){Lo("flag-overrides")()},OWa=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;KWa();var d,e=((d=NWa())==null?void 0:d.overrides)||[];Lo("flag-overrides")({overrides:[].concat(q(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},PWa=function(a,b){OWa(a,b)},QWa=function(a){KWa();
var b,c=((b=NWa())==null?void 0:b.overrides)||[];Lo("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==a})})},TWa=function(a,b){b=b===void 0?mo().config:b;var c=c===void 0?RWa():c;if((c=c.get(a))!=null)a=c;else{var d;a=a in SWa?b.experimentState.getFlag(SWa[a]):(d=b.enabledFlags.get(a))!=null?d:!1}return a},VWa=function(){return function(a){return{response:a.getMutableResponse().getText(),citationResources:UWa(a.getMutableResponse())}}},UWa=function(a){return Ni(a,Mi,13,Oi()).filter(function(b){return cj(b,
WWa,6,dj)}).flatMap(function(b){var c;return b==null?void 0:(c=ym(b))==null?void 0:zm(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:Ri(b,6))!=null?f:!1}})},XWa=function(a){var b;return{paths:(b=a==null?void 0:Vm(a,1,Oi(bn)))!=null?b:[]}},ZWa=function(a){if(YWa.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)}},$Wa=function(a){var b;return(b=a==null?void 0:Vm(a,1,Oi()).map(ZWa).filter(hn))!=null?b:[]},aXa=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")}},cXa=function(a){return a.type==="CUSTOM_FIELD"?[bXa[xUa[a.type]],a.customFieldId].join(":"):bXa[xUa[a.type]]},eXa=function(a){return a.includes(":")?(a=l(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:Km(a)}):
{type:PTa[dXa[a]]}},fXa=function(a){var b;a==null?a=void 0:(a=Vm(a,1,Oi()),a=a==null?void 0:a.map(eXa));return(b=a)!=null?b:[]},gXa=function(a){var b=l(a.trim().split(" ")),c=b.next().value;a=b.next().value;qj(b);b=eXa(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},iXa=function(a){return a.map(hXa).join(",")},hXa=function(a){return cXa(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},jXa=function(a){return iXa(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(gXa))},Po=function(a){switch(Mo(a,No)){case 0:throw Error("gd");case 1:return{user:cn(a.getUser())};case 2:return{group:cn(a.getGroup())};
case 3:return{alias:Oo(a,3,No)};default:throw Error("hd");}},So=function(a){var b=new Qo;KSa(a)&&b.setUser(an(a.user));a.group!==void 0&&b.setGroup(an(a.group));a.alias!==void 0&&Ro(b,3,No,a.alias);return b},kXa=function(a){var b=new To;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("kd");
}return b},lXa=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("kd");}},nXa=function(a){if(a)return a=a.getAccessLevel(),{accessLevel:mXa[a]}},pXa=function(a){return(new Uo).setAccessLevel(oXa[a.accessLevel])},rXa=function(a){if(a)return(a=X(a,Vo,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:qXa(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},
a},qXa=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("ld`"+a);}},sXa=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("ld`"+a);}},tXa=function(a){var b=new Wo;b=Xo(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=sXa(a.severity);b=$m(b,3,c);b=Ym(b,4,a.judgementReason);a.judge&&
(a=an(a.judge),Zi(b,Xm,9,a));return b},uXa=function(a){return{contentJudgementId:nn(En(a,1))?String(En(a,1)):void 0,resourcePath:a.getResourcePath()||void 0,severity:qXa(a.getRestrictionSeverity()),judgementReason:xi(a,4),judge:cn(X(a,Xm,9))}},vXa=function(a){var b=new Wo;var c=sXa(a.severity);b=$m(b,3,c);return Ym(b,4,a.judgementReason)},xXa=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("md`"+
b);}}return{status:b,reason:wXa(a.getReason())}}},wXa=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("nd`"+a);}},yXa=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("nd`"+a);}},zXa=
function(a){if(a){var b=new Yo,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("md`"+d);}}return c.call(b,d).setReason(yXa(a.reason))}},AXa=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("nd`"+a);}},BXa=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=oTa(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=qn(X(a,ej,2)))!=null?c:null}}},CXa=function(a){var b=new Zo;if(a.retentionPeriod){var c=nTa(a.retentionPeriod);Zi(b,tn,1,c)}a.scheduledDeletionTime&&(a=rn(a.scheduledDeletionTime),Zi(b,ej,2,a));return b},EXa=function(a){var b=Ii(a,1);b=DXa[b];var c=Um(a,2),d=Ii(a,3);return{retentionSelection:b,retentionPeriodDays:c,piiRetentionSelection:DXa[d],
piiRetentionPeriodDays:Um(a,4),spiiRetentionPeriodDays:Um(a,5)}},GXa=function(a){var b=new $o;b=$m(b,1,FXa[a.retentionSelection]);b=pn(b,2,a.retentionPeriodDays);b=$m(b,3,FXa[a.piiRetentionSelection]);b=pn(b,4,a.piiRetentionPeriodDays);return pn(b,5,a.spiiRetentionPeriodDays)},HXa=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:throw Error("od`"+a);}},IXa=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;
case "INDEFINITE":return 2;default:throw Error("od`"+a);}},KXa=function(a){var b=fn(a.getAttachmentId_asString());var c=a.getFilename();var d=nn(a.getLength())||void 0,e=xi(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:xi(a,2),filename:a.getFilename(),length:nn(a.getLength()),etag:JXa(a.getEtag())||"",contentVerdict:rXa(a.getContentVerdict()),entityStatus:xXa(a.getEntityStatus()),piiRetentionState:BXa(a.getRestrictedRetentionState()),piiRetention:HXa(a.getRestrictedRetention())}},
MXa=function(a){var b=new ap;var c=new LXa;a=ica(a);c=dp(c,2,a);return Zi(b,LXa,5,c).setEntityStatus(zXa({status:"ACTIVE",reason:"UNSPECIFIED"}))},NXa=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},OXa=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"}},QXa=function(a){if(a!=null)return{customFieldId:gn(dn(nn(a.getCustomFieldId()))),standardField:PXa[Ii(a,Ti(a,ep,2))]}},SXa=function(a){var b=new fp;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&gp(b,2,ep,Kca(RXa[a.standardField]));return b},TXa=function(a){if(a){var b=dn(nn(a.getCustomFieldId()));if(b==null)mn("No customFieldId. customFieldValueToJs");else{b=
{customFieldId:b,displayValues:Ni(a,Ll,11,Oi()).map(function(D){return th(JFa(D)).toString()})};switch(a.getValueCase()){case 2:b.textValue=gn(Oo(a,2,hp));break;case 3:b.dateValue=lTa(a.getDateValue());break;case 4:b.enumValue=gn(Oo(a,4,hp));break;case 5:b.numericValue=gn(rm(a,Ti(a,hp,5)));break;case 6:var c,d;b.repeatedTextValue={values:(d=(c=jm(a,ip,6,hp))==null?void 0:c.getValuesList(bn))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=jm(a,ip,8,hp))==null?void 0:e.getValuesList(bn))!=
null?f:[]};break;case 9:var g,k;b.repeatedNumericValue={values:(k=(g=jm(a,jp,9,hp))==null?void 0:g.getValuesList(bn))!=null?k:[]};break;case 7:var m,r,w,x;b.repeatedDateValue={values:(x=(m=jm(a,kp,7,hp))==null?void 0:(r=m.getValuesList())==null?void 0:(w=r.map(lTa))==null?void 0:w.filter(hn))!=null?x:[]}}return b}}},VXa=function(a){var b=(new lp).setCustomFieldId(a.customFieldId);a.textValue!=null?Ro(b,2,hp,a.textValue):a.dateValue!=null?(a=mTa(a.dateValue),mp(b,3,hp,a)):a.enumValue!=null?Ro(b,4,
hp,a.enumValue):a.numericValue!=null?UXa(b,5,hp,a.numericValue):a.repeatedTextValue!=null?(a=(new ip).setValuesList(a.repeatedTextValue.values),mp(b,6,hp,a)):a.repeatedEnumValue!=null?(a=(new ip).setValuesList(a.repeatedEnumValue.values),mp(b,8,hp,a)):a.repeatedNumericValue!=null?(a=(new jp).setValuesList(a.repeatedNumericValue.values),mp(b,9,hp,a)):a.repeatedDateValue!=null&&(a=(new kp).setValuesList(a.repeatedDateValue.values.map(mTa)),mp(b,7,hp,a));return b},YXa=function(a){var b=nn(a.getCustomFieldId()),
c=WXa[a.getType()],d=!!Ri(a,4),e=a.getName(),f=a.getDescription()||"",g=TXa(X(a,lp,10));var k=Vm(a,8,Oi(bn));b={customFieldId:b,type:c,required:d,name:e,description:f,typedDefaultValue:g,allowedValue:k,fieldSignificance:XXa[Ii(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};nn(a.getComponentId())&&(b.componentId=a.getComponentId_asString());return b},ZXa=function(a){return YXa(a)},bYa=function(a){var b=new np;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));
b.setType($Xa[a.type]);op(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=VXa(a.typedDefaultValue);Zi(b,lp,10,c)}a.allowedValue&&Zm(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(aYa[a.fieldSignificance]);b.setShared(a.shared);return b},cYa=function(a){return{specId:nn(En(a,1)),estimate:xi(a,2),averageDays:rm(a,3),totalOpen:rm(a,4),totalComplete:rm(a,5)}},jYa=function(a){var b=new pp;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&&dYa(b,eYa(new fYa,a.numericSpec.multiplier));if(a.enumSpec){var c;gYa(b,hYa(new iYa,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new qp).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}$m(b,6,a)}return b},tp=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=rXa(c));c=void 0;var d=a.getFormattedComment();
d&&(c=rp(d));d=void 0;var e=X(a,Xm,3);e&&(d=cn(e));e=void 0;var f=a.getEtag();f&&(e=JXa(f));f=void 0;var g=a.getEntityStatus();g&&(f=xXa(g));g=void 0;var k=a.getRestrictedRetentionState();k&&(g=BXa(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:kYa(a.getFormattingMode()),formattedComment:c,lastEditorUser:d,lastModified:vn(a.getModifiedTime()),version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:g,
piiRetention:HXa(a.getRestrictedRetention()),redacted:Ri(a,13),etag:e,commentReactions:lYa(X(a,sp,17))}},rp=function(a){if(cj(a,mYa,1,up)){var b=jm(a,mYa,1,up);var c;b={plainSection:((c=Ni(b,vp,1,Oi()))!=null?c:[]).map(nYa)}}else b=void 0;c=b;b=cj(a,wp,2,up)?oYa(jm(a,wp,2,up)):void 0;cj(a,xp,3,up)?(a=jm(a,xp,3,up),a={content:JFa(a.getContent())}):a=void 0;return{plainFormat:c,markdownFormat:b,literalFormat:a}},qYa=function(a){var b=new yp;if(a.plainFormat){var c=a.plainFormat;var d=new mYa;c=c.plainSection.map(pYa);
d=$i(d,1,c);mp(b,1,up,d)}a.markdownFormat&&(d=a.markdownFormat,d=(new wp).setContent(IFa(d.content)),mp(b,2,up,d));a.literalFormat&&(a=a.literalFormat,a=(new xp).setContent(IFa(a.content)),mp(b,3,up,a));return b},nYa=function(a){return{isQuoted:Ri(a,1),content:JFa(a.getContent())}},pYa=function(a){var b=new vp;return op(b,1,a.isQuoted).setContent(IFa(a.content))},oYa=function(a){return{content:JFa(a.getContent())}},kYa=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";
default:throw Error("pd`"+a);}},zp=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("pd`"+a);}},lYa=function(a){var b,c;a==null?c=void 0:c=Ni(a,Ap,2,Oi());a=(b=c)!=null?b:[];b=new Map;a=l(a);for(c=a.next();!c.done;c=a.next()){c=c.value;a:{var d=c.getType();switch(d){case 0:d="REACTION_TYPE_UNSPECIFIED";break a;case 1:d="UPVOTE";break a;default:throw Error("qd`"+d);}}var e=
void 0,f=void 0,g=void 0,k=void 0,m=(f=Ri(c,1))!=null?f:!1;f=(g=nn(c.getCount()))!=null?g:0;c=Ni(c,Xm,3,Oi());c={type:d,hasReacted:m,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(cn).filter(hn))!=null?k:[]};b.set(d,c)}return b},rYa=function(a){return a.map(function(b){return X(b,Xm,1)}).filter(hn).map(cn).map(function(b){return{mentionedUser:b}})},sYa=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"}},tYa=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}},vYa=function(a){var b=qn(a.getStartTime()),c=qn(X(a,ej,3)),d=qn(a.getEndTime()),e=oTa(a.getObjective()),f=a.getBusinessDays();a=a.getDayType();return{startTime:b,targetTime:c,endTime:d,objective:e,businessDays:f,dayType:uYa[a]}},xYa=function(a){var b=
new Bp;a.startTime&&b.setStartTime(rn(a.startTime));if(a.targetTime){var c=rn(a.targetTime);Zi(b,ej,3,c)}a.endTime&&b.setEndTime(rn(a.endTime));a.objective&&b.setObjective(nTa(a.objective));a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(wYa[a.dayType]);return b},zYa=function(a){var b=(new Cp).setInherit(a.inherit).setSource(yYa[a.source]).setComment(a.comment);a.id&&b.setId(a.id);a.sourceComponentId&&Xo(b,6,a.sourceComponentId);a.sourceTeamId&&b.setSourceTeamId(a.sourceTeamId);
return b},BYa=function(a){return{author:cn(a.getAuthor()),timestamp:qn(a.getTimestamp()),add:AYa(a.getAdd()),remove:AYa(a.getRemove()),addMask:XWa(a.getAddMask()),removeMask:XWa(a.getRemoveMask())}},AYa=function(a){var b=a.getSloId_asString(),c=a.getName(),d=a.getDescription(),e=In(a,2);var f=Ni(a,Dp,5,Oi());f=(f!=null?f:[]).map(CYa);var g=Ni(a,Dp,6,Oi());g=(g!=null?g:[]).map(CYa);var k=a.getIsArchived();a:switch(a=Ii(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";break a;default:throw Error("rd`"+
a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:g,isArchived:k,alertState:a}},CYa=function(a){var b=DYa(a.getMetric()),c=xi(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("td`"+d);}}return{metric:b,matcher:c,dayType:d,objective:oTa(a.getObjective()),businessDays:a.getBusinessDays()}},DYa=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";case 1:return"ASSIGNMENT";case 2:return"RESPONSE";
case 3:return"CLOSURE";default:throw Error("sd`"+a);}},FYa=function(a){var b=new Dp;var c=EYa(a.metric);b=$m(b,1,c);b=Ym(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("td`"+d);}}return c.call(b,d).setObjective(nTa(a.objective)).setBusinessDays(a.businessDays)},EYa=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;case "RESPONSE":return 2;
case "CLOSURE":return 3;default:throw Error("ud`"+a);}},GYa=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}},HYa=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;default:return 4}},KYa=
function(a){var b=new Ep;if(a.user){var c=b.setUser,d=a.user,e=(new IYa).setUser(an(d.user));d.isLead&&e.setIsLead(!0);d.role&&e.setRole(GYa(d.role));c=c.call(b,e);a=a.allocation;d=new JYa;d=Fp(d,3,a.aggregationValue);a.involvement&&gp(d,1,Gp,Kca(HYa(a.involvement)));a.percentage!==void 0&&UXa(d,2,Gp,a.percentage);a.startDate&&(e=mTa(a.startDate),Zi(d,om,4,e));a.endDate&&(a=mTa(a.endDate),Zi(d,om,5,a));Zi(c,JYa,3,d)}else a.placeholder&&(c=a.placeholder,c=(new Hp).setRole(GYa(c.role)).setCount(c.count),
mp(b,2,Ip,c));return b},LYa=function(a){var b=new Jp;a=a.plannedAllocations.map(KYa);return $i(b,1,a)},MYa=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},NYa=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"}},PYa=function(a){if(a.hasUser()){var b=a.getUser(),c=NYa(b.getRole());var d={user:cn(b.getUser())};b.getIsLead()&&(d.isLead=!0);c!=="JOB_ROLE_UNSPECIFIED"&&(d.role=c);a=X(a,JYa,3);b={aggregationValue:rm(a,3)};c=Ti(a,Gp,1);Kp(a,c)!=null&&(b.involvement=MYa(Ii(a,Ti(a,Gp,1))));OYa(a,Gp)&&(b.percentage=rm(a,Ti(a,Gp,2)));Ji(a,om,4)&&(b.startDate=lTa(a.getStartDate()));Ji(a,om,5)&&(b.endDate=lTa(X(a,om,5)));d={user:d,allocation:b}}else cj(a,Hp,2,Ip)?(d=a.getPlaceholder(),
d={placeholder:{role:NYa(d.getRole()),count:d.getCount()}}):d={};return d},QYa=function(a){return{plannedAllocations:Ni(a,Ep,1,Oi()).map(PYa)}},RYa=function(a){return{issueId:String(a.getIssueId()),updateText:xi(a,2),formattedText:Ji(a,yp,3)?rp(X(a,yp,3)):void 0,formattingMode:a.getFormattingMode()?kYa(a.getFormattingMode()):"PLAIN",author:a.hasAuthor()?cn(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?gn(qn(a.getUpdateTime())):void 0,version:a.getVersion()}},SYa=function(a){var b=(new Lp).setFormattingMode(zp(a.formattingMode));
a.issueId&&b.setIssueId(a.issueId);a.updateText&&Ym(b,2,a.updateText);if(a.formattedText){var c=qYa(a.formattedText);Zi(b,yp,3,c)}a.author&&b.setAuthor(an(a.author));a.updateTime&&b.setUpdateTime(rn(a.updateTime));a.version&&b.setVersion(a.version);return b},YYa=function(a){var b=a.getAccessLimit(),c=TYa[Ii(a,30)],d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra;return{componentId:fn(a.getComponentId_asString())||null,type:a.getType()?sYa(a.getType()):null,status:a.getStatus()?Mp[a.getStatus()]:
null,priority:a.getPriority()?Np[a.getPriority()]:null,severity:a.getSeverity()?UYa[a.getSeverity()]:null,title:a.getTitle(),reporterUser:a.getReporter()?cn(a.getReporter()):null,assigneeUser:a.getAssignee()?cn(a.getAssignee()):null,verifierUser:a.getVerifier()?cn(a.getVerifier()):null,ccUsers:(x=(d=a.getCcsList())==null?void 0:d.map(cn))!=null?x:[],collaboratorsUsers:(D=(e=a.getCollaboratorsList())==null?void 0:e.map(cn))!=null?D:[],staffing:a.getStaffing()?QYa(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(dn).filter(hn))!=null?O:[],customField:(R=(m=a.getCustomFieldsList())==null?void 0:m.map(TXa).filter(hn))!=null?R:[],changelist:(V=a.getCodeChangesList(bn))!=
null?V:[],gerritChanges:(ba=a.getGerritChangesList().map(VYa))!=null?ba:[],foundInVersion:(oa=Vm(a,17,Oi(bn)))!=null?oa:[],targetedToVersion:(ta=Vm(a,18,Oi(bn)))!=null?ta:[],verifiedInVersion:(ka=Vm(a,19,Oi(bn)))!=null?ka:[],inProd:a.getInProd(),isArchived:a.getIsArchived(),duplicateIssueId:(Ca=(r=a.getDuplicateIssueIdsList_asString())==null?void 0:r.filter(function($a){return $a!=="0"}))!=null?Ca:[],isDeleted:a.getIsDeleted(),deletionReason:WYa[Ii(a,24)],sloStartTime:(ja=qn(a.getSloSnoozeUntil()))!=
null?ja:null,sloEndTime:(ua=qn(a.getSloEndTime()))!=null?ua:null,sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,incidents:(xa=(w=Vm(a,37,Oi()))==null?void 0:w.filter(hn))!=null?xa:[],postmortems:(Ra=Vm(a,27,Oi(bn)))!=null?Ra:[],retention:XYa[a.getRetention()],effort:a.hasEffort()?cYa(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?lXa(b):null,comment:"",formattingMode:void 0}},eZa=function(a){var b=new Op;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=
null&&b.setType(tYa(a.type));a.inProd!=null&&b.setInProd(a.inProd);a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(ZYa[a.status]);a.priority!=null&&b.setPriority($Ya[a.priority]);a.severity!=null&&b.setSeverity(aZa[a.severity]);a.reporterUser&&b.setReporter(an(a.reporterUser));a.assigneeUser&&b.setAssignee(an(a.assigneeUser));a.verifierUser&&b.setVerifier(an(a.verifierUser));a.ccUsers&&b.setCcsList(a.ccUsers.map(an));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(an));
a.staffing&&b.setStaffing(LYa(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(VXa));a.changelist&&b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(bZa));a.foundInVersion&&
Zm(b,17,a.foundInVersion);a.targetedToVersion&&Zm(b,18,a.targetedToVersion);a.verifiedInVersion&&Zm(b,19,a.verifiedInVersion);a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(cZa[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(rn(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(rn(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(dZa[a.sloSnoozeType]);a.retention!=null&&
b.setRetention(IXa(a.retention));if(a.effort){var c=b.setEffort,d=a.effort,e=new Pp;d.specId&&Xo(e,1,d.specId);d.estimate&&Ym(e,2,d.estimate);d.averageDays&&Fp(e,3,d.averageDays);d.totalOpen&&Fp(e,4,d.totalOpen);d.totalComplete&&Fp(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit(kXa(a.issueAccessLimitLevel));return b},VYa=function(a){var b={host:xi(a,1),repo:xi(a,2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:fZa[a.getState()]};xi(a,5)&&(b.branch=xi(a,
5));return b},bZa=function(a){var b=new Qp;b=Ym(b,1,a.host);b=Ym(b,2,a.repo).setChangeNumber(a.changeNumber).setState(gZa[a.state]);a.branch&&Ym(b,5,a.branch);return b},hZa=function(a){return{oneDayViewCount:Rp(a,1),sevenDayViewCount:Rp(a,2),thirtyDayViewCount:Rp(a,3)}},jZa=function(a){if(a){var b=Ri(a,2);b=b==null?null:b;var c=Ri(a,1);return{voted:b,starred:c==null?null:c,notificationSubscription:iZa[Ii(a,4)],lastViewedTimeMicros:vn(X(a,ej,5))}}},kZa=function(a){if(a){var b=void 0,c=a.getSloStatus();
c&&(b={assignmentBounds:(c==null?0:Ji(c,Bp,1))?vYa(X(c,Bp,1)):void 0,responseBounds:(c==null?0:Ji(c,Bp,2))?vYa(X(c,Bp,2)):void 0,closureBounds:(c==null?0:Ji(c,Bp,3))?vYa(X(c,Bp,3)):void 0});c=void 0;var d=X(a,Xm,14);d&&(c=cn(d));var e;return{voteCount:(e=Rp(a,10))!=null?e:0,createdTimeMicros:vn(a.getCreatedTime()),resolvedTimeMicros:vn(a.getResolvedTime()),verifiedTimeMicros:vn(a.getVerifiedTime()),modifiedTimeMicros:vn(a.getModifiedTime()),sloId:dn(a.getSloId_asLegacyNumberOrString()),teamId:fn(a.getTeamId_asLegacyNumberOrString()),
retentionState:BXa(a.getRetentionState()),sloStatus:b,lastModifier:c}}},oZa=function(a){switch(Mo(a,lZa)){case 2:var b=jm(a,mZa,2,lZa);return b.getCommentNumber()!==0?{type:"issueReference",issueId:b.getIssueId_asString(),commentNumber:b.getCommentNumber(),sourceCommentNumber:Um(a,3)}:{type:"issueReference",issueId:b.getIssueId_asString(),sourceCommentNumber:Um(a,3)};case 1:return b=jm(a,nZa,1,lZa),{type:"hyperlink",href:xi(b,1),sourceCommentNumber:Um(a,3)};case 0:throw Error("vd");default:throw Error("wd");
}},Sp=function(a){var b=a.getIssueState()?[YYa(a.getIssueState())]:[],c,d;return{issueId:a.getIssueId_asString(),version:a.getVersion(),snapshot:b,userData:jZa(a.getUserData()),aggregatedData:kZa(a),accessLimit:nXa(a.getAccessLimit()),customFields:a.getCustomFieldsList().map(YXa),visibleFields:Ni(a,fp,34,Oi()).map(QXa).filter(hn),majorModifiedTimeMicros:vn(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:fn(a.getTrackerId_asString()),userActivityStats:X(a,pZa,47)&&hZa(X(a,pZa,47)),escalationOwner:a.getEscalationOwner()?cn(a.getEscalationOwner()):void 0}},rZa=function(a){for(var b=new Map,c=l(a.getAncestorsMap().entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.set(String(d),{sourceIssueIds:e.getSourceIssueIdsList_asString().filter(function(f){return f!==
"0"})})}c=Sp(a);return Object.assign({},c,{description:a.hasDescription()?tp(a.getDescription()):void 0,ancestors:b,childIssueCount:a.getChildIssueCount(),relatedLinks:Ni(a,qZa,41,Oi()).map(oZa),statusUpdate:a.hasStatusUpdate()?RYa(a.getStatusUpdate()):void 0})},sZa=function(a){var b,c,d,e,f,g=(new Tp).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(iXa((d=a.sortOrder)!=null?d:[]));d=g.setDisplayPreferences;var k=new Up,m=(e=(b=a.displayColumn)==
null?void 0:b.map(cXa))!=null?e:[];b=Zm(k,1,m);g=d.call(g,b).setCreatedTime(un(a.createdTimeMicros)).setModifiedTime(un(a.modifiedTimeMicros)).setOwnersList((f=(c=a.adminUsers)==null?void 0:c.map(an))!=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},tZa=function(a){if(!nn(a.getHotlistId()))throw Error("xd");if(!a.getName())throw Error("yd");if(!a.getCreatedTime())throw Error("zd");if(!a.getModifiedTime())throw Error("Ad");var b,c,d,e;return{hotlistId:nn(a.getHotlistId()),
name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=null?d:!1,createdTimeMicros:vn(a.getCreatedTime()),modifiedTimeMicros:vn(a.getModifiedTime()),displayColumn:fXa(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(gXa),etag:JXa(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(cn))!=null?e:[]}},uZa=function(a){return{issueId:a.getIssueId_asString(),position:a.getPosition(),issue:Sp(a.getIssue())}},
vZa=function(a){var b=Ni(a,Vp,1,Oi()).map(uZa),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()}},xZa=function(a){return wZa[a]},CZa=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:Sp(jm(a,Wp,9,Xp))};break;case 10:b={recommendedHotlist:tZa(jm(a,
Tp,10,Xp))};break;case 12:var c=a.getIssueModification();b={issueModification:{addState:c.getAdd()?YYa(c.getAdd()):void 0,addMask:$Wa(c.getAddMask()),removeState:c.getRemove()?YYa(c.getRemove()):void 0,removeMask:$Wa(c.getRemoveMask()),comment:c.getComment()?tp(c.getComment()):void 0}};break;case 11:var d=jm(a,yZa,11,Xp);c={name:d.getName(),entries:d.getEntriesList().map(zZa)};if(d=X(d,Wp,2))c.recommendedCanonicalIssue=Sp(d);b={issueDeduplicationBatch:c}}c=a.getName();d=a.getSource();var e=a.getResource();
var f=a.getType();f=AZa[f];var g=a.getRecommendation(),k=a.getScore();var m=a.getConfidence();m=BZa[m];var r=qn(a.getCreateTime());a.getRationale()?(a=a.getRationale(),a={text:a.getText(),formattingMode:kYa(a.getFormattingMode()),formattedText:Ji(a,yp,3)?rp(X(a,yp,3)):void 0,createTime:qn(a.getCreateTime())}):a=void 0;return{name:c,source:d,resource:e,type:f,recommendation:g,score:k,confidence:m,createTime:r,content:b,rationale:a}},GZa=function(a){var b=(new Yp).setName(a.name).setSource(a.source).setResource(a.resource).setType(wZa[a.type]).setRecommendation(a.recommendation).setScore(a.score).setConfidence(DZa[a.confidence]).setCreateTime(rn(a.createTime));
if(a.rationale){var c=b.setRationale,d=a.rationale,e=(new EZa).setText(d.text).setFormattingMode(zp(d.formattingMode)).setCreateTime(rn(d.createTime));d.formattedText&&(d=qYa(d.formattedText),Zi(e,yp,3,d));c.call(b,e)}var f;((f=a.content)==null?0:f.issueModification)&&b.setIssueModification(FZa(a.content.issueModification));return b},FZa=function(a){var b=new HZa;if(a.addState!==void 0){b.setAdd(eZa(a.addState));var c=b.getMutableAddMask(),d=a.addMask.map(aXa).filter(hn);Zm(c,1,d)}a.removeState!==
void 0&&(b.setRemove(eZa(a.removeState)),c=b.getMutableRemoveMask(),d=a.removeMask.map(aXa).filter(hn),Zm(c,1,d));if(a.comment!==void 0){c=b.setComment;d=a.comment;a=(new Zp).setIssueId(d.issueId).setCommentNumber(d.commentNumber).setVersion(d.version).setFormattingMode(zp(d.formattingMode)).setComment(d.unlinkifiedComment).setModifiedTime(un(d.lastModified));a=op(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 $p;f=(new Vo).setSeverity(sXa(f.piiVerdict.severity));g=Zi(g,Vo,1,f)}else g=void 0;e.call(a,g)}d.formattedComment&&a.setFormattedComment(qYa(d.formattedComment));d.lastEditorUser&&(e=an(d.lastEditorUser),Zi(a,Xm,3,e));d.entityStatus&&a.setEntityStatus(zXa(d.entityStatus));d.piiRetention&&a.setRestrictedRetention(IXa(d.piiRetention));d.piiRetentionState&&a.setRestrictedRetentionState(CXa(d.piiRetentionState));if(d.commentReactions){e=d.commentReactions;d=new sp;e=l(e.entries());for(g=e.next();!g.done;g=
e.next()){f=l(g.value);g=f.next().value;var k=f.next().value;f=g;g=k;k=new Ap;var m=k.setType;a:switch(f){case "REACTION_TYPE_UNSPECIFIED":f=0;break a;case "UPVOTE":f=1;break a;default:throw Error("qd`"+f);}f=m.call(k,f);f=op(f,1,g.hasReacted).setCount(g.count);g=g.recentResponders.map(an);g=aq(f,3,Xm,g);bq(d,2,Ap,g)}Zi(a,sp,17,d)}c.call(b,a)}return b},MZa=function(a){var b=(new IZa).setParent(a.parent);a=a.userEngagement;var c=(new JZa).setType(KZa[a.type]);a.rejectionReason!==void 0&&c.setRejectionReason(LZa[a.rejectionReason]);
a.issueModification!==void 0&&c.setIssueModification(FZa(a.issueModification));return Zi(b,JZa,2,c)},NZa=function(a){return{recommendations:a.getRecommendationsList().map(CZa),nextPageToken:a.getNextPageToken(),totalSize:nn(a.getTotalSize())}},OZa=function(a){return{recommendations:a.getRecommendationsList().map(CZa)}},PZa=function(a){return{recommendations:a.getRecommendationsList().map(CZa)}},RZa=function(a){var b=(new QZa).setRecommendationsList(a.recommendations.map(GZa));a.parent&&b.setParent(a.parent);
a.resource&&b.setResource(a.resource);a.type&&b.setType(wZa[a.type]);return b},zZa=function(a){return{issue:Sp(a.getIssue()),recommendation:a.getRecommendation()}},SZa=function(a){var b;return((b=a.error)==null?void 0:b.message)!==void 0},cq=function(a){return!!a&&Oa(a)&&(!!a.data&&a.data.message!==void 0||SZa(a))},dq=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:SZa(a)&&a.error&&a.error.message?a.error.message:""},TZa=function(a){if(a)return{status:Mp[a.getStatus()],
issueIds:a.getIssueIdsList().map(nn).map(en).filter(hn)}},UZa=function(a){if(a)return{priority:Np[a.getPriority()],issueIds:a.getIssueIdsList().map(nn).map(en).filter(hn)}},VZa=function(){},WZa=function(a){return Object.values(a).length>0},XZa=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},YZa=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},ZZa=function(a,b){var c=a.getValue(),d={};c=l(Object.entries(c));for(var e=c.next();!e.done;e=
c.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},$Za=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)},a_a=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},b_a=function(a){a=a===void 0?{}:a;return oSa(a)},c_a=function(a){var b=new sf,c=a.subscribe(b);a=ie(b);a.finally(function(){c.unsubscribe()});return a},d_a=function(a){return a==null?new Promise(function(){}):
Promise.resolve(a)},e_a=function(a){switch(a){case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;case "NONE_DETECTED":return 1;case "RESTRICTION_SEVERITY_UNSPECIFIED":return 0;default:return wb(a,"Unexpected pii severity")}},eq=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},f_a=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},g_a=function(a){return uXa(a.getIt())},fq=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,"+")},h_a=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},l_a=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:cn(a.getAuthor()),timestamp:qn(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=jm(a,i_a,3,j_a);b.general={content:a.getContent(),
formattedContent:rp(a.getFormattedContent())};break;case 4:a=jm(a,k_a,4,j_a);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary={content:a.getContent(),formattedContent:rp(a.getFormattedContent())};break;default:throw Error("Nd`"+c);}return b},m_a=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:rp(a.getFormattedContent()),author:cn(a.getAuthor()),
timestamp:qn(a.getTimestamp()),contentVerdict:rXa(a.getContentVerdict())};xi(a,9)&&(b.customDisplayName=xi(a,9));return b},o_a=function(a){var b=(new gq).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(n_a[a.feedbackType]);a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},p_a=function(a){var b;return{searchId:a.getSavedSearchId_asString(),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(gXa),displayColumn:fXa(a.getDisplayPreferences()),
adminUsers:((b=a.getOwnersList())!=null?b:[]).map(cn)}},q_a=function(a){var b,c,d=(new hq).setSavedSearchId(Number(a.searchId)).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(iXa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new Up;e=e.map(cXa);c=Zm(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(an))},s_a=function(a){switch(Mo(a,iq)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?tZa(b.getHotlist()):
void 0,d;b=(d=on(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())?p_a(e.getSavedSearch()):void 0,e=(e==null?0:e.getSavedSearchId())?e.getSavedSearchId_asString():"",{savedSearchId:e,savedSearch:d,name:(c=d==null?void 0:d.name)!=null?c:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?0:d.getBookmarkGroup())?
r_a(d.getBookmarkGroup()):void 0;var f;return{bookmarkGroupId:(b=d==null?void 0:d.getBookmarkGroupId_asString())!=null?b:"",bookmarkGroup:e,name:(f=e==null?void 0:e.name)!=null?f:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Od");}},u_a=function(a){switch(a.resourceType){case "HOTLIST":var b=(new jq).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist(sZa(a.hotlist));return(new kq).setHotlist(b);case "SAVED_SEARCH":return b=new lq,a.savedSearchId&&b.setSavedSearchId(Number(a.savedSearchId)),
a.savedSearch&&b.setSavedSearch(q_a(a.savedSearch)),(new kq).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new mq).setBookmarkGroupId(Number(a.bookmarkGroupId)),a.bookmarkGroup&&b.setBookmarkGroup(t_a(a.bookmarkGroup)),(new kq).setBookmarkGroup(b);default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},r_a=function(a){var b=a.getArchived(),c=a.getBookmarkGroupId_asString(),d=a.getDescription();var e=Ni(a,kq,5,Oi());return{archived:b,bookmarkGroupId:c,description:d,item:e.map(s_a),
name:a.getName(),adminUsers:a.getOwnersList().map(cn)}},t_a=function(a){var b,c=(new nq).setBookmarkGroupId(Number(a.bookmarkGroupId)).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(u_a))!=null?b:[];return $i(c,5,d).setOwnersList(a.adminUsers.map(an))},v_a=function(a){switch(a.resourceType){case "HOTLIST":return(new kq).setHotlist((new jq).setHotlistId(a.resourceId));case "SAVED_SEARCH":var b=new lq;a.resourceId&&b.setSavedSearchId(Number(a.resourceId));return(new kq).setSavedSearch(b);
case "BOOKMARK_GROUP":return(new kq).setBookmarkGroup((new mq).setBookmarkGroupId(Number(a.resourceId)));default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},w_a=function(a){a=r_a(a).item;a=sVa(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(hn))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(hn))!=
null?f:[],savedSearches:(g=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(hn))!=null?g:[]}},x_a=function(a){return r_a(a.getIt())},y_a=function(a){a=Ni(a,nq,2,Oi(),jb);return(a!=null?a:[]).map(r_a)},z_a=function(a){a=Wm(a,1,Oi(bn),jb);return{changelistNumbers:a!=null?a:[]}},C_a=function(a){return{changelists:Ni(a,A_a,1,Oi(),jb).map(B_a),nextPageToken:a.getNextPageToken()}},B_a=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:qn(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=jn(a,6))!=null?c:[]}},D_a=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=nn(a.getTimestamp());a=Vm(a,5,Oi(bn),jb);return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},E_a=function(a){if(a)return nXa(a.getIt())},F_a=function(a){var b=Vm(a,1,Oi(bn),jb);a=Vm(a,2,Oi(bn),jb);return{noAccessEmails:b,unknownEmails:a}},G_a=function(a){var b=
a.getIt();a=Ni(b,Qo,2,Oi()).map(Po);var c=b.getAppendersList().map(Po),d=Ni(b,Qo,4,Oi()).map(Po),e=b.getReadersList().map(Po),f=Ni(b,Qo,11,Oi()).map(Po),g=Ni(b,Qo,12,Oi()).map(Po),k=Ni(b,Qo,3,Oi()).map(Po),m=Ni(b,Qo,7,Oi()).map(Po),r=Ni(b,Qo,5,Oi()).map(Po),w=Ni(b,Qo,9,Oi()).map(Po);a:switch(Ii(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("id");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,restrictedPlusReaders:g,
inheritedAdmins:k,implicitAppenders:m,implicitEditors:r,implicitReaders:w,implicitAccess:b}},I_a=function(a,b){b=b===void 0?document.documentElement:b;return oe(pe(function(){return ee(b.querySelector(a))}),H_a(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(hn),nf(1),A(function(c){return c}))},H_a=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()}})},oq=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)}}},J_a=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(" > ")},K_a=function(a){var b={};a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
l(c.value);c=d.next().value;d=d.next().value;d!=null&&(b[c]=String(d))}b=new URLSearchParams(b);return String(b)},pq=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},rq=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 qq(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("Qd`"+a);}},M_a=function(a){var b=QXa(a.getFieldId()),c=Ii(a,4);return{fieldId:b,stateOnIssues:L_a[c],enabledOnIssues:Ri(a,5)}},P_a=function(a){var b,c,d;return{name:a.getName(),componentId:fn(a.getComponentId_asString()),issueTypes:new Set((d=(b=jm(a,N_a,5,O_a))==null?void 0:(c=Ln(b,1,Oi()))==null?void 0:c.map(sYa))!=null?d:[]),customFieldConfigs:new Map(Ni(a,sq,
3,Oi()).map(function(e){return[nn(e.getFieldId().getCustomFieldId()),e.getState()===2]}))}},U_a=function(a){var b=Q_a((new tq).setComponentId(a.componentId).setName(a.name),Array.from(a.customFieldConfigs,function(c){var d=l(c);c=d.next().value;d=d.next().value;return(new sq).setFieldId(SXa({customFieldId:c})).setState(d?2:1)}));a=[].concat(q(a.issueTypes));a.length>0?R_a(b,S_a(new N_a,a.map(tYa))):T_a(b);return b},X_a=function(a){var b=X(a,uq,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new vq,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())),m=a.getPathIdsList_asString(),r=[],w=r.concat;var x=Vm(a,5,Oi());r=w.call(r,q(x));w=a.getMembersList().map(V_a);a=Ri(a,9);d={inherit:d.getInherit(),sloId:d.getId_asString(),comment:d.getComment(),sourceTeamId:d.getSourceTeamId_asString()};if(b){x=b==null?void 0:b.getEscalationOwner();var D=b==null?void 0:b.getDefaultEscalationOwner();switch(b==null?void 0:
Mo(b,W_a)){case 9:b=cn(jm(b,Xm,9,W_a));break;case 10:b={emailAddress:"",obfuscatedEmailAddress:"",userGaiaStatus:"UNSPECIFIED",aliases:[]};break;default:b=void 0}b={escalationOwner:x?cn(x):void 0,defaultEscalationOwner:D?cn(D):void 0,escalationOwnerOverride:b}}else b=void 0;return{teamId:c,version:f,name:e,description:g,pathNames:k,pathIds:m,collapsedPathNames:r,members:w,deleted:a,slo:d,extra:b}},V_a=function(a){var b=a.getUser();return{user:b?cn(b):{},isLead:a.getIsLead()}},Z_a=function(a){return(new Y_a).setIsLead(a.isLead).setUser(an(a.user))},
$_a=function(a){var b=new vq;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},a0a=function(a){return(new wq).setInherit(a.inherit).setId(a.id)},b0a=function(a){var b=a.getTeamId();b=b==null?null:String(b);return{teamId:b!=null?b:"",score:a.getScore()}},d0a=function(a){return(new c0a).setTeamId(Number(a.teamId)).setScore(a.score)},f0a=function(a){var b=Ni(a,e0a,4,Oi()).map(M_a);b=new Map(b.map(function(g){return[g.fieldId.customFieldId,
g]}));var c,d,e=(d=(c=Ni(a,np,5,Oi()))==null?void 0:c.map(ZXa))!=null?d:[];c=l(e);for(d=c.next();!d.done;d=c.next()){d=d.value;var f=b.get(d.customFieldId);f&&(d.enabledOnIssues=f.enabledOnIssues,d.stateOnIssues=f.stateOnIssues)}d=a.getFieldConfigsV2List().map(P_a);c=new Map;d=l(d);for(f=d.next();!f.done;f=d.next())f=f.value,f.componentId&&(c.has(f.componentId)||c.set(f.componentId,[]),c.get(f.componentId).push(f));return{componentPathId:jn(a,1).map(fn).filter(hn),componentPathName:Vm(a,2,Oi(bn)),
allCustomField:e,fieldConfigsMap:b,fieldConfigsV2Map:c}},g0a=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},j0a=function(a){var b=Ji(a,$o,15)?EXa(X(a,$o,15)):void 0,c=Ji(a,xq,7)?f0a(X(a,xq,7)):void 0;if(a.hasSlo()){var d=a.getSlo();var e=d.getInherit(),f=d.getSource();d={inherit:e,source:h0a[f],id:fn(d.getId_asString()),sourceComponentId:fn(In(d,6)),sourceTeamId:fn(d.getSourceTeamId_asString()),comment:d.getComment()}}else d=
void 0;var g;if(Ji(a,pp,18)){f=a.getEffortSpec();e=f.getInherit();var k=nn(f.getId()),m=f.getName();a:switch(Ii(f,6)){case 2:var r="MAX";break a;case 1:r="SUM";break a;default:r="AGGREGATION_TYPE_UNSPECIFIED"}e={inherit:e,id:k,name:m,aggregationType:r,customFieldId:nn(f.getCustomFieldId())};if(cj(f,fYa,4,yq)){if(g=jm(f,fYa,4,yq))e.numericSpec={multiplier:rm(g,1)}}else if(cj(f,iYa,5,yq)&&(f=jm(f,iYa,5,yq),e.enumSpec={options:[]},f&&(f==null?void 0:(g=Ni(f,qp,1,Oi()))==null?void 0:g.length)>0))for(g=
l(Ni(f,qp,1,Oi())),f=g.next();!f.done;f=g.next())f=f.value,m=k=void 0,(k=e.enumSpec)==null||(m=k.options)==null||m.push({label:f.getLabel(),value:f.getValue()});g=e}else g=void 0;a.hasTeam()?(e=a.getTeam(),e={inherit:e.getInherit(),id:e.getId_asString()}):e=void 0;f=nXa(a.getAccessLimit());k=Ii(a,21);k=k===2?"ALL_PROTECTIONS":k===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";m=nn(a.getTrackerId())?a.getTrackerId_asString():void 0;r=a.getComponentId_asString();var w,x,D=fn(In(a,3)),H=a.getName(),
J=a.getDescription(),O=a.getIsArchived(),R="buganizer-system+"+a.getComponentId()+"@google.com";var V=Ii(a,10)===1?"ENABLED":"DISABLED";var ba=nn(En(a,6)),oa=dn(ba);if(oa==null)throw Error("Rd`"+ba);ba=Ii(a,17);return{componentId:r==="0"?"":r,parentComponentId:D,name:H,description:J,archived:O,componentPathInfo:c,accessLimit:f,emailAlias:R,commentEditState:V,defaultTemplateId:oa,slo:d,retentionSettings:b,fieldOrdering:i0a[ba],effortSpec:g,team:e,teamSuggestions:(x=(w=a.getTeamSuggestionsList())==
null?void 0:w.map(b0a))!=null?x:[],trackerId:m==="0"?void 0:m,spamProtection:k}},k0a=function(a){return{author:cn(a.getAuthor()),timestamp:qn(a.getTimestamp()),add:j0a(a.getAdd()),remove:j0a(a.getRemove()),addMask:XWa(a.getAddMask()),removeMask:XWa(a.getRemoveMask())}},m0a=function(a){a=a.getIt();var b;return{updates:((b=Ni(a,l0a,1,Oi()))!=null?b:[]).map(k0a)}},zq=function(a){return j0a(a.getIt())},n0a=function(a){var b=new Aq;b=Xo(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);
a.commentEditState&&b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=GXa(a.retentionSettings),Zi(b,$o,15,a));return(new Bq).setIt(b)},o0a=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(zq)},p0a=function(a){return{warningHeader:xi(a,1,void 0,jb),warning:xi(a,2,void 0,jb),isAllowed:Ri(a,3,void 0,jb),isExternalMove:Ri(a,4,void 0,jb)}},r0a=function(a){a=a.getIt();var b=YYa(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&
(b.formattingMode=q0a[a.getFormattingMode()]);return{componentId:fn(a.getComponentId_asString()),templateId:nn(a.getTemplateId()),name:a.getName(),description:a.getDescription(),default:Ri(a,9),inheritable:Ri(a,10),snapshot:b}},t0a=function(a){var b=new Cq,c=b.setIt;var d=(new s0a).setFormattingMode(zp(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);d=op(d,9,a.default);a=op(d,10,a.inheritable).setIssueState(eZa(a.snapshot));
return c.call(b,a)},u0a=function(a){a=Ni(a,Bq,1,Oi(),jb);return(a!=null?a:[]).map(zq)},v0a=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(j0a)},w0a=function(a){return{componentPath:a.getComponentPath(),retentionSettings:EXa(X(a,$o,3))}},y0a=function(a){return Ni(a,x0a,2,Oi(),jb).map(w0a)},z0a=function(a){return r0a(X(a,Cq,1,jb))},A0a=function(a){return(Ni(a,Cq,1,Oi(),jb)||[]).map(r0a)},Dq=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=
0;var c=arguments.length;if(c>1){if(c%2)throw Error("eb");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)},C0a=function(a,b){this.maxCount_=a||null;this.cache_=!0;this.evictionCallback_=b;this.map_=new Dq;this.head_=new B0a("");this.head_.next=this.head_.prev=this.head_},D0a=function(a){return(new Eq).setIt(sZa(a))},Fq=function(a){return tZa(a.getIt())},F0a=function(a){a=X(a,E0a,1,jb);return s_a(a.getIt())},G0a=function(a){return p_a(a.getIt())},H0a=function(a){return G0a(a.getSearch())},
I0a=function(a){return Ni(a,Gq,1,Oi(),jb).map(G0a)},Jq=function(a){return Iq(a,VVa)},Iq=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},J0a=function(a){return function(b){return Iq(b,a)}},K0a=function(a,b){return a.map(function(c,d){return[c,b[d]]})},L0a=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},M0a=function(a,b){return a===b?!0:a.length!==
b.length?!1:a.every(function(c,d){return c===b[d]})},N0a=function(a,b){a=[].concat(q(a)).sort();b=[].concat(q(b)).sort();return M0a(a,b)},O0a=function(a,b){if(a.length===0)return b;b=b.slice();b=L0a(a,b);return[].concat(q(a),q(b))},P0a=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)})}},Q0a=function(a,b){a=sVa(a,b);return[].concat(q(a.values()))},R0a=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,
c+100));return b},S0a=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]})},T0a=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},U0a=function(a){switch(a.resourceType){case "HOTLIST":var b,c,d,e;return{id:String(a.hotlistId),name:a.name,description:(d=(b=a.hotlist)==null?void 0:b.description)!=null?d:"",adminUsers:(e=(c=a.hotlist)==
null?void 0:c.adminUsers)!=null?e:[],starred:!0,resourceType:"HOTLIST"};case "SAVED_SEARCH":var f,g,k,m;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(m=(g=a.savedSearch)==null?void 0:g.adminUsers)!=null?m:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("Xd");default:wb(a.resourceType,"Unexpected type in bookmarkItemToLink")}},V0a=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(U0a)}},Z0a=function(a,b,c){var d=new Map,e=new Map,f=new Map,g=new Map,k=new Map;b=l(b);for(var m=b.next();!m.done;m=b.next())m=m.value,m.archived?e.set(m.bookmarkGroupId,m):d.set(m.bookmarkGroupId,m);b=[].concat(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=l(a);for(m=a.next();!m.done;m=a.next())m=m.value,b.has(m.hotlistId)||(m.archived?g.set(m.hotlistId,T0a(m)):f.set(m.hotlistId,T0a(m)));c=l(c);for(a=c.next();!a.done;a=c.next())a=a.value,k.set(a.searchId,{id:String(a.searchId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"SAVED_SEARCH"});return{id:"current-user-bookmark-id",bookmarkGroups:W0a([].concat(q(d.values())).map(V0a)),archivedBookmarkGroups:W0a([].concat(q(e.values())).map(V0a)),hotlists:X0a(f.values()),
archivedHotlists:X0a(g.values()),savedSearches:Y0a(k.values())}},$0a=function(a,b){var c=new Set(b.hotlists.map(function(k){return k.hotlistId})),d=new Set(b.bookmarkGroups.map(function(k){return k.bookmarkGroupId}));b=new Set(b.savedSearches.map(function(k){return k.searchId}));for(var e=l([].concat(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=l([].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=l((g=f.sublinks)!=null?g:[]);for(g=f.next();!g.done;g=f.next())switch(g=g.value,g.resourceType){case "HOTLIST":g.starred=c.has(Number(g.id));break;case "SAVED_SEARCH":g.starred=b.has(g.id);break;case "BOOKMARK_GROUP":g.starred=d.has(g.id);break;default:throw Error("Yd");}}c=l(a.savedSearches);for(d=c.next();!d.done;d=c.next())d=d.value,d.starred=b.has(d.id);return a},a1a=function(a){return YXa(a.getIt())},c1a=function(a){return(new b1a).setIt(bYa(a))},
d1a=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(YXa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},g1a=function(a){var b,c=(b=X(a,Kq,2,jb))==null?void 0:Ii(b,1),d;b=(d=X(a,Kq,2,jb))==null?void 0:Ii(d,4);var e,f,g,k;d=a.getId_asString();c={phase:c!=null?e1a[c]:"UNSPECIFIED",subphase:b!=null?f1a[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",triagerEmail:(g=(e=X(a,Kq,2,jb))==null?void 0:xi(e,3))!=null?g:void 0,dismissed:(k=qn((f=X(a,Kq,2,jb))==null?void 0:X(f,ej,5)))!=
null?k:void 0};a=Vm(a,4,Oi(),jb);return{id:d,triage:c,clusterIds:a}},j1a=function(a){var b=new Kq;b=Vn(b,1,h1a[a.triage.phase]);b=Vn(b,4,i1a[a.triage.subphase]);b=yj(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=rn(a.triage.dismissed);Zi(b,ej,5,c)}b=(new Lq).setId(a.id).setTriage(b);return Bc(b,4,Sb,a.clusterIds,Tb,jb)},n1a=function(a){var b=a.getId_asString();if(b&&b!=="0"){var c={id:0},d=Ni(a,Mq,2,Oi(),jb).map(function(f){var g,k,m,r,w;return{scope:(k=f.getScope())!=null?k:void 0,showComponentColumn:(m=
Ri(f,2))!=null?m:!1,config:Ni(f,k1a,3,Oi()).map(l1a)||[],id:(r=nn(f.getId()))!=null?r:0,displayName:f.getDisplayName()||void 0,displayColumns:(w=(g=f.getDisplayColumns())==null?void 0:g.getColumnList().map(tTa).filter(hn))!=null?w:[]}});d.length===0&&d.push(c);var e;return{id:b,triage:d,playbooks:(e=Ni(a,Nq,3,Oi(),jb).map(m1a))!=null?e:[]}}},m1a=function(a){var b,c,d;return{name:(b=a.getName())!=null?b:void 0,instructions:(c=xi(a,2))!=null?c:void 0,searchQuery:(d=xi(a,3))!=null?d:void 0}},o1a=function(a){var b,
c,d,e=(new Nq).setName((b=a.name)!=null?b:"");b=(c=a.instructions)!=null?c:"";c=yj(e,2,b);a=(d=a.searchQuery)!=null?d:"";return yj(c,3,a)},l1a=function(a){switch(Mo(a,p1a)){case 1:return{type:"CUSTOM_FIELD",customFieldConfig:q1a(jm(a,Oq,1,p1a))};case 2:return{type:"HOTLIST",hotlistConfig:r1a(jm(a,s1a,2,p1a))};default:throw Error("Zd");}},x1a=function(a){var b=new k1a;if(a.type==="CUSTOM_FIELD"&&a.customFieldConfig)a=t1a(a.customFieldConfig),mp(b,1,p1a,a);else if(a.type==="HOTLIST"&&a.hotlistConfig){a=
a.hotlistConfig;var c=(new s1a).setHotlistIdsList(a.hotlistIds);a=Vn(c,2,u1a[a.operation]).setPhasesList(v1a(a.phases)).setSubphasesList(w1a(a.subphases));mp(b,2,p1a,a)}return b},q1a=function(a){var b,c=(b=Ni(a,y1a,2,Oi()).map(function(d){return{phases:d.getPhasesList().map(function(e){return e1a[e]}),subphases:d.getSubphasesList().map(function(e){return f1a[e]}),value:TXa(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},t1a=function(a){var b=(new Oq).setCustomFieldId(a.customFieldId);
a=a.defaultValues.map(function(c){return(new y1a).setPhasesList(v1a(c.phases)).setSubphasesList(w1a(c.subphases)).setValue(VXa(c.value))});$i(b,2,a);return b},r1a=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),operation:z1a[Ii(a,2)],phases:a.getPhasesList().map(function(b){return e1a[b]}),subphases:a.getSubphasesList().map(function(b){return f1a[b]})}},v1a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return h1a[c]}))!=null?b:[]},w1a=function(a){var b;return(b=a==null?
void 0:a.map(function(c){return i1a[c]}))!=null?b:[]},A1a=function(a){var b=new Mq;a.scope&&b.setScope(a.scope);var c;aj(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(gUa({column:(c=a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(x1a),aq(b,3,k1a,a));return b},B1a=function(a){a==="[Deleted User]"&&(a="nobody@google.com");a.includes("@")||(a+="@google.com");var b=new Xm;return Ym(b,1,a)},C1a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(B1a))!=
null?b:[]},Pq=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(dn).filter(hn))!=null?b:[]},D1a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=null?b:[]},F1a=function(a){var b=new Set,c=new Set,d=new Op,e=new Op;a=l(a);for(var f=a.next();!f.done;f=a.next())switch(f=f.value,f.fieldName){case "assignee":f.value?(d.setAssignee(B1a(f.value)),b.add("assignee")):(e.setAssignee(new Xm),c.add("assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType===
"ADD"?(d.addAllBlockedByIssueIds(Pq(f.value)),b.add("blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(Pq(f.value)),c.add("blocked_by_issue_ids"));break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(Pq(f.value)),b.add("blocking_issue_ids")):(e.addAllBlockingIssueIds(Pq(f.value)),c.add("blocking_issue_ids"));break;case "ccs":f.actionType==="ADD"?(d.addAllCcs(C1a(f.value)),b.add("ccs")):(e.addAllCcs(C1a(f.value)),c.add("ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(D1a(f.value)),
b.add("code_changes")):(e.addAllCodeChanges(D1a(f.value)),c.add("code_changes"));break;case "collaborators":f.actionType==="ADD"?(d.addAllCollaborators(C1a(f.value)),b.add("collaborators")):(e.addAllCollaborators(C1a(f.value)),c.add("collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(LYa(f.staffingValue)),b.add("staffing")):(e.setStaffing(LYa(f.staffingValue)),c.add("staffing"));break;case "comment":break;case "componentId":d.setComponentId(dn(f.value));
b.add("component_id");break;case "customField":if(!f.customFieldValue)break;var g=VXa(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(cZa[f.value]),b.add("deletion_reason")):(e.setDeletionReason(2),c.add("deletion_reason"));break;case "duplicateOfIssueId":(f=dn(f.value))?(d.setCanonicalIssueId(f),b.add("canonical_issue_id")):c.add("canonical_issue_id");
break;case "effortEstimate":f.value?(g=new Pp,f=Ym(g,2,f.value),d.setEffort(f),b.add("effort")):(e.setEffort(new Pp),c.add("effort"));break;case "foundInVersion":if(f.value==null)continue;f.actionType==="ADD"?(Qq(d,17,f.value),b.add("found_in_versions")):(Qq(e,17,f.value),c.add("found_in_versions"));break;case "gerritChanges":g=(f.gerritChangeValue||[]).map(bZa);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(Pq(f.value)),b.add("hotlist_ids")):(e.addAllHotlistIds(Pq(f.value)),c.add("hotlist_ids"));break;case "inProd":d.setInProd(f.value==="true");b.add("in_prod");break;case "type":d.setType(E1a[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($Ya[f.value]);b.add("priority");break;case "readState":break;
case "reporter":d.setReporter(B1a(f.value));b.add("reporter");break;case "severity":d.setSeverity(aZa[f.value]);b.add("severity");break;case "sloEndTime":(f=dn(f.value))?(d.setSloEndTime(rn({seconds:f,nanos:0})),b.add("slo_end_time")):(e.setSloEndTime(new ej),c.add("slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(dZa[f.value]);b.add("slo_snooze_type");break;case "sloStartTime":(f=dn(f.value))?(d.setSloSnoozeUntil(rn({seconds:f,nanos:0})),b.add("slo_snooze_until")):(e.setSloSnoozeUntil(new ej),
c.add("slo_snooze_until"));break;case "status":d.setStatus(ZYa[f.value]);b.add("status");break;case "targetedToVersion":if(f.value==null)continue;f.actionType==="ADD"?(Qq(d,18,f.value),b.add("targeted_to_versions")):(Qq(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"?(Qq(d,19,f.value),b.add("verified_in_versions")):(Qq(e,19,f.value),c.add("verified_in_versions"));break;
case "verifier":f.value?(d.setVerifier(B1a(f.value)),b.add("verifier")):(e.setVerifier(new Xm),c.add("verifier"));break;default:wb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}a=new Rq;b=Array.from(b);b=Bc(a,1,Sb,b,Tb);a=new Rq;c=Array.from(c);c=Bc(a,1,Sb,c,Tb);return{addMask:b,removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},H1a=function(a){var b=F1a(a.actions),c=b.addMask,d=b.removeMask,e=b.stateAddBuilder;b=b.stateRemoveBuilder;c=(new G1a).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 Zp).setComment(a.value));return c},J1a=function(a,b,c,d){var e=new Sq,f=e.setIt;a=(new I1a).setIssueId(a);b&&a.setIssueAccessLimit(kXa(b));c&&a.setAddedCollaboratorsList(c.map(an));d&&a.setRemovedCollaboratorsList(d.map(an));return f.call(e,a)},K1a=function(a){return(new Tq).setIt((new Uq).setIssueId(Number(a)))},N1a=function(a){return(new L1a).setIt((new M1a).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},
Q1a=function(a){var b,c=new O1a,d=c.setIt,e=(new P1a).setIssueId(String(a.issueId)).setComponentId(a.componentId);a=(b=a.setLimitViewTrusted)!=null?b:!1;b=op(e,3,a);return d.call(c,b)},R1a=function(a){return{issueId:fn(a.getIssueId_asString()),status:Mp[a.getStatus()],title:a.getTitle()}},U1a=function(a){var b=(new S1a).setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&Vn(b,3,T1a[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new Vq).setIt(VXa(a));
c.call(b,a)}return b},W1a=function(a){return(new V1a).setIt(H1a(a))},$1a=function(a){var b=new X1a;var c=a.addHotlistIds.map(String);b=yc(b,1,c,Hb);c=a.removeHotlistIds.map(String);b=yc(b,2,c,Hb);var d=a.hotlistIssue;a=(new Vp).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);if(d.issue){c=a.setIssue;d=d.issue;var e=(new Wp).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(bYa)),f=d.visibleFields.map(SXa);e=$i(e,34,f).setMajorModifiedTime(un(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(dn).filter(hn)).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(eZa(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(SYa(d.statusUpdate));if(d.userData){var g=d.userData;f=new Y1a;g.voted&&op(f,2,g.voted);g.starred&&op(f,1,g.starred);g.notificationSubscription&&f.setNotificationSubscription(Z1a[g.notificationSubscription]);g.lastViewedTimeMicros!==void 0&&(g=un(g.lastViewedTimeMicros),Zi(f,ej,5,g));Zi(e,Y1a,9,f)}if(d.aggregatedData){Xo(e,10,d.aggregatedData.voteCount).setCreatedTime(un(d.aggregatedData.createdTimeMicros)).setResolvedTime(un(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(un(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(un(d.aggregatedData.modifiedTimeMicros));
d.aggregatedData.lastModifier&&(f=an(d.aggregatedData.lastModifier),Zi(e,Xm,14,f));if(d.aggregatedData.sloStatus){f=e.setSloStatus;var k=d.aggregatedData.sloStatus;g=new Wq;if(k.assignmentBounds){var m=xYa(k.assignmentBounds);Zi(g,Bp,1,m)}k.responseBounds&&(m=xYa(k.responseBounds),Zi(g,Bp,2,m));k.closureBounds&&(k=xYa(k.closureBounds),Zi(g,Bp,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(CXa(d.aggregatedData.retentionState))}d.accessLimit&&e.setAccessLimit(pXa(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),g=l(d.ancestors.entries()),k=g.next();!k.done;k=g.next())m=l(k.value),k=m.next().value,m=m.next().value,f.set(mb(k),(new Xq).setSourceIssueIdsList(m.sourceIssueIds.map(dn).filter(hn)));d.userActivityStats&&(f=d.userActivityStats,g=new pZa,g=Xo(g,1,f.oneDayViewCount),g=Xo(g,2,f.sevenDayViewCount),f=Xo(g,3,f.thirtyDayViewCount),Zi(e,pZa,47,f));d.escalationOwner&&
e.setEscalationOwner(an(d.escalationOwner));c.call(a,e)}a=(new Yq).setIt(a);return Zi(b,Yq,3,a)},b2a=function(a){var b=Ni(a,a2a,1,Oi(),jb);return{issueDigests:(b!=null?b:[]).map(R1a),numTotalResults:nn(En(a,2,void 0,jb))}},e2a=function(a){var b=(new c2a).setIssueId(a.issueId).setRetention(IXa(a.retention));a.significanceOverride&&b.setSignificanceOverride(aYa[a.significanceOverride]);return(new d2a).setIt(b)},j2a=function(a){var b=new f2a,c=b.setIt,d=(new Wp).setIssueState(eZa(a.snapshot));a.snapshot.comment&&
d.setIssueComment((new Zp).setComment(a.snapshot.comment).setFormattingMode(zp(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(MXa));d=(new g2a).setIssue(d);if(a.templateId!=null){var e=new h2a;e=op(e,1,!1).setTemplateId(a.templateId);Zi(d,h2a,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=i2a(vXa(a.contentJudgement)),a=$m(a,6,1),e.call(d,a));return c.call(b,d)},k2a=function(a){return{issueId:fn(a.getIssueId_asString())}},m2a=function(a,b){a=(new l2a).setQuery(a);
b.s&&a.setOrderBy(jXa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new Zq).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},y2a=function(a,b,c){a=n2a(new o2a,m2a(a,b));c.queryType&&Vn(a,2,p2a[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&q2a(a,c.sortSpecs.map(function(d){var e=new r2a;e=Vn(e,1,s2a[d.sortType]);return aj(e,2,d.sortDecreasing)}));c.experimentalFields&&t2a(a,j1a(c.experimentalFields));c.concatenator&&u2a(a,v2a((new w2a).setRelation(x2a[c.concatenator.relation]),
c.concatenator.experimentalSortPrimary));return a},z2a=function(a){return RYa(a.getIt())},A2a=function(a){var b=new $q,c=b.setIt;var d=(new ar).setQuery(a.query);d=$m(d,2,aYa[a.minimumSignificance]);a=pn(d,4,a.maximumSize);a=$m(a,3,2);return c.call(b,a)},B2a=function(a){var b;return{isCommentEvent:!0,version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:bTa(a.lastModified),commentRedacted:gn(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}},C2a=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:pTa(un((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,
userPerformingAction:aTa()(Om(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:bTa(a.lastModified),commentRedacted:gn(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}},br=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?rZa(a.getIt()):void 0,a},E2a=function(a){var b=new D2a;b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(U1a);$i(b,1,a);return b},F2a=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},H2a=function(a){for(var b={},c=l(xc(a,1,cr,Vb,jb).entries()),d=
c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=e!=null?Sp(e.getIt()):void 0;b[d]=e}c={};d=l(xc(a,3,Bq,Vb,jb).entries());for(e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c[e]=zq(f)}a=Ni(a,G2a,2,Oi(),jb);a=(a!=null?a:[]).map(F2a);return{affectedIssues:b,componentMap:c,errors:a}},I2a=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(tp).map(B2a)},J2a=function(a){var b=a.getIt();Ji(b,ej,3)?(a=a.getIt(),
a=X(a,ej,3),a=vn(a)):a=0;return{readTimestamp:a}},K2a=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:sYa(b.getType()),status:Mp[b.getStatus()],priority:Np[b.getPriority()],severity:UYa[b.getSeverity()],componentId:fn(b.getComponentId_asString()),accessLimitLevel:c!=null?lXa(c):null};return{issueId:a.getIssueId_asString(),issueState:b,modifiedTime:qn(a.getModifiedTime()),teamId:fn(a.getTeamId_asLegacyNumberOrString())}},L2a=function(a){return tp(a.getIt())},M2a=function(a){return a.getIt().getIssueCommentsList().map(tp)},
N2a=function(a){return lYa(a==null?void 0:a.getIt())},O2a=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(hn).map(Sp),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},Q2a=function(a){return{issueId:a.getIssueId_asString(),summaryType:P2a[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),summary:a.getSummary(),formattedSummary:Ji(a,
wp,6)?oYa(X(a,wp,6)):void 0}},V2a=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=dr(a,R2a,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;return{type:"NUMBER",value:on((d=dr(a,S2a,b))==null?void 0:d.getValue())};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=dr(a,T2a,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;return{type:"BOOLEAN",value:(f=
dr(a,U2a,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:qn(dr(a,ej,b))};case "google.devtools.issuetracker.v1.User":return a=dr(a,Xm,b),{type:"USER",value:a&&cn(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=dr(a,lp,b),{type:"CUSTOM_FIELD_VALUE",value:a&&TXa(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=dr(a,To,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&lXa(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=
dr(a,Pp,b),{type:"STRING",value:a&&cYa(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=dr(a,Yo,b),{type:"ENTITY_STATUS",value:a&&xXa(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=dr(a,Qp,b),{type:"GERRIT_CHANGE",value:a&&VYa(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=dr(a,Ep,b),{type:"PLANNED_ALLOCATION",value:a&&PYa(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},X2a=function(a){var b,c;return{issueId:String(a.getIssueId()),
version:a.getVersion(),author:cn(a.getAuthor()),timestamp:qn(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(W2a).filter(hn),attachments:a.getAttachmentsList().map(KXa),comment:a.hasIssueComment()&&on((b=a.getIssueComment())==null?void 0:b.getIssueId())!==0?tp(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?RYa(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?xXa(a.getStatusUpdate().getEntityStatus()):void 0}},W2a=function(a){var b=
a.getField();if(YWa.has(b)){var c=Mo(a,Y2a);switch(c){case 3:a:{if(c=jm(a,Z2a,3,Y2a)){a=V2a(X(c,er,1));var d=V2a(X(c,er,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:$2a(jm(a,a3a,4,Y2a))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+
b+'"')},$2a=function(a){if(a){var b=Ni(a,er,1,Oi()).map(V2a).filter(hn);a=Ni(a,er,2,Oi()).map(V2a).filter(hn);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})}}},fr=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},gr=function(a){var b=a.match(b3a);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"}}},e3a=function(a,b){a=a.map(c3a)||[];b=b.map(c3a)||[];return ySa(a,new Set(b)).map(d3a)},c3a=function(a){return a.host+","+a.repo+","+a.changeNumber+","+a.state},d3a=function(a){var b=l(a.split(","));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;d=dn(d);if(!d)throw Error("$d");if(!Object.values(f3a).includes(b))throw Error("ae");return{host:a,repo:c,changeNumber:d,state:b}},g3a=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},h3a=function(a){var b;return y(function(c){return(b=a&&(!!g3a(a)||!!gr(a)))?c.return(""):c.return("Must be a CL number or Gerrit URL")})},j3a=function(a){return a==null?!1:i3a.has(a.name)},k3a=
function(a){return(a==null?void 0:a.name)==="hotlist"},l3a=function(a){return a==null?!1:a.href!=null&&a.value!=null},m3a=function(a){return Array.isArray(a)?a.every(l3a):!1},hr=function(a){return{value:String(a),href:"issues/"+a}},n3a=function(a){return{value:a,href:"https://critique.corp.google.com/"+a}},o3a=function(a){var b=bVa();b=b===void 0?!1:b;return{value:a.changeNumber+" | "+pj(a.host),href:fr(a,b)}},p3a=function(a){return{value:String(a),href:"issues?q=hotlistid:"+a}},q3a=function(a){return{value:a,
href:"https://irm.corp.google.com/"+a}},r3a=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},t3a=function(a,b){var c=new Map(a.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=ir[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=ir[r.placeholder.role])!=null?w:"",r.placeholder.count]}));a=lWa(a.filter(function(r){return r.user}));b=lWa(b.filter(function(r){return r.user}));
for(var e=[],f=[],g=l(c),k=g.next();!k.done;k=g.next()){var m=l(k.value);k=m.next().value;m=m.next().value;k.length!==0&&k!==ir.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==m&&e.push(k+" ("+d.get(k)+" > "+m+")"):e.push(k+" ("+m+")"))}d=l(d);for(g=d.next();!g.done;g=d.next())k=l(g.value),g=k.next().value,k=k.next().value,g.length!==0&&g!==ir.JOB_ROLE_UNSPECIFIED&&(c.has(g)||f.push(g+" ("+k+")"));c=new Set([].concat(q(a.keys()),q(b.keys())));c=l(c);g=c.next();for(d={};!g.done;d={addedAllocationsByKey:void 0},
g=c.next())g=g.value,g.length!==0&&(k=void 0,d.addedAllocationsByKey=mWa((k=a.get(g))!=null?k:[]),m=void 0,k=mWa((m=b.get(g))!=null?m:[]),d.addedAllocationsByKey.size>0&&(m=s3a(g,d.addedAllocationsByKey,k),m.length>0&&e.push(m)),d=new Map([].concat(q(k.entries())).filter(function(r){return function(w){var x=l(w);w=x.next().value;x.next();return!r.addedAllocationsByKey.has(w)}}(d))),d.size>0&&(d=s3a(g,d,new Map),d.length>0&&f.push(d)));return{additions:e,removals:f}},s3a=function(a,b,c){var d=[];b=
l(b);for(var e=b.next();!e.done;e=b.next()){e=l(e.value);var f=e.next().value;e=e.next().value;f=c.get(f);if(!Dm(e,f)){if(d.length===0){var g=void 0;d.push(u3a(e.user,(g=f)==null?void 0:g.user));g=void 0;d.push(v3a(e.user,(g=f)==null?void 0:g.user))}var k=void 0,m=void 0;g=w3a((k=e.allocation)==null?void 0:k.startDate,(m=e.allocation)==null?void 0:m.endDate);k=void 0;e=x3a(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(", ")+")")},w3a=function(a,b){var c=new wl("MMM d, yyyy");if(!a&&!b)return"";var d=a?c.format(Bm(a)):"";c=b?c.format(Bm(b)):"";return a?b?d+" - "+c:d+" - End":"Start - "+c},u3a=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: "+ir[a]:a?c?"Custom Role: "+ir[c]+" > "+ir[a]:"Custom Role: None > "+ir[a]:"Custom Role: "+ir[c]+" > None"},v3a=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")},x3a=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=Fo[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=Fo[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},A3a=function(a){var b=a.fieldUpdates.map(function(c){return y3a(c,a)}).filter(hn);
a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",type:"STATUS_UPDATE",important:!1,timestamp:qo(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:void 0});return z3a(b)},z3a=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=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.name==="canonicalId"?a=d:(d.name==="status"&&
a&&(d.newValue==="Duplicate"&&(d.newValue="Duplicate of "+a.newValue),d.oldValue==="Duplicate"&&(d.oldValue="Duplicate of "+a.oldValue),a=void 0),b.push(d));var e,f;((e=a)==null?0:e.oldValue)&&((f=a)==null?0:f.newValue)&&b.push({name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:a.timestamp,oldValue:"Duplicate of "+a.oldValue,newValue:"Duplicate of "+a.newValue});return b},y3a=function(a,b){var c=qo(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:jr(e.oldValue),newValue:jr(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(hr),removed:e.removed.map(hr)};case "blocking_issue_ids":return e=a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(hr),removed:e.removed.map(hr)};case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:en(e.oldValue),newValue:en(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(jr),removed:e.removed.map(jr)};case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map(jr),removed:e.removed.map(jr)};case "child_issue_ids":return e=a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(hr),removed:e.removed.map(hr)};
case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",important:!1,timestamp:c},bVa()?{type:"LINKED_COLLECTION",added:e.added.map(n3a),removed:e.removed.map(n3a)}:{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=en(f.oldValue))!=null?e:"",newValue:(g=en(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:B3a(e.oldValue),newValue:B3a(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(hr),removed:e.removed.map(hr)};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(ua){return o3a(ua)}),removed:e.removed.map(function(ua){return o3a(ua)})};
case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(p3a),removed:e.removed.map(p3a)};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(hr),removed:e.removed.map(hr)};case "staffing.planned_allocations":if(!bVa())break;e=a.collectionUpdate;e=t3a(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},bVa()?{type:"LINKED_COLLECTION",added:e.added.map(q3a),removed:e.removed.map(q3a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "postmortems":return e=a.collectionUpdate,Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},bVa()?{type:"LINKED_COLLECTION",added:e.added.map(r3a),
removed:e.removed.map(r3a)}:{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?Np[e.oldValue]:"",newValue:e.newValue!=null?Np[e.newValue]:""};case "retention":e=a.singleValueUpdate;var m,r;return{name:"retention",displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(m=C3a(e.oldValue))!=null?m:"",newValue:(r=C3a(e.newValue))!=
null?r:""};case "reporter":return e=a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:jr(e.oldValue),newValue:jr(e.newValue)};case "severity":return e=a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?UYa[e.oldValue]:"",newValue:e.newValue!=null?UYa[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var w,x,D,H;return{name:"sloStartTime",
displayName:"SLO Start Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((D=(w=e.oldValue)==null?void 0:w.seconds)!=null?D:"<none>"),newValue:String((H=(x=e.newValue)==null?void 0:x.seconds)!=null?H:"<none>")};case "slo_end_time":e=a.singleValueUpdate;var J,O,R,V;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((R=(J=e.oldValue)==null?void 0:J.seconds)!=null?R:"<none>"),newValue:String((V=(O=e.newValue)==null?void 0:
O.seconds)!=null?V:"<none>")};case "status":e=a.singleValueUpdate;var ba,oa;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:pj((ba=kr.get(e.oldValue))!=null?ba:""),newValue:pj((oa=kr.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 ta,ka;return{name:"title",
displayName:"Title",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(ta=e.oldValue)!=null?ta:"",newValue:(ka=e.newValue)!=null?ka:""};case "type":e=a.singleValueUpdate;var Ca,ja;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(Ca=D3a.get(e.oldValue))!=null?Ca:"",newValue:(ja=D3a.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:jr(e.oldValue),
newValue:jr(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")}},jr=function(a){return aTa()(Om(a))},B3a=function(a){return a==null?"<none>":GSa(a)},C3a=function(a){if(a!=null)switch(XYa[a]){case "COMPONENT_DEFAULT":return"Component Default";
case "INDEFINITE":return"Indefinite"}},I3a=function(a){var b=void 0,c=void 0;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.updates.flatMap(function(w){return w.fieldUpdates}),f=void 0,g=(f=Ia(e.filter(function(w){return w.field==="assignee"})))==null?void 0:f.singleValueUpdate;g&&(b=E3a(g));f=void 0;var k=(f=Ia(e.filter(function(w){return w.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=E3a(k));f=void 0;k=(f=Ia(e.filter(function(w){return w.field==="status"})))==null?
void 0:f.singleValueUpdate;var m=void 0;f=(m=Ia(e.filter(function(w){return w.field==="canonical_issue_id"})))==null?void 0:m.singleValueUpdate;m=void 0;e=(m=Ia(e.filter(function(w){return w.field==="is_archived"})))==null?void 0:m.singleValueUpdate;if(k){m=k.oldValue!=null?Mp[k.oldValue]:void 0;k=k.newValue!=null?Mp[k.newValue]:void 0;var r=void 0;f=en((r=f)==null?void 0:r.newValue);F3a(d,G3a({oldStatus:m,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g}))}else g&&
b?F3a(d,[lr("Reassigned to "),H3a(b),lr(".")]):f&&(k=void 0,f=en((k=f)==null?void 0:k.newValue),F3a(d,G3a({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g})));e&&F3a(d,[lr(e.newValue?"Archived.":"Unarchived.")])}},G3a=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&&xo.get(b);var g=c&&xo.get(c);if(b&&g&&!b.open&&g.open)return[lr("Status: "+
g.displayValue+" (reopened)")];switch(c){case "ASSIGNED":if(d)return[lr("Assigned to "),H3a(d),lr(".")];break;case "ACCEPTED":if(d)return[lr("Accepted by "),H3a(d),lr(".")];break;case "FIXED":return a&&d?[lr("Marked as fixed, reassigned to "),H3a(d),lr(".")]:[lr("Marked as fixed.")];case "VERIFIED":if(e)return[lr("Verified by "),H3a(e),lr(".")];break;case "DUPLICATE":if(f)return[lr("Status: Duplicate of "),{text:f,tag:"bug"}]}return[lr("Status: "+pj(g.displayValue))]},E3a=function(a){if(a)return a.newValue},
lr=function(a){return{text:a,tag:""}},H3a=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 lr(a.obfuscatedEmailAddress);break;case "DELETED":return lr("Deleted User");case "UNAVAILABLE":return lr("Unavailable User");default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return lr("User")},L3a=function(a){if(!a.length)return[];a=Q0a(a,function(b){return b.issueId}).flatMap(J3a);
return K3a(a,"DESCENDING")},J3a=function(a){if(!a.length)return[];a=M3a(a);I3a(a);return a.map(function(b){return N3a(b)}).filter(P3a)},P3a=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},M3a=function(a){var b=Q3a(a,"ASCENDING");a=[new R3a];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ia(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var g;if(!(g=d.hasInitialUpdate)&&!(g=!d.author||
!c.author)){g=d.author;var k=c.author;g=!(g===k||(g.emailAddress||k.emailAddress?g.emailAddress===k.emailAddress:(g.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&g.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(g||d.comment&&c.comment)e=!1;else{if(g=(f=d.updates[0])==null?0:f.timestamp)f=(e=d.updates[0])==null?void 0:e.timestamp,g=Math.abs(qo(f)-qo(c.timestamp))>36E5;e=g?!1:!0}}e?S3a(d,c):a.push(S3a(new R3a,c))}return a},T3a=function(a){var b={};if(a==null)return b;a=Ni(a,mr,1,Oi(),jb);
a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={admin:!1,writer:!1,appender:!1,reader:!1};b[d]=b[d]||e;switch(c.getRelation()){case 1:b[d].admin=!0;break;case 2:b[d].writer=!0;break;case 3:b[d].appender=!0;break;case 4:b[d].reader=!0}}return b},U3a=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})},V3a=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,
total:a.descendantCount}},W3a=function(a,b){if(a==null)return 0;var c=0;a=l(a.aggregatedStatus);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.issueIds===void 0?[]:d.issueIds;d.status===b&&(c+=e.length)}return c},X3a=function(a){var b,c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},Y3a=function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},Z3a=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(hn);return S0a(a)},$3a=function(a,b){var c;a=(c=a.componentPathInfo)==null?void 0:c.allCustomField;if(!a)return!0;c=l(a);var d=c.next();for(a={};!d.done;a={customField$jscomp$8:void 0},d=c.next())if(a.customField$jscomp$8=d.value,a.customField$jscomp$8.required){d=!!a.customField$jscomp$8.typedDefaultValue;var e=void 0,f=void 0,
g=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(m){return m.customFieldId===k.customField$jscomp$8.customFieldId}}(a));if(!d&&!g)return!1}return!0},a4a=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},b4a=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"}},c4a=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=a4a(b);return{title:"Allow "+(b===1?"members of the group to ":b4a(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)+"."}},d4a=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"}},nr=function(a){return{id:a,
triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},e4a=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(hn).map(function(d){return Object.assign({},d,{experimentalFields:c.get(d.issueId)})})},g4a=function(){return f4a.performance&&f4a.PerformanceObserver&&typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},h4a=function(a){var b=a.name;
if(b!=null&&(a=Math.round(a.duration),!isNaN(a))){var c=l(b.split(" -> "));b=c.next().value;c=c.next().value;if(b!=null&&c!=null)return{from:b,to:c,duration:a}}},j4a=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(i4a);if(b!=null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},n4a=function(){var a=window.performance.getEntries(),b=j4a(a);if(b==null)return[];var c=b.startTime;return a.filter(k4a).filter(l4a).filter(m4a).filter(function(d){return d.startTime<=
c})},i4a=function(a){var b=a.entryType;a=a.name;return b==="measure"&&a.startsWith("browserStart")},k4a=function(a){return!a.name.startsWith("Zone")},m4a=function(a){return a.entryType==="resource"},o4a=function(a){return a.initiatorType==="xmlhttprequest"},l4a=function(a){return a.name.match(/\.html$/)==null},p4a=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}},r4a=
function(){return typeof q4a.gtag==="function"},s4a=function(a){if(a!=null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},v4a=function(a){a=a.getEntries().map(h4a).map(s4a);a=l(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c&&c.hitType){b=c.hitType;var d=c.eventAction;var e=c.eventCategory,f=c.eventLabel;c=c.eventValue;d=Object.assign({},d!==void 0?{event_action:d}:{},e!==void 0?{event_category:e}:{},f!==void 0?
{event_label:f}:{},c!==void 0?{event_value:c}:{});t4a(b,d)}}setTimeout(u4a,100)},u4a=function(){if(!w4a){var a=n4a(),b=a.filter(function(c){return!o4a(c)}).reduce(p4a,x4a());or("r-until-cf","asset","count",b.count);or("r-until-cf","asset","transferSize",b.transferSize);or("r-until-cf","asset","duration",b.duration);or("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(o4a).reduce(p4a,x4a());or("r-until-cf","xhr","count",a.count);or("r-until-cf","xhr","transferSize",a.transferSize);or("r-until-cf",
"xhr","duration",a.duration);w4a=!0}},or=function(a,b,c,d){t4a(a,Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?{event_value:d}:{}))},pr=function(a,b){y4a[a]=b;z4a&&ln("[stub gtag.ts] Event scoped dimension set {"+a+": "+b+")}")},A4a=function(a){if(r4a()){var b={};q4a.gtag("set","user_properties",(b.dimension13=a,b))}z4a&&ln("[stub gtag.ts] gtag('set', 'user_properties', {dimension13: "+a+")}")},t4a=function(a,b){b!=null&&(B4a("page_location","Scrubbed Page URL"),
B4a("page_title","Scrubbed Page Title"),b=Object.assign({},y4a,b),r4a()&&q4a.gtag("event",a,b),z4a&&ln("[stub gtag.ts] gtag('event')",a,b))},B4a=function(a,b){if(r4a()){var c={};q4a.gtag("set",(c[a]=b,c))}z4a&&ln("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},G4a=function(){var a=a===void 0?or:a;var b=Date.now(),c=qr(b);qr(C4a())!==c?a("retention","first-visit"):(c=qr(b),qr(C4a())===c&&D4a()===1&&a("retention","second-visit"));a=qr(b);qr(C4a())!==a?E4a(1):(a=D4a()||0,E4a(a+1));F4a(b)},qr=function(a){if(a!=
null)return(new Date(a)).toLocaleDateString()},H4a=function(){return ad.apply(0,arguments).map(String).join("__")},J4a=function(){for(var a={},b=l(Object.entries(I4a)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d>1&&(a[c]=d)}return a},K4a=function(){var a=Object.values(I4a),b=a.map(function(c){return c-1}).reduce(wVa,0);a=a.reduce(wVa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},L4a=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("/")},M4a=function(a){return a instanceof ak},N4a=function(a){return a instanceof rr},O4a=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()})})})}},P4a=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},S4a=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a))if(a=Bea(Q4a,R4a(a))){if((a=Ni(a,sr,1,Oi()))&&a.length===1)return br(a[0])}else mn("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},T4a=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)}},U4a=function(a){var b=l(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}},V4a=function(a){var b=new tr;b=Xo(b,1,Number(a.targetIssueId));return Xo(b,2,a.afterIssueId?Number(a.afterIssueId):void 0)},W4a=function(a){return{targetIssueId:String(En(a,1)),afterIssueId:nn(En(a,2))?String(En(a,2)):
void 0}},X4a=function(a){return{sourceIssueId:nn(En(a,3)),issueRelationships:a.getIssueRelationshipsList().map(W4a),totalSize:a.getTotalSize()}},Y4a=function(a){var b=[];a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.issueRelationships,totalChildCount:d.totalSize})}return b},Z4a=function(a){return!(a==null||!a.relatedChildren.length)},a5a=function(a,b){var c=[].concat(q(a));a=new Set(a.map(function(g){return g.targetIssueId}));
b=l(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$6:void 0},d=b.next())if(e.newItem$jscomp$6=d.value,!a.has(e.newItem$jscomp$6.targetIssueId)){d=c.findIndex(function(g){return function(k){return k.targetIssueId===g.newItem$jscomp$6.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$6.afterIssueId?d===-1?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$6);a.add(e.newItem$jscomp$6.targetIssueId)}return $4a(c)},b5a=function(a,b){return $4a(a.filter(function(c){return c.targetIssueId!==b}))},$4a=function(a){for(var b=
[],c=l(a.entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:(e=a[d-1])==null?void 0:e.targetIssueId});b.push(d)}return b},c5a=function(a){var b=new Map;a=l(a);for(var c=a.next(),d={};!c.done;d={previousOperation:void 0},c=a.next()){var e=c.value;c=e.issues.map(function(f){return f.issueId}).join(",");d.previousOperation=b.get(c);d.previousOperation?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:d.previousOperation.issues,
eventTimestamps:[].concat(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=l(b);d=a.next();for(c={};!d.done;c={operation$jscomp$6:void 0},d=a.next())c.operation$jscomp$6=d.value,c.operation$jscomp$6.newRelations=c.operation$jscomp$6.newRelations.map(function(f){return function(g){return f.operation$jscomp$6.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===
g.targetIssueId})}}(c));return b.sort(function(f,g){var k=f.newParentChildrenSnapshot,m=g.newParentChildrenSnapshot;f=Math.min.apply(Math,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 m.findIndex(function(w){return w.targetIssueId===r.issueId})})));return f===g?0:f<g?-1:1})},i5a=function(a){return a?(a=a.getResponse())?Ni(a,d5a,1,Oi()).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:KFa(e.getUrl()),priorityRating:e5a(e==null?void 0:(g=e.getPriority())==null?void 0:Ii(g,1)),keyResults:(k=Ni(e,f5a,7,Oi()).map(g5a).filter(hn))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=X(b,h5a,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(hn):[]:[]},g5a=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),
url:KFa(a.getUrl()),priorityRating:e5a(a==null?void 0:(b=a.getPriority())==null?void 0:Ii(b,1))}}},e5a=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"}},l5a=function(a){return a.getResponsesList().map(function(b){return Ni(b,j5a,1,Oi()).map(k5a)}).flat().filter(function(b){return b.signals.length>0})},k5a=function(a){var b=m5a(a.getTask());a=Ni(a,n5a,2,Oi());return{task:b,
signals:a.map(o5a).filter(hn)}},q5a=function(a){return a.getResponsesList().map(function(b){return Ni(b,p5a,1,Oi()).map(m5a).filter(hn)}).flat()},m5a=function(a){if(a){var b=a.getTaskId(),c=r5a(Ii(a,2)),d=a.getTitle(),e=qn(a.getCreatedTimestamp()),f=qn(a.getLastModifiedTimestamp()),g=a.getExternalLink();var k=Ni(a,s5a,7,Oi());b={taskId:b,taskResourceType:c,title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:g,resourceRelationships:k.map(t5a),isStaleTask:Ri(a,13),snoozeUntilTimestamp:qn(X(a,
ej,14)),manualSignalTimestamp:qn(X(a,ej,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:u5a[Ii(a,1)],lastMentionTimestamp:qn(X(a,ej,2)),lastMentionLink:xi(a,4),docwrapRequestTimestamp:qn(X(a,ej,3)),docwrapRequestLink:xi(a,5)},b.driveResource=a):cj(a,v5a,9,w5a)&&(a=jm(a,v5a,9,w5a),a={priority:Np[a.getPriority()],accessLevel:mXa[a.getAccessLevel()],hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(bn)},b.issueResource=a);return b}},t5a=function(a){return{category:x5a[a.getCategory()],
roleName:xi(a,2)}},o5a=function(a){var b={timestamp:qn(a.getTimestamp()),url:KFa(a.getUrl()),signalStatus:Ri(a,8)?1:0};if(cj(a,y5a,3,ur)){a=jm(a,y5a,3,ur);var c={signal:z5a[a.getSignal()]};vr.has(c.signal)?(wr(a,2,A5a)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(cj(a,xr,5,ur)){c=jm(a,xr,5,ur);a={signal:B5a[c.getSignal()]};if(vr.has(a.signal)){Ji(c,tn,4)&&(a.reviewEstimate=oTa(X(c,tn,4)));c=X(c,C5a,5);var d=c==null?void 0:jm(c,D5a,2,E5a);c=d?{currentAvailability:{comeBackTimestamp:qn(d.getComeBackTimestamp())}}:
(c=c==null?void 0:jm(c,F5a,1,E5a))?{futureAvailability:{comeBackTimestamp:qn(c.getComeBackTimestamp()),futureOooTimestamp:qn(X(c,ej,1))}}:void 0;a.clAuthorAvailability=c}else a=null;if(!a)return null;b.changelistAlert=a}else if(cj(a,G5a,4,ur)){c=jm(a,G5a,4,ur);a={signal:H5a[c.getSignal()]};if(vr.has(a.signal)){if(d=c.getCommentNumbers())d=Wm(d,1,Oi(bn)),d.length>0&&(a.commentNumbers=d);if(c=jm(c,I5a,3,J5a))a.configurableAlertSubscriptionId=xi(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(cj(a,
K5a,7,ur)){a=jm(a,K5a,7,ur);a={signal:L5a[a.getSignal()]};a=vr.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(cj(a,M5a,9,ur)){a=jm(a,M5a,9,ur);a={signal:UUa[a.getSignal()]};a=vr.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(cj(a,N5a,10,ur)){a=jm(a,N5a,10,ur);a={signal:VUa[a.getSignal()]};a=vr.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},r5a=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"}},O5a=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}},P5a=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},Q5a=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}},S5a=function(a){return a?R5a[a]:R5a.ISSUE_SIGNAL_UNSPECIFIED},U5a=function(a){return a?T5a[a]:T5a.DRIVE_SIGNAL_UNSPECIFIED},W5a=function(a){return a?V5a[a]:V5a.CHANGELIST_SIGNAL_UNSPECIFIED},Y5a=function(a){return a?X5a[a]:X5a.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},Z5a=function(a){return a?MUa[a]:MUa.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},$5a=function(a){return a?OUa[a]:OUa.IRM_SIGNAL_UNSPECIFIED},a6a=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),
authorDisplayName:xi(a,2),content:a.getContent(),lastModifiedTimestamp:qn(X(a,ej,4))}},c6a=function(a,b){if(!b||!b.getData())return[];a=b.getContextsMap().get(a);if(!a)return[];var c=a.getIterationIdsList_asString(),d,e;return Array.from((e=(d=b.getData())==null?void 0:d.getIterationsMap())!=null?e:[],function(f){if(c.some(function(r){return r===f[0].toString()})){var g=f[1],k,m=(k=b.getData())==null?void 0:k.getWorkspacesMap().get(g.getWorkspaceId());return b6a(g,m)}}).filter(hn)},b6a=function(a,
b){if(a&&a.getType()===3){var c=(new Date).getTime()/1E3,d=qn(a.getStartTime()),e=qn(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}}},f6a=function(a){var b=a.getResponse();return b&&Ni(b,yr,1,Oi())&&X(b,d6a,2)?Ni(b,yr,1,Oi()).map(function(c){var d=X(b,d6a,2);if(c&&d){var e=c.getId();
d=c6a(c.getId(),d);var f=c.getId(),g;c=c&&xc(c,15,e6a,Vb)?(g=xc(c,15,e6a,Vb).get(f))==null?void 0:Vm(g,1,Oi()):void 0;e={workItemId:e,iterations:d,okrIds:c}}else e=void 0;return e}).filter(hn):[]},zr=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"},j6a=function(a){var b={};a=l(xc(a,1,g6a,Vb,jb).entries());for(var c=a.next();!c.done;c=
a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:h6a[Ii(d,1)],detailedUserType:i6a[Ii(d,2)]}}return b},k6a=function(a,b){return a.map(function(c){return b[c]||null})},l6a=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},m6a=function(a){switch(a){case 1:return"daily";case 2:return"weekly";case 3:return"monthly";case 0:break;default:wb(a)}},n6a=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return wb(a)}},
o6a=function(a){var b={id:a.getId()};a.getVersion()&&(b.version=a.getVersion());return b},p6a=function(a){var b=(new Ar).setId(a.id);a.version&&b.setVersion(a.version);return b},q6a=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},r6a=function(a){return(new Br).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},s6a=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:Ii(b,2))===1},t6a=function(a){var b;
return((b=X(a,Cr,1,jb))==null?void 0:b.getEffectiveSloEditPolicy())===1},v6a=function(a){var b=X(a,Xm,2),c=m6a(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("ie");if(c==null)throw Error("je");if(d==null)throw Error("ke");if(e==null)throw Error("le");var f=a.getId_asLegacyNumberOrString();b=cn(b);var g=a.getOrdinal();d=o6a(d);e=q6a(e);var k=rm(a,7),m=a.getTypesList().map(sYa);a=u6a(a,9,Oi(bn));return{id:f,lead:b,frequency:c,ordinal:g,timeZone:d,timeOfDay:e,daysRemaining:k,
types:m,sloIds:a}},w6a=function(a){var b=(new Dr).setId(a.id),c=an(a.lead);b=Zi(b,Xm,2,c).setFrequency(n6a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(p6a(a.timeZone)).setTimeOfDay(r6a(a.timeOfDay)).setDaysRemaining(a.daysRemaining).setTypesList(a.types.map(tYa));return Er(b,9,a.sloIds)},x6a=function(a){return AYa(a.getIt())},y6a=function(a){var b=new Fr,c=b.setIt;var d=(new Gr).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);var e=a.elements.map(FYa);d=
$i(d,5,e);e=a.effectiveElements.map(FYa);d=$i(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("rd`"+a);}a=$m(d,8,a);return c.call(b,a)},z6a=function(a){return{id:a.getId_asString(),name:a.getName(),description:a.getDescription()}},A6a=function(a){if(a=a.getIt())return X_a(a);throw Error("me");},B6a=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(bn),
pathIds:a.getPathIdsList_asString()}},C6a=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"}}},D6a=function(a){return{id:a,triage:[{id:0}],playbooks:[]}},E6a=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},F6a=function(a){var b;return(b=dn(a))!=null?b:null},G6a=function(a){var b;return(b=en(a))!=null?b:null},H6a=function(a,b){b=(b===void 0?{}:b).comment;
return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},Hr=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},I6a=function(a){var b={};a=(b.component=a||void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},J6a=function(a){return{path:"/components/"+a}},K6a=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},
L6a=function(a){return{path:"/slos/"+a+"/edit"}},M6a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},N6a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},O6a=function(a){var b;return(b=wo(a))==null?void 0:b.title},P6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.status)!=null?c:void 0},Q6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.priority)!=null?c:void 0},R6a=function(a){var b,c;return(c=(b=wo(a))==
null?void 0:b.assigneeUser)!=null?c:void 0},S6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.reporterUser)!=null?c:void 0},T6a=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return en(a)},U6a=function(a){var b;a=(b=wo(a))==null?void 0:b.componentId;return en(a)},V6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.ccUsers)!=null?c:[]},W6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},X6a=function(a){var b,
c;return(c=(b=wo(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},Y6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.type)!=null?c:void 0},Z6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.foundInVersion)!=null?c:[]},$6a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.targetedToVersion)!=null?c:[]},a7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.changelist)!=null?c:[]},b7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.postmortems)!=null?c:[]},c7a=function(a){var b;
return((b=wo(a))==null?void 0:b.inProd)||!1},d7a=function(a){var b;return(b=wo(a))==null?void 0:b.effort},e7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.staffing)!=null?c:void 0},f7a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},g7a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},i7a=function(a){return h7a(a)},h7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.isDeleted)!=null?c:!1},k7a=function(a){return j7a(a)},
j7a=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},l7a=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},n7a=function(a){return m7a(a)},m7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.retention)!=null?c:void 0},o7a=function(a){var b,c;return(c=(b=wo(a))==null?void 0:b.duplicateOfIssueId)!=null?c:void 0},q7a=function(a){return p7a(a)},p7a=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?
void 0:b.retentionState)!=null?c:void 0},r7a=function(a){var b;return en(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},s7a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},t7a=function(a){return a==null?void 0:a.effortSpec},u7a=function(a){a=t7a(a);return!(!a||!a.name&&!a.inherit)},v7a=function(a){return a==null?void 0:a.componentPathInfo},y7a=function(a){if(!a)return{};var b,c=l((b=a.match(w7a))!=null?b:[]);c.next();b=c.next().value;var d;
a=l((d=a.match(x7a))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:dn(b),commentVersion:dn(d)}},Ir=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Jr=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("pe`"+b);return c},z7a=function(a){return a.getEnvironmentType()==="PROD"?"recommendationSources/1385":"recommendationSources/1057"},A7a=function(a){return rYa(a.getIt().getMentionsList(bn)).map(function(b){return b.mentionedUser}).map(Om).map(function(b){return b||
""})},B7a=function(a){a=a.getIt();return a.hasFormattedComment()?rp(a.getFormattedComment()):{}},C7a=function(a){switch(a.formattingMode){case "LITERAL":return ee({literalFormat:{content:Dh(a.comment)}});case "MARKDOWN":return a={markdownFormat:{content:Dh("")}},ee(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Dh(a.comment)}]}},ee(a);default:return wb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},Kr=function(){return pf(function(a,
b){return Dm(a,b)})},D7a=function(){return function(a){return a.pipe(A(function(b){return{event:b,timestamp:Date.now()}}),nla(a.pipe(lf(1E4,Lr))))}},E7a=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);dVa(c)||(c.preventDefault(),
c.stopPropagation(),Mr(d.domSafe,"http://"+d.originalHref));return v(d.hide())});Q(10);L()()()}a&2&&(a=P(2),B(4),Ag(a.originalHref),B(5),I("href",Gg("http://",a.originalHref),Pe),B(),S(" http://",a.originalHref," "))},F7a=function(a){a&1&&F(0,E7a,11,4,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},I7a=function(a){var b=[],c=[];a=[].concat(q(a)).sort(G7a);a=H7a(a);a=l(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$466:void 0,operator$jscomp$5:void 0},d=a.next())d=d.value,e.name$jscomp$466=d.name,e.operator$jscomp$5=
d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(g){return sca(g)||uca(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(" ")},H7a=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.operator;var e=d.values;if(d=d.id)if(qca(sca)(e))b.push({name:d,operator:c,values:e});else if(qca(rca)(e))b.push({name:d,operator:c,
values:e});else if(qca(uca)(e))b.push({name:d,operator:c,values:e});else throw Error("Ae`"+e);}return b},Nr=function(a,b,c){if(J7a.includes(a)||K7a.includes(a)||L7a.includes(a))return{id:a,operator:b,values:c};throw Error("Be`"+a);},G7a=function(a,b){return M7a.indexOf(a.id)-M7a.indexOf(b.id)},N7a=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}},O7a=function(a,b,c){var d=N7a(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[Nr(d,"=",[b])];case "job_regex":return[Nr(d,"=~",[b])];case "index":case "attempt":case "min_time":case "max_time":return[Nr(d,"=",[Number(b)])];case "q":return[Nr(d,"=",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[Nr(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[Nr(d,"=~",[a?
b+":"+a:b])];case "inverted_call_site_regex":return[Nr(d,"!=",[].concat(q(b.split(","))))];default:return null}},P7a=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}},Q7a=function(a,b){return this._trackRow(b)},R7a=function(a){a&1&&(K(0,"tr",0)(1,"td",3),Q(2),L()());a&2&&(a=P(),B(),xg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Kf("colspan",a.numCols),
B(),S(" ",a.label," "))},S7a=function(a){a&1&&(K(0,"td",3),Q(1),L());a&2&&(a=P(2),xg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Kf("colspan",a._firstRowOffset),B(),S(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},T7a=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();xg("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Kf("data-mat-row",d)("data-mat-col",b);B();yg("mat-calendar-body-disabled",!a.enabled)("mat-calendar-body-active",e._isActiveCell(d,b))("mat-calendar-body-range-start",e._isRangeStart(a.compareValue))("mat-calendar-body-range-end",e._isRangeEnd(a.compareValue))("mat-calendar-body-in-range",e._isInRange(a.compareValue))("mat-calendar-body-comparison-bridge-start",
e._isComparisonBridgeStart(a.compareValue,d,b))("mat-calendar-body-comparison-bridge-end",e._isComparisonBridgeEnd(a.compareValue,d,b))("mat-calendar-body-comparison-start",e._isComparisonStart(a.compareValue))("mat-calendar-body-comparison-end",e._isComparisonEnd(a.compareValue))("mat-calendar-body-in-comparison-range",e._isInComparisonRange(a.compareValue))("mat-calendar-body-preview-start",e._isPreviewStart(a.compareValue))("mat-calendar-body-preview-end",e._isPreviewEnd(a.compareValue))("mat-calendar-body-in-preview",
e._isInPreview(a.compareValue));I("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);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();yg("mat-calendar-body-selected",e._isSelected(a.compareValue))("mat-calendar-body-comparison-identical",e._isComparisonIdentical(a.compareValue))("mat-calendar-body-today",e.todayValue===
a.compareValue);B();S(" ",a.displayValue," ")}},V7a=function(a,b){a&1&&(K(0,"tr",1),F(1,S7a,2,6,"td",4),Qf(2,T7a,5,48,"td",5,U7a),L());if(a&2){a=b.$implicit;b=b.$index;var c=P();B();G(b===0&&c._firstRowOffset?1:-1);B();Rf(a)}},W7a=function(a){return(a==null?void 0:a.nodeName)==="TD"},X7a=function(a){if(W7a(a))var b=a;else if(W7a(a.parentNode))b=a.parentNode;else{var c;W7a((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},Y7a=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},Z7a=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},$7a=function(a,b,c,d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},a8a=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},b8a=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),Ag(a.long),B(2),Ag(a.narrow))},d8a=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=c8a(a,d,e);return Math.floor((b-
a)/24)===Math.floor((c-a)/24)},e8a=function(a,b,c,d){return((a.getYear(b)-c8a(a,c,d))%24+24)%24},c8a=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},f8a=function(){},g8a=function(a){if(a&1){var b=t();K(0,"mat-month-view",4);Eg("activeDateChange",function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("_userSelection",function(c){u(b);var d=P();return v(d._dateSelected(c))})("dragStarted",function(c){u(b);var d=P();return v(d._dragStarted(c))})("dragEnded",
function(c){u(b);var d=P();return v(d._dragEnded(c))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName)("activeDrag",a._activeDrag))},h8a=function(a){if(a&1){var b=t();K(0,"mat-year-view",5);Eg("activeDateChange",
function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("monthSelected",function(c){u(b);var d=P();return v(d._monthSelectedInYearView(c))})("selectedChange",function(c){u(b);var d=P();return v(d._goToDateInView(c,"month"))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},i8a=function(a){if(a&1){var b=t();K(0,"mat-multi-year-view",6);Eg("activeDateChange",
function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("yearSelected",function(c){u(b);var d=P();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){u(b);var d=P();return v(d._goToDateInView(c,"year"))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},j8a=function(){},k8a=function(a){a&1&&(Bd(),K(0,"svg",2),M(1,"path",3),L())},m8a=function(a){a=
a.searchParams;var b=a.get("ota"),c=a.get("youtube_persona"),d=a.getAll("label");if(b)return{account:b,accountType:"ota"};if(c)return{account:c,accountType:"youtube_persona"};b=l(d);for(c=b.next();!c.done;c=b.next()){c=c.value;d=l(l8a.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,c.startsWith(e))return{account:c.replace(e,""),accountType:l8a.get(e)}}var f,g;return{account:(g=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?g:"",accountType:"gaia"}},n8a=function(a){a&1&&(K(0,"b-glue"),
M(1,"mat-icon",4),L())},o8a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},p8a=function(a,b){if(a&1){var c=t();K(0,"span",6);F(1,o8a,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();Ag(a.label);B();yg("final",d===b-1)}},r8a=function(a){a&1&&(K(0,"div",5),Qf(1,p8a,6,6,null,null,q8a),L());a&2&&(a=P(2),B(),Rf(a.urls))},s8a=function(a){a&1&&F(0,r8a,3,0,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},t8a=function(a){a&1&&(K(0,"div",4),Yf(1,5),L());a&2&&(a=P(),I("onedevIsHovercardReady",a.hovercardReady))},u8a=function(a){var b=a.filter(function(k){var m;return(m=k.experimentalFields)==null?void 0:m.clusterIds.length});
a=new Map;b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(c.experimentalFields.clusterIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=(f=a.get(e))!=null?f:new Set;g.add(c.issueId);a.set(e,g)}}a=[].concat(q(a.values())).map(function(k){return[].concat(q(k))});return Iq(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,m){return m.length-k.length}).slice(0,3).map(function(k){return[].concat(q(k))})},Or=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(yo(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";if(yo(a)&&d==="CONFIRMED")return"CONFIRMED";if(yo(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"},Pr=function(a){if(a){var b=
Or(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 yo(a)?"REOPENED":e;throw Error("De");}}},w8a=function(a,b){return b.length?
a.filter(function(c){return[].concat(q(b)).some(function(d){return v8a(c,d)})}):a},x8a=function(a,b){return b.length?a.filter(function(c){return[].concat(q(b)).every(function(d){return d.check(c)})}):a},v8a=function(a,b){var c,d;return!((c=a.experimentalFields)==null?0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},Qr=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},y8a=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 Qr(d)}))},z8a=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},A8a=function(a,b){return{displayAs:"Component: "+a.name,queryAtom:"componentId:"+a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},Rr=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(hn);return b.length===0?"":a+":("+b.join("|")+
")"+(c?"+":"")},Sr=function(){return ad.apply(0,arguments).filter(Boolean).join(" AND ")},B8a=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},C8a=function(a,b){return a.filter(function(c){return Or(c)===b})},Tr=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},D8a=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," "))},E8a=function(a){var b=[];a=[].concat.apply([],q(a.map(function(e){return e.actions})));a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$146:void 0},c=a.next())d.action$jscomp$146=c.value,b.some(function(e){return function(f){return Dm(e.action$jscomp$146,f)}}(d))||b.push(d.action$jscomp$146);return b},F8a=function(a){return Array.from(new Set([].concat.apply([],q(a.map(function(b){return b.issueIds})))))},H8a=function(a){return G8a.has(a)},I8a=function(a){return{encryptedMedia:Tda(io(a,
1,void 0,jb)),errorMessage:a.getErrorMessage()}},K8a=function(a){var b=new J8a;b=Ur(b,1,gb(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new Vr).setIt(vXa(a));c.call(b,a)}return b},M8a=function(a){var b;return{attachments:((b=a.getAttachmentsList())!=null?b:[]).map(L8a)}},L8a=function(a){if(a!=null)return KXa(a.getIt())},N8a=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),Ag(a))},Q8a=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=O8a(b),f=O8a(c),g=O8a(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=P8a("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=P8a("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=P8a("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,g);return b+a+c+k+d},P8a=function(a,b,c){return(new cm(a)).format({COUNT:b,TEXT:c})},T8a=function(a){return a.isInternal?a.isProd?R8a:S8a:[]},
U8a=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},V8a=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},W8a=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,editCount:0,variations:new Set}},X8a=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},Z8a=function(a,b){if(Y8a[a])return Y8a[a][b]},$8a=function(a){return a?za(a,"@")?a:a==="[Deleted User]"?
a:a+"@google.com":""},a9a=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},b9a=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)},c9a=function(a){return a.split("").every(function(b){return b.length===
1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},e9a=function(a){if(a!=null){a=[].concat(q(a)).slice(0,100);a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=d9a[b.value])return b}},h9a=function(a){if(a.includes('"')||a.includes("'"))return[];var b=[].concat(q(a.matchAll(f9a)));if(b.length)return b.map(function(c){c=l(c);c.next();c.next();return c.next().value});a=[].concat(q(a.matchAll(g9a)));return a.length?a.map(function(c){c=l(c);c.next();c.next();return c.next().value}):[]},i9a=function(a,b){var c;
a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},j9a=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},k9a=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"))},l9a=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(),B(),Ag(a.person.email))},m9a=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,
" "))},n9a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.person.title))},o9a=function(a){a&1&&M(0,"li",18)},p9a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.person.department))},q9a=function(a){a&1&&(Wf(0),M(1,"mat-icon",14),K(2,"div",15)(3,"ul",16),E(4,n9a,2,1,"li",8)(5,o9a,1,0,"li",17)(6,p9a,2,1,"li",8),L()(),Xf());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))},r9a=function(a){a&1&&(Wf(0),
M(1,"mat-icon",19),K(2,"div",15),Q(3),L(),Xf());a&2&&(a=P(),B(3),Ag(a.person.location))},s9a=function(a){a&1&&(Wf(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()()()(),Xf());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))},u9a=function(a){return a&&t9a.test(a)?a.split("@")[0]:""},v9a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)===
"DOMAIN_PROFILE"}):null},w9a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},x9a=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:u9a(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[g];var m;g=(m=w9a(d==null?void 0:d.email))==null?void 0:m.value;var r,
w;m=d==null?void 0:(r=d.name)==null?void 0:(w=r[0])==null?void 0:w.displayName;var x,D;r=d==null?void 0:(x=d.photo)==null?void 0:(D=x[0])==null?void 0:D.url;w=v9a(d==null?void 0:d.organization);x=w==null?void 0:w.title;D=w==null?void 0:w.department;w=w==null?void 0:w.location;return{ldap:u9a(g),email:g||c||"",name:m||"",imageUrl:r,title:x,department:D,location:w}})},A9a=function(){var a={timeout:5E3};a=a===void 0?{}:a;return y9a!=null?y9a:y9a=z9a(a)},B9a=function(){return new Promise(function(a,b){window.gapi.load("client",
{callback:a,onerror:b})})},z9a=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=wh("https://apis.google.com/js/api.js");c=z(c,C9a(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Fe");return b.client&&b.client.load?c.jumpTo(3):z(c,B9a(),3)}return c.return(b)})},D9a=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},F9a=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(E9a.has(a))return E9a.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){E9a.delete(a)});E9a.set(a,b);return b}return Promise.resolve()},G9a=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})},H9a=function(a,b){a&1&&(K(0,"div",1),Bd(),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),Ag(a))},Wr=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)},I9a=function(a,b){a!=null&&this.append.apply(this,arguments)},Xr=function(a){J9a.call(this,a)},Yr=function(a,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;a instanceof K9a||(L9a==void 0&&(L9a=new M9a),a=L9a.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();J9a.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;
this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},N9a=function(a,b){a&1&&(K(0,"onedev-person-hovercard-body",1),T(1,"async"),fg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),fg(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$)))},O9a=function(a){a&1&&(K(0,"onedev-person-hovercard",2,0),fg(2,
0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),L());if(a&2){a=sg(1);var b=P();I("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},P9a=function(a){a&1&&Yf(0)},Q9a=function(a){a&1&&(K(0,"span",2),E(1,P9a,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-person-card",4),L());if(a&2){a=sg(3);var b=P(),c=sg(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},R9a=function(a){a&
1&&Yf(0)},S9a=function(a){a&1&&E(0,R9a,1,0,"ng-container",3);a&2&&(P(),a=sg(3),I("ngTemplateOutlet",a))},T9a=function(a){a&1&&fg(0)},W9a=function(a){if(a&1){var b=t();Wf(0,1);K(1,"onedev-hovercard-action",3);T(2,"async");N("onAction",function(){u(b);var e=P();return v(U9a(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(V9a(e))});K(7,"span");Q(8);L()();Xf()}if(a&2){a=P();B();var c;I("disabled",(c=U(2,4,a.actionService.assigneeUpdating$))!=
null?c:!1);B(3);Ag(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B();var d;I("disabled",(d=U(6,6,a.actionService.ccUpdating$))!=null?d:!1);B(3);Ag(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},$9a=function(a){return!a.endsWith("/history")&&!!a.match(X9a)||!!a.match(Y9a)||!!a.match(Z9a)},Zr=function(a){return a.type==="hyperlink"},a$a=function(a){return Zr(a)&&$9a(a.href)},c$a=function(a){return Zr(a)&&!!a.href.match(b$a)},d$a=function(a,b){b=b===void 0?!1:b;return!a.endsWith("/history")&&
a.match(X9a)?(a=a.match(X9a)[2],b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png"):a.match(Y9a)?"https://plx-alerts.corp.google.com/chart/?"+a.match(Y9a)[1]:null},e$a=function(a){return a.type==="issueReference"},f$a=function(a){return Zr(a)&&!a$a(a)&&!(Zr(a)&&a.href.startsWith("mailto:"))},g$a=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")}},h$a=
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();Wf(5);Q(6);T(7,"async");Xf();L()}a&2&&(a=P(2),I("href",U(1,3,a.src$),Pe)("title",U(2,5,a.src$)),B(6),Ag(U(7,7,a.srcTruncated$)))},i$a=function(a){a&1&&(F(0,g$a,2,4,"img",1),T(1,"async"),Nf(2,h$a,8,9,"a",2));if(a&2){var b;a=P();G((b=U(1,1,a.showImage$))?0:2,b)}},j$a=
function(a){a&1&&(M(0,"mat-icon",0),T(1,"async"));a&2&&(a=P(),I("matTooltip",Gg("Unable to load image ",U(1,2,a.srcTruncated$))))},k$a=function(a){a&1&&(M(0,"br"),K(1,"a",1),M(2,"b-secure-image-widget",2),L(),M(3,"br"));if(a&2){a=P();var b=P();B();I("href",a,Pe)("rel",b.EXTERNAL_LINK_REL);B();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},l$a=function(a){a&1&&M(0,"b-secure-image-widget",0);if(a&2){a=P();var b=P();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",
!1)}},m$a=function(a){a&1&&(F(0,k$a,4,5),T(1,"async"),Nf(2,l$a,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)}},n$a=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},o$a=function(a,b){a&1&&M(0,"b-plain-format-section",1);a&2&&I("section",b.$implicit)},p$a=function(a){a&1&&M(0,"b-plain-format-quoted-section",0);a&2&&(a=P(),I("section",a.section))},q$a=function(a){a&1&&M(0,"b-plain-format-unquoted-section",
0);a&2&&(a=P(),I("section",a.section))},s$a=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);var c=P();c.showQuote=!1;r$a(c);return v()});Q(1," - Hide quoted text - ");L()}a&2&&(a=P(),Kf("aria-controls",a.childId))},t$a=function(a){if(a&1){var b=t();K(0,"a",5);N("click",function(){u(b);var c=P();c.showQuote=!0;r$a(c);return v()});Q(1," - Show quoted text - ");L()}a&2&&(a=P(),Kf("aria-controls",a.childId))},u$a=function(a,b){a&1&&M(0,"b-literal-format-presenter",0);a&2&&I("content",
b)},v$a=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))},w$a=function(a,b){a&1&&M(0,"b-plain-format-presenter",0);a&2&&I("content",b)},x$a=function(a,b){a&1&&(K(0,"div",1),M(1,"b-formatted-comment-presenter",2),L());a&2&&(a=P(),yg("invisible",(a.comment||"").trim()==="")("error",b.isFallback),B(),I("formattedComment",b.formattedComment))},
A$a=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(y$a).length;var c=a.filter(function(d){return!y$a(d)}).filter(z$a).length;return{filters:b,text:a.length-b-c,resourceIds:c}},z$a=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:B$a(a)},y$a=function(a){return!!a.match(/\w:\w/g)},C$a=function(a){a&1&&(K(0,"span",11),Bd(),
K(1,"svg",13),M(2,"path",14),L(),K(3,"svg",15),M(4,"path",16),L()())},D$a=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},E$a=function(a){a&1&&fg(0,2)},F$a=function(a){a&1&&(K(0,"thead",0),Yf(1,1),L(),K(2,"tbody",0),Yf(3,2)(4,3),L(),K(5,"tfoot",0),Yf(6,4),L())},G$a=function(a){a&1&&Yf(0,1)(1,2)(2,3)(3,4)},H$a=function(a,b){return a.concat(Array.from(b))},I$a=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},J$a=function(a){a&1&&fg(0,2)},K$a=function(a){a&1&&(K(0,"thead",0),Yf(1,1),L(),K(2,"tbody",2),Yf(3,3)(4,4),L(),K(5,"tfoot",0),Yf(6,5),L())},L$a=function(a){a&1&&Yf(0,1)(1,3)(2,4)(3,5)},M$a=function(a){if(a&1){var b=t();K(0,"textarea",14,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.draftPlaybook.instructions,c)||(d.draftPlaybook.instructions=c);return v(c)});L()}a&2&&(a=P(),Cg("ngModel",a.draftPlaybook.instructions))},
N$a=function(a){a&1&&M(0,"b-live-preview",15);a&2&&(a=P(2),I("comment",a.originalPlaybook.instructions)("formattingMode",a.FormattingMode.MARKDOWN))},O$a=function(a){if(a&1){var b=t();F(0,N$a,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))},Q$a=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(),yg("invisible",a!==b.unimplementedPlaybookData.statsInterval),B(),S(" ",P$a(a)," "))},R$a=function(a){a&1&&(K(0,"th",40),Q(1,"Triage actions"),L())},S$a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.triageActions," "))},T$a=function(a){a&1&&(K(0,"th",40),Q(1,"Acceptance rate"),L())},U$a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.acceptanceRate," "))},V$a=function(a){a&1&&(K(0,
"th",40),Q(1,"Accuracy"),L())},W$a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),Ag(a.accuracy))},X$a=function(a){a&1&&M(0,"tr",42)},Y$a=function(a){a&1&&M(0,"tr",43)},Z$a=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);Eg("ngModelChange",function(d){u(b);var e=P();Dg(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);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.unimplementedPlaybookData.agentMode,d)||(e.unimplementedPlaybookData.agentMode=d);return v(d)});K(12,"mat-radio-button",24);Q(13," Show suggestion chips ");L();K(14,"mat-radio-button",24);Q(15," Apply actions automatically ");L()()();K(16,"mat-slide-toggle",19);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.unimplementedPlaybookData.clusterSuggestions,
d)||(e.unimplementedPlaybookData.clusterSuggestions=d);return v(d)});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);Qf(27,Q$a,3,3,"button",29,Pf);L()();K(29,"div",10)(30,"table",30);Wf(31,31);E(32,R$a,2,0,"th",32)(33,S$a,2,1,"td",33);Xf();Wf(34,34);E(35,T$a,2,0,"th",32)(36,U$a,2,1,"td",33);Xf();Wf(37,35);E(38,V$a,2,0,"th",32)(39,W$a,2,1,"td",33);Xf();E(40,X$a,1,0,"tr",
36)(41,Y$a,1,0,"tr",37);L()()()}if(a&2){a=sg(26);var c=P();B(4);Cg("ngModel",c.unimplementedPlaybookData.enablePlaybook);B(4);I("ngModel",c.draftPlaybook.searchQuery);B(3);Cg("ngModel",c.unimplementedPlaybookData.agentMode);B();I("value",c.AgentMode.SUGGESTIONS);B(2);I("value",c.AgentMode.AUTOMATIC_ACTIONS);B(2);Cg("ngModel",c.unimplementedPlaybookData.clusterSuggestions);B(5);I("matMenuTriggerFor",a);B(2);S(" ",P$a(c.unimplementedPlaybookData.statsInterval)," ");B(4);Rf(c.statsIntervalOptions);B(3);
I("dataSource",c.dataSource);B(10);I("matHeaderRowDef",c.displayedColumns);B();I("matRowDefColumns",c.displayedColumns)}},$$a=function(a){for(var b={},c=l(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);b[d]=e.length>1?e:e[0]}return b},aab=function(a){a&1&&M(0,"mat-spinner",0);a&2&&(a=P(),I("diameter",a.SIZE_LARGE),Kf("aria-label",a.ariaLabel))},bab=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))},
cab=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()}},dab=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),Q(2," Generating triage suggestions "),L())},fab=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P(2);return v(eab(c))});M(1,"mat-icon",4);Q(2," Execute playbook ");L()}},gab=function(a){if(a&1){var b=t();F(0,dab,3,0,"div",3)(1,fab,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))},hab=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))},iab=function(a){if(a&1){var b=t();K(0,"b-formatted-comment-presenter",4);N("checkboxChange",function(c){u(b);var d=P().markdownCheckboxService,e=d.rawComment.split("\n");c=l(c.startPos.split(":")).next().value;c=
Number(c)-1;var f=e[c];var g=f.search(/\[[ Xx]\]/);if(g!==-1){var k=f[g+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,g)+k+f.substring(g+k.length))}e[c]=f;d.rawComment=e.join("\n");d.rawComment$.next(d.rawComment);d.savingState=d.editIssueService.savingState(d.issueId);d.savingState.get("commentEdit")||($r(d.butterBar,"Saving comment edit...",0),as(d.savingState,"commentEdit"));bs(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return v()});
L()}a&2&&(a=P(),I("formattedComment",a.formattedComment)("canEditComment",a.canEditComment))},jab=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))},kab=function(a){return a instanceof cs?a:new cs(a,{})},ds=function(a){a=kab(a);return new cs(a.char,Object.assign({},a.modifiers,{shift:!0}))},lab=function(a){a=kab(a);return new cs(a.char,
Object.assign({},a.modifiers,{ctrl:!0}))},mab=function(){var a=ds("f");a=kab(a);return new cs(a.char,Object.assign({},a.modifiers,{alt:!0}))},oab=function(a){if(a instanceof cs){var b=nab(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(oab).join(" "):nab(a)},es=function(){return ad.apply(0,arguments)},nab=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)}},pab=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},qab=function(a){switch(a){case "P0":return fs.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return fs.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return fs.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return fs.CHANGE_ISSUE_PRIORITY_TO_P3;
case "P4":return fs.CHANGE_ISSUE_PRIORITY_TO_P4;case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},rab=function(a){switch(a){case "NEW":return fs.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return fs.CHANGE_ISSUE_STATUS_TO_ASSIGNED;case "ACCEPTED":return fs.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return fs.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return fs.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return fs.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;
case "INTENDED_BEHAVIOR":return fs.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;case "OBSOLETE":return fs.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return fs.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "INACTIVE":return fs.CHANGE_ISSUE_STATUS_TO_INACTIVE;case "DUPLICATE":return fs.CHANGE_ISSUE_STATUS_TO_DUPLICATE;case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},sab=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," "))},tab=function(a){a&1&&(K(0,"button",4),M(1,"mat-icon",5),L(),K(2,"mat-menu",null,0),Qf(4,sab,2,2,"a",6,Pf),L());if(a&2){a=sg(3);var b=P();I("matMenuTriggerFor",a);B(4);Rf(b.segments)}},uab=function(a){a&1&&M(0,"mat-icon",2);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},vab=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,uab,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," ")}},wab=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P();return v(c.toggle())})("onHotkey",function(){u(b);var c=P();return v(c.toggle())});M(1,"mat-icon",5);L()}a&2&&(a=P(),zg(a.direction),yg("isClosed",a.isClosed),
I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),B(),I("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},yab=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(xab(c,-10))})("keyup.arrowright",function(){u(b);var c=P();return v(xab(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"))},zab=function(a){a=a.getBoundingClientRect();return a.top>=0&&a.bottom<=window.innerHeight},Aab=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},
Bab=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())},Cab=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())},Hab=
function(a){var b=gs(a.resource);if(!b)return[];var c=[],d=0;switch(a.type){case "ISSUE_DEDUPLICATION":var e=gs(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"duplicateOfIssueId",value:e,actionType:"ADD"});break;case "HOTLIST":e=Dab(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=Eab(a.content.issueModification),
c.push.apply(c,q(e.map(function(D){return Object.assign({},{issueId:b,actionKey:d++},D)})));break;case "ISSUE_DEDUPLICATION_BATCH":var f,g;e=(f=a.content)==null?void 0:(g=f.issueDeduplicationBatch)==null?void 0:g.recommendedCanonicalIssue;if(!e||!e.issueId)break;var k,m,r;f=l((r=(k=a.content)==null?void 0:(m=k.issueDeduplicationBatch)==null?void 0:m.entries)!=null?r:[]);for(k=f.next();!k.done;k=f.next()){k=k.value;if(!k.issue.issueId)break;k.issue.issueId!==e.issueId&&c.push({issueId:k.issue.issueId,
actionKey:d++,fieldName:"duplicateOfIssueId",value:e.issueId,actionType:"ADD"})}break;case "TYPE_UNSPECIFIED":return[]}var w=Fab[a.type],x=Gab[a.type];return c.map(function(D){w.has(D.fieldName)&&(D.allowEdit=!0);x.has(D.fieldName)&&(D.allowExclude=!0);return D})},Eab=function(a){var b=[];b.push.apply(b,q(Iab(a.addState,a.addMask,!0)));b.push.apply(b,q(Iab(a.removeState,a.removeMask,!1)));a.comment&&b.push({fieldName:"comment",value:a.comment.unlinkifiedComment,formattingMode:a.comment.formattingMode});
return b},Iab=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())switch(e=e.value,e){case "assignee":var f=void 0;d.push({fieldName:e,value:Om((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(Om).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(Om).join(","),actionType:c?"ADD":"REMOVE"});break;case "comment":break;case "componentId":c&&(f=void 0,d.push({fieldName:e,value:((f=a)==null?0:f.componentId)?String(a.componentId):void 0,actionType:"ADD"}));break;case "customField":f=void 0;if((f=a)==null?0:f.customField)for(f=l(a.customField),g=f.next();!g.done;g=f.next())d.push({fieldName:e,customFieldValue:g.value,actionType:c?"ADD":"REMOVE"});break;case "deletionReason":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.deletionReason)||
void 0,actionType:c?"ADD":"REMOVE"});break;case "duplicateOfIssueId":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.duplicateOfIssueId)||void 0,actionType:c?"ADD":"REMOVE"});break;case "effortEstimate":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:(g=f.effort)==null?void 0:g.estimate)||void 0,actionType:c?"ADD":"REMOVE"});break;case "foundInVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.foundInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});
break;case "gerritChanges":g=f=void 0;d.push({fieldName:e,gerritChangeValue:(g=(f=a)==null?void 0:f.gerritChanges)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "hotlists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.hotlistId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "inProd":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.inProd)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isArchived":f=void 0;d.push({fieldName:e,value:((f=a)==
null?0:f.isArchived)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isDeleted":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isDeleted)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "parentId":break;case "priority":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.priority)!=null?g:void 0,actionType:"ADD"}));break;case "readState":break;case "reporter":c&&(f=void 0,d.push({fieldName:e,value:Om((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)?Om(a.verifierUser):void 0,actionType:c?"ADD":"REMOVE"});break;default:wb(e)}return d},Lab=function(a){var b={addMask:[],removeMask:[],addState:nWa(),removeState:nWa()};a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Jab(c))if(c.actionType==="REMOVE")Kab(c,b.removeState),b.removeMask.push(c.fieldName);else{if(c.actionType!=="ADD"&&c.actionType!=="ACTION_TYPE_UNSPECIFIED"&&c.actionType)throw Error("Je");Kab(c,b.addState);b.addMask.push(c.fieldName)}return b},
Kab=function(a,b){switch(a.fieldName){case "assignee":b.assigneeUser=Pm(a.value);break;case "attachments":break;case "blockedByIssueId":var c,d;b.blockedByIssueId=(d=(c=a.value)==null?void 0:c.split(",").filter(hn))!=null?d:[];break;case "blockingIssueId":var e,f;b.blockingIssueId=(f=(e=a.value)==null?void 0:e.split(",").filter(hn))!=null?f:[];break;case "ccs":var g,k;b.ccUsers=(k=(g=a.value)==null?void 0:g.split(",").map(Pm).filter(hn))!=null?k:[];break;case "changelists":var m,r;b.changelist=(r=
(m=a.value)==null?void 0:m.split(",").filter(hn))!=null?r:[];break;case "collaborators":var w,x;b.collaboratorsUsers=(x=(w=a.value)==null?void 0:w.split(",").map(Pm).filter(hn))!=null?x:[];break;case "comment":break;case "componentId":b.componentId=a.value||null;break;case "customField":var D;b.customField=(D=b.customField)!=null?D:[];a.customFieldValue&&b.customField.push(a.customFieldValue);break;case "deletionReason":var H;b.deletionReason=(H=a.value)!=null?H:null;break;case "duplicateOfIssueId":b.duplicateOfIssueId=
a.value||null;break;case "effortEstimate":var J;b.effort=(J=b.effort)!=null?J:{estimate:void 0};b.effort.estimate=a.value||void 0;break;case "foundInVersion":var O,R;b.foundInVersion=(R=(O=a.value)==null?void 0:O.split(",").filter(hn))!=null?R:[];break;case "gerritChanges":var V;b.gerritChanges=(V=a.gerritChangeValue)!=null?V:[];break;case "hotlists":var ba,oa;b.hotlistId=(oa=(ba=a.value)==null?void 0:ba.split(",").map(Number).filter(hn))!=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 ta;b.priority=(ta=a.value)!=null?ta:null;break;case "readState":break;case "reporter":b.reporterUser=Pm(a.value);break;case "severity":var ka;b.severity=(ka=a.value)!=null?ka:null;break;case "sloEndTime":b.sloEndTime=a.value?qTa(Number(a.value)*1E3):null;break;case "sloSnoozeType":var Ca;b.sloSnoozeType=(Ca=a.value)!=null?Ca:null;break;case "sloStartTime":b.sloStartTime=
a.value?qTa(Number(a.value)*1E3):null;break;case "staffing":var ja;b.staffing=(ja=a.staffingValue)!=null?ja:null;break;case "status":var ua;b.status=(ua=a.value)!=null?ua:null;break;case "targetedToVersion":var xa,Ra;b.targetedToVersion=(Ra=(xa=a.value)==null?void 0:xa.split(",").filter(hn))!=null?Ra:[];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,Yb;b.verifiedInVersion=(Yb=(pb=a.value)==null?void 0:pb.split(",").filter(hn))!=
null?Yb:[];break;case "verifier":b.verifierUser=Pm(a.value);break;default:wb(a.fieldName)}},Jab=function(a){var b=a.value!=null&&a.value!==""||a.customFieldValue!=null||a.staffingValue!=null||a.formattingMode!=null||a.gerritChangeValue!=null;return Mab.has(a.fieldName)&&(a.actionType==="REMOVE"||!b)||a.actionType==="ADD"&&!b||Nab.has(a.fieldName)&&!b?!1:!0},Pab=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)&&Oab.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""}},
Qab=function(a){if(a&1){var b=t();K(0,"button",1);T(1,"async");N("click",function(c){u(b);var d=P();return v(d.handleClick(c))})("keydown",function(c){u(b);var d=P();return v(d.handleKeydown(c))});M(2,"mat-icon",2);K(3,"span",3);Q(4);L()()}a&2&&(a=P(),yg("small",U(1,6,a.useSmallIcon$))("hovered",a.isParentRowActive),Jf("aria-label","View "+a.getRecommendationText()+" recommendation"),B(4),S(" ",a.getRecommendationText()," "))},Rab=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," "))},Uab=function(a){a&1&&Qf(0,Rab,2,1,"button",3,Sab);a&2&&(P(),a=dg(2),Rf(a))},Wab=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();bg(2);F(3,Uab,2,0)}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "),B(),a=cg(Vab(a)),B(),G(a.length?3:-1))},Xab=function(a){a&1&&fg(0)},Yab=function(a){a&1&&Yf(0)},Zab=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,Yab,1,0,"ng-container",7);L()}if(a&2){a=P();var c=sg(1);zg(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)}},$ab=function(a){a&1&&Yf(0)},abb=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,$ab,1,0,"ng-container",
7);L()}if(a&2){a=P();var c=sg(1);zg(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)}},bbb=function(a){a&1&&Yf(0)},cbb=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,bbb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=sg(1);zg(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)}},dbb=function(a){a&1&&Yf(0)},ebb=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,dbb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=sg(1);zg(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)}},fbb=function(a){a&1&&Yf(0)},gbb=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,fbb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=sg(1);zg(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)}},hbb=function(a){a&1&&M(0,"waldo-availability-chip",1);a&2&&(a=P(2),I("user",a.user.emailAddress),Kf("coinonly",
a.coinonly))},ibb=function(a){a&1&&F(0,hbb,1,2,"waldo-availability-chip",1);a&2&&(a=P(),G(a.user.emailAddress?0:-1))},jbb=function(a){a&1&&M(0,"b-availability-chip",2);a&2&&(a=P(2),I("user",a.user))},kbb=function(a){a&1&&(Wf(0),Q(1),Xf(),F(2,jbb,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();B();Ag(a.content);B();G(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},lbb=function(a){a&1&&Yf(0)},mbb=function(a){a&1&&(K(0,"span",3),E(1,lbb,1,0,"ng-container",4),L(),K(2,"onedev-hovercard",
null,1),M(4,"b-issue-person-card",5),L());if(a&2){a=sg(3);var b=P(),c=sg(1),d=P();I("onedevHovercardTrigger",a);Kf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},nbb=function(a){a&1&&Yf(0)},obb=function(a){a&1&&E(0,nbb,1,0,"ng-container",4);a&2&&(P(),a=sg(1),I("ngTemplateOutlet",a))},pbb=function(a,b){a&1&&(E(0,kbb,3,2,"ng-template",null,0,Og),F(2,mbb,5,4)(3,obb,1,1,"ng-container"));a&2&&(a=P(),B(2),G(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?
2:3))},qbb=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))},rbb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),Ag(a.getDisplayString()))},sbb=function(a){a&1&&Yf(0)},tbb=function(a){a&1&&(K(0,"span",2),E(1,sbb,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",4),L());if(a&2){a=sg(3);var b=P(),c=sg(3);I("onedevHovercardTrigger",
a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},ubb=function(a){a&1&&Yf(0)},vbb=function(a){a&1&&E(0,ubb,1,0,"ng-container",3);a&2&&(P(),a=sg(3),I("ngTemplateOutlet",a))},xbb=function(a){a&1&&M(0,"img",5);a&2&&(a=P(2),P(),I("src",wbb[a.email],Pe))},ybb=function(a){a&1&&M(0,"img",8);a&2&&(a=P(3),I("src",a.src,Pe)("srcset",a.srcset))},zbb=function(a){a&1&&(K(0,"span",7),T(1,"async"),F(2,ybb,1,2,"img",8),L());if(a&2){a=P(2);var b=P();yg("team-member",U(1,5,b.isTeamMember$))("anonymous",!a.showImage);
B(2);G(a.showImage?2:-1)}},Bbb=function(a){a&1&&(F(0,xbb,1,1,"img",5),F(1,zbb,3,7,"span",6));if(a&2){a=P();var b=P();G(a.email&&Abb(b,a.email)?0:-1);B();G(Abb(b,a.email)?-1:1)}},Cbb=function(a,b){a&1&&(F(0,tbb,5,3)(1,vbb,1,1,"ng-container"),E(2,Bbb,2,2,"ng-template",null,0,Og));a&2&&(a=P(),G(a.isNonObfuscatedEmail(b.email)?0:1))},Dbb=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}},Ebb=function(a){return a?pj(a.replace(/_/g," ").toLowerCase()):""},Fbb=function(a){return a?a.join(", "):""},Gbb=function(a,b){if(!a)return Dh("");if(!b)return Dh(a);b=b.split(" ").map(vSa);b=b.filter(function(g){return!!g});b=b.map(hs);if(b.length===0)return Dh(a);b=new RegExp("(\\W|^)("+b.join("|")+")(\\w*)","i");for(var c=[];a;){var d=b.exec(a);if(!d){c.push(a);break}var e=d.index+d[1].length,f=d[2];d=d[3];c.push(a.substring(0,
e));c.push(Hh("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Eh(c)},Hbb=function(a){return a?"Yes":"No"},Ibb=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},Jbb=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},Kbb=function(a){if(!a)return null;var b=new Cm;b.setTime(a.seconds*1E3);return b},Lbb=function(a){if(a&&po(a))return a},Mbb=function(a){return a==
null?"":String(a)},Nbb=function(a){a&1&&M(0,"b-user-image",3);a&2&&(a=P(),I("email",a.email))},Obb=function(a){a&1&&Yf(0)},Pbb=function(a){a&1&&(K(0,"span",5),E(1,Obb,1,0,"ng-container",6),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",7),L());if(a&2){a=sg(3);var b=P(),c=sg(5);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},Qbb=function(a){a&1&&Yf(0)},Rbb=function(a){a&1&&E(0,Qbb,1,0,"ng-container",6);a&2&&(P(),a=sg(5),I("ngTemplateOutlet",a))},Sbb=
function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),Ag(a.getEmailDisplayString(a.email,a.ldapOnly)))},Tbb=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)))},Ubb=function(a,b){po(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},Vbb=function(a){a&1&&M(0,"b-icon",5)},Wbb=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),
I("email",a.email))},Xbb=function(a){a&1&&(F(0,Vbb,1,0,"b-icon",5),T(1,"async"),Nf(2,Wbb,1,1,"b-user-image",6));a&2&&(a=P(),G(a.enableGroupIcon&&U(1,1,a.isGroup$)?0:2))},Ybb=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))},Zbb=function(a){a&1&&Yf(0)},$bb=function(a){a&1&&(K(0,"span",7),E(1,Zbb,1,0,"ng-container",8),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",
9),L());if(a&2){a=sg(3);P();var b=sg(3),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.email)}},acb=function(a){a&1&&Yf(0)},bcb=function(a){a&1&&E(0,acb,1,0,"ng-container",8);a&2&&(P(),a=sg(3),I("ngTemplateOutlet",a))},ccb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P(3),B(),Ag(a.userToDisplayString(a.user)))},dcb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P(3),B(),Ag(a.email))},ecb=function(a){a&1&&(K(0,"span",10),F(1,ccb,2,1,"ng-container")(2,dcb,2,1,"ng-container"),
L());a&2&&(a=P(2),B(),G(a.user?1:2))},fcb=function(a){a&1&&(F(0,$bb,5,3)(1,bcb,1,1,"ng-container"),E(2,ecb,3,1,"ng-template",null,0,Og));a&2&&(a=P(),G(a.isNonObfuscatedEmail(a.email)?0:1))},gcb=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:"")}},hcb=function(a){a&1&&M(0,"b-availability-chip",4);a&2&&(a=P(),I("user",a.user))},icb=function(a){a&1&&Yf(0)},jcb=function(a){a&
1&&E(0,icb,1,0,"ng-container",8);a&2&&(a=P(),I("ngTemplateOutlet",a.calendarButtonRow))},kcb=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))},ocb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);lcb(c,new Am);c.includeTimePicker&&(c.dateTime=new Cm,mcb(c,new Cm));ncb(c);c.saveChanges();return v(c.saveClicked.emit())});
Q(1,"Today");L()}},pcb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(2);lcb(c);c.includeTimePicker&&(c.dateTime=void 0);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"None");L()}},qcb=function(a){a&1&&(K(0,"div",1),F(1,ocb,2,0,"button",10),F(2,pcb,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))},rcb=function(a){a&1&&(M(0,"div"),T(1,"lowercase"));a&2&&(a=P(3),zg(Gg("bv2-edit-icon ",
U(1,3,a.type))))},scb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,rcb,2,5,"div",13),L());a&2&&(a=P(2),zg(Gg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),S(" ",a.title," "),B(),G(a.readonly||a.disabled?-1:3))},tcb=function(a){a&1&&Yf(0)},ucb=function(a){if(a&1){var b=t();K(0,"div",17);N("menuClosed",function(){u(b);var d=P(3);return v(is(d,null,!1,!0))});E(1,tcb,1,0,"ng-container",18);L()}if(a&2){P(3);a=sg(6);var c=sg(9);I("matMenuTriggerFor",a);B();I("ngTemplateOutlet",
c)}},wcb=function(a,b){a&1&&(K(0,"a",19),Q(1),L());a&2&&(a=P(4),Kf("aria-label",Hg("customfield",a.customFieldId,":",b)),I("queryParams",Kg(5,vcb,"customfield"+a.customFieldId+':"'+b+'"')),B(),S(" ",b," "))},xcb=function(a){a&1&&Q(0," -- ")},ycb=function(a){if(a&1){var b=t();K(0,"div",16);F(1,wcb,2,7,"a",19)(2,xcb,1,0);M(3,"br");K(4,"button",20);N("menuClosed",function(){u(b);var e=P(3);return v(is(e,null,!1,!0))});Q(5," Edit ");L()()}if(a&2){var c;a=P(3);var d=sg(6);B();G((c=a.getDisplayValue(""))?
1:2,c);B(3);Kf("aria-label",Gg("Edit item for ",a.title));I("matMenuTriggerFor",d)}},zcb=function(a){a&1&&F(0,ucb,2,2,"div",15)(1,ycb,6,4,"div",16);a&2&&(a=P(2),G(a.choices.length>50&&a.customFieldId!==0?1:0))},Acb=function(a){a&1&&Yf(0)},Bcb=function(a){a&1&&(K(0,"div",14),E(1,Acb,1,0,"ng-container",18),L());a&2&&(P(2),a=sg(9),B(),I("ngTemplateOutlet",a))},Dcb=function(a){if(a&1){var b=t();K(0,"div",12,3);N("click",function(c){u(b);var d=P();return v(is(d,c,!0,!1))})("keydown",function(c){u(b);var d=
P();return v(Ccb(d,c))})("keydown.escape",function(){u(b);var c=sg(2);return v(c.hide())});F(3,scb,4,5,"div",13);F(4,zcb,2,1)(5,Bcb,2,1,"div",14);L()}a&2&&(a=P(),zg(Gg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name)),yg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),Kf("aria-label",Hg("",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))},Ecb=
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),zg(Gg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),Ag(a.title))},Fcb=function(a){if(a&1){var b=t();K(0,"div",21);F(1,Ecb,3,4,"div",13);K(2,"b-slide-toggle",22);N("modelChange",function(){u(b);var d=P();return v(d.setFieldValue(!d.value))});L()()}if(a&2){a=P();zg(Gg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",
a.name));yg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly);I("matTooltip",a.getTooltip());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)}},Gcb=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),yg("b-menu-item-checked",a.value==null),I("disabled",a.value==
null))},Hcb=function(a){a&1&&M(0,"mat-divider")},Icb=function(a){a&1&&M(0,"mat-icon",30);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},Jcb=function(a){a&1&&(K(0,"span",31),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.hotkey.displayAs))},Kcb=function(a,b){if(a&1){var c=t();F(0,Hcb,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,Icb,1,1,"mat-icon",30);K(4,"span",26);M(5,"mat-icon",27);L();Q(6);F(7,Jcb,2,1,"span",31);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);G(b>0&&d.choices[b].group!=d.choices[b-1].group?0:-1);B();yg("b-menu-item-checked",d.value==a.value);I("disabled",d.value==a.value)("hotkey",a.hotkey);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)}},Lcb=function(a){a&
1&&(F(0,Gcb,4,3,"button",24),Qf(1,Kcb,8,10,null,null,Pf));a&2&&(a=P(),G(a.clearable?0:-1),B(),Rf(a.choices))},Mcb=function(a){a&1&&M(0,"mat-icon",33);a&2&&(a=P(2),I("svgIcon",a.displayIcon))},Ncb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),yg("p0",a.value===a.IssuePriority.P0)("p1",a.value===a.IssuePriority.P1),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Ocb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),zg(Gg("chippy status-",a.value)),
I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Pcb=function(a){a&1&&M(0,"b-truncated-span",36);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Qcb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Rcb=function(a){a&1&&M(0,"div",38)},Scb=function(a){a&1&&(K(0,"div",39),M(1,"mat-icon",41),L())},Tcb=function(a){a&1&&(K(0,"div",40),
M(1,"mat-icon",42),L())},Ucb=function(a){if(a&1){var b=t();K(0,"div",32,4);N("keydown",function(c){u(b);var d=P();return v(Ccb(d,c))})("click",function(c){u(b);var d=P();return v(is(d,c,!0,!1))});K(2,"div")(3,"span",29);F(4,Mcb,1,1,"mat-icon",33);F(5,Ncb,1,7,"b-truncated-span",34)(6,Ocb,1,6,"b-truncated-span",35)(7,Pcb,1,3,"b-truncated-span",36)(8,Qcb,1,3,"b-truncated-span",37);L();F(9,Rcb,1,0,"div",38);L();F(10,Scb,2,0,"div",39)(11,Tcb,2,0,"div",40);L()}a&2&&(a=P(),yg("edit-field-activated",a.isActive),
B(4),G(a.displayIcon?4:-1),B(),G(a.title==="Priority"?5:a.title==="Status"?6:a.title==="Triage phase"?7:8),B(4),G(a.title||a.readonly||a.disabled?-1:9),B(),G(a.type=="ENUM"?10:11))},Vcb=function(){},Wcb=function(){},Xcb=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(is(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)}},Zcb=function(a){if(a&1){var b=t();K(0,"textarea",54);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:if(c.ctrlKey||c.metaKey)c.stopPropagation(),Ycb(d);break;case 27:c.stopPropagation(),
is(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Cg("ngModel",a.textBuffer),Kf("aria-label",a.title))},$cb=function(a){if(a&1){var b=t();K(0,"input",55);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:c.stopPropagation();Ycb(d);break;case 27:c.stopPropagation(),is(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Cg("ngModel",a.textBuffer),Kf("type",a.type==="NUMERIC"?"number":
"text")("aria-label",a.title))},adb=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,Zcb,1,2,"textarea",47)(3,$cb,1,3,"input",48);L();K(4,"div",49)(5,"button",50);N("click",function(){u(b);var c=P(2);return v(Ycb(c))});M(6,"mat-icon",51);L();K(7,"button",52);N("click",function(c){u(b);var d=P(2);return v(is(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",
Gg("Apply change to ",a.title)),I("matTooltip",Gg("Apply change to ",a.title))("disabled",a.value==a.textBuffer),B(2),Kf("aria-label",Gg("Discard change to ",a.title)),I("matTooltip",Gg("Discard change to ",a.title)))},bdb=function(a){a&1&&(K(0,"div",43,5),F(2,Vcb,0,0)(3,Wcb,0,0)(4,Xcb,2,2,"div")(5,adb,11,10,"div",44),L());if(a&2){var b;a=P();zg(Gg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"));B(2);G((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},cdb=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}},js=function(a,b,c){c=c===void 0?2:c;var d=Math.floor((new Date).getTime()/1E3-a);if(d<300)return"just now";if(!(d<0)){for(var e=[],f=l(ddb),g=f.next();!g.done;g=f.next()){var k=l(g.value);g=k.next().value;k=k.next().value;if(e.length>=c)break;var m=Math.floor(d/k);if(m>=1)b?e.push(""+m+edb[g]):m===1?e.push(m+" "+g):e.push(m+" "+g+"s");else if(e.length)break;
d-=m*k;if(m>1)break}if(e.length)return e.join(" ")+" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},fdb=function(a,b){a&1&&(K(0,"time",1),T(1,"async"),Q(2),L());if(a&2){a=P();var c=Gg("padding-left: ",a.paddingLeftPx,"px");toa(roa,soa,c,!1);I("title",b.title);Kf("datetime",U(1,6,a.timestampIso$));B(2);Ag(b.formatted)}},gdb=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))},
hdb=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),Ag(a.pending?"Created on: ":"Submitted on: "),B(),I("timestamp",b))},idb=function(a,b){a&1&&(M(0,"br"),Q(1));a&2&&(a=b.$implicit,B(),S("",a," "))},jdb=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),Q(2," CL "),K(3,"span"),Q(4),L()(),F(5,gdb,4,4,"span",4),M(6,"br")(7,"br"),F(8,hdb,4,2,"div"),K(9,"div",5),M(10,"div",6)(11,"br"),K(12,"div"),Q(13," Affected files: "),Qf(14,idb,2,1,null,null,Pf),L()()());
if(a&2){var c,d;a=P();B();I("href","http://critique.corp.google.com/"+a.changelistId,Pe);B(3);Ag(a.changelistId);B();G((c=b.author)?5:-1,c);B(3);G((d=b.timestamp)?8:-1,d);B(2);I("innerHTML",b.description,Oe);B(4);Rf(b.affectedFiles)}},kdb=function(a){a&1&&M(0,"b-changelist-card",5,1);if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.changelistId)}},ldb=function(a){a&1&&M(0,"b-changelist-chip",0);a&2&&(a=P(),I("changelistId",a.changelist))},mdb=function(a){a&1&&M(0,"b-gerrit-change-chip",
1);a&2&&(a=P(),I("gerritChange",a.gerritChange))},ndb=function(a){a&1&&M(0,"b-changelist-card",4,1);if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.id)}},odb=function(a,b){a&1&&(K(0,"mat-list-option",11),Q(1),L());a&2&&(a=b.$implicit,b=P(),xg("height","auto"),I("selected",b.selectedValues.has(a))("value",a),B(),S(" ",a," "))},pdb=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)"]},qdb=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))},rdb=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=sg(4);I("href",Gg("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," ")}},sdb=function(a){a&1&&(K(0,"span",3),Q(1),L());if(a&2){a=P(2);var b=sg(4);I("onedevHovercardTrigger",
b);B();Ag(a.teamName?a.teamName:a.teamId)}},tdb=function(a){a&1&&(F(0,rdb,4,7,"a",2),F(1,sdb,2,2,"span",3));a&2&&(a=P(),G(a.anchorLinkEnabled?0:-1),B(),G(a.anchorLinkEnabled?-1:1))},udb=function(a){a&1&&M(0,"span",6)},vdb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.teamNotAssignedMessage))},wdb=function(a){a&1&&(F(0,udb,1,0,"span",6),F(1,vdb,2,1,"span"));a&2&&(a=P(),G(a.teamId!="0"?0:-1),B(),G(a.teamId=="0"?1:-1))},xdb=function(a){a&1&&M(0,"b-icon",2);a&2&&(a=P(),I("name",a.iconName))},
ydb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),Ag(a.title))},zdb=function(a){a&1&&(K(0,"div",4),Q(1,"\u00a0"),L())},Ddb=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"?Adb(a,b):(d==="input"||d==="select"||d==="textarea")&&Bdb(a,b);Cdb("canvas",a,b,Adb);Cdb("input, textarea, select",a,b,Bdb);return b},Cdb=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])},Bdb=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+Edb++)},Adb=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},Fdb=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}},Gdb=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},Hdb=function(a,
b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},Idb=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},Jdb=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},Kdb=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)}},ks=function(a,b){var c=b?"":"none";Kdb(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})},Mdb=function(a,b){Kdb(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},Ldb)},Ndb=function(a,b){return b&&b!="none"?a+" "+b:a},Pdb=function(a,b){a.style.width=b.width+"px";a.style.height=
b.height+"px";a.style.transform=Odb(b.left,b.top)},Odb=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},Qdb=function(a){var b=a.toLowerCase().indexOf("ms")>-1?1:1E3;return parseFloat(a)*b},Sdb=function(a){a=getComputedStyle(a);var b=Rdb(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=Rdb(a,"transition-duration");a=Rdb(a,"transition-delay");return Qdb(c[b])+Qdb(a[b])},Rdb=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},
Tdb=function(a){return a.type[0]==="t"},Udb=function(a){a.preventDefault()},ls=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}},Vdb=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},Wdb=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},Xdb=function(a){a&1&&(K(0,"label"),Q(1),L());a&2&&(a=P(),B(),S(" ",
a.title," "))},Ydb=function(a){a&1&&M(0,"mat-icon",13)},$db=function(a,b){a&1&&(K(0,"div",18),Yf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=sg(13);B();I("ngTemplateOutletContext",Lg(2,Zdb,a,b))("ngTemplateOutlet",c)}},beb=function(a){a&1&&(K(0,"collapsible-panel",15),Qf(1,$db,2,5,"div",18,Of),Yf(3,19),L());if(a&2){a=P();var b=sg(15),c=I("isExpanded",a.isExpanded||ms(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=ms(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":
a.collapsiblePanelTitle;c("title",d);B();Rf(aeb(a));B(2);I("ngTemplateOutlet",b)}},ceb=function(a,b){a&1&&(K(0,"div",18),Yf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=sg(13);B();I("ngTemplateOutletContext",Lg(2,Zdb,a,b))("ngTemplateOutlet",c)}},deb=function(a){a&1&&(K(0,"div",21),Q(1,"--"),L())},eeb=function(a){a&1&&(Qf(0,ceb,2,5,"div",18,Of),Yf(2,19),F(3,deb,2,0,"div",21));if(a&2){a=P();var b=sg(15);Rf(aeb(a));B(2);I("ngTemplateOutlet",b);B();G((a.values==null?0:a.values.length)?-1:3)}},
heb=function(a){if(a&1){var b=t();K(0,"button",26);N("menuOpened",function(){u(b);var d=P(3);feb(d);d.enumPendingValues=new Set(d.values||[]);return v()})("menuClosed",function(){u(b);var d=P(3);return v(geb(d))});Q(1,"Edit ");L()}if(a&2){a=P(3);var c=sg(17);I("matMenuTriggerFor",c);Kf("aria-label","Add item to "+a.title)}},jeb=function(a){if(a&1){var b=t();K(0,"button",27,6);N("click",function(){u(b);var c=P(3);return v(ieb(c))});Q(2,"Edit ");L()}a&2&&(a=P(3),Kf("aria-label","Edit items for "+a.title))},
keb=function(a){a&1&&F(0,heb,2,2,"button",24)(1,jeb,3,1,"button",25);a&2&&(a=P(2),G(ms(a)?1:0))},leb=function(a){a&1&&(K(0,"button",22),Q(1,"Add "),L());if(a&2){a=P(2);var b=sg(22);Kf("aria-label",Gg("Add item to ",a.title));I("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},meb=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=sg(20);Kf("aria-label",Gg("Add item to ",
a.title));I("dialogLabel",Gg("Add item to ",a.title))("matTooltip",Gg("Add item to ",a.title))("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},neb=function(a){a&1&&F(0,keb,2,1)(1,leb,2,4,"button",22)(2,meb,2,8,"button",23);if(a&2){var b;a=P();G((b=a.type)==="REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},oeb=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))},peb=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," ")}},qeb=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))},reb=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",Gg("Postmortem ",a)),I("href",Gg("https://pm.corp.google.com/",a),Pe),B(),S(" ",a," "))},teb=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",Hg("Search issues for customfield",c.customFieldId,
":",a));I("queryParams",Kg(6,seb,"customfield"+c.customFieldId+':"'+a+'"'));B();S(" ",a," ")}},ueb=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)}},veb=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",Hg("Remove ",a," from ",c.title));I("disabled",c.listFieldDisabled)("matTooltip",
"Remove item")}},web=function(a){a&1&&(K(0,"div",29)(1,"div",30),F(2,oeb,2,1,"div")(3,peb,3,3,"div")(4,qeb,2,2,"div")(5,reb,3,5,"div")(6,teb,3,8,"div",31)(7,ueb,2,3,"div"),L(),F(8,veb,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"&&ms(b)?6:b.isString(a)?7:-1);B(6);G(b.readonly||b.type==="REPEATED_ENUM"?-1:8)}},xeb=function(a,b){a&1&&F(0,web,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))},yeb=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(ns(d,!1,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(ns(d,!1,c))})("keydown.space",function(c){u(b);var d=P(2);return v(ns(d,!1,c))});Q(2," (show fewer) ");L()}a&2&&(a=P(2),Kf("aria-label",Hg("Show at most ",a.defaultLineCount," ",a.title," items")),I("matTooltip",Gg("Show a truncated list of at most ",
a.defaultLineCount," items")))},zeb=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(ns(d,!0,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(ns(d,!0,c))})("keydown.space",function(c){u(b);var d=P(2);return v(ns(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",Hg("Show all ",a.values==null?null:a.values.length," ",a.title," items")),
I("matTooltip",Gg("Show all ",a.values==null?null:a.values.length," items in the list")))},Beb=function(a){a&1&&(F(0,yeb,3,5,"div",41),F(1,zeb,6,6,"div"));a&2&&(a=P(),G(a.showingAll&&Aeb(a)?0:-1),B(),G(!a.showingAll&&Aeb(a)?1:-1))},Deb=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(Ceb(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),yg("b-menu-item-checked",b.enumPendingValues.has(a.value)),I("disabled",b.listFieldDisabled),Kf("aria-label",Ceb(b,a)),B(3),S(" ",a.displayText," "))},Eeb=function(a){a&1&&Qf(0,Deb,4,5,"button",45,Of);a&2&&(a=P(),Rf(a.sortedEnumChoices))},Feb=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),Kf("aria-label",Hg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},Geb=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=sg(3),e=sg(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,Feb,2,4,"mat-error");L()()()}if(a&2){a=sg(3);var c=P();B(5);Kf("aria-label",Gg("Addition to ",c.title));I("type",c.type==="REPEATED_NUMERIC"?"number":"text");
B(2);Kf("aria-label",Gg("Apply addition to ",c.title));I("disabled",!a.valid||c.listFieldDisabled);B(2);Kf("aria-label",Gg("Discard addition to ",c.title));B(2);G(c.invalidMessage?11:-1)}},Heb=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)},Ieb=function(a,b){return{originX:a,originY:b}},Jeb=
function(a,b){return{overlayX:a,overlayY:b}},Keb=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}},ps=function(a){return(a!=null?a:[]).map(os)},qs=function(a){return(a!=null?a:[]).map(Leb)},os=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=Om(b)):c!=null?(a="GROUP",
b=Om(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},rs=function(a){return(a!=null?a:[]).map(os)},ss=function(a){return(a!=null?a:[]).map(Leb)},Leb=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("Re`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("Se`"+b);}},ts=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],
restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},us=function(a){return{admins:ps(a.admins),editors:ps(a.editors),appenders:ps(a.appenders),readers:ps(a.readers),restrictedReaders:ps(a.restrictedReaders),restrictedPlusReaders:ps(a.restrictedPlusReaders),inheritedAdmins:ps(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},vs=function(a){return{admins:qs(a.admins),editors:qs(a.editors),appenders:qs(a.appenders),readers:qs(a.readers),restrictedReaders:qs(a.restrictedReaders),
restrictedPlusReaders:qs(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},Meb=function(a){a&1&&Yf(0)},Neb=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,Meb,1,0,"ng-container",4);L()}a&2&&(a=P(),I("ngClass",a.bubbleStyle)("@fade",void 0),B(),I("ngTemplateOutlet",a.panelTemplate))},Oeb=function(a){a&
1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(2),zg(a.chipClass),yg("xs",a.compactMode),B(),S(" ",a.chipText," "))},Peb=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",ws(a.documentationLinks),Pe))},Qeb=function(a){a&1&&(K(0,"xap-bubble",2)(1,"span",4),Q(2),L(),E(3,Peb,4,2,"ng-template",null,0,Og),L());if(a&2){a=sg(4);var b=P(2);I("panelTemplate",a);B();zg(b.chipClass);yg("xs",b.compactMode);B();S(" ",b.chipText," ")}},Reb=function(a){a&
1&&F(0,Oeb,2,5,"span",1)(1,Qeb,5,6,"xap-bubble",2);a&2&&(a=P(),G(a.labelOnlyMode?0:1))},Seb=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))},Teb=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,Seb,3,1,"li"),K(12,"li")(13,"a",3),Q(14," View component"),L()()());a&2&&(a=P(),
B(),Ag(b.name),B(2),S("ID: ",a.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ag(b.description),B(3),I("href",a.recentIssuesUrl,Pe),B(2),G(a.isAnonymous?-1:11),B(2),I("href",a.viewComponentUrl,Pe))},Ueb=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=sg(4),B(),I("onedevHovercardTrigger",b)("routerLinkObj",a.route),B(),Ag(a.name),B(3),I("componentId",
a.id.toString()))},Veb=function(a){a&1&&(K(0,"span",5),Q(1,"[Archived]"),L())},Web=function(a,b){b=b===void 0?Hr:b;var c,d=(c=a==null?void 0:a.componentPathId)!=null?c:[],e,f=(e=a==null?void 0:a.componentPathName)!=null?e:[];return d.map(function(g,k){var m;k=(m=f[k])!=null?m:String(g);m=b(g);return{id:g,name:k,route:m}})},Xeb=function(a){a&1&&Q(0," > ")},Yeb=function(a,b){a&1&&(K(0,"a",4),Q(1),L(),F(2,Xeb,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;Kf("aria-label",Gg("View recent issues in ",
a.name));I("routerLinkObj",a.route);B();Ag(a.name);B();G(c!==b-1?2:-1)}},Zeb=function(a){a&1&&(K(0,"span"),Q(1," [Archived]"),L())},$eb=function(a){a&1&&(K(0,"div",2),Qf(1,Yeb,3,5,null,null,Pf),T(3,"async"),F(4,Zeb,2,0,"span"),T(5,"async"),L());a&2&&(a=P(),B(),Rf(U(3,1,a.componentPath$)),B(3),G(U(5,3,a.isArchived$)?4:-1))},afb=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),Ag(b.name),B(3),S("Component ID: ",b.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ag(b.description))},bfb=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))},dfb=
function(a){return cfb[a]},xs=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]]}))})},ys=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},efb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.name," "))},ffb=function(a){a&1&&Q(0," Trackers are distinct communities with their own branding. ")},gfb=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))},hfb=function(a){a&1&&(K(0,"button",1),M(1,"img",2)(2,"img",3),F(3,efb,2,1,"span",4),L(),K(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),Q(9),F(10,ffb,1,0),L(),K(11,"div",8)(12,"a",9),Q(13),L(),F(14,gfb,2,1,"a",9),L()()()());if(a&2){a=sg(5);var b=P();yg("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)}},ifb=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))},jfb=function(a){a&1&&M(0,"mat-icon",1)},kfb=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()}},lfb=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"))},mfb=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",Ng(2,3,U(1,1,a.name),c.query),Oe)}},nfb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},ofb=function(a){a&1&&Q(0," \u00a0>\u00a0 ")},pfb=function(a,b){a&1&&(F(0,mfb,3,6,"a",13)(1,nfb,1,1),F(2,ofb,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)}},qfb=function(a){a&1&&Qf(0,pfb,3,2,null,null,Pf);a&2&&(a=P(),Rf(a.componentOption.componentPath))},rfb=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," "))},sfb=function(a){a&1&&F(0,rfb,2,1,"a",15);if(a&2){var b;a=P();G((b=a.componentOption.componentPath[a.componentOption.componentPath.length-
1])?0:-1,b)}},tfb=function(a){a&1&&(K(0,"span",6),Q(1," [Archived] "),L())},ufb=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},vfb=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},wfb=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}},xfb=function(a){return new Map([].concat(q(a.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.map(vfb)]}))},yfb=function(a){a&1&&M(0,"img",1);a&2&&(a=P(),Kf("src",a.getLogoUrl(),Pe))},zfb=function(a){a&1&&(K(0,"span",6),Q(1,"no components"),L())},Afb=function(a){a&1&&(K(0,"div",3),
M(1,"div",5),T(2,"boldPrefixMatches"),F(3,zfb,2,0,"span",6),L());a&2&&(a=P(),B(),I("innerHtml",Ng(2,2,a.teamOption.name,a.query),Oe),B(2),G(a.hasNoComponent?3:-1))},Bfb=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(),Ag(a))},Cfb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",
a," "))},Dfb=function(a){a&1&&(F(0,Bfb,2,1,"a",7)(1,Cfb,1,1),Wf(2),Q(3," \u00b7 "),Xf());a&2&&(a=P(3),G(a.allowSegmentSelection?0:1))},Efb=function(a){a&1&&(K(0,"strong",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a))},Ffb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a," "))},Gfb=function(a){a&1&&F(0,Efb,2,1,"strong",9)(1,Ffb,1,1);a&2&&(a=P(3),G(a.compact?0:1))},Hfb=function(a,b){a&1&&F(0,Dfb,4,1)(1,Gfb,2,1);a&2&&G(b.$index!==b.$count-1?0:1)},Ifb=function(a){a&1&&(K(0,"div",4),Qf(1,Hfb,2,1,null,
null,Pf),L());a&2&&(a=P(),B(),Rf(a.teamOption.pathNames))},Jfb=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"}},Kfb=function(a){if(a&1){var b=t();K(0,"button",9);N("mousedown",function(c){u(b);
P().clearQuery();return v(zs(c))});M(1,"mat-icon",10);L()}},Lfb=function(a){a&1&&(K(0,"div",11),Q(1," Checking for admin access... "),L())},Mfb=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",As.editComponentAccess.makeHref(a.selectedComponent.componentId),Pe))},Nfb=function(a){a&1&&F(0,Mfb,4,1,"div",12);a&2&&(a=P(2),G(!a.hasAccess&&a.selectedComponent?0:-1))},Ofb=function(a){a&1&&(K(0,
"div"),F(1,Lfb,2,0,"div",11)(2,Nfb,1,1),L());a&2&&(a=P(),B(),G(a.checkingAccess?1:2))},Pfb=function(a){a&1&&M(0,"mat-progress-bar",16)},Qfb=function(a){a&1&&Q(0," teams ")},Rfb=function(a){a&1&&Q(0," team ")},Ufb=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);Sfb(g.searchState,f);return v(zs(e))});K(1,"team-row",22);N("selectTeamId",function(e){u(c);var f=P(6);return v(Tfb(f.searchState,e))});L()()}if(a&2){a=b.$implicit;b=P(6);var d=sg(3);I("data",
a);B();I("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},Vfb=function(a){a&1&&M(0,"mat-divider")},Wfb=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,Qfb,1,0)(6,Rfb,1,0),L()(),Qf(7,Ufb,2,4,"div",20,Pf),L(),F(9,Vfb,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);Rf(a);B(2);G(b.searchState.recommendedComponents.length>0||b.searchState.popularComponents.length>
0||b.searchState.recentComponents.length>0?9:-1)}},Xfb=function(a,b){a&1&&F(0,Wfb,10,3);a&2&&G(b.length?0:-1)},Yfb=function(a){a&1&&Yf(0)},Zfb=function(a){a&1&&M(0,"mat-divider")},agb=function(a){a&1&&(E(0,Yfb,1,0,"ng-container",23),F(1,Zfb,1,0,"mat-divider"));if(a&2){a=P(4);var b=sg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,$fb,a.searchState.recommendedComponents));B();G(a.searchState.popularComponents.length>0||a.searchState.recentComponents.length>0?1:-1)}},bgb=function(a){a&1&&
Yf(0)},cgb=function(a){a&1&&M(0,"mat-divider")},egb=function(a){a&1&&(E(0,bgb,1,0,"ng-container",23),F(1,cgb,1,0,"mat-divider"));if(a&2){a=P(4);var b=sg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,dgb,a.searchState.popularComponents));B();G(a.searchState.recentComponents.length?1:-1)}},fgb=function(a){a&1&&Yf(0)},igb=function(a){a&1&&E(0,fgb,1,0,"ng-container",23);if(a&2){a=P(4);var b=sg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,ggb,a.searchState.recentComponents))}},
jgb=function(a){a&1&&(F(0,Xfb,1,1),T(1,"async"),F(2,agb,2,5),F(3,egb,2,5),F(4,igb,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)}},kgb=function(a){a&
1&&Q(0," teams ")},lgb=function(a){a&1&&Q(0," team ")},mgb=function(a){a&1&&Yf(0)},pgb=function(a,b){a&1&&E(0,mgb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=sg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(4,ngb,a,Kg(2,ogb,b)))}},qgb=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()}},rgb=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,kgb,1,0)(6,lgb,1,0),L()(),Qf(7,pgb,1,7,"ng-container",null,Pf),T(9,"async"),F(10,qgb,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),Rf(U(9,3,a.searchState.filteredTeamOptions$)),B(3),G(U(11,5,a.searchState.hasHiddenTeams$)?10:-1))},sgb=function(a,b){a&1&&F(0,rgb,13,7,"div",18);if(a&2){var c;G((c=b.length)?0:-1,c)}},tgb=function(a){a&1&&Yf(0)},vgb=function(a){a&1&&(F(0,sgb,1,1),T(1,
"async"),E(2,tgb,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=sg(12);G((b=U(1,3,a.searchState.teamOptions$))?0:-1,b);B(2);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(5,ugb,a.searchState.componentOptions))}},wgb=function(a){a&1&&Yf(0)},ygb=function(a,b){a&1&&E(0,wgb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=sg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(4,ngb,a,Kg(2,xgb,b)))}},zgb=function(a){a&1&&(K(0,"div",32),Qf(1,ygb,1,7,"ng-container",null,
Pf),L());a&2&&(a=P(2),B(),Rf(a))},Cgb=function(a){if(a&1){var b=t();F(0,zgb,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?Agb(d.searchState,e):Bgb(d.searchState,e);return v(zs(c))});M(2,"mat-icon",26);Q(3);L()}a&2&&(a=P(6),G(a.searchState.teamScope$.value.expanded?0:-1),B(2),yg("expanded",a.searchState.teamScope$.value.expanded),B(),S(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},Dgb=function(a,b){a&
1&&F(0,Cgb,4,4);a&2&&G(b.length?0:-1)},Ggb=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(Tfb(f.searchState,e))});L();K(5,"button",30);N("mousedown",function(e){u(b);var f=P(4);Egb(f.searchState);return v(zs(e))});M(6,"mat-icon",31);L()();F(7,Dgb,1,1);L()}if(a&2){var c;a=P(4);var d=sg(3);B(3);I("data",a.searchState.teamScope$.value)("listOrder",Jg(7,Fgb));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)}},Hgb=function(a){a&1&&Yf(0)},Jgb=function(a){a&1&&(F(0,Ggb,8,8,"div",27),E(1,Hgb,1,0,"ng-container",23));if(a&2){a=P(3);var b=sg(12);G(a.searchState.teamScope$.value?0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Lg(3,Igb,a.searchState.componentOptions,a.searchState.teamScope$.value))}},Mgb=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(Kgb(c.searchState))})("selectComponentId",function(c){u(b);var d=P(4);return v(Lgb(d.searchState,c))});L()()}a&2&&(a=P(4),B(3),I("componentOption",a.searchState.componentScope))},Ngb=function(a){a&1&&Yf(0)},Pgb=function(a){a&1&&(F(0,Mgb,4,1,"div",33),E(1,Ngb,1,0,"ng-container",23));if(a&2){a=P(3);var b=sg(12);G(a.searchState.componentScope?0:-1);B();I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Kg(3,Ogb,a.searchState.componentOptions))}},Qgb=function(a){a&1&&(F(0,jgb,6,8),T(1,"async"),Nf(2,vgb,3,7)(3,Jgb,2,6)(4,Pgb,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)}},Rgb=function(a){if(a&1){var b=t();K(0,"div",14,5);N("mousedown",function(c){u(b);P();return v(zs(c))});K(2,"div",15);F(3,Pfb,1,0,"mat-progress-bar",16);L();K(4,"div",17);F(5,Qgb,5,3);L()()}a&2&&(a=P(),B(3),G(a.isLoading()?
3:-1),B(2),G(a.isLoading()?-1:5))},Sgb=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?Agb(e.searchState,d):Bgb(e.searchState,d);return v(zs(c))});M(1,"mat-icon",40);L()}a&2&&(a=P().team,B(),yg("expanded",a.expanded))},Tgb=function(a){a&1&&Yf(0)},Vgb=function(a,b){a&1&&E(0,Tgb,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=sg(10);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,Ugb,
a,d+1,c.concat(b)))}},Wgb=function(a){a&1&&Qf(0,Vgb,1,6,"ng-container",null,Pf);if(a&2){a=P().team;var b=P();Rf(b.searchState.getChildTeams(a.id))}},Xgb=function(a,b){if(a&1){var c=t();K(0,"div",36);N("mousedown",function(g){var k=u(c).team,m=P();Sfb(m.searchState,k);return v(zs(g))});K(1,"div",37);F(2,Sgb,2,2,"button",38);K(3,"team-row",22);N("selectTeamId",function(g){u(c);var k=P();return v(Tfb(k.searchState,g))});L()()();F(4,Wgb,2,0)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=P(),f=sg(3);
I("listOrder",b)("data",a);B();xg("margin-left",d*28,"px");B();G(e.searchState.getChildTeams(a.id).length?2:-1);B();yg("indent",!e.searchState.getChildTeams(a.id).length);I("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B();G(a.expanded?4:-1)}},Ygb=function(a){a&1&&(M(0,"mat-icon",43),Q(1," AI Recommendation "))},Zgb=function(a){a&1&&Q(0," Select a commonly used component ")},$gb=function(a){a&1&&Q(0," Select recent component ")},ahb=function(a){a&1&&Q(0," Select component ")},
bhb=function(a){a&1&&Q(0," components ")},chb=function(a){a&1&&Q(0," component ")},ehb=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);dhb(k.searchState,g.id);return v(zs(f))});K(1,"component-row",45);N("selectComponentId",function(f){u(c);var g=P(3);return v(dhb(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=sg(3);I("data",a);B();
I("showFolderSpecialIcon",Bs(d.activeSession))("componentOption",a)("query",e.value)("mode",b)}},fhb=function(a,b){a&1&&(K(0,"div",41)(1,"div",19),F(2,Ygb,2,0)(3,Zgb,1,0)(4,$gb,1,0)(5,ahb,1,0),K(6,"span"),Q(7),F(8,bhb,1,0)(9,chb,1,0),L()(),Qf(10,ehb,2,5,"div",42,Pf),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);Rf(a)}},ghb=function(a){a&1&&Q(0," No recent components ")},hhb=function(a){a&1&&Q(0," No child components ")},
ihb=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 "))},jhb=function(a){a&1&&(Q(0," No components found "),F(1,ihb,7,1));a&2&&(a=P(3).teamScope,B(),G(a?1:-1))},khb=function(a){a&1&&(K(0,"div",46),F(1,ghb,1,0)(2,hhb,1,0)(3,jhb,2,1),L());a&2&&(a=P(2).mode,B(),G(a==="recent"?1:a==="leaf"?2:3))},lhb=function(a){a&1&&F(0,
khb,4,1,"div",46);a&2&&(a=P(2),G(a.componentLoading||a.searchState.componentsLoading?-1:0))},mhb=function(a,b){a&1&&F(0,fhb,12,3,"div",41)(1,lhb,1,1);if(a&2){var c;G((c=b.$implicit.length)?0:1,c)}},nhb=function(a,b){b=l([a.listOrder,b.listOrder]);a=b.next().value;b=b.next().value;for(var c=0;c<Math.min(a.length,b.length);c++)if(a[c]!==b[c])return a[c]-b[c];return a.length-b.length},ohb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.text))},phb=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))},qhb=function(a,b){a&1&&(K(0,"span"),F(1,ohb,2,1,"span")(2,phb,2,1,"span"),L());a&2&&(a=b.$implicit,P(),B(),G(a.text!==void 0?1:2))},shb=function(a,b){var c=rhb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},thb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-radio-group",7);Eg("ngModelChange",function(c){u(b);
var d=P(2);Dg(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return v(c)});K(3,"mat-radio-button",8);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),Cg("ngModel",a.setLimitViewTrusted),B(),I("value",!0),B(2),I("value",!1))},uhb=function(a){if(a&1){var b=t();K(0,"div");
M(1,"br");K(2,"mat-checkbox",10);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.acknowledged,c)||(d.acknowledged=c);return v(c)});L();K(3,"span");Q(4,"All information in this issue is suitable for external sharing.");L()()}a&2&&(a=P(2),B(2),Cg("ngModel",a.acknowledged))},vhb=function(a){a&1&&(K(0,"div"),F(1,thb,7,3,"div")(2,uhb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.isLimitNoneIssueTrackerMove?1:2))},whb=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))},Cs=function(a,b){return xhb(As.viewIssue.routeDeclarationPath,{id:a,params:b})},Ahb=function(a,b,c,d,e){c=yhb(c);d=zhb(d);return Xta("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)},yhb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},zhb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},xhb=function(a,b){b=b===void 0?{}:b;return b.id==
null?"":Ds(a,b)},Ds=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=Yta(f,d));e&&(f=f+"#"+e);return f},Bhb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},Chb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),F(2,Bhb,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))},Dhb=function(a){a&
1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},Ehb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),F(2,Dhb,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))},Fhb=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},Ghb=function(a){return"share-email-confirmation-"+a},Ihb=function(a){var b,c=new Es,
d=c.setIt,e=(new Hhb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=Ym(e,3,a.keyword);return d.call(c,a)},Khb=function(a){var b,c=(new Jhb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a.embeddingType&&c.setEmbeddingType(a.embeddingType);return(new Fs).setIt(c)},Lhb=function(a,b){a=K0a([].concat(q(a.scores),q(b.scores)),[].concat(q(a.similarIssues),q(b.similarIssues))).sort(function(c,
d){return d[0]-c[0]});a=Iq(a,function(c){c=l(c);c.next();return c.next().value.issueId});return{scores:a.map(function(c){return c[0]}),similarIssues:a.map(function(c){return c[1]})}},Mhb=function(a){a&1&&fg(0)},Nhb=function(a){a&1&&M(0,"div",0)},Ohb=function(a){a&1&&M(0,"b-formatted-date-time",1);a&2&&(a=P(),I("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},Phb=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))});fg(1);L()}a&
2&&(a=P(),zg(a.className),Kf("id",a.id))},Qhb=function(a){a&1&&M(0,"mat-icon",9)},Rhb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},Shb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},Thb=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=sg(4),e=P(3);return v(Gs(e,d))})("focus",function(){u(b);var d=
sg(4);return v(d.select())});L();F(5,Shb,2,1,"span",17);K(6,"button",25);N("onHotkey",function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))})("click",function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=sg(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)}},Uhb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},Vhb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},Whb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},Xhb=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=sg(4),e=P(3);return v(Gs(e,
d))})("focus",function(){u(b);var d=sg(4);return v(d.select())});L();F(5,Whb,2,1,"span",17);K(6,"button",27);N("onHotkey",function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))})("click",function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=sg(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"+(Hs(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)}},Yhb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},Zhb=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=sg(4),e=P(3);return v(Gs(e,d))})("focus",function(){u(b);var d=sg(4);return v(d.select())});L();F(5,Yhb,2,1,"span",17);K(6,"button",29);N("onHotkey",
function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))})("click",function(){u(b);var d=sg(4),e=P(3);return v(Gs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=sg(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)}},$hb=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=sg(5),g=P(2);return v(Gs(g,f))})("focus",function(){u(b);var f=sg(5);return v(f.select())});L();F(6,Rhb,2,1,"span",17);K(7,"button",18);N("onHotkey",function(){u(b);var f=sg(5),g=P(2);return v(Gs(g,f))})("click",function(){u(b);var f=sg(5),g=P(2);return v(Gs(g,f))});M(8,"mat-icon",19);L()();F(9,Thb,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=
sg(14),g=P(2);return v(Gs(g,f))})("focus",function(){u(b);var f=sg(14);return v(f.select())});L();F(15,Uhb,2,1,"span",17);K(16,"button",21);N("onHotkey",function(){u(b);var f=sg(14),g=P(2);return v(Gs(g,f))})("click",function(){u(b);var f=sg(14),g=P(2);return v(Gs(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=sg(22),g=P(2);return v(Gs(g,f))})("focus",function(){u(b);var f=sg(22);return v(f.select())});
L();F(23,Vhb,2,1,"span",17);K(24,"button",23);N("onHotkey",function(){u(b);var f=sg(22),g=P(2);return v(Gs(g,f))})("click",function(){u(b);var f=sg(22),g=P(2);return v(Gs(g,f))});M(25,"mat-icon",19);L()();F(26,Xhb,8,7,"div",14);F(27,Zhb,8,7,"div",14);L()}if(a&2){a=sg(5);var c=sg(14),d=sg(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()&&!Bs(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()&&!Bs(e.activeSession)?26:-1);B();G(e.activeSession.isInternalSession()&&!Bs(e.activeSession)?27:-1)}},aib=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,$hb,28,25,"div",13);L()}if(a&2){a=sg(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)}},bib=function(a){a&1&&M(0,"b-issue-id-picker",1);a&2&&(a=P(),I("issueId",a.id)("showCopyOptions",!1))},cib=function(a){a&
1&&M(0,"b-issue-priority-display",1);a&2&&(a=P(),I("issuePriority",a.priority))},dib=function(a){a&1&&(K(0,"a",2),Q(1," Fix Pending "),L());a&2&&(a=P(),zg(Gg("chippy status-",a.IssueStatus.FIXED)),I("href",Gg("http://cl/",a.pendingFixCl.changelistNumber),Pe)("matTooltip",Hg("Open cl/",a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author)))},eib=function(a,b){a&1&&(K(0,"div",4),Q(1),L());if(a&2){a=P(2);zg(Gg("chippy status-",b));var c;I("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");
B();var d;S(" ",(d=a.STATUS_JS_TERSE.get(b))!=null?d:""," ")}},fib=function(a){a&1&&F(0,eib,2,5,"div",3);if(a&2){var b;a=P();G((b=a.status)?0:-1,b)}},gib=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},hib=function(a){a&1&&(Wf(0),Q(1,"Un-CC me"),Xf())},iib=function(a){a&1&&(Wf(0),Q(1,"CC me"),Xf())},Is=function(a,b){this.name_=b||"";this.address=a||""},jib=function(a,b){Is.call(this,a,b)},Js=function(a){var b;return(b=a==null?void 0:a.trim())!=
null?b:""},Ks=function(a){return new kib(a)},mib=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return Ks(new lib(a,d))},oib=function(){return new nib(ad.apply(0,arguments))},qib=function(){return new pib(ad.apply(0,arguments))},sib=function(){var a=ad.apply(0,arguments);return a.length===1?a[0]:new rib(a)},uib=function(){return new tib(ad.apply(0,arguments))},vib=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))},
xib=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&&Ls(e,d)&&(wib(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){u(c);var d=P();return v(wib(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()))},Bib=function(a){if(a&1){var b=t();K(0,"input",7,0);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.typedText,c)||(d.typedText=c);return v(c)});N("focus",function(){u(b);var c=P();return v(yib(c))})("blur",function(){u(b);var c=
P();zib(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return v()});L()}a&2&&(a=P(),I("peoplekitAutocompleteConfig",Aib(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Cg("ngModel",a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},Cib=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",
ws(a.documentationLinks)+"#components",Pe))},Dib=function(a){a&1&&(K(0,"span"),Q(1," Invalid user(s). "),L())},Eib=function(a){a&1&&(K(0,"span"),Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),L())},Fib=function(a){a&1&&(K(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),L())},Gib=function(a){a&1&&(K(0,"span"),Q(1," Team owner cannot be a group. "),L())},Hib=function(a){a&1&&(K(0,"span"),Q(1," Team owner can only be a full-time Googler. "),
L())},Iib=function(a){a&1&&(K(0,"span"),Q(1," Only users in the Google domain can be selected. "),L())},Jib=function(a){a&1&&(K(0,"span"),Q(1," User has already been selected. "),L())},Kib=function(a){a&1&&(K(0,"span"),Q(1," Only users can be selected. Groups and aliases are not supported. "),L())},Pib=function(a,b){if(!b||!a)return Lib;var c;return!Mib((c=b.readers)!=null?c:[])||Nib(a)?Oib:Lib},Mib=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":
!1})},Nib=function(a){return a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},Qib=function(a,b){a&1&&(K(0,"a",6),Q(1," Learn more. "),L());a&2&&I("href",b,Pe)},Rib=function(a,b){a&1&&M(0,"b-multi-user-input",9);a&2&&(I("users",b),Kf("disabled",!0))},Sib=function(a){a&1&&(Wf(0,8),M(1,"br"),K(2,"h2"),Q(3,"Users who can view"),L(),F(4,Rib,1,2,"b-multi-user-input",9),T(5,"async"),Xf());if(a&2){var b;a=P(2);I("onedevIsHovercardReady",a.showHovercard$);B(4);G((b=U(5,2,a.viewers$))?4:-1,b)}},Uib=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=sg(1);P().loadTooltipOnce();f.disabled=!1;return v(f.show())})("blur",function(){u(b);var f=sg(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,Qib,2,1,"a",6);E(14,Sib,6,4,"ng-container",7);L()()()()}if(a&2){var c;a=sg(7);var d=P();zg(U(2,10,d.chipClass$));yg("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=Tib(d.documentationLinks))?13:-1,c)}},Vib=function(a){return a==="visible_to_listed_partners"||a==="visible_to_listed_public_users"},Wib=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))},Xib=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))},Yib=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",Gg("Go to issue ",a.duplicateOfIssueId));I("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),Pe);B();S(" ",a.duplicateOfIssueId," ")}},Zib=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:""," ")}},
$ib=function(a,b){a&1&&F(0,Wib,3,2,"span")(1,Xib,3,2,"span")(2,Yib,4,4,"span")(3,Zib,2,1,"span");a&2&&G(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},ajb=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)}},bjb=function(a){a&1&&F(0,ajb,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);G((b=a.issue.userData)?0:-1,b)}},djb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);
var c=P(2);return v(cjb(c,c.childContextId))});Q(1," Unlink parent ");L()}},ejb=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))},fjb=function(a,b){a&1&&(F(0,ejb,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)}},gjb=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())}},jjb=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,$ib,4,1);L()();K(15,"div",8)(16,"b-cc-button",9);N("onCc",function(m){u(c);var r=P();r.location&&m&&r.analytics.trackEvent(r.location+"_issueCard","add","CC");return v()});L();F(17,bjb,1,1);F(18,djb,2,0,"button",10);L();K(19,"ul");F(20,fjb,6,4);F(21,gjb,2,4,"li",11);L()()}if(a&2){var d,e,f;a=P();B(2);Kf("aria-label",Gg("Go to issue ",
a.issueId));I("href",a.ROUTES.viewIssue.makeHref(a.issueId),Pe);B();Ag(a.issueId);B(3);Ag(b.title);B(3);I("issueId",a.issueId);B(2);zg(a.priorityClass(b.priority));B();var g;Ag(a.ISSUE_PRIORITY_TEXT_JS[(g=b.priority)!=null?g:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);B(2);G((d=b.status)?14:-1,d);B(2);var k;I("issueId",a.issueId)("ccState",hjb(a,(k=b.ccUsers)!=null?k:Jg(16,ijb)));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&&AVa(a.firstEvent)?21:-1)}},kjb=function(a){a=a.getIt();return{matchedPatterns:Vm(a,1,Oi())}},mjb=function(a){if(a&1){var b=t();K(0,"span",12);N("onedevHovercardShown",function(){u(b);var d=P(2);return v(ljb(d))});Q(1);L()}if(a&2){a=P(2);var c=sg(6);I("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();Ag(a.title)}},njb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),Ag(a.title))},pjb=function(a){if(a&1){var b=t();F(0,mjb,2,3,"span",8)(1,njb,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(ojb(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))},qjb=function(a){a&1&&Yf(0)},rjb=function(a){a&1&&E(0,qjb,1,0,"ng-container",13);a&2&&(P(),a=sg(11),I("ngTemplateOutlet",a))},sjb=function(a,b){a&1&&(K(0,"span",14),Q(1),L());if(a&2){zg(b.cssClass);Kf("aria-label",Hg("",b.title," - ",
b.tooltip));var c;I("matTooltip",(c=b.tooltip)!=null?c:"");B();Ag(b.title)}},tjb=function(a){a&1&&M(0,"b-issue-card",6);a&2&&(a=P(),I("issueId",a.issue.issueId))},ujb=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(" ",Ms(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},wjb=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())});
Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.title,c)||(d.title=c);return v(c)});N("keydown",function(c){u(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),vjb(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(vjb(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),yg("banned-words-warning",U(2,6,a.bannedWordsChecker.showWarning$)),I("bFocus",!0),Cg("ngModel",a.title),B(3),I("disabled",!a.title||a.savingTitle),B(2),I("disabled",a.savingTitle))},xjb=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(ojb(e,d))})("onedevHovercardShown",function(){u(b);var d=
P(2);return v(ljb(d))});Q(1);L()}if(a&2){a=P(2);var c=sg(6);I("routerLink","/"+a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();Ag(a.title)}},yjb=function(a){a&1&&F(0,wjb,7,8)(1,xjb,2,5,"a",16);a&2&&(a=P(),G(a.isEditMode?0:1))},zjb=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," "))},Ajb=function(a){a&1&&(F(0,zjb,5,1,"div",19),T(1,"async"));
if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?0:-1,b)}},Bjb=function(a){a&1&&M(0,"mat-icon",22)},Cjb=function(a){a&1&&M(0,"mat-icon",23)},Djb=function(a,b){a&1&&F(0,Bjb,1,0,"mat-icon",22)(1,Cjb,1,0,"mat-icon",23);a&2&&(a=P(),G(b===a.SearchSource.SEMANTIC_SEARCH?0:1))},Fjb=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=sg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=sg(2);return v(d.openMenu())})("menuOpened",
function(){u(b);var d=P(5);return v(Ejb(d))});K(3,"span");Q(4);L();M(5,"mat-icon",37);L()()}if(a&2){P(2);a=sg(11);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);Ag(c.selectedScopeFilter.displayAs.replace("Component: ",""))}},Hjb=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=sg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=sg(2);return v(d.openMenu())});K(3,"span");Q(4);L();M(5,"mat-icon",
37);L()();F(6,Fjb,6,3,"mat-chip-listbox",38)}if(a&2){P();a=sg(8);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);Ag(Gjb(c.selectedScopeFilter.displayAs));B(2);G(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:-1)}},Jjb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(Ijb(c,c.componentFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.componentFilter.tooltip||""),B(),yg("invisible",a.componentFilter!==a.selectedScopeFilter),
B(),S(" ",a.componentFilter.displayAs," "))},Kjb=function(a){if(a&1){var b=t();K(0,"button",44);N("click",function(){u(b);var c=P(5);return v(Ijb(c,c.teamFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.teamFilter.tooltip||""),B(),yg("invisible",a.teamFilter!==a.selectedScopeFilter),B(),S(" ",a.teamFilter.displayAs," "))},Ljb=function(a){a&1&&(F(0,Jjb,3,4,"button",40),F(1,Kjb,3,4,"button",41));a&2&&(a=P(4),G(a.componentFilter?0:-1),B(),G(a.teamFilter?1:-1))},Njb=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(Mjb(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))},Ojb=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,Njb,7,5);L()}a&2&&(a=P(4),B(),G(a.componentFilter?1:-1))},Pjb=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()}},Rjb=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,Hjb,7,4);K(7,"mat-menu",27,1);E(9,Ljb,2,2,"ng-template",28);L();K(10,"mat-menu",29,2);E(12,Ojb,2,1,"ng-template",28);L();K(13,"mat-chip-listbox",30);N("change",function(){u(b);var c=P(3);return v(Qjb(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,Pjb,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))},Sjb=function(a,b){a&1&&F(0,Rjb,22,10,"div");a&2&&(a=P(2),G(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},Tjb=function(a){a&1&&(F(0,Sjb,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.selectedSearchSource$))?0:-1,b)}},Ujb=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()}},Vjb=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,Ujb,2,0,"button",34);L()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1))},Wjb=function(a){a&1&&M(0,"ai-spinner",53);a&2&&I("large",!0)},Xjb=function(a){a&1&&M(0,"ai-spinner",54)},Yjb=function(a){a&1&&M(0,"b-spinner",55)},Zjb=function(a){a&1&&(K(0,"div",14),F(1,Wjb,1,1,"ai-spinner",53),T(2,"async"),Nf(3,Xjb,1,0,"ai-spinner",54)(4,Yjb,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))},$jb=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()()())},akb=function(a){a&1&&(K(0,"h3",57),M(1,"mat-icon",61),Q(2," Possible duplicates "),L())},bkb=function(a){a&1&&(K(0,"th",80)(1,"span",81),Q(2,"Selection"),L()())},
ckb=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,Ns(b.selectedIssues,a.issueId))),Jf("aria-label",a.snapshot[0].title),I("value",a.issueId))},dkb=function(a){a&1&&(K(0,"th",80),Q(1," Title "),L())},ekb=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))},fkb=function(a){a&1&&
(K(0,"th",80),Q(1," Id "),L())},gkb=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))},hkb=function(a){a&1&&(K(0,"th",80),Q(1," Priority "),L())},ikb=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))},jkb=function(a){a&1&&(K(0,"th",87),Q(1," Status "),L())},kkb=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))},lkb=function(a){a&
1&&(K(0,"th",80),Q(1," Dupes "),L())},mkb=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," ")}},nkb=function(a){a&1&&(K(0,"th",89)(1,"span",81),Q(2,"Votes"),L(),M(3,"mat-icon",90),L())},okb=function(a,b){a&1&&(K(0,"td",88),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.aggregatedData.voteCount," "))},pkb=function(a){a&1&&(K(0,"th",91),Q(1," Created "),L())},qkb=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))},rkb=function(a){a&1&&M(0,"tr",93)},skb=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(Os(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)},ukb=function(a){if(a&1){var b=t();K(0,"table",62);N("contentChanged",function(){u(b);var d=P(),e=P();return v(tkb(e,d))});Wf(1,63);E(2,bkb,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,ckb,3,5,"td",66);L();Xf();Wf(5,67);E(6,dkb,2,0,"th",64)(7,ekb,2,4,"td",66);Xf();Wf(8,68);E(9,fkb,2,0,"th",64)(10,gkb,2,1,"td",
66);Xf();Wf(11,69);E(12,hkb,2,0,"th",64)(13,ikb,2,1,"td",66);Xf();Wf(14,70);E(15,jkb,2,0,"th",71)(16,kkb,2,1,"td",66);Xf();Wf(17,72);E(18,lkb,2,0,"th",64)(19,mkb,2,1,"td",73);Xf();Wf(20,74);E(21,nkb,4,0,"th",75)(22,okb,2,1,"td",73);Xf();Wf(23,76);E(24,pkb,2,0,"th",77)(25,qkb,2,1,"td",66);Xf();E(26,rkb,1,0,"tr",78)(27,skb,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)}},vkb=function(a){a&
1&&(K(0,"div",59)(1,"span",95),Q(2,"No results found"),L()())},wkb=function(a,b){a&1&&(K(0,"div",15),F(1,$jb,5,0,"b-callout",56),F(2,akb,3,0,"h3",57),F(3,ukb,28,4,"table",58),F(4,vkb,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))},xkb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),Ag(a.description))},ykb=function(a){a&1&&
(K(0,"span"),Q(1,", "),L())},zkb=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,xkb,3,1,"div"),L()()(),F(9,ykb,2,0,"span"));if(a&2){a=sg(3);var c=P(),d=c.$index;c=c.$count;I("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);B();Ag(b.displayName);B(6);Ag(b.displayName);B();G(b.description?8:-1);B();G(d!==c-1?9:-1)}},Bkb=function(a,b){a&1&&(F(0,zkb,10,6),T(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=U(1,
1,Akb(b,a)))?0:-1,c)}},Ckb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(c){u(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return v()});M(1,"b-icon",5);L()}a&2&&(a=P(),yg("collapsed",!a.expanded),Kf("aria-label",a.expanded?"Collapse children":"Expand children"))},Dkb=function(a){a&1&&M(0,"div",2)},Ekb=function(a){a&1&&M(0,"mat-icon",1);a&2&&(a=P(),I("svgIcon",a.icon))},Fkb=function(a){if(a&1){var b=t();M(0,"b-signal-chip",
3);K(1,"button",4);N("click",function(c){u(b);var d=P();c.preventDefault();c.stopPropagation();return v(d.dismissAlert())})("mousedown",function(){u(b);var c=P();return v(c.dismissAlert())});M(2,"mat-icon",5);L()}a&2&&(P(),a=dg(1),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Hkb=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();var b=sg(5);I("xapInlineDialog",b);B();S(" +",Gkb(a).slice(1).length," ")}},Ikb=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))},Jkb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Qf(2,Ikb,4,3,"div",6,Of),L()());a&2&&(a=P(),B(2),Rf(Gkb(a).slice(1)))},Kkb=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," "))},Lkb=function(a){a&1&&M(0,"b-team-display",1);a&2&&(a=P(),I("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},Mkb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b)},Nkb=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()}},Okb=function(a){a&1&&(Wf(0),Q(1),T(2,"enumToHuman"),
Xf());a&2&&(a=P(),B(),Ag(U(2,1,a.type)))},Pkb=function(a){a&1&&Yf(0)},Qkb=function(a){a&1&&(K(0,"span"),Q(1,"Details"),L())},Rkb=function(a){a&1&&(K(0,"span"),Q(1,"Members"),L())},Skb=function(a){a&1&&(K(0,"div",11)(1,"a",12),F(2,Qkb,2,0,"span")(3,Rkb,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=Yaa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":iVa(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(Yaa(a.email)?2:3)}},Tkb=function(a){a&1&&(K(0,"span",2),E(1,Pkb,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,Skb,4,2,"div",11),L()()()());if(a&2){a=sg(3);var b=P(),c=sg(3);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(9);Ag(b.getName());B(4);Ag(b.email);
B();G(b.shouldShowLinks()?15:-1)}},Ukb=function(a){a&1&&Yf(0)},Vkb=function(a){a&1&&E(0,Ukb,1,0,"ng-container",3);a&2&&(P(),a=sg(3),I("ngTemplateOutlet",a))},Wkb=function(a){a&1&&fg(0)},Xkb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),fg(2),L()())},Ykb=function(a,b){a&1&&M(0,"mat-icon",2);a&2&&I("svgIcon",b)},Zkb=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," "))},$kb=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," "))},alb=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))},blb=function(a){a&1&&(K(0,"div",7),Qf(1,alb,2,5,"div",8,Pf),L());a&2&&(a=P(2),B(),Rf(a.nestedChips))},clb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.getTooltip()))},
dlb=function(a){a&1&&(K(0,"b-text-with-tooltip",5),F(1,blb,3,0,"div",7)(2,clb,2,1,"span"),L());a&2&&(a=P(),I("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",a.displayText),B(),G(a.isContainerChip()?1:2))},elb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(){u(b);var c=P();return v(c.chipRemove.emit())})("keydown.enter",function(){u(b);var c=P();return v(c.chipRemove.emit())});M(1,"mat-icon",11);L()}a&2&&(a=P(),I("matTooltip",Gg("'Remove ",a.displayText,"'")),Kf("aria-label",
"Remove "+a.displayText))},flb=function(a,b){a&1&&(K(0,"span",1),Q(1),L());a&2&&(I("matTooltip",b),B(),S(" ",b," "))},glb=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," "))},hlb=function(a,b){a&1&&(Tf(0,"div",1,0),fg(2),Uf());a&2&&(a=b.id,b=P(),zg(b._classList),yg("mat-mdc-autocomplete-visible",b.showPanel)("mat-mdc-autocomplete-hidden",!b.showPanel)("mat-autocomplete-panel-animations-enabled",!b._animationsDisabled)("mat-primary",
b._color==="primary")("mat-accent",b._color==="accent")("mat-warn",b._color==="warn"),Sf("id",b.id),Kf("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},ilb=function(a){a&1&&(K(0,"div")(1,"div",10),Q(2," An issue cannot reference itself. "),L()())},jlb=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))},klb=function(a){a&1&&(K(0,"mat-option",8),Q(1," No issues found. "),L())},llb=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:"")}},mlb=function(a){a&1&&M(0,"b-issue-card",21,2);if(a&2){a=sg(1);var b=P().$implicit;I("onedevIsHovercardReady",a.init)("issueId",b.resourceId)}},olb=function(a,b){if(a&1){var c=t();K(0,"mat-option",9)(1,"div",13);F(2,llb,1,1,"mat-icon",14);K(3,"strong",15);Q(4);L();K(5,"onedev-hovercard",null,1);E(7,mlb,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=sg(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",Fg(a.resourceId));B();S(" ",a.resourceId," ");B(4);I("onedevHovercardTrigger",b)("href",d.getIssueLink(a),Pe);B(3);Ag(nlb(a));B();I("title",Fg(a.displayText))("innerHTML",Ng(13,12,a.displayText,d.query),Oe)}},plb=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",Gg("issues/",a.resourceId),Pe);B();Bg(" ",a.resourceId,"",c===b-1?"":","," ")}},qlb=function(a){a&1&&(K(0,"div",3),Qf(1,plb,2,4,"a",11,Pf),L());a&2&&(a=P(),B(),Rf(a.selectedIssues))},rlb=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",Gg("issues/",a.selectedIssues[0].resourceId),Pe),B(2),S(" ",a.selectedIssues[0].displayText," "))},
tlb=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(slb(c))})("keyup.space",function(){u(b);var c=P();return v(slb(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))},ulb=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("Xe`"+a);}},vlb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),S("Retain ",a.resource," as long as issue?"))},wlb=function(a){a&1&&(K(0,"span"),Q(1,"Apply component retention settings?"),L())},xlb=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?"))},ylb=function(a){a&1&&(K(0,"span")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),Bg("This ",a.resource," is currently retained as long as the issue. If you select this option, this ",a.resource," will be scheduled for deletion based on the component retention settings."))},zlb=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);Eg("ngModelChange",function(c){u(b);
var d=P();Dg(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return v(c)});Q(1," I acknowledge ");L()}a&2&&(a=P(),Cg("ngModel",a.acknowledgeToMatchIssueRetention))},Alb=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},Blb=function(a){return new Ps(a)},Clb=function(a){a=a instanceof Ps?a:new Ps(a);return a.value===null||a.value instanceof Qs?a:new Ps(a.value,!0)},Dlb=function(a){return{queryParams:a.getQueryParameters(),
extraHeaders:a.getHeaders(),withCredentials:a.usesCredentialedRequests()}},Ilb=function(a){if(a.oauthTokens){var b=a.oauthTokens;return ie(b).then(function(c){c=new Wj(c);b.subscribe(c);return new Elb(c)})}return a.apiKey?a.bearerTokens?Promise.resolve(new Flb(a.apiKey,a.bearerTokens)):a.appAuthTokens?Promise.resolve(new Glb(a.apiKey)):Promise.resolve(new Hlb(a.apiKey,a.authUser)):Promise.reject(Error("df"))},Jlb=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}},Klb=function(a){return{send:function(b,c,d,e,f,g,k){var m=new Rs(a);m.listen("complete",c);m.listenOnce("ready",function(){m.dispose()});g&&(m.timeoutInterval_=Math.max(0,g));k&&(m.withCredentials_=k);m.send(b,d,e,f);return m}}},Mlb=function(){return Llb=Llb||new sj},Nlb=function(a){Ss.call(this,"serverreachability",a)},Olb=function(a){var b=Mlb();b.dispatchEvent(new Nlb(b,
a))},Plb=function(a,b){Ss.call(this,"statevent",a);this.stat=b},Ts=function(a){var b=Mlb();b.dispatchEvent(new Plb(b,a))},Qlb=function(a,b,c){Ss.call(this,"timingevent",a);this.size=b;this.rtt=c},Rlb=function(a,b,c){var d=Mlb();d.dispatchEvent(new Qlb(d,a,b,c))},Slb=function(a,b){if(typeof a!=="function")throw Error("ef");return ra.setTimeout(function(){a()},b)},Us=function(){this.redactEnabled_=!0},Vs=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 Gi(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 Tlb},Ulb=function(a,b){var c=new Us;c.debug("TestLoadImage: loading "+a);if(ra.Image){var d=new Image;d.onload=Ws(Xs,c,"TestLoadImage: loaded",!0,b,d);d.onerror=Ws(Xs,c,"TestLoadImage: error",!1,b,d);d.onabort=Ws(Xs,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=Ws(Xs,c,"TestLoadImage: timeout",!1,b,d);ra.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},Vlb=function(a,b){var c=new Us,d=new AbortController,
e=setTimeout(function(){d.abort();Xs(c,"TestPingServer: timeout",!1,b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?Xs(c,"TestPingServer: ok",!0,b):Xs(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);Xs(c,"TestPingServer: error",!1,b)})},Xs=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){}},Xlb=function(){this.parser_=new Wlb},Ylb=function(a,b,c){return c&&c.internalChannelParams?
c.internalChannelParams[a]||b:b},Ys=function(a){this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new Us;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_=Ylb("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_=Ylb("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=Ylb("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=Ylb("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=Ylb("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 Zlb(a&&a.concurrentRequestLimit);this.wireCodec_=new Xlb;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},$lb=function(){},amb=function(a){return new Vd(function(b){var c=Zs(function(){b.next({});b.complete()},a);return function(){ra.clearTimeout(c)}})},bmb=function(a){return(new bt).setName(a)},gmb=function(a){var b=new ct;a=l(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new cmb;if(d.value===null){d=c;var e=new dmb;mp(d,13,dt,e)}else d.value instanceof
et?d.isDecreasing?gp(c,4,dt,Ib(d.value.toString(),0)):gp(c,2,dt,Ib(d.value.toString(),0)):typeof d.value==="string"?d.isDecreasing?Ro(c,3,dt,d.value):Ro(c,1,dt,d.value):typeof d.value==="number"?d.isDecreasing?UXa(c,9,dt,d.value):UXa(c,10,dt,d.value):d.value instanceof Uint8Array?d.isDecreasing?gp(c,5,dt,gb(d.value,!1,!0)):gp(c,7,dt,gb(d.value,!1,!0)):d.value instanceof emb?d.isDecreasing?(e=c,d=fmb(d.value),mp(e,11,dt,d)):(e=c,d=fmb(d.value),mp(e,12,dt,d)):d.value instanceof Qs&&(c=d.value.rep);
b.addParts(c)}return b},lmb=function(a,b){if(a instanceof ft)return b.getPartsList().length>0?null:hmb.apply(ft,q(a.parts));a=Array.of.apply(Array,q(a.root.parts));b=l(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,Mo(c,dt)){case 4:a.push(Clb(gt(imb(c,4))));break;case 2:a.push(Blb(gt(imb(c,2))));break;case 8:case 10:case 6:case 9:a.push(new Ps(new Qs(c)));break;case 3:a.push(Clb(wr(c,3,dt)));break;case 1:a.push(Blb(wr(c,1,dt)));break;case 7:var d=void 0;a.push(Blb((d=jmb(c,
7))==null?void 0:ota(d)));break;case 5:d=void 0;a.push(Clb((d=jmb(c,5))==null?void 0:ota(d)));break;case 12:c=kmb(jm(c,ej,12,dt));if(c===null)return null;a.push(new Ps(c));break;case 11:c=kmb(jm(c,ej,11,dt));if(c===null)return null;a.push(Clb(c));break;case 13:a.push(new Ps(null));break;case 0:a.push(new Ps(new Qs(c)));break;default:return null}return hmb.apply(ft,q(a))},it=function(a){return{firstPartyUri:new ht("https://"+a+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ht("https://"+
a+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}},jt=function(a,b){return{firstPartyUri:new ht("https://"+a+"-dynamite-"+b+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ht("https://"+a+"-dynamite-"+b+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!0}},omb=function(a,b){var c=0,d=a.slice(0,b).matchAll(mmb),e=void 0;d=l(d);for(var f=d.next();!f.done;f=d.next())e=f.value;e&&e.index!==void 0&&(c=e.index+e[0].length);e=a.slice(b).search(nmb);b+=e;return{wordStart:c,
wordEnd:b,word:a.slice(c,b)}},pmb=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()())},qmb=function(a){a&1&&(K(0,"div",7)(1,"div",14),Q(2," Warning: Mentions are not supported without edit access. "),L()())},smb=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(rmb(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))},tmb=function(a){a&1&&E(0,smb,2,3,"ng-template",9);a&2&&(a=P(),I("refreshable",a.refresh$))},umb=function(a){a&1&&M(0,"div",10,3)},vmb=function(a){a&1&&Yf(0)},wmb=function(a){a&1&&Yf(0)},xmb=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))},ymb=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: ",Ms(a.bannedWordsChecker),". Review your comment before posting. "))},zmb=function(a){a&1&&M(0,"b-live-preview",6);a&2&&(a=P(),I("comment",a.dataDraft.text)("issueId",a.dataDraft.issueId)("audience",a.dataDraft.audience)("formattingMode",a.dataDraft.formattingMode))},
Amb=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()()()}},Bmb=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]}}},Cmb=function(a){var b=[],c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.displayText!=="")if(c.get(d.resourceId)){var e=c.get(d.resourceId);
e.relations=[].concat(q(e.relations),q(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},Dmb=function(a,b){a&1&&M(0,"mat-icon",5);a&2&&(I("svgIcon",b.icon)("matTooltip",b.tooltip),Kf("aria-label",b.tooltip))},Emb=function(a){a&1&&(Wf(0),Q(1,"\u2026 >"),Xf())},Fmb=function(a){a&1&&(Wf(0),Q(1,"\u2026"),Xf())},Gmb=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,Emb,2,0,"ng-container");F(3,Fmb,2,0,"ng-container");
L()()}a&2&&(a=P().$implicit,B(2),G(a.isSpliced?2:-1),B(),G(a.isTruncated?3:-1))},Hmb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},Imb=function(a){a&1&&(K(0,"a",14),Q(1),L());if(a&2){a=P(2).$implicit;var b=sg(5);yg("muted",a.name==a.id);I("routerLinkObj",a.route)("onedevHovercardTrigger",b);B();Ag(a.name)}},Jmb=function(a){a&1&&F(0,Hmb,1,1)(1,Imb,2,5,"a",13);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},Kmb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},
Lmb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P(2).$implicit,yg("muted",a.name==a.id),B(),Ag(a.name))},Mmb=function(a){a&1&&F(0,Kmb,1,1)(1,Lmb,2,3,"span",15);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},Nmb=function(a){a&1&&Q(0," > ")},Omb=function(a){a&1&&(Wf(0),M(1,"b-component-path-card",17,1),Xf());if(a&2){a=sg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},Pmb=function(a,b){a&1&&(F(0,Gmb,4,2,"a",9),F(1,Jmb,2,1)(2,Mmb,2,1),F(3,Nmb,1,0),K(4,"onedev-hovercard",
null,0),E(6,Omb,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)}},Rmb=function(a,b){a&1&&(K(0,"span",6),Qf(1,Pmb,7,3,null,null,Qmb),L());a&2&&(B(),Rf(b))},Smb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},Tmb=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()}},
Umb=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))}},Vmb=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,Dmb,1,3,"mat-icon",5),T(6,"async"),F(7,Rmb,3,0,"span",6),T(8,"async"),F(9,Smb,2,0,"span"),T(10,"async"),F(11,Tmb,2,0,"button",7),F(12,Umb,3,3,"a",8),L()());if(a&2){var b,c;a=P();I("isReady",U(1,10,a.isReady$));B(2);
yg("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)}},Xmb=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(Wmb(d,c))})("dropdownClosed",function(){u(b);var c=P();return v(Wmb(c))});L()}a&2&&(a=P(),I("selectedComponent",
U(1,5,a.component$))("isRequired",!0)("shouldFocus",!0)("showOverlayAbove",a.showPickerOverlayAbove)("issueId",a.issueId))},$mb=function(a){for(var b=l(Ymb),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===a)return c.title;return Zmb.title},anb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),I("matTooltip",a.disabledDropdownTooltip))},bnb=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," "))},dnb=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;cnb(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," "))},enb=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),Qf(5,dnb,2,4,
"mat-checkbox",18,Pf),T(7,"keyvalue"),L());a&2&&(a=P(),B(3),I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP)),B(2),Rf(U(7,2,a.collaboratorGroupsEmailToDetailsMap)))},gnb=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",!fnb(a,U(3,1,a.hasAccessLimitLevelSelectionChanged$))))},
hnb=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()}},inb=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,Ns(a.isSavingStar,a.hotlist.hotlistId)))("starred",U(2,6,Ns(a.starredHotlists,
a.hotlist.hotlistId))))},jnb=function(a){a&1&&M(0,"div",2)},knb=function(a){if(a&1){var b=t();K(0,"span",0);F(1,inb,3,8,"b-star-toggle",1)(2,jnb,1,0,"div",2);K(3,"a",3);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",4);L()()}a&2&&(a=P(),B(),G(a.shouldShowStar(a.hotlist)?1:2),B(2),I("matTooltip",Gg("Open ",a.hotlist.name," in a new tab"))("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),Kf("aria-label",
"Open "+a.hotlist.name+" in a new tab"))},lnb=function(a){a&1&&Yf(0)},mnb=function(a){a&1&&E(0,lnb,1,0,"ng-container",7);a&2&&(P(),a=sg(10),I("ngTemplateOutlet",a))},onb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2),d=Gm(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),kt(c)):nnb(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$)," "))},pnb=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$)," "))},qnb=function(a){a&1&&M(0,"mat-icon",27)},rnb=function(a){a&1&&M(0,"mat-icon",28)},snb=function(a){a&1&&M(0,"mat-icon",29)},tnb=function(a){a&1&&(K(0,"p",36),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},unb=function(a){if(a&1){var b=t();K(0,"div");F(1,qnb,1,0,"mat-icon",27)(2,rnb,1,0,"mat-icon",
28)(3,snb,1,0,"mat-icon",29);K(4,"mat-list-item",30);N("focus",function(){u(b);P();var e=sg(1);return v(e.show())})("blur",function(){u(b);P();var e=sg(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,tnb,2,1,"p",36);L()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);zg(Gg("flex-kids-x align-items-center left-padding ",
a.type));B();G(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);B(3);xg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=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)}},vnb=function(a){a&1&&(K(0,"p",36),Q(1),L());
a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},wnb=function(a){if(a&1){var b=t();K(0,"mat-list-item",30);N("focus",function(){u(b);P();var e=sg(1);return v(e.show())})("blur",function(){u(b);P();var e=sg(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,vnb,2,
1,"p",36);L()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);xg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=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)}},xnb=function(a,b){a&1&&(K(0,"div",21,4),T(2,"async"),F(3,unb,13,15,"div",
25)(4,wnb,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)}},ynb=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),yg("has-description",a.description),I("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",
b.isSavingStar))},znb=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()()}},Bnb=function(a,b){a&1&&(K(0,"div",18)(1,"mat-list",19)(2,"div",20),Qf(3,xnb,5,4,"div",21,Anb),L()(),K(5,"div",22),Qf(6,ynb,1,6,"hotlist-matlist-option",23,Anb),L()(),F(8,znb,5,0,"div",24),T(9,"async"));a&2&&(a=P(2),B(3),Rf(b),B(3),
Rf(b),B(2),G(U(9,1,a.isOverflowMode$)?8:-1))},Cnb=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=sg(6);P().query$.next(d.value);return v()});L()()();K(7,"section",12,3);F(9,onb,5,3,"button",13);T(10,"async");F(11,pnb,5,3,"button",14);T(12,"async");F(13,Bnb,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)}},Dnb=function(a){a&1&&Yf(0)},Enb=function(a){a&1&&E(0,Dnb,1,0,"ng-container",7);a&2&&(P(),a=sg(8),I("ngTemplateOutlet",a))},Fnb=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=P();return v(kt(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," "))},Inb=function(a){if(a&1){var b=t();K(0,"button",41);
N("click",function(){u(b);var c=P();return v(Gnb(c))});Q(1," Create ");L()}a&2&&(a=P(),I("disabled",!(Hnb(a).length>0)))},Jnb=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))},
Knb=function(a,b){return a.name.localeCompare(b.name)},Lnb=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)},Mnb=function(a){var b=new Set(a.selectedHotlistIds);if(a.selectedHotlistIdsMap){a=l(a.selectedHotlistIdsMap.values());for(var c=a.next();!c.done;c=a.next()){c=l(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}}},Nnb=function(a){var b=new Map;a=l(a.entries());for(var c=
a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=Array.from(d);b.set(c,new Set(d))}return b},Onb=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=dg(0);var e=P(3);c=d.get(c);I("name","severity")("title","Severity")("type",e.FieldType.ENUM)("tooltip","Set severity")("value",c?null:a.severity)("choices",
e.severityChoices)("readonly",!U(1,8,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Pnb=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=sg(1);return v(is(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setPriority(g,f!=null?f:k.IssuePriority.P2))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("name","priority")("title","Priority")("type",e.FieldType.ENUM)("tooltip",
"Set priority")("value",c?null:a.priority)("choices",e.priorityChoices)("hotkey",e.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Qnb=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))},Rnb=
function(a){if(a&1){var b=t();K(0,"triage-custom-fields-editor",24);N("onCustomFieldBulkEdit",function(e){u(b);P(5).customFieldBulkEditOps=e;return v()});L()}if(a&2){P(2);a=dg(0);var c=P(),d=P(2);I("editableIssue",a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",d.subphase)}},Snb=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=dg(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")}},Tnb=function(a){a&1&&(F(0,Snb,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)}},Unb=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")},Vnb=function(a){a&1&&(K(0,"div",27),F(1,Tnb,2,3),F(2,Unb,3,1,"button",28),L());if(a&2){P();a=dg(0);P(2);var b=dg(0),c=P(3);B();G(c.showAssignToDefault&&!a?1:-1);B();G(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},Wnb=function(a){if(a&1){var b=t();bg(0);
K(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);N("onHotkey",function(){u(b);var f=sg(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,Vnb,3,2,"div",27);T(6,"async");L()()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=cg(d.get(c));B(3);I("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",
c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);B(2);G(U(6,7,e.showAssigneeChips$)?5:-1)}},Xnb=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=dg(0);var e=P(3);c=d.get(c);I("name","type")("title","Type")("type",e.FieldType.ENUM)("value",c?null:a.type)("choices",e.typeChoices)("readonly",!U(2,7,e.hasAclToEdit$))("displayValueOverride",
c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Ynb=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=sg(1);return v(is(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setStatus(g,f!=null?f:k.IssueStatus.NEW))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("name","status")("title","Status")("type",e.FieldType.ENUM)("value",c?null:a.status)("choices",e.statusChoices)("showHotkeyHint",!0)("hotkey",e.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",
!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},$nb=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=dg(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",Znb(a,c.sessionIsExternal))}},aob=function(a){a&
1&&F(0,$nb,2,8,"b-list-field",36);a&2&&(a=P(3),G(a.length<2?0:-1))},bob=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=dg(0);var e=P(3);c=d.get(c);B(4);I("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",
c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:"")}},eob=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(cob(d))});L();K(4,"button",10);N("click",function(){u(b);var d=sg(7),e=P(5);return v(cob(e,d))});Q(5,"Remove comment");L()();K(6,"button",10,5);N("click",function(){u(b);var d=sg(3);P(5).showCommentInput=!0;return v(d.commentBox==null?null:dob(d.commentBox))});Q(8,"Add comment");L()()}if(a&2){P(2);a=dg(0);var c=P(3);
B();yg("hidden",!c.showCommentInput);B();I("issueId",a.issueId)("showActionsAfterPreview",!1)("showCommentButton",!1);B(4);yg("hidden",c.showCommentInput)}},hob=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=l(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.collaborators;k.includes(e)||k.push(e);g.setCollaborators(k)}lt(d,c[0]);mt(d,c);return v()})("removeCurrentUser",function(){u(b);
var c=P(4),d=P(2);return v(fob(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=l(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=Jq([].concat(q(g.collaborators),q(c)));g.setCollaborators(k)}lt(e,d[0]);mt(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return v(gob(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$)))},
iob=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=dg(0),e=P(3);return v(e.toggleAccessLimits(d.issueId))});L()}if(a&2){P(3);a=dg(0);var c=P(3);I("title","Collaborators")("values",a.collaborators)("users",a.collaboratorsUsers)("includeSelfActionDescription",
"Add me")("includeSelfActionLongDescription","Add yourself to collaborators")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription","Remove yourself from collaborators")("collectionHovercardDescription","Collaborators are people directly working on this issue.")("isCurrentUserInCollection",c.isCurrentUserCollaborator)("isAllowedToEditCollection",U(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",
!0)}},job=function(a){a&1&&F(0,hob,2,6,"triage-edit-user-buttons",41)(1,iob,2,16,"b-multi-user-control",42);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},mob=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=l(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.cc;k.includes(e)||k.push(e);g.cc=k}nt(d,c[0]);mt(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);
return v(kob(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=l(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=Jq([].concat(q(g.cc),q(c)));g.cc=k}nt(e,d[0]);mt(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return v(lob(e,d,c))});L()}a&2&&(a=P(6),I("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",U(1,3,a.hasAclToEdit$)))},oob=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(nob(e,d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCcs(e,d))});L()}if(a&2){P(3);a=dg(0);var c=P(3);I("title","CC")("values",a.cc)("users",a.ccUsers)("includeSelfActionDescription","CC me")("includeSelfActionLongDescription","Add yourself to CC")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription","Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isCurrentUserInCollection",
c.isCurrentUserCcd)("isAllowedToEditCollection",U(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},pob=function(a){a&1&&F(0,mob,2,5,"triage-edit-user-buttons",45)(1,oob,2,14,"b-multi-user-control",46);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},qob=function(a,b){a&1&&M(0,"automatic-change-chip",20);a&2&&(P(2),a=dg(0),I("issueId",a.issueId)("automaticChange",b))},sob=function(a,b){a&1&&(K(0,"div",7),F(1,Onb,2,10,"b-edit-field",11)(2,Pnb,3,11,"b-edit-field",12)(3,Qnb,1,2,"triage-hotlists-editor",
13)(4,Rnb,1,4,"triage-custom-fields-editor",14)(5,Wnb,7,9,"div",15)(6,Xnb,3,9,"b-edit-field",16)(7,Ynb,3,11,"b-edit-field",17)(8,aob,1,1)(9,bob,5,6,"div",18)(10,eob,9,7,"div",19)(11,job,2,1)(12,pob,2,1),F(13,qob,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=rob(b,a))?13:-1,c)}},tob=function(a){if(a&1){var b=t();bg(0);K(1,"div",6);Qf(2,sob,14,2,"div",7,Pf);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);cg(a[0]);B(2);Rf(c.fields);B(3);I("disabled",U(6,3,c.isSaving$));B(2);Ag(U(8,5,c.isSaving$)?"Saving":"Save changes")}},uob=function(a){a&1&&(F(0,tob,11,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},vob=function(a){a&1&&(F(0,uob,2,3),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.editableIssues$))?0:-1,b)}},wob=function(a){a&1&&Yf(0)},xob=function(a){a&1&&E(0,wob,1,0,"ng-container",11);a&2&&(P(),a=sg(12),I("ngTemplateOutlet",
a))},yob=function(a){a&1&&Yf(0)},zob=function(a){a&1&&E(0,yob,1,0,"ng-container",11);a&2&&(P(),a=sg(14),I("ngTemplateOutlet",a))},Aob=function(a){a&1&&Yf(0)},Bob=function(a){a&1&&E(0,Aob,1,0,"ng-container",11);a&2&&(P(),a=sg(16),I("ngTemplateOutlet",a))},Cob=function(a){a&1&&Yf(0)},Dob=function(a){a&1&&E(0,Cob,1,0,"ng-container",11);a&2&&(P(),a=sg(32),I("ngTemplateOutlet",a))},Eob=function(a){a&1&&Yf(0)},Fob=function(a){a&1&&E(0,Eob,1,0,"ng-container",11);a&2&&(P(),a=sg(20),I("ngTemplateOutlet",a))},
Gob=function(a){a&1&&Yf(0)},Hob=function(a){a&1&&E(0,Gob,1,0,"ng-container",11);a&2&&(P(),a=sg(22),I("ngTemplateOutlet",a))},Iob=function(a){a&1&&Yf(0)},Job=function(a){a&1&&E(0,Iob,1,0,"ng-container",11);a&2&&(P(),a=sg(24),I("ngTemplateOutlet",a))},Kob=function(a){a&1&&Yf(0)},Lob=function(a){a&1&&E(0,Kob,1,0,"ng-container",11);a&2&&(P(),a=sg(26),I("ngTemplateOutlet",a))},Mob=function(a){a&1&&Yf(0)},Nob=function(a){a&1&&E(0,Mob,1,0,"ng-container",11);a&2&&(P(),a=sg(28),I("ngTemplateOutlet",a))},Oob=
function(a){a&1&&Yf(0)},Pob=function(a){a&1&&E(0,Oob,1,0,"ng-container",11);a&2&&(P(),a=sg(18),I("ngTemplateOutlet",a))},Qob=function(a){a&1&&Yf(0)},Rob=function(a){a&1&&E(0,Qob,1,0,"ng-container",11);a&2&&(P(),a=sg(30),I("ngTemplateOutlet",a))},Sob=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))},Tob=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))},Uob=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))},Vob=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))},Wob=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))},Xob=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))},Yob=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))},Zob=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))},$ob=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))},apb=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))},bpb=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))},fpb=function(a){var b,c,d,e;a=cpb(a,dpb,1,jb);return{output:(e=(b=Ni(a,epb,1,Oi())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},gpb=function(a,b){if(a&1){var c=t();K(0,"iframe",6);N("load",function(){u(c);var d=P();return v(d.contentLoaded=!0)});L()}a&2&&(a=P(),yg("loading",!a.contentLoaded),I("src",b,Lja))},hpb=function(a){a&
1&&M(0,"mat-spinner",2)},jpb=function(a){return ipb.some(function(b){return b.test(a)})},npb=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&&kpb.includes(d)?d:c&&kpb.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))?Ih(lpb,a):Ih(mpb,a,d)},qpb=function(a,b,c,d){if(opb&&
ppb===b)return opb;ppb=b;var e=npb(a,d);return opb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=ot(document,"SCRIPT");ri(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("qf"))};k.onerror=function(){g(Error("rf`"+e.toString()))};c.body.appendChild(k)})},tpb=function(a,b,c,d){if(rpb&&spb===b)return rpb;spb=b;var e=npb(a,d);return rpb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,
g){var k=ot(document,"SCRIPT");ri(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("qf"))};k.onerror=function(){g(Error("rf`"+e.toString()))};c.body.appendChild(k)})},upb=function(a,b,c,d,e){e=e===void 0?!0:e;var f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:return f=Date.now(),z(w,qpb(a,c,d,b),2);case 2:g=w.yieldResult;if(!(e||((m=a.initializationData)==null?0:m.useNightlyRelease)||((r=a.initializationData)==null?0:r.isLocalServer))){k=g.initializeFeedbackClient(a,
f,b);w.jumpTo(3);break}return z(w,g.initializeFeedbackClientAsync(a,f,b),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})},vpb=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e=Date.now(),z(k,tpb(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)})},wpb=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,g,k,m,r,w,x;return y(function(D){e=
c||ra;if((f=b)==null?0:(k=(g=f).getEnableAlohaBinarySplit)==null?0:k.call(g)){m=e;if(m.isFormOpened)throw new pt;m.isFormOpened=!0;a.callbacks=a.callbacks||{};r=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){m.isFormOpened=!1;r(H)};try{return D.return(vpb(a,b,m,e))}catch(H){throw m.isFormOpened=!1,H;}}else{w=e;if(w.isFormOpened)throw new pt;w.isFormOpened=!0;a.callbacks=a.callbacks||{};x=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){w.isFormOpened=!1;x(H)};try{return D.return(upb(a,
b,w,e.document,d))}catch(H){throw w.isFormOpened=!1,H;}}ce(D)})},Bpb=function(a,b){return y(function(c){return c.return(new Promise(function(d,e){Number.isInteger(Number(a))&&Number(a)>0?(e=xpb(b!=null?b:"")+"/aloha_form_properties?productId="+a,ypb(e,function(f){f=f.target;var g=null;try{g=wta(zpb,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new zpb,g=Apb(),g=op(g,13,!1),g=op(g,14,!0),g=op(g,15,!0),g=op(g,20,!1),g=Zi(f,qt,1,g)}d(g)},"GET","",{},2E3,!0)):e(Error("sf`"+a))}))})},xpb=function(a){return jpb(a)?
a:"https://www.google.com/tools/feedback"},Cpb=function(a){return a.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+" (US Pacific time)"},Dpb=function(a){a&1&&(K(0,"button",6,1),M(2,"mat-icon",7),L());if(a&2){a=P();var b=sg(2);zg(a.buttonSize);I("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Kf("aria-label",a.buttonLabel);B(2);I("svgIcon",a.buttonIcon)}},Epb=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),Ag(a.header))},Fpb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,
I("svgIcon",a.icon))},Gpb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.hintText))},Hpb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},Ipb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.hintText))},Jpb=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,Hpb,1,1,"mat-icon",7);Q(2);F(3,Ipb,2,1,"span",9);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;zg(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)}},Kpb=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;zg(c.className);yg("b-menu-item-checked",a.selected);I("disabled",a.disabled);Kf("title",a.title);B(3);S(" ",a.label," ")}},Lpb=function(a,b){a&1&&(F(0,Jpb,4,7,"button",10),F(1,Kpb,4,7,"button",11));a&2&&(a=b.$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},Mpb=function(a){a&1&&(K(0,"button",8),F(1,Fpb,1,1,"mat-icon",7),Q(2),F(3,Gpb,2,1,"span",9),L(),K(4,"mat-menu",null,2),Qf(6,Lpb,2,2,null,null,Of),L());if(a&2){a=sg(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);Rf(b.items)}},Npb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(3).$implicit,I("svgIcon",a.icon))},Opb=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(3).$implicit,B(),Ag(a.hintText))},Ppb=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,Npb,1,1,"mat-icon",7);
Q(2);F(3,Opb,2,1,"span",9);L()}a&2&&(a=P(2).$implicit,zg(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))},Qpb=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,zg(a.className),yg("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," "))},Rpb=function(a){a&1&&(F(0,Ppb,4,7,"button",10),F(1,Qpb,4,8,"button",11));a&2&&(a=P().$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},Spb=function(a,b){a&1&&(F(0,Mpb,8,4),F(1,Rpb,2,2));a&2&&(a=b.$implicit,G(a.type==="submenu"?0:-1),B(),G(a.type!=="submenu"?1:-1))},Tpb=function(a){var b=a.userIsExternal;a=a.issueIsExternal;return b&&a},Upb=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},Vpb=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),Ag(b))},Wpb=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))},Xpb=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,Ns(b.checkedIssueIds,a.id))))},Ypb=function(a){a&1&&(K(0,
"th",36),Q(1," Title "),L())},Zpb=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))},$pb=function(a){a&1&&(K(0,"th",36),Q(1," Phase "),L())},aqb=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=Or(a))?rt.get(b):"";Ag(b)}},bqb=function(a){a&1&&F(0,aqb,2,1,"span",41);a&2&&(P(2),G(0))},cqb=function(a,b){a&
1&&(K(0,"td",38),F(1,bqb,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)}},dqb=function(a){a&1&&(K(0,"th",42),Q(1," Modified "),L())},eqb=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)}},fqb=function(a){a&1&&F(0,eqb,1,3,"b-formatted-date-time",44);a&2&&(P(2),G(0))},gqb=function(a,b){a&1&&(K(0,"td",
43),F(1,fqb,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)}},hqb=function(a){a&1&&M(0,"th",36)},iqb=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)))},jqb=function(a){a&1&&M(0,"tr",46)},kqb=function(a,b){a&1&&(M(0,"tr",47),T(1,"async"));a&2&&(a=b.$implicit,b=P(),yg("closed",b.isClosed(U(1,2,a.issue$))))},lqb=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)},mqb=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))},nqb=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())});bg(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 ")}},oqb=function(a){a&1&&F(0,mqb,1,1,"secondary-footer",48)(1,nqb,7,9);a&2&&(a=P(),G(a.displaySecondaryFooter?
0:1))},pqb=function(a){a&1&&(K(0,"div",5),M(1,"b-spinner"),L())},qqb=function(a){a&1&&M(0,"code",16);a&2&&(a=P(2).$implicit,I("innerHtml",a.formattingModeDiff,Oe))},rqb=function(a){a&1&&(K(0,"code",17),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.formattingMode," "))},sqb=function(a){a&1&&(K(0,"p",15),Q(1," Formatting: "),F(2,qqb,1,1,"code",16)(3,rqb,2,1,"code",17),L());a&2&&(a=P(3),B(2),G(a.diffView?2:3))},tqb=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,Om(a.lastEditorUser))),B(2),S(" <",U(5,9,Om(a.lastEditorUser)),"> "),B(2),Kf("aria-label",Gg("Comment version ",a.version)),I("id",Gg("bv2-edit-issue-comment-",a.version)),B(),S(" #",a.version))},uqb=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.preview))},vqb=function(a){a&1&&(K(0,
"div",22),Q(1,"Comment deleted."),L())},wqb=function(a){a&1&&(K(0,"div",23),Q(1,"Comment history restricted."),L())},xqb=function(a){a&1&&(F(0,uqb,2,1,"div",21),F(1,vqb,2,0,"div",22),F(2,wqb,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))},yqb=function(a){a&1&&(K(0,"div",24),Q(1,"Comment deleted."),L())},zqb=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);yg("codefont",U(1,3,b.codefont.codefont$));
I("innerHtml",a.unlinkifiedComment,Oe)}},Aqb=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);yg("codefont",U(1,3,b.codefont.codefont$));I("innerHtml",a.diff,Oe)}},Bqb=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())},Cqb=function(a){a&1&&(F(0,yqb,2,0,"div",24),F(1,zqb,2,5,"div",25),F(2,Aqb,2,5,"div",25),F(3,Bqb,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)}},Dqb=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,sqb,4,1,"p",15);F(7,tqb,8,11,"div")(8,xqb,3,3);L();F(9,Cqb,4,4);L()}a&2&&(a=b.$implicit,P(2),yg("comment-version-open",a.open),B(2),I("email",
Om(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))},Eqb=function(a){a&1&&(K(0,"ul",6),Qf(1,Dqb,10,8,"li",8,Of),L());a&2&&(a=P(),B(),Rf(a.history))},Hqb=function(a,b){var c=new Fqb;a=st(c,a,b);Gqb(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Hh("span",{"class":"diff-removed"},d);case 1:return Hh("span",{"class":"diff-added"},d);case 0:return Hh("span",{"class":void 0},d);default:throw Error("uf`"+
e);}});return Eh(c)},Iqb=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)==="DELETED"},Jqb=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))},Lqb=function(a){a&1&&(Wf(0),F(1,Jqb,4,1,"div",2),Xf());a&2&&(a=P(),B(),G(Kqb(a)?1:-1))},Mqb=
function(a){a&1&&(K(0,"div",2)(1,"span",13),Q(2," You do not have access to view this attachment. "),L()())},Nqb=function(a){a&1&&M(0,"mat-spinner",8)},Qqb=function(a,b,c,d){if(tt.REPORTING_ENABLED&&Oqb(a)){if(b==="heartbeat"){var e=tt.HEARTBEAT_SAMPLE_RATE;var f="HEARTBEAT"}else if(b==="network_error")e=tt.CRASH_SAMPLE_RATE,f="CRASHED";else throw Error("zf`"+b);if(!(Math.random()>e)){var g=tt.SCF_REPORTING_PRODUCTION_ID;tt.TEST_PRODUCT_IDS.includes(a)&&(g=tt.SCF_REPORTING_TEST_ID);var k=void 0,m=
void 0;if(tt.ENABLE_COLLECTING_NETWORK_INFO){var r;m=(r=navigator)==null?void 0:r.connection;var w,x;k=(x=(w=m==null?void 0:m.type)!=null?w:m==null?void 0:m.effectiveType)!=null?x:"unknown";var D;m=(D=m==null?void 0:m.effectiveType)!=null?D:"unknown"}a={type:f,host:window.location.hostname,additionalData:JSON.stringify({productID:a,samplingRate:e,shimOrigin:c,connectionType:k,effectiveConnectionType:m,reportType:b,message:d})};g=tt.REPORTING_URL_PREFIX+g;a=JSON.stringify(a);if(Pqb.sendReport)Pqb.sendReport(g,
a);else try{var H,J;(J=(H=navigator).sendBeacon)==null||J.call(H,g,a)}catch(O){}}}},Oqb=function(a){return tt.PRODUCT_IDS_ALLOWLIST.includes(a)||tt.TEST_PRODUCT_IDS.includes(a)},Rqb=function(a,b,c,d){var e,f,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:if(!(a instanceof Error&&a.message===Error("Af").message)){V.jumpTo(0);break}e=[c,"https://test-h833788197.scf.usercontent.goog/test-product/shim.html","https://0test-h833788197.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=l(e);m=k.next();for(r={};!m.done;r={url$jscomp$298:void 0},m=k.next())r.url$jscomp$298=m.value,g.push(fetch(r.url$jscomp$298,{credentials:"omit",mode:"no-cors",signal:AbortSignal.timeout(1E4)}).then(function(ba){return function(){return{url:ba.url$jscomp$298,result:"success"}}}(r)).catch(function(ba){return function(oa){return{url:ba.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=l(w);for(D=x.next();!D.done;D=x.next())J=H=D.value,O=J.url,R=J.result,f.fetch[O]=R;Zj(V,4);break;case 3:be(V);case 4:Qqb(b,"network_error",c,JSON.stringify(f)),ce(V)}})},Sqb=function(){this.blockSize=-1},ut=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);Tqb===void 0&&(ra.Int32Array?Tqb=new Int32Array(Uqb):Tqb=Uqb);this.reset()},Wqb=function(){ut.call(this,8,Vqb)},Xqb=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 Wqb;f.update(new Uint8Array(a));f=(new Uint8Array(f.digest())).buffer;d=e.call(d,f)}else d=d.return(d.yieldResult);return d})},arb=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("Df");if(!Yqb||!Zqb)throw Error("Ef");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(Yqb.encode(f).buffer):d.push(f),e<c.length-1&&d.push(Zqb);g=$qb.apply(null,q(d));return z(k,Xqb(g,b),2)}return k.return(k.yieldResult)})},brb=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},crb=function(a){return a.reduce(function(b,
c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},$qb=function(){for(var a=ad.apply(0,arguments),b=0,c=l(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=l(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(new Uint8Array(d),c),c+=d.byteLength;return b.buffer},drb=function(a){var b=a.product;var c=a.trustedOrigin;var d=a.salt;var e=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var f,g,k;return y(function(m){if(m.nextAddress==1)return f=d?d:new ArrayBuffer(0),
z(m,arb({useSubtleCrypto:e,parts:[b,f,c]}),2);g=m.yieldResult;k=new Uint8Array(g);return m.return(crb(k).padStart(50,"0").slice(0,50))})},erb=function(a){for(var b=a.trustedOrigin,c=a.product,d=a.fileHash+"-h"+a.version+".scf.usercontent.goog",e=l(d.split(".")),f=e.next();!f.done;f=e.next());a=a.cache?"&cache=1":"";return"https://"+d+"/"+c+"/shim.html?origin="+encodeURIComponent(b)+a},frb=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||
a.startsWith("chrome-extension://"))},grb=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("Ff"));ce(k)})},c)});return Promise.race([a,d])}},hrb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),yg("muted",a.isGreyedOut),B(),S(" ",a.displayName))},irb=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))},jrb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),Kf("aria-label",a.expandableTabsTitle),B(),Ag(a.expandableTabsTitle))},krb=function(a){a&1&&M(0,"mat-icon",9)},mrb=function(a){a&1&&Yf(0,10);if(a&2){a=P().$implicit;P();var b=sg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,lrb,a))}},nrb=function(){},orb=function(a){a&1&&E(0,
nrb,0,0,"ng-template")},prb=function(a){a&1&&E(0,orb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},qrb=function(a){a&1&&(F(0,prb,1,1),Yf(1,10));if(a&2){a=P().$implicit;var b=P(),c=sg(14);G(b.showIcons&&a.tabIconTemplate?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,lrb,a))}},srb=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(rrb(e,d.key))});F(4,krb,1,
0,"mat-icon",9);T(5,"async");F(6,mrb,1,4,"ng-container",10);T(7,"async");Nf(8,qrb,2,5);L()}a&2&&(a=b.$implicit,b=P(),yg("has-icon",!(!b.showIcons||!a.tabIconTemplate))("expanded",!!U(1,11,Ns(b.internalExpandedTabs,a.key))),Kf("aria-controls",Gg("expandable-tabs-",a.key,"-content"))("aria-label",a.ariaLabel)("aria-expanded",!!U(2,13,Ns(b.internalExpandedTabs,a.key)))("aria-selected",!!U(3,15,Ns(b.internalExpandedTabs,a.key))),B(4),G(b.showIcons&&U(5,17,Ns(b.internalExpandedTabs,a.key))?4:-1),B(2),
G(U(7,19,Ns(b.internalExpandedTabs,a.key))?6:8))},trb=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),yg("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"," "))},vrb=function(a){a&1&&(F(0,trb,2,6,"button",12),T(1,"async"));if(a&2){var b;a=P();G((b=
Kg(3,urb,U(1,1,a.allTabsExpanded$)))?0:-1,b)}},wrb=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))},xrb=function(a){if(a&1){var b=t();F(0,wrb,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)}},yrb=function(){},zrb=function(a){a&1&&E(0,yrb,0,0,"ng-template")},Arb=function(a){a&1&&E(0,zrb,1,0,null,11);a&2&&(a=P(3).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},Brb=function(a){a&1&&(K(0,"h4"),F(1,Arb,1,1),Yf(2,10),L());if(a&2){a=P(2).$implicit;var b=P(),c=sg(14);B();G(b.showIcons&&a.tabIconTemplate?1:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,lrb,a))}},Crb=function(a){a&1&&M(0,"span",20)},Drb=function(a){a&
1&&M(0,"span",20)},Erb=function(){},Frb=function(a){a&1&&E(0,Erb,0,0,"ng-template")},Grb=function(a){a&1&&E(0,Frb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabContentTemplate))},Irb=function(a){a&1&&(K(0,"div",19),F(1,Brb,3,5,"h4"),T(2,"async"),Nf(3,Crb,1,0,"span",20),E(4,Drb,1,0,"ng-template",null,1,Og),F(6,Grb,1,1),L());if(a&2){a=P().$implicit;var b=P();zg(Gg("expandable-tab-content ",a.key));I("id",Gg("expandable-tabs-",a.key,"-content"));B();var c;G(((c=U(2,7,b.visibleExpandedTabs$))!=
null?c:Jg(9,Hrb)).length>1?1:3);B(5);G(a.tabContentTemplate?6:-1)}},Jrb=function(a,b){a&1&&(F(0,Irb,7,10,"div",18),T(1,"async"));a&2&&(a=b.$implicit,b=P(),G(U(1,1,Ns(b.internalExpandedTabs,a.key))?0:-1))},Krb=function(){},Lrb=function(a){a&1&&E(0,Krb,0,0,"ng-template")},Mrb=function(a){a&1&&E(0,Lrb,1,0,null,11);a&2&&(a=P().tab,I("ngTemplateOutlet",a.tabHeaderTemplate))},Nrb=function(a){a&1&&Q(0);a&2&&(a=P().tab,S(" ",a.key," "))},Orb=function(a,b){a&1&&F(0,Mrb,1,1)(1,Nrb,1,1);a&2&&G(b.tab.tabHeaderTemplate?
0:1)},Prb=function(a){a&1&&(K(0,"mat-icon",9),Q(1),L());a&2&&(a=P(2),B(),Ag(a.actionBtnIcon))},Qrb=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,Prb,2,1,"mat-icon",8);L()()}a&2&&(a=P(),B(2),S(" ",a.actionBtnText," "),B(),I("ngIf",a.actionBtnIcon))},Rrb=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()});fg(1);L()}a&2&&(a=P(),I("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},Trb=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",Lg(2,Srb,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,
a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},Vrb=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,Urb(b,a.category))," ")}},Wrb=function(a){a&1&&(K(0,"span",25),M(1,"b-actions-menu",28),L());a&2&&(P(),a=dg(25),B(),I("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},Xrb=function(a){a&1&&M(0,"b-spinner")},Yrb=function(a){a&1&&M(0,"b-markdown-format-presenter",
29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.markdownFormat))},Zrb=function(a){a&1&&M(0,"b-literal-format-presenter",29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.literalFormat))},$rb=function(a){a&1&&M(0,"b-plain-format-presenter",29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.plainFormat))},asb=function(a){a&1&&(F(0,Yrb,1,1,"b-markdown-format-presenter",29),F(1,Zrb,1,1,"b-literal-format-presenter",29),F(2,$rb,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=dg(30),G(a.formattedContent.markdownFormat?
0:-1),B(),G(a.formattedContent.literalFormat?1:-1),B(),G(a.formattedContent.plainFormat?2:-1))},csb=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();bg(25);F(26,Wrb,2,3,"span",25);L()();K(27,"tr",26)(28,"td",27);F(29,Xrb,1,0,"b-spinner");bg(30);F(31,asb,3,3);L()()()}if(a&2){var c=sg(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,Urb(d,a.category))," ");B(4);S(" ",U(15,18,bsb(d,a.category))," ");B(4);I("timestamp",a.timestamp);B(3);I("disabled",d.hasReacted(a));B();yg("has-reacted-icon",d.thumbsUpClicked(a));B();I("disabled",d.hasReacted(a));B();yg("has-reacted-icon",d.thumbsDownClicked(a));B();c=cg(d.categoryToActionMenuItems.get(a.category));B();G(c&&c.length>0?26:-1);B(3);G(d.isLoading(a.category)?29:-1);B();c=cg(d.enrichmentCategoryToContent.get(a.category));
B();G(c&&!d.isLoading(a.category)?31:-1)}},dsb=function(a,b){a&1&&(K(0,"expandable-tab",3),E(1,Vrb,2,3,"ng-template",6)(2,csb,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))},esb=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},hsb=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),Ag(fsb(gsb(a).getTime(),!0)),B(3),Ag(Ng(7,3,gsb(a),"longDate")))},isb=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),Ag(Ng(6,2,gsb(a),"longDate")))},jsb=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,hsb,9,6,"span")(8,isb,8,5),L());a&2&&(a=P(3),B(3),S(" This ",a.contentType," has a retention period of "),B(2),Ag(a.getRetentionPeriod()),B(2),G(gsb(a).getTime()<(new Am).getTime()?8:7))},ksb=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. "))},lsb=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 "))},
msb=function(a){a&1&&(K(0,"p"),F(1,jsb,9,3,"span")(2,ksb,3,1),F(3,lsb,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))},nsb=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,msb,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))},osb=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)})},qsb=function(a){var b=ot(document,"IFRAME");if(!b.sandbox)throw Error("Nf");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");
if(psb==""){var c=Rta('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+Dh(a)+'" /><script nonce="'+Dh(usa(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=wh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=th(c)}else a=sra(psb,new Map([["nonce",a]]));rsa(b,a);b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},rsb=function(){return new Promise(function(a){setTimeout(a,500)})},ssb=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"))},tsb=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"))},wsb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(c.viewAttachment())});L()()}a&2&&(a=P(),zg(Gg("bv2-issue-attachment-link ",usb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",vsb(a,!1))("linkEnabled",
!0)("useCustomHandler",!0))},ysb=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(xsb(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("Of");d=vt(c.trackerHelpers,c.issueId)+"#attachment"+c.attachment.attachmentId;c.clipboard.copy(d);c.snackBar.open("Link to attachment copied to clipboard","",{duration:2E3});return v()});M(4,"b-icon",17);L()()}a&
2&&(a=P(),zg(Gg("bv2-issue-attachment-link ",usb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",vsb(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},zsb=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"))},Asb=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))},Bsb=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))},Csb=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)}},Dsb=function(a,b){a&1&&F(0,Csb,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,G(b?0:-1))},Gsb=function(a){return{eligibilityState:Esb[Ii(a,1,void 0,jb)],runMetadata:Ji(a,wt,2,jb)?Fsb(X(a,wt,2,jb)):void 0}},Fsb=function(a){return{runId:a.getRunId(),issueId:String(a.getIssueId()),startTimestamp:qn(X(a,ej,3,jb))}},Ksb=function(a){var b=a.hasMetadata()?Fsb(a.getMetadata()):void 0;if(a.hasResults()){a=a.getResults();if(a.hasSummary()){var c=a.getSummary();
c={problemIdentificationSection:Ji(c,xt,1,jb)?Hsb(X(c,xt,1,jb)):void 0,solutionSection:Ji(c,xt,2,jb)?Hsb(X(c,xt,2,jb)):void 0,codeChangeSection:Ji(c,xt,3,jb)?Hsb(X(c,xt,3,jb)):void 0}}else c=void 0;if(Ji(a,yt,2,jb)){var d=X(a,yt,2,jb);var e=d.getPrompt();d=Ni(d,zt,2,Oi(),jb);e={prompt:e,steps:d.map(Isb)}}else e=void 0;Ji(a,Jsb,3,jb)?(d=X(a,Jsb,3,jb),d={buildInvocationId:xi(d,1,void 0,jb),testSpongeInvocationId:xi(d,2,void 0,jb)}):d=void 0;a={summary:c,trajectory:e,validation:d,oclNumber:Dn(a,4,jb)?
String(En(a,4,void 0,jb)):void 0}}else a=void 0;return{metadata:b,results:a}},Hsb=function(a){return{entries:[].concat(q(a.getEntriesList()))}},Isb=function(a){var b=a.getText();a=Ni(a,At,2,Oi(),jb);return{text:b,functionCalls:a.map(Lsb)}},Lsb=function(a){return{name:a.getName(),arguments:Object.fromEntries(wc(a,2,Vb,jb).entries()),outputs:Object.fromEntries(wc(a,3,Vb,jb).entries())}},Nsb=function(a){return{issueRunStatuses:Ni(a,Bt,1,Oi(),jb).map(Msb)}},Msb=function(a){return{issueId:String(a.getIssueId()),
runId:a.getRunId(),runStatus:Osb[Ii(a,3,void 0,jb)]}},Psb=function(a,b){return Math.min(a,b)},Qsb=function(a,b){return Math.pow(2,a)*b},Rsb=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?Qsb:a.backoffDelay;
return function(k){return pe(function(){var m=0;return k.pipe(Lla(function(r){return r.pipe(qla(function(w){var x=m++;return mia(function(){return x<c&&e(w)},te(Psb(g(x,b),d)),fe(w))}))}),Cf(function(){f&&(m=0)}))})}},Ssb=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);L()}a&2&&(a=P(),B(2),S(" ",a.buttonText," "))},Usb=function(a){if(a&1){var b=t();K(0,"button",17,1);N("click",function(){u(b);var c=P(2);return v(Tsb(c))});
Q(2," Edit ");L()}},Vsb=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=sg(2);var c=P(2);I("onedevHovercardTrigger",a)("model",b);B(3);var d;I("email",(d=U(4,3,c.originalAuthorEmail$))!=null?d:"")}},Wsb=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))},Xsb=function(a){a&1&&(F(0,Wsb,3,4),T(1,"async"));if(a&
2){var b;a=P(2);G((b=U(1,1,a.onBehalfOfEmail$))?0:-1,b)}},Ysb=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",H6a(b,{comment:1})),Kf("aria-label","Comment number"+a.commentNumber),B(),S(" #",a.commentNumber))},Zsb=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=sg(3);B();I("onedevHovercardTrigger",a)("model",b);B(3);var c;I("email",(c=b.emailAddress)!=null?c:"")}},$sb=function(a){a&1&&(K(0,"span",12),T(1,"async"),Q(2," \u2022 Edited "),F(3,Zsb,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)}},atb=function(a){a&1&&(K(0,"p",16),Q(1," Description has been deleted. "),L())},btb=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$)))},ctb=function(a){a&1&&(F(0,btb,2,3,"b-restricted-comment-placeholder",22),T(1,"async"));a&2&&(a=P(4),G(U(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},dtb=function(a){a&1&&(F(0,ctb,2,3),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.id$))?0:-1,b)}},etb=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)}},ftb=function(a){a&1&&(F(0,etb,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)}},gtb=function(a){a&1&&Q(0," Add one. ")},htb=function(a){a&1&&(K(0,"p",24),Q(1," No description yet. "),F(2,
gtb,1,0),T(3,"async"),L());a&2&&(a=P(4),B(2),G(U(3,1,a.canEditComment$)?2:-1))},itb=function(a){a&1&&(F(0,ftb,3,5),T(1,"async"),F(2,htb,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)}},jtb=function(a){a&1&&(F(0,dtb,2,3),T(1,"async"),Nf(2,itb,4,6));a&2&&(a=P(2),G(U(1,1,a.isRedacted$)?0:2))},ktb=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:"")}},ltb=function(a,b){a&1&&(K(0,"div",27),F(1,ktb,2,5,"b-attachment-viewer",28),T(2,"async"),L());if(a&2){var c;a=b.$implicit;b=P(4);I("id",Gg("attachment",a.attachmentId));B();G((c=U(2,3,b.id$))?1:-1,c)}},mtb=function(a){a&1&&(K(0,"div",26),Qf(1,ltb,3,5,"div",27,Pf),L());a&2&&(a=P(),B(),Rf(a))},ntb=function(a,b){a&1&&F(0,mtb,3,0,"div",26);a&2&&G(b.length?0:-1)},ptb=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,Usb,3,0,"button",10),T(8,"async"),F(9,Vsb,6,5),T(10,"async"),F(11,Xsb,2,3),T(12,"async"),F(13,Ysb,2,3,"a",11),T(14,"async"),F(15,$sb,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,atb,2,0,"p",16),T(24,"async"),Nf(25,jtb,3,3),F(26,ntb,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:Jg(26,otb));B(4);G(U(24,22,a.isDeleted$)?23:25);B(3);G((e=U(27,24,a.attachments$))?26:-1,e)}},qtb=function(a){a&1&&M(0,"b-spinner")},rtb=function(a){a&1&&(Wf(0),Q(1," reacted"),Xf())},stb=function(a){a&
1&&(Wf(0),Q(1,", "),M(2,"br"),Xf())},ttb=function(a,b){a&1&&(K(0,"div"),Wf(1),Q(2),Xf(),F(3,rtb,2,0,"ng-container")(4,stb,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)}},utb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P(2),B(),S(" by ",Lm(a.event.lastCommentEditorUser)))},vtb=function(a){a&1&&(Wf(0),Q(1,"Message last modified"),Xf(),F(2,utb,2,1,"ng-container"),Wf(3),Q(4," on "),M(5,"b-formatted-date-time",0),Xf());a&2&&(a=P(),B(2),G(a.event.version===
0&&a.event.lastCommentEditorUser?2:-1),B(3),I("timestamp",a.event.commentLastModifiedAtDate))},wtb=function(a){a&1&&M(0,"b-user-email",0);a&2&&(a=P().$implicit,I("email",a.text)("withProfile",!0))},xtb=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",As.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));B();Ag(a.text)}},ytb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P().$implicit,B(),Ag(a.text))},ztb=function(a,b){a&1&&F(0,wtb,1,2,"b-user-email",
0)(1,xtb,2,3,"b-issue-reference-widget",1)(2,ytb,2,1,"ng-container");if(a&2){var c;G((c=b.$implicit.tag)==="user"?0:c==="bug"?1:2)}},Ct=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},Atb=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},Dt=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},Btb=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""}},Ctb=function(a){a&1&&(Wf(0),M(1,"b-component-card",4,1),Xf());if(a&2){a=sg(2);var b=P();B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},Dtb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P(5);B();var b;Ag((b=a.effortSpecName)!=
null?b:"Estimated Effort")}},Etb=function(a){a&1&&(K(0,"span"),Q(1,"Estimated Effort (disabled)"),L())},Ftb=function(a){a&1&&(K(0,"label"),F(1,Dtb,2,1,"span")(2,Etb,2,0,"span"),Q(3," :\u200b "),L());a&2&&(a=P(4),B(),G(a.effortEnabled?1:2))},Gtb=function(a){a&1&&(K(0,"label"),Q(1),L());a&2&&(a=P(3).$implicit,B(),S("",a.displayName,":\u200b"))},Htb=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))},Itb=function(a){a&
1&&M(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,I("id",a.oldValue))},Jtb=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)}},Ktb=function(a){a&1&&(K(0,"span"),Q(1,"[Issue creation date]"),L())},Ltb=function(a){a&1&&(K(0,"span"),F(1,Jtb,1,1,"b-formatted-date-time",8),F(2,Ktb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Mtb=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)}},Ntb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},Otb=function(a){a&1&&(K(0,"span"),F(1,Mtb,1,1,"b-formatted-date-time",8),F(2,Ntb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Ptb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),P(4),B(),Ag($mb(a)))},Qtb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),Ag(a))},Rtb=function(a){a&1&&(F(0,Htb,3,4,"span"),F(1,Itb,1,1,"plain-component-path",5),F(2,Ltb,3,2,"span"),F(3,Otb,3,2,"span"),
F(4,Ptb,2,1,"span"),F(5,Qtb,2,1,"span"),Wf(6),Q(7,"\u00a0"),Xf(),M(8,"span",6),Wf(9),Q(10,"\u00a0"),Xf());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))},Stb=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))},Ttb=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))},Utb=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)}},Vtb=function(a){a&1&&(K(0,"span"),Q(1,"[Issue creation date]"),L())},Wtb=function(a){a&1&&(K(0,"span"),F(1,Utb,1,1,"b-formatted-date-time",8),F(2,Vtb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Xtb=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)}},Ytb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},Ztb=function(a){a&1&&(K(0,"span"),F(1,Xtb,1,1,"b-formatted-date-time",8),F(2,Ytb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},$tb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),P(4),B(),Ag($mb(a)))},aub=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(3).$implicit;yg("bv2-diff-newvalue-nextline",b.oldValue&&b.name=="title");B();
Ag(a)}},bub=function(a){a&1&&(F(0,Stb,2,4,"b-user-display-name",7),F(1,Ttb,2,1,"span"),F(2,Wtb,3,2,"span"),F(3,Ztb,3,2,"span"),F(4,$tb,2,1,"span"),F(5,aub,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))},cub=function(a){a&1&&(K(0,"div",4),F(1,
Ftb,4,1,"label")(2,Gtb,2,1,"label"),F(3,Rtb,11,6),F(4,bub,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)}},dub=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},eub=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,dub,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)}},fub=function(a){a&1&&(K(0,"span"),Qf(1,eub,
4,5,"span",null,Pf),L());a&2&&(a=P(4).$implicit,B(),Rf(a.added))},gub=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},hub=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,gub,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);Ag(a);B();G(c!==b-1?3:-1)}},iub=function(a){a&1&&(K(0,"span"),Qf(1,hub,4,2,"span",null,Pf),L());a&2&&(a=P(4).$implicit,B(),Rf(a.added))},jub=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,fub,3,0,"span")(4,iub,3,0,"span"),L());a&2&&(a=P(3).$implicit,
B(2),S("+",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},kub=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},lub=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,kub,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)}},mub=function(a){a&1&&(K(0,"span"),Qf(1,lub,4,5,"span",null,Pf),L());a&2&&(a=P(4).$implicit,B(),Rf(a.removed))},nub=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},oub=function(a,
b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,nub,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);Ag(a);B();G(c!==b-1?3:-1)}},pub=function(a){a&1&&(K(0,"span"),Qf(1,oub,4,2,"span",null,Pf),L());a&2&&(a=P(4).$implicit,B(),Rf(a.removed))},qub=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,mub,3,0,"span")(4,pub,3,0,"span"),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},rub=function(a){a&1&&(K(0,"div",4),F(1,jub,5,2,"div"),F(2,qub,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)}},sub=function(a){a&1&&Yf(0)},uub=function(a,b){a&1&&(K(0,"span"),E(1,sub,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=sg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,tub,d,a,c===b-1))}},vub=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Qf(3,uub,2,6,
"span",null,Pf),L());a&2&&(a=P(3).$implicit,B(2),S("+",a.displayName,":\u200b"),B(),Rf(a.added))},wub=function(a){a&1&&Yf(0)},xub=function(a,b){a&1&&(K(0,"span"),E(1,wub,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=sg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,tub,d,a,c===b-1))}},yub=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Qf(3,xub,2,6,"span",null,Pf),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),
B(),Rf(a.removed))},zub=function(a){a&1&&(K(0,"div",4),F(1,vub,5,1,"div"),F(2,yub,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)}},Aub=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},Bub=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},Cub=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,Bub,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)}},Dub=function(a){a&1&&(K(0,"span"),Qf(1,Cub,3,2,"span",null,Pf),L());a&2&&(a=P(4).$implicit,B(),Rf(a.oldValue.split(", ")))},Eub=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),Ag(a))},Hub=function(a){a&1&&(F(0,Aub,1,1,"b-formatted-date-time",8),F(1,Dub,3,0,"span"),F(2,Eub,2,1,"span"),Wf(3),Q(4,"\u00a0"),Xf(),M(5,"span",6),Wf(6),Q(7,"\u00a0"),Xf());if(a&2){a=P(3).$implicit;var b=P();G(Fub(b,a,"oldValue")?
0:-1);B();G(Gub(b,a,"oldValue")?1:-1);B();G(Fub(b,a,"oldValue")||Gub(b,a,"oldValue")?-1:2)}},Iub=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},Jub=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},Kub=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,Jub,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)}},Lub=function(a){a&1&&(K(0,"span"),Qf(1,Kub,3,2,"span",null,Pf),L());a&2&&(a=P(4).$implicit,
B(),Rf(a.newValue.split(", ")))},Mub=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),Ag(a))},Nub=function(a){a&1&&(F(0,Iub,1,1,"b-formatted-date-time",8),F(1,Lub,3,0,"span"),F(2,Mub,2,1,"span"));if(a&2){a=P(3).$implicit;var b=P();G(Fub(b,a,"newValue")?0:-1);B();G(Gub(b,a,"newValue")?1:-1);B();G(Fub(b,a,"newValue")||Gub(b,a,"newValue")?-1:2)}},Oub=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),F(3,Hub,8,3),F(4,Nub,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)}},Pub=function(a){a&1&&(K(0,"span",11),Q(1,"Updated"),L())},Qub=function(a){a&1&&(K(0,"span"),Q(1,"Deleted"),L())},Rub=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),S("Edited (unknown status '",a.status,"')"))},Sub=function(a,b){a&1&&F(0,Pub,2,0,"span",11)(1,Qub,2,0,"span")(2,Rub,2,1,"span");if(a&2){var c;G((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},Tub=function(a){a&1&&(K(0,"div",4)(1,
"label"),Q(2),L(),F(3,Sub,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)}},Uub=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),Ag(U(5,2,a)))},Vub=function(a){a&1&&(M(0,"b-formatted-date-time",3),F(1,cub,5,3,"div",4)(2,rub,3,2,"div",4)(3,zub,3,2,"div",4)(4,Oub,5,4,"div",4)(5,Tub,4,2,"div",
4)(6,Uub,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)}},Xub=function(a,b){a&1&&(K(0,"div",2),F(1,Vub,7,2),L());if(a&2){b=b.$implicit;a=P();B();if(b.customFieldId){b=a.customFieldMap[b.customFieldId];var c;a=Wub(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)}},Yub=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();Ag(a)}},Zub=function(a){a&1&&M(0,"hotlist-link",5);a&2&&(a=P(),I("id",a))},$ub=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();Ag(a)}},
avb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},bvb=function(a){a&1&&(F(0,Yub,2,3,"b-issue-reference-widget",13)(1,Zub,1,1,"hotlist-link",5)(2,$ub,2,2,"a",14),F(3,avb,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)}},cvb=function(a,b){a&1&&F(0,bvb,4,2);if(a&2){var c;G((c=b.change.value)?0:-1,c)}},dvb=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.userToLossyEmail(a.event.userPerformingActionUser)))},evb=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$))}},fvb=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$)))},gvb=function(a){a&1&&Yf(0)},hvb=function(a){a&1&&(K(0,"span",
33),E(1,gvb,1,0,"ng-container",34),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",35),L());if(a&2){a=sg(3);P();var b=sg(9),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.userToLossyEmail(c.event.userPerformingActionUser))}},ivb=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",Lm(a.event.userPerformingActionUser),"> "))},jvb=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",Lm(a.event.userPerformingActionUser),"> "))},
kvb=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))},mvb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);var c=P(2);return v(lvb(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent$.value||
c.event))});L()}},nvb=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)}},pvb=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:Jg(4,ovb))}},qvb=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))},rvb=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:Jg(10,ovb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},svb=function(a){a&1&&(K(0,"div",22),Q(1," Comment has been deleted. "),L())},tvb=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$)))},vvb=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:Jg(11,uvb))("formattingMode",(c=U(2,7,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)("canEditComment",(d=U(3,9,a.canEditComment$))!=
null?d:!1)}},wvb=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:Jg(9,uvb))("summaryType",a.getSummaryType())("formattingMode",(d=U(2,7,a.formattingMode$))!=null?
d:a.FormattingMode.PLAIN)}},xvb=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()}},yvb=function(a){a&1&&M(0,"b-formatted-date-time",29);a&2&&(a=P(2),I("timestamp",a.event.modifiedDate))},zvb=function(a){a&1&&M(0,"mat-icon",45)},Avb=function(a){a&1&&M(0,"mat-icon",46)},Bvb=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),Ag(b))},Cvb=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))},Gvb=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(Dvb(e))});F(7,zvb,1,0,"mat-icon",45)(8,Avb,1,0,"mat-icon",46);F(9,Bvb,2,1,"span");T(10,"async");L();K(11,"onedev-hovercard",
null,4);F(13,Cvb,1,3,"b-comment-reaction-responders-card",47);T(14,"async");L()()}if(a&2){var c;a=sg(12);var d=P(2);B();yg("no-upvote-reactions",U(3,11,d.noUpvoteReactions$));I("ariaLabel",Evb(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(Fvb(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)}},Hvb=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()}},Ivb=function(a){a&1&&(K(0,"div",31),M(1,"b-comment-edit-timestamp-message",48),F(2,Hvb,2,0,"a"),L());a&2&&(a=P(2),B(),I("event",a.event),B(),G(a.commentHistoryEnabled?2:-1))},Jvb=
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:Jg(10,ovb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},Kvb=function(a,b){a&1&&(K(0,"div",50),M(1,"b-attachment-viewer",51),L());a&2&&(a=b.$implicit,b=P(3),I("id",Gg("attachment",a.attachmentId)),B(),I("issueId",b.issueId)("attachment",
a)("attachmentUploader",b.userToLossyEmail(b.event.userPerformingActionUser)))},Lvb=function(a){a&1&&(K(0,"div",32),Qf(1,Kvb,2,5,"div",50,Pf),L());a&2&&(a=P(2),B(),Rf(a.event.attachments))},Nvb=function(a){a&1&&(K(0,"div",5),F(1,dvb,1,1,"b-user-image",6),L(),K(2,"div",7)(3,"h4",8),F(4,evb,3,8,"b-user-membership-chip",9)(5,fvb,2,4,"b-user-display",10),F(6,hvb,5,3)(7,ivb,2,1,"span",11),E(8,jvb,2,1,"ng-template",null,0,Og),F(10,kvb,3,3,"span"),F(11,mvb,1,0,"button",12),T(12,"async"),K(13,"span",13),
F(14,nvb,1,3,"b-restricted-chip",14),M(15,"b-formatted-date-time",15),F(16,pvb,3,5,"b-actions-menu",16),L()(),M(17,"div",17),F(18,qvb,2,1,"div",18),F(19,rvb,4,11,"b-issue-event-details",19),T(20,"async"),M(21,"div",17),K(22,"div",20)(23,"div",21),F(24,svb,2,0,"div",22),F(25,tvb,2,3,"b-restricted-comment-placeholder",23),K(26,"div",24),F(27,vvb,4,12,"b-note-container",25),F(28,wvb,6,10),F(29,xvb,3,0,"button",26),T(30,"async"),L(),K(31,"div",27),bg(32),T(33,"async"),K(34,"div",28),F(35,yvb,1,1,"b-formatted-date-time",
29),L(),F(36,Gvb,15,23,"div",30),L()(),F(37,Ivb,3,2,"div",31),L(),F(38,Jvb,4,11,"b-issue-event-details",19),T(39,"async"),M(40,"div",17),F(41,Lvb,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(!Mvb(a)||a.isRedacted()||a.isDeleted()||a.isSummarized?-1:27);B();G(Mvb(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);yg("hasCommentTimestamp",c);B();G(c?35:-1);B();var d;b=a.ReactionType.UPVOTE;var e;c=!a.issuePermissionService.hasAclToComment()&&((d=a.event.commentReactions)==null?void 0:(e=d.get(b))==null?void 0:e.count)===0;d=a.isInternalSession&&a.commentReactionsEnabled&&Mvb(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)}},Ovb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Pvb=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 ")}},Qvb=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 ")}},Rvb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",4);N("click",function(){u(b);
var f=P().$index,g=P(),k,m,r=(m=(k=g.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?m:0;for(k=0;k<r&&((vo(g.internalEvents[f-k])||BVa(g.internalEvents[f-k]))&&g.eventDisplayMode.set(f-k,"full"),f-k!==0);k++);g.foldedCommentsCounts.delete(f);return v()});F(2,Pvb,1,1)(3,Qvb,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)}},Svb=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)}},Uvb=function(a,b){a&1&&(F(0,Rvb,5,1,"div",2),F(1,Svb,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&&Tvb(b.eventDisplayMode.get(a))?
1:-1)}},Vvb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Wvb=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),Ag(a.name),B(2),Ag(a.description))},awb=function(a){switch(a){case "FULL_HISTORY":return Xvb;case "ALL_COMMENTS":return Yvb;case "HUMAN_ONLY":return Zvb;case "TEAM_AND_ASSIGNEE":return $vb;default:return Yvb}},bwb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(2);return v(c.removeHotlist.emit())});
M(1,"mat-icon",7);L()}a&2&&(a=P(2),yg("invisible",a.disabled),Kf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},cwb=function(a){a&1&&(K(0,"span",1)(1,"span",2)(2,"a",3),Q(3),L()(),F(4,bwb,2,4,"button",4),L(),K(5,"onedev-hovercard",null,0),M(7,"b-hotlist-card",5),L());if(a&2){a=sg(6);var b=P();yg("muted",b.disabled);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);B(2);I("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),Pe);Kf("aria-label",
b.getAriaLabel(b.hotlist));B();Ag(b.hotlist.name);B();G(b.removable?4:-1);B(3);I("hotlist",b.hotlist)}},ewb=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(dwb(d))});L()()}if(a&2){a=sg(9);var c=P();xg("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();Ag(c.hotlist.name);B(3);I("hotlist",c.hotlist)}},gwb=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(fwb(e,d))});L()}a&2&&I("id",b.$implicit)},hwb=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$)))},jwb=function(a,b){a&1&&Qf(0,hwb,2,5,"b-hotlist-recommendation-chip",5,iwb);a&2&&Rf(b)},kwb=function(a){a&1&&(F(0,jwb,2,0),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.recommendations$))?
0:-1,b)}},lwb=function(a){if(a&1){var b=t();K(0,"div",0);fg(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();Qf(7,gwb,1,1,"b-hotlist-chip-smart",3,Pf);T(9,"async");F(10,kwb,2,3);L()}a&2&&(a=P(),B(2),yg("icon-only",!U(3,5,a.textOfHotlistBtn$)),I("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER),B(3),S(" ",U(6,7,a.textOfHotlistBtn$)," "),B(2),Rf(U(9,
9,a.hotlistIds$)),B(3),G(a.isInternalSession?10:-1))},nwb=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"?mwb(d):d.bannedWordsChecker.reset();return v()})("blur",function(){u(b);var c=P();return v(c.onInputBlur())});L()()}a&2&&(a=P(),yg("banned-words-warning",U(1,3,a.bannedWordsChecker.showWarning$)),B(2),I("value",a.titlePlain))},owb=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," "))},pwb=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():mwb(c))});M(1,"mat-icon",10);L()}a&2&&(a=P(),I("disabled",a.disabled||a.isSaving))},qwb=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(" ",Ms(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},
rwb=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",Gg("Enable column '",a.name,"'")),I("checked",a.enabled))},uwb=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,rwb,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(swb(f,e))});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){var e=u(c).$index,f=P();return v(twb(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);Ag(a.name);B(2);yg("invisible",b===0);B(2);yg("invisible",b===d.items.length-1)}},vwb=function(a){a&1&&M(0,"mat-icon",1)},
wwb=function(a){a&1&&(K(0,"span",2),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Gg("Start Date: ",Ng(1,4,a.startDate,"longDate"))),B(2),Bg(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},xwb=function(a){a&1&&(K(0,"span",3),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Gg("End Date: ",Ng(1,3,a.endDate,"longDate"))),B(2),S(" ",a.endDateShortStr," "))},ywb=function(a){a&1&&(K(0,"span",4),Q(1,"?"),L())},zwb=function(a){a&1&&(K(0,"div",0),F(1,vwb,1,0,"mat-icon",1),F(2,wwb,3,7,"span",2),F(3,xwb,3,6,
"span",3)(4,ywb,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))},Awb=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("|")+")"},Bwb=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(" ")},Cwb=function(a){return"hotlist-"+a},Dwb=function(a){return"savedsearch-"+a},Ft=function(a){if(a!=null){if(Ewb.includes(a))return a;var b=a.match(/\bhotlists?\b/)?Et(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?Et(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?Et(a):void 0;b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},Fwb=function(a){switch(Ft(a)){case "hotlist":return"Hotlist";
case "savedsearch":return"Saved Search";case "issue":return"Issue"}},Et=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},Gwb=function(a){var b=Et(a);if(b!=null)switch(Ft(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},Hwb=function(a){var b=Et(a);if(b!=null&&Ft(a)==="issue")return"/issues?q="+encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},Iwb=function(a){for(var b={},c={},d=l(a),e=d.next();!e.done;e=d.next())e=
e.value,c[e.issueId]=e;d=a.slice();d.sort(function(m,r){var w,x;return(((w=r.descendantCount)!=null?w:0)-((x=m.descendantCount)!=null?x:0))*-1});d=l(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,g=void 0;e=(g=b[f.issueId])!=null?g:0;g=void 0;f=l((g=f.parentIssueIds)!=null?g:[]);for(g=f.next();!g.done;g=f.next())if(g=c[g.value],g!=null){var k=void 0;b[g.issueId]=(k=b[g.issueId])!=null?k:0;b[g.issueId]+=1+e}}return a.map(function(m){var r,w=(r=b[m.issueId])!=null?r:0;return[[w,m.openDescendantCount+
w*10],m]})},Jwb=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=Iwb(a);a.sort(function(f,g){f=l(f);f=l(f.next().value);f.next();f=f.next().value;g=l(g);g=l(g.next().value);g.next();return g.next().value-f});b=a.filter(function(f){f=l(f);return l(f.next().value).next().value>0}).map(function(f){f=l(f);f.next();return f.next().value}).filter(function(f){return f.descendantCount>=2}).filter(eWa);var c={};a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;
e=e.next().value;c[e.issueId]=d}return b.map(function(f){var g,k;return{title:(g=f.snapshot)==null?void 0:(k=g[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+" recent personal touchpoints."}})},Kwb=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",Hg("",a.closed," of ",
a.total," issues closed in this work area")),B(),Kf("style",a.makePie(a.closed/a.total),Kja),B(),yg("display-none",a.useXofYLabel),B(),S("",Ng(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),B(2),yg("display-none",!a.useXofYLabel),B(),Bg("",a.closed," of ",a.total," closed"))},Lwb=function(a,b,c){var d=c[b];return d==null?!1:[].concat(q(a)).map(function(e){return Gt[e]}).every(function(e){return e==null?!0:e.check(d,b,c)})},Mwb=function(a){return!!Gt[a]},Nwb=function(a){a&1&&(Bd(),Tf(0,"svg",3),
Vf(1,"path",4),Uf())},Owb=function(a){a&1&&(Tf(0,"div",2),fg(1,1,null,Nwb,2,0),Uf())},Pwb=function(a){a&1&&M(0,"th",26)},Qwb=function(a){a&1&&M(0,"td",27)},Swb=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(Rwb(c))});M(2,"mat-icon",29);L()()}},Twb=function(a){a&1&&M(0,"td",27)},Uwb=function(a){a&1&&(K(0,"th",26),Q(1," ID "),L())},Vwb=function(a){a&1&&M(0,"b-issue-id-cell",31);a&2&&(a=P().$implicit,I("id",a.issueIds[0]))},Wwb=function(a,b){a&
1&&(K(0,"td",30),F(1,Vwb,1,1,"b-issue-id-cell",31),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:-1))},Ywb=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&&Xwb(c,a))("indeterminate",c.selection.selected.length>0&&!Xwb(c,a))}},Zwb=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])))},$wb=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&&Xwb(c,a))("indeterminate",c.selection.selected.length>0&&!Xwb(c,a))}},axb=function(a){a&1&&M(0,"td",30)},bxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},cxb=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();yg("bold",b.showReadStatus&&b.isUnread(U(2,9,a.issue$)));var e;I("anchorTarget",Fg((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)}},dxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},exb=function(a,b){a&1&&(K(0,"td",30)(1,"b"),Q(2),T(3,"async"),L()());a&2&&(a=b.$implicit,B(2),Bg("",U(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},fxb=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),
" "))},gxb=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$)))},hxb=function(){},ixb=function(a){a&1&&Q(0);a&2&&(a=P(3),S(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},jxb=function(a){a&1&&(K(0,"th",35),F(1,hxb,0,0)(2,ixb,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))},kxb=function(a,b){a&1&&M(0,"b-user-image",
37);a&2&&I("email",b)},lxb=function(a){a&1&&F(0,kxb,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)}},mxb=function(a,b){a&1&&F(0,lxb,1,1);a&2&&(a=P(4),G(a.isOpen(b)?0:-1))},nxb=function(a){a&1&&(F(0,mxb,1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},oxb=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$)))},pxb=function(a){a&1&&(K(0,"td",30),F(1,nxb,2,3)(2,oxb,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))},qxb=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)," "))},rxb=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$)))},sxb=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)," "))},txb=function(a){a&1&&M(0,"b-issue-priority-display",39);a&2&&(P(),a=dg(1),I("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},uxb=function(a,b){a&1&&(K(0,"td",30),bg(1),T(2,"async"),F(3,txb,1,1,"b-issue-priority-display",39),L());a&2&&(a=b.$implicit,P(2),B(),cg(U(2,1,a.issue$)),B(2),G(3))},vxb=function(a){a&1&&M(0,"th",40)},wxb=function(a){a&1&&(K(0,"td",30),
M(1,"mat-icon",41),L())},xxb=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)," "))},yxb=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$)))},zxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},Axb=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$)))},Bxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},Cxb=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," ")}},Dxb=function(a){a&1&&F(0,Cxb,1,1);a&2&&(P(3),G(0))},Exb=function(a,b){a&1&&(K(0,"td",30),F(1,Dxb,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)}},Fxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},Gxb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Gg("",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes")),B(),S(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},Hxb=function(a){a&1&&F(0,Gxb,2,3,"span",42);a&2&&(P(3),G(0))},Ixb=function(a,b){a&1&&(K(0,"td",30),F(1,Hxb,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)}},Jxb=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)," "))},Kxb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Gg("",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," views in last 7 days")),B(),S(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},Lxb=function(a){a&1&&F(0,Kxb,2,3,"span",42);a&2&&(P(3),
G(0))},Mxb=function(a,b){a&1&&(K(0,"td",30),F(1,Lxb,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)}},Nxb=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)," "))},Oxb=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)}},Pxb=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)," "))},Qxb=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)}},Rxb=function(a,b){a&1&&(K(0,"td",30),bg(1),
T(2,"async"),F(3,Qxb,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)}},Sxb=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)," "))},Txb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);a&2&&I("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",
4)},Uxb=function(a,b){a&1&&(K(0,"td",47),bg(1),T(2,"async"),F(3,Txb,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)}},Vxb=function(a){a&1&&(K(0,"th",48),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},Wxb=function(a){a&1&&M(0,"b-issue-triager-cell",36);a&2&&(a=P(),I("issue",a))},Xxb=function(a){a&1&&F(0,Wxb,1,1,"b-issue-triager-cell",
36);a&2&&(P(3),G(0))},Yxb=function(a,b){a&1&&(K(0,"td",47),F(1,Xxb,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)}},Zxb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),Ag(a.getDisplayName(a.IssueFieldType.ALERTS)))},$xb=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)}},ayb=function(a){a&1&&F(0,$xb,1,2,"b-issue-alerts-cell",50);a&2&&(P(4),G(0))},byb=function(a){a&1&&(F(0,ayb,1,1),T(1,"async"));if(a&
2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},cyb=function(a){a&1&&M(0,"b-signal-chip",49)},dyb=function(a,b){a&1&&(K(0,"td",47),F(1,byb,2,3)(2,cyb,1,0,"b-signal-chip",49),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:2))},eyb=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)," "))},fyb=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))},gyb=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)," "))},hyb=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$)))},iyb=function(a){a&1&&M(0,"th",26)},jyb=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]))}},kyb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},lyb=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$)))},myb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},nyb=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])))},oyb=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),
" ")}},pyb=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)," ")}},qyb=function(a){a&1&&F(0,pyb,2,1,"span");a&2&&(P(4),G(0))},ryb=function(a,b){a&1&&(K(0,"td",30),F(1,qyb,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)}},syb=function(a,b){a&1&&(Wf(0,8),E(1,oyb,3,1,"th",5)(2,ryb,3,3,"td",9),Xf());a&2&&(a=b.$implicit,b=P(2),I("matColumnDef",Hg("",b.IssueFieldType.CUSTOM_FIELD,"-",a)))},tyb=function(a){a&
1&&M(0,"tr",55)},vyb=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=sg(1),f=P(2);return v(uyb(f,d,e))})("mouseup",function(d){u(c);var e=sg(1),f=P(2);return v(uyb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return v(e.focusManager==null?null:Os(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),yg("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(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))},wyb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);N("click",function(d){u(c);var e=sg(1),f=P(2);return v(uyb(f,d,e))})("mouseup",function(d){u(c);var e=sg(1),f=P(2);return v(uyb(f,d,e))})("focusin",function(){var d=u(c).$implicit,
e=P(2);return v(e.focusManager==null?null:Os(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),yg("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),I("row",a))},yyb=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))});Wf(3,4);E(4,Pwb,1,0,"th",5)(5,Qwb,1,0,"td",6);Xf();Wf(6,7);E(7,Swb,3,0,"th",5)(8,Twb,1,0,"td",6);Xf();Wf(9,8);E(10,Uwb,2,0,"th",5)(11,Wwb,2,1,"td",9);Xf();Wf(12,10);E(13,Ywb,2,2,"th",5)(14,Zwb,2,3,"td",9);Xf();Wf(15,11);E(16,$wb,2,2,"th",5)(17,axb,1,0,"td",9);Xf();Wf(18,8);E(19,bxb,2,1,"th",5)(20,cxb,5,15,"td",9);Xf();Wf(21,12);E(22,dxb,2,1,"th",5)(23,exb,4,4,"td",9);Xf();Wf(24,8);E(25,fxb,2,2,"th",13)(26,
gxb,3,3,"td",9);Xf();Wf(27,8);E(28,jxb,3,2,"th",13)(29,pxb,3,1,"td",9);Xf();Wf(30,8);E(31,qxb,2,2,"th",13)(32,rxb,3,3,"td",9);Xf();Wf(33,8);E(34,sxb,2,2,"th",14)(35,uxb,4,4,"td",9);Xf();Wf(36,15);E(37,vxb,1,0,"th",16)(38,wxb,2,0,"td",9);Xf();Wf(39,8);E(40,xxb,2,2,"th",13)(41,yxb,3,3,"td",9);Xf();Wf(42,8);E(43,zxb,2,1,"th",5)(44,Axb,3,3,"td",9);Xf();Wf(45,8);E(46,Bxb,2,1,"th",5)(47,Exb,3,3,"td",9);Xf();Wf(48,8);E(49,Fxb,2,1,"th",5)(50,Ixb,3,3,"td",9);Xf();Wf(51,8);E(52,Jxb,2,1,"th",5)(53,Mxb,3,3,"td",
9);Xf();Wf(54,8);E(55,Nxb,2,2,"th",17)(56,Oxb,3,4,"td",9);Xf();Wf(57,8);E(58,Pxb,2,2,"th",17)(59,Rxb,4,3,"td",9);Xf();Wf(60,8);E(61,Sxb,2,2,"th",18)(62,Uxb,4,3,"td",19);Xf();Wf(63,8);E(64,Vxb,2,1,"th",20)(65,Yxb,3,3,"td",19);Xf();Wf(66,8);E(67,Zxb,2,1,"th",5)(68,dyb,3,1,"td",19);Xf();Wf(69,8);E(70,eyb,2,2,"th",21)(71,fyb,3,4,"td",9);Xf();Wf(72,8);E(73,gyb,2,2,"th",17)(74,hyb,3,3,"td",9);Xf();Wf(75,22);E(76,iyb,1,0,"th",5)(77,jyb,2,3,"td",9);Xf();Wf(78,8);E(79,kyb,2,1,"th",5)(80,lyb,3,3,"td",9);Xf();
Wf(81,8);E(82,myb,2,1,"th",5)(83,nyb,2,1,"td",9);Xf();Qf(84,syb,3,3,"ng-container",8,Pf);E(86,tyb,1,0,"tr",23)(87,vyb,3,7,"tr",24)(88,wyb,2,3,"tr",25);L()}if(a&2){var d,e;a=P();yg("hide-header",a.options.hideColumnHeaders);var f;I("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=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);Rf(a.customFieldIds);B(2);I("matHeaderRowDef",a.tableColumns);B();I("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);B();I("matRowDefColumns",xyb(a))("matRowDefWhen",a.isMultiIssue)}},zyb=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()}},Ayb=function(a){a&1&&F(0,zyb,2,0,"button",57);if(a&2){a=P();var b=P();G(a.length<b?0:-1)}},Byb=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()}},Cyb=function(a){a&1&&F(0,Byb,2,0,"button",57);if(a&2){a=P();var b=P(3);G(a.length>b.options.rowLimit?0:-1)}},Dyb=function(a){a&1&&(F(0,Ayb,1,1),T(1,"async"),Nf(2,Cyb,1,1));if(a&2){var b;a=P(3);G((b=U(1,1,a.rowLimit$))?0:2,b)}},Eyb=function(a){a&1&&(F(0,Dyb,3,3),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.rows$))?0:-1,b)}},Fyb=function(a){a&1&&(K(0,"div",2),F(1,Eyb,2,3),T(2,"async"),L());if(a&2){var b;
a=P();B();G((b=U(2,1,a.rowCountAfterFilters$))?1:-1,b)}},Gyb=function(a,b){return a===b?!0:a&&b?M0a(a.issueIds,b.issueIds):!1},Hyb=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},zo=function(a){return Ir(a.issue$)},Iyb=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return PVa()(a,b.direction);case "ASSIGNEE":return QVa()(a,b.direction);case "REPORTER":return SVa()(a,b.direction);case "TYPE":return RVa()(a,b.direction);case "CREATED_TIME":return TVa(zo)(a,b.direction);
case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return UVa(zo)(a,b.direction);case "PRIORITY":return $Va(zo)(a,b.direction);case "PROGRESS":return aWa()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},Jyb=function(a,b){var c=a.views24h;var d=a.views7d;a=a.views30d;if(uo(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(uo(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};
if(uo(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},Lyb=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(Kyb(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))},Myb=function(a){a&1&&(K(0,"div"),M(1,"b-spinner"),
L())},Nyb=function(a){a&1&&M(0,"b-issue-card",13,1);if(a&2){a=sg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",b)}},Oyb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},Pyb=function(a,b){a&1&&Q(0);a&2&&Bg(" ",b.length," comment",b.length===1?"":"s"," ")},Qyb=function(a,b){a&1&&Q(0);a&2&&Bg(" \u00b7 ",b.length," dupe",b.length===1?"":"s"," ")},Ryb=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,Nyb,2,2,"b-issue-card",10),L(),F(9,Oyb,2,0,"span",11),K(10,"div",12),F(11,Pyb,1,2),T(12,"async"),F(13,Qyb,1,2),T(14,"async"),Q(15),L()());if(a&2){var c,d;a=sg(7);var e=P(),f=P();B(2);I("id",e);B();I("href",f.getIssueLink(e),Pe);B();I("onedevHovercardTrigger",a);B();Ag(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);Bg(" \u00b7 ",b>9999?"9999+":b," vote",b===1?"":"s"," ")}},Syb=function(a,b){a&1&&(F(0,Ryb,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)}},Tyb=function(a){a&1&&(K(0,"div",15)(1,"span",26),Q(2," \u2b90 "),L()())},Uyb=function(a){a&1&&M(0,"span",17)},Vyb=function(a){a&1&&M(0,"b-issue-card",13,3);if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b.issueId)}},Wyb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},Zyb=function(a,
b){if(a&1){var c=t();K(0,"div",14);F(1,Tyb,3,0,"div",15);K(2,"div",16);F(3,Uyb,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,Vyb,2,2,"b-issue-card",10);L();F(12,Wyb,2,0,"span",11);K(13,"div",21)(14,"button",22);N("click",function(){var f=u(c),g=P(2);return v(Xyb(g,f))});M(15,"mat-icon",23);L();K(16,"button",24);N("click",function(){var f=u(c),g=P(2);return v(Yyb(g,f.issueId))});M(17,"mat-icon",25);L()()()}if(a&
2){a=sg(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();Ag(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)}},$yb=function(a,b){a&1&&(F(0,Zyb,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)}},azb=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"))},bzb=function(a){a&1&&Yf(0)},ezb=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,bzb,1,0,"ng-container",
3);L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(czb(c))});Q(5,"Save");L();K(6,"button",6);N("click",function(){u(b);var c=P();return v(dzb(c))});Q(7,"Cancel");L()()()}a&2&&(a=P(),I("cdkTrapFocusAutoCapture",!0),B(2),I("ngTemplateOutlet",a.editorTemplate),B(2),I("disabled",a.saveDisabled()))},fzb=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))},gzb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.displayValueOverride," "))},hzb=function(a){a&1&&Yf(0)},jzb=function(a){a&1&&E(0,hzb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Kg(2,izb,a.email)))},kzb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.email," "))},lzb=function(a){a&1&&(Bd(),K(0,"svg",
5),M(1,"path",6),L())},mzb=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)}},nzb=function(a,b){a&1&&F(0,mzb,1,4,"b-user-membership-chip",3);a&2&&(a=b.$implicit,b=P(),G(a&&b.user?0:-1))},ozb=function(a,b){return this.groupTrackBy(b)},pzb=function(a){a&1&&M(0,"b-user-picker",14);if(a&2){P(2);a=dg(3);P(2);var b=dg(1),c=P();I("user",a)("teamId",c.getTeamId(b))("disabled",!0)}},qzb=
function(a){a&1&&(K(0,"span",15),Q(1,"<none>"),L())},rzb=function(a){a&1&&(F(0,pzb,1,3,"b-user-picker",14)(1,qzb,2,0,"span",15),K(2,"mat-icon",16),Q(3," -> "),L());a&2&&(P(),a=dg(3),G(a?0:1))},szb=function(a){a&1&&(K(0,"span",12),Q(1,"Reporter"),L())},uzb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);P();var f=sg(6);return v(f.openPopOver())});M(1,"mat-icon",18);L();Yf(2,19)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=sg(4);I("disabled",d.excludedActions.has(c.actionKey));
B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,tzb,a))}},wzb=function(a){if(a&1){var b=t();K(0,"span",9);Q(1,"Assignee");L();K(2,"div",10);bg(3);F(4,rzb,4,1);K(5,"b-user-picker",11,1);T(7,"emailToUser");N("emailChange",function(g){u(b);P(2);var k=dg(0),m=P();return v(vzb(m,k,g))});L();F(8,szb,2,0,"span",12);L();K(9,"div",13);F(10,uzb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1),d=P();B(3);var e=cg(d.getAssignee(c)),f=e&&!a.value&&a.actionType===d.ActionType.REMOVE;B();G(f||a.value&&(e==
null?null:e.emailAddress)!=a.value?4:-1);B();I("user",f?void 0:a.value?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)}},xzb=function(a){a&1&&(M(0,"b-edit-field",22),K(1,"mat-icon",16),Q(2," -> "),L());if(a&2){P(3);a=dg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getPriority(a))!=null?c:null)("choices",b.priorityChoices)("readonly",
!0)}},zzb=function(a){if(a&1){var b=t();K(0,"button",23);N("click",function(f){u(b);P();var g=sg(5);return v(is(g,f,!0,!0))});M(1,"mat-icon",18);L();Yf(2,19)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=sg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,yzb,a))}},Azb=function(a){if(a&1){var b=t();K(0,"span",9);Q(1,"Priority");L();K(2,"div",20);F(3,xzb,3,4);K(4,"b-edit-field",21,2);N("valueChange",function(g){u(b);P(2);var k=dg(0),m=P();
return v(vzb(m,k,g!=null?g:m.IssuePriority.P2))});L()();K(6,"div",13);F(7,zzb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1),d=P();c=d.getPriority(c);B(3);G(a.value&&c!==a.value?3:-1);B();var e,f;I("type",d.FieldType.ENUM)("value",(f=(e=a.value)!=null?e:c)!=null?f:null)("choices",d.priorityChoices)("readonly",!a.allowEdit);B(3);G(a.allowEdit?7:-1)}},Dzb=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);P(4);var f=dg(0),g=dg(1),k=P();return v(Bzb(k,f,g))});M(1,"mat-icon",18);L();
Yf(2,19)}if(a&2){a=P(4).$implicit;var c=dg(0),d=P(),e=sg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,Czb,a))}},Ezb=function(a){a&1&&(K(0,"div",9),Q(1,"Comment"),L(),K(2,"div",20),M(3,"b-live-preview",24),T(4,"async"),L(),K(5,"div",13),F(6,Dzb,3,5),L());if(a&2){P(3);a=dg(0);var b=P();B(3);var c,d;I("comment",a.value)("issueId",a.issueId)("audience",(c=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)}},Fzb=function(a){a&1&&F(0,Ezb,7,7);a&2&&(a=P(3),G(a.includeCommentByDefault?0:-1))},Gzb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",27),K(1,"mat-icon",16),Q(2," -> "),L());if(a&2){P(3);a=dg(0);var b=dg(1),c=P();I("issueId",a.issueId)("componentId",c.getComponentId(b))("compactMode",!0)("readOnly",!0)}},Izb=function(a){if(a&1){var b=t();K(0,"button",28);N("click",function(){u(b);P();var f=sg(5);f.editing=!0;f.cdr.markForCheck();return v()});
M(1,"mat-icon",18);L();Yf(2,19)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=sg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,Hzb,a))}},Jzb=function(a){if(a&1){var b=t();K(0,"span",9);Q(1,"Component");L();K(2,"div",20);F(3,Gzb,3,4);K(4,"b-component-breadcrumb-chip",26,3);N("componentChanged",function(d){u(b);P(2);var e=dg(0),f=P();return v(vzb(f,e,d))});L()();K(6,"div",13);F(7,Izb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1);c=P().getComponentId(c);
B(3);G(c!==a.value?3:-1);B();I("issueId",a.issueId)("componentId",a.value)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!1)("readOnly",!0);B(3);G(a.allowEdit?7:-1)}},Kzb=function(a){a&1&&(K(0,"mat-icon",30),Q(1," + "),L(),M(2,"b-hotlist-chip",31));a&2&&(P(2),a=dg(1),B(2),I("hotlist",a)("removable",!1))},Lzb=function(a){a&1&&F(0,Kzb,3,2);a&2&&(P(),a=dg(1),G(a?0:-1))},Mzb=function(a){a&1&&(K(0,"mat-icon",32),Q(1," - "),L(),M(2,"b-hotlist-chip",31));a&2&&(P(),a=dg(1),B(2),I("hotlist",
a)("removable",!1))},Nzb=function(a,b){a&1&&(K(0,"div",29),bg(1),T(2,"async"),F(3,Lzb,1,1)(4,Mzb,3,2),L());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=dg(1),d=P();B();cg(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)}},Ozb=function(a,b){a&1&&Qf(0,Nzb,5,4,"div",29,Pf);a&2&&(a=b.$implicit,b=P(4),Rf(b.split(a.value)))},Qzb=function(a){if(a&1){var b=t();K(0,"button",33);N("click",function(){u(b);var f=
P(3).$implicit,g=P();return v(g.openHotlistPicker(f))});M(1,"mat-icon",18);L();Yf(2,19)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=sg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,Pzb,a))}},Szb=function(a){a&1&&(K(0,"span",9),Q(1,"Hotlist"),L(),K(2,"div",20),Qf(3,Ozb,2,0,null,null,Rzb),L(),K(5,"div",13),F(6,Qzb,3,5),L());if(a&2){a=P(2).$implicit;var b=dg(0);B(3);Rf(a);B(3);G(b.allowEdit?6:-1)}},Tzb=function(a){a&1&&(K(0,"mat-icon",
34),Q(1," + "),L(),M(2,"b-user-picker",14),T(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=dg(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},Uzb=function(a){a&1&&(K(0,"mat-icon",35),Q(1," - "),L(),M(2,"b-user-picker",14),T(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=dg(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},Wzb=function(a,b){a&1&&(K(0,"div",29),F(1,Tzb,4,5)(2,Uzb,4,5),L());if(a&2){a=b.$implicit;b=P().$implicit;
P(3);var c=dg(1),d=P();B();G(b.actionType!==d.ActionType.ADD||Vzb(c,a)?b.actionType===d.ActionType.REMOVE&&Vzb(c,a)?2:-1:1)}},Xzb=function(a,b){a&1&&Qf(0,Wzb,3,1,"div",29,Pf);a&2&&(a=b.$implicit,b=P(4),Rf(b.split(a.value)))},Zzb=function(a){a&1&&(K(0,"span",9),Q(1,"CCs"),L(),K(2,"div",10),Qf(3,Xzb,2,0,null,null,Rzb),L(),K(5,"div",13),Yf(6,19),L());if(a&2){a=P(2).$implicit;P();var b=sg(4);B(3);Rf(a);B(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Yzb,a))}},$zb=function(a){a&1&&(M(0,"b-edit-field",
22),K(1,"mat-icon",16),Q(2," -> "),L());if(a&2){P(3);a=dg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getStatus(a))!=null?c:null)("choices",b.statusChoices)("readonly",!0)}},bAb=function(a){if(a&1){var b=t();K(0,"span",9);Q(1,"Status");L();K(2,"div",10);F(3,$zb,3,4);K(4,"b-edit-field",21,4);N("valueChange",function(m){u(b);P(2);var r=dg(0),w=P();return v(vzb(w,r,m!=null?m:w.IssueStatus.NEW))});L()();K(6,"div",13);Yf(7,19);L()}if(a&2){a=P(2).$implicit;var c=dg(0),d=dg(1),e=P(),f=sg(4);d=
e.getStatus(d);B(3);G(c.value&&d!==c.value?3:-1);B();var g,k;I("type",e.FieldType.ENUM)("value",(k=(g=c.value)!=null?g:d)!=null?k:null)("choices",e.statusChoices)("readonly",!0);B(3);I("ngTemplateOutlet",f)("ngTemplateOutletContext",Kg(7,aAb,a))}},cAb=function(a){a&1&&M(0,"b-list-field",36);if(a&2){P();a=dg(0);var b=P(5);I("type",b.getListFieldType(a.type))("values",b.getRepeatedValues(a))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("readonly",!0)}},fAb=function(a){a&1&&M(0,
"b-edit-field",37);if(a&2){P();a=dg(0);var b=P(5),c;I("type",dAb(a.type))("value",b.getSingularValue(a))("displayValueOverride",b.getDisplayValue(a))("choices",(c=a.choices)!=null?c:Jg(6,eAb))("readonly",!0)("showEnumTitle",!0)}},hAb=function(a){a&1&&(bg(0),F(1,cAb,1,5,"b-list-field",36)(2,fAb,1,7,"b-edit-field",37),K(3,"mat-icon",16),Q(4," -> "),L());if(a&2){P();a=dg(3);P();var b=dg(0);a=cg(gAb(P(3),a,b));B();G(a.isRepeated()?1:2)}},iAb=function(a){a&1&&(K(0,"span",15),Q(1,"<none>"),L(),K(2,"mat-icon",
16),Q(3," -> "),L())},jAb=function(a){a&1&&F(0,iAb,4,0);a&2&&(P(),a=dg(3),G(a?-1:0))},kAb=function(a){a&1&&M(0,"b-list-field",36,5);if(a&2){P();a=dg(4);var b=P(4);I("type",b.getListFieldType(a.type))("values",b.getRepeatedValues(a))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("readonly",!0)}},lAb=function(a){a&1&&M(0,"b-edit-field",37,5);if(a&2){P();a=dg(4);var b=P(4),c;I("type",dAb(a.type))("value",b.getSingularValue(a))("displayValueOverride",b.getDisplayValue(a))("choices",
(c=a.choices)!=null?c:Jg(6,eAb))("readonly",!0)("showEnumTitle",!0)}},oAb=function(a){a&1&&(K(0,"span",9),Q(1),L(),K(2,"div",20),bg(3)(4),F(5,hAb,5,2)(6,jAb,1,1),F(7,kAb,2,5,"b-list-field",36)(8,lAb,2,7,"b-edit-field",37),L(),K(9,"div",13),Yf(10,19),L());if(a&2){P();a=dg(0);var b=P(2).$implicit,c=dg(0),d=dg(1);P();var e=sg(4);Kf("title","Custom Field: "+a.name);B();Ag(a.name);B(2);d=cg(mAb(d,c));B();var f=cg(gAb(0,c.customFieldValue,a));B();G(d&&(d.displayValues==null?null:d.displayValues.join(","))!==
(c.customFieldValue.displayValues==null?null:c.customFieldValue.displayValues.join(","))?5:6);B(2);G(f.isRepeated()?7:8);B(3);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Lg(8,nAb,b,a.name))}},qAb=function(a){a&1&&(bg(0),F(1,oAb,11,11));if(a&2){P(2);a=dg(0);var b=dg(1);a=cg(pAb(b,a));B();G(a?1:-1)}},rAb=function(a){a&1&&F(0,wzb,11,10)(1,Azb,8,6)(2,Fzb,1,1)(3,Jzb,8,8)(4,Szb,7,1)(5,Zzb,7,4)(6,bAb,8,9)(7,qAb,2,2);if(a&2){var b;P();a=dg(0);var c=P();G((b=a.fieldName)===c.IssueFieldName.ASSIGNEE?
0:b===c.IssueFieldName.PRIORITY?1:b===c.IssueFieldName.COMMENT?2:b===c.IssueFieldName.COMPONENT_ID?3:b===c.IssueFieldName.HOTLISTS?4:b===c.IssueFieldName.CCS?5:b===c.IssueFieldName.STATUS?6:b===c.IssueFieldName.CUSTOM_FIELD?7:-1)}},sAb=function(a,b){a&1&&(bg(0)(1),T(2,"async"),K(3,"div",8),F(4,rAb,8,1),L());if(a&2){b=b.$implicit;a=P();b=cg(b[0]);B();var c=cg(U(2,6,a.issue$(b.issueId)));B(2);yg("excluded",a.excludedActions.has(b.actionKey))("hide-comment",!a.includeCommentByDefault);B();G(c?4:-1)}},
tAb=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=P(2).group,d=P();c=l(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.delete(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",41);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Gg("Include ",a)),Kf("aria-label","Include "+a))},uAb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(2).group,d=P();c=l(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.add(e.value.actionKey);
d.updateActionsToAccept();return v()});M(1,"mat-icon",43);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Gg("Exclude ",a)),Kf("aria-label","Exclude "+a))},vAb=function(a){a&1&&F(0,tAb,2,3,"button",38)(1,uAb,2,3,"button",39);if(a&2){P();a=dg(0);var b=P();G(b.excludedActions.has(a.actionKey)?0:1)}},wAb=function(a,b){a&1&&(bg(0),F(1,vAb,2,1));a&2&&(a=cg(b.group[0]),B(),G(a.allowExclude?1:-1))},xAb=function(a,b){a=to(a,function(f){return f.actionKey});var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){d=
d.value;var e=a.get(d.actionKey);e&&e.isDirty?c.push(e):c.push(d)}return Em(c)},yAb=function(a){a&1&&(K(0,"div",1),Q(1),L());a&2&&(a=P(),B(),Ag(a.getRecommendationText()))},AAb=function(a,b){if(a&1){var c=t();K(0,"b-dedupe-actions-component",13);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:Jg(4,zAb))}},BAb=function(a){a&1&&(F(0,AAb,2,5,"b-dedupe-actions-component",
12),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?0:-1,b)}},CAb=function(a){if(a&1){var b=t();K(0,"b-issue-actions-component",14);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:Jg(4,zAb))("includeCommentByDefault",a.includeComment||a.recommendation.type!==a.RecommendationType.ANY_ISSUE_EDIT)}},DAb=function(a){a&1&&M(0,"b-formatted-comment-presenter",16);a&2&&(a=P(2),
I("formattedComment",a.recommendation.rationale.formattedText)("canEditComment",!1))},EAb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.recommendation.rationale.text))},FAb=function(a){a&1&&(M(0,"mat-divider"),K(1,"div",15)(2,"b"),Q(3,"Rationale: "),L(),F(4,DAb,1,2,"b-formatted-comment-presenter",16)(5,EAb,2,1,"span"),L());a&2&&(a=P(),B(4),G(a.recommendation.rationale.formattedText?4:5))},GAb=function(a){a&1&&M(0,"b-spinner",9)},HAb=function(a){if(a&1){var b=t();K(0,"div",10)(1,"button",
17);N("click",function(){u(b);var c=P(),d=dg(17);return v(c.openLink(d))});M(2,"mat-icon",18);L()()}},IAb=function(a){a&1&&(K(0,"div",11)(1,"b-callout",19)(2,"b-callout-body"),Q(3," Is this feature helpful? You can opt in to auto deduplication for this component. "),K(4,"a",20),Q(5,"Learn more"),L()()()())},JAb=function(a){a&1&&M(0,"div",2)},KAb=function(a){a&1&&(Wf(0),fg(1),Xf())},LAb=function(a){a&1&&(Bd(),K(0,"svg",1),M(1,"path",2),L());a&2&&(a=P(),I("matTooltip",a.warning))},MAb=function(a){a&
1&&M(0,"b-availability-chip",3);a&2&&(a=P(),I("user",a.user))},NAb=function(a){a&1&&(K(0,"div",4),fg(1,1),L());a&2&&(a=P(),I("id",Gg("expansion-panel-content-",a.instance)),Kf("aria-labelledby","expansion-panel-header-"+a.instance))},OAb=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),Ag(b))},PAb=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),Ag(b))},QAb=function(a){a&1&&M(0,"b-issue-card",
20,1);if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b)}},RAb=function(a,b){a&1&&(K(0,"span",18),Q(1),L(),K(2,"onedev-hovercard",null,0),E(4,QAb,2,2,"b-issue-card",19),L());a&2&&(a=sg(3),I("onedevHovercardTrigger",a),B(),S("Duplicate of ",b))},TAb=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(SAb(g,f.newEmail))})("emailChange",
function(f){u(c);var g=P(3);return v(SAb(g,f))});L();K(6,"button",24);N("click",function(f){u(c);sg(4).openEditor();return v(f.stopPropagation())});M(7,"mat-icon",25);L()}if(a&2){P();a=sg(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)}},UAb=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()}},VAb=function(a){a&1&&(K(0,"div",
10,2),F(2,TAb,8,8),T(3,"async"),Nf(4,UAb,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)}},WAb=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=sg(5);var c=P();B(2);I("email",b);B();I("onedevHovercardTrigger",a)("model",c);B(3);I("email",b)}},XAb=function(a){a&1&&(F(0,WAb,7,4),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.reporterEmail$))?
0:-1,b)}},YAb=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()}},ZAb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Wf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Deduplicate"),L()(),Xf(),M(6,"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},$Ab=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Wf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Buganizer AI"),L()(),Xf(),M(6,
"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},aBb=function(a){a&1&&(F(0,$Ab,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)}},cBb=function(a){a&1&&M(0,"suggested-similar-issues",56);if(a&2){a=P();var b=P(2),c=P();I("issueId",b)("similarIssueIds",a)("similarIssuesEnrichments",Jg(4,bBb))("limit",c.MAX_SIMILAR_ISSUES)}},dBb=function(a,b){a&1&&F(0,cBb,1,5,"suggested-similar-issues",56);a&2&&G(b.length?0:-1)},
eBb=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))},fBb=function(a){a&1&&(F(0,eBb,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)}},gBb=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," "))},iBb=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();Qf(1,gBb,3,4,"button",60,hBb)}a&2&&(a=P(4),I("phase",b),B(),Rf(a.PHASE_TO_ACTIONS.get(b)))},jBb=
function(a){a&1&&(F(0,iBb,3,1),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.issuePhase$))?0:-1,b)}},kBb=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),Wf(15,37),K(16,"div",38),M(17,"mat-icon",39),K(18,"h4",40),Q(19,"Description"),L(),F(20,XAb,2,3),
T(21,"async"),L(),Xf(),M(22,"b-issue-description",41),L(),K(23,"b-expansion-panel",36,4),Wf(25,37),K(26,"div",42),M(27,"mat-icon",43),K(28,"h4",44),Q(29),T(30,"async"),L(),F(31,YAb,1,0,"b-event-stream-header",45),T(32,"async"),L(),Xf(),M(33,"b-event-stream",46),T(34,"async"),T(35,"async"),T(36,"async"),T(37,"async"),L(),F(38,ZAb,7,2,"b-expansion-panel",36),T(39,"async"),F(40,aBb,2,3),K(41,"b-expansion-panel",36),Wf(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(),Xf(),F(50,dBb,1,1),T(51,"async"),L()(),K(52,"div",50),F(53,fBb,2,3)(54,jBb,2,3),L());if(a&2){var c,d,e,f,g,k;a=sg(24);var m=P(),r=P();B(2);I("title",b.snapshot[0].title)("issueId",m)("componentId",b.snapshot[0].componentId)("hasAclToEdit",U(3,27,r.hasAclToEdit$));B(5);Ag(U(8,29,b.snapshot[0].type));B(4);I("issuePriority",b.snapshot[0].priority);B();I("vertical",!0);B();I("issueId",m);B();I("expanded",!0);B(6);G((c=U(21,31,r.reporterUser$))?20:-1,c);B(2);I("id",m);
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",m)("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",Gg("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)}},lBb=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,OAb,5,1,"div");T(5,"async");F(6,PAb,5,1,"div");T(7,"async");F(8,RAb,5,2);T(9,"async");F(10,VAb,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,kBb,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",Gg("/issues/",
b),Pe);B(4);G((g=U(18,17,a.issue$))?17:-1,g)}},nBb=function(a,b){if(a&1){var c=t();bg(0);T(1,"async");bg(2);T(3,"async");K(4,"button",1);N("click",function(){var e=u(c),f=dg(0),g=P();return v(mBb(g,e,f))});Q(5);L()}if(a&2){a=P();cg(U(1,3,a.hasUserClaimedIssues$));var d=U(3,6,a.buttonText$);B(4);I("ariaLabel",d+" "+b.length+" issues")("disabled",a.isSaving);B();Ag(d)}},oBb=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),Ag(b))},pBb=function(a,
b){a&1&&(K(0,"span",10),Q(1),L());a&2&&(a=b.$implicit,B(),Ag(a))},qBb=function(a){a&1&&(K(0,"div")(1,"span",8),Q(2,"Subphase:\u00a0"),L(),Qf(3,pBb,2,1,"span",10,Pf),L());a&2&&(a=P(),B(3),Rf(a))},rBb=function(a,b){a&1&&F(0,qBb,5,0,"div");a&2&&G(b.length?0:-1)},sBb=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))},tBb=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," "))},uBb=function(a){a&1&&M(0,"claim-issues-button")},wBb=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();Qf(1,tBb,3,4,"button",14,vBb);F(3,uBb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);I("phase",a);B();Rf(c.PHASE_TO_ACTIONS.get(a));B(2);G(a===c.TriagePhase.NEW?3:-1)}},xBb=function(a){a&1&&F(0,sBb,1,1,"secondary-footer",11)(1,wBb,4,2);a&2&&(a=P(2),G(a.displaySecondaryFooter?0:1))},yBb=function(a){a&1&&(F(0,xBb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issuePhase$))?0:-1,b)}},zBb=function(a){a&1&&M(0,"b-formatted-date-time",2);a&2&&(a=P(),I("date",a.value))},ABb=function(a){a&
1&&(Wf(0),Q(1,"---"),Xf())},BBb=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)," "))},DBb=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"&&(CBb(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){u(b);return v(c.stopPropagation())});Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.filterValue,c)||(d.filterValue=c);return v(c)});L()}a&2&&(a=P(),I("type",a.type==="REPEATED_NUMERIC"?"number":"text"),Cg("ngModel",a.filterValue),I("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},EBb=function(a){a&1&&M(0,"mat-divider")},FBb=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()}},GBb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-date-time-input",11);Eg("valueChange",function(c){u(b);var d=P();Dg(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return v(c)});L();K(2,"div",12);N("click",function(c){u(b);var d=P();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;
return v()});Q(3," Add ");L()()}a&2&&(a=P(),B(),Cg("value",a.currentSelectedDate))},HBb=function(a){if(a&1){var b=t();K(0,"div",6);Bd();K(1,"svg",7);M(2,"path",8);L();Cd();K(3,"input",9,0);N("input",function(){u(b);var c=sg(4),d=P();return v(d.filterText$.next(c.value))});L()()}},IBb=function(a){a&1&&Yf(0)},KBb=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,IBb,1,0,"ng-container",13);L()}if(a&2){P();a=sg(4);var c=P();I("option",
c.emptyOptionValue);Kf("aria-selected",c.isSelected(c.emptyOptionValue));B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(4,JBb,c.emptyOptionValue))}},LBb=function(a){a&1&&Yf(0)},MBb=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,LBb,1,0,"ng-container",13);L()}if(a&2){a=P().$implicit;P();var c=sg(4),d=P();I("option",a);Kf("aria-selected",d.isSelected(a));B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(4,
JBb,a))}},NBb=function(a,b){a&1&&(Wf(0),E(1,MBb,2,6,"div",10),Xf());a&2&&(a=b.$implicit,B(),I("ngIf",a))},OBb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P(2).$implicit,B(),S(" ",a," "))},PBb=function(a){a&1&&(K(0,"span",15),Q(1,"--"),L())},QBb=function(a){a&1&&(Wf(0),E(1,OBb,2,1,"ng-container",14)(2,PBb,2,0,"ng-template",null,3,Og),Xf());if(a&2){a=sg(3);var b=P().$implicit;B();I("ngIf",b!=null)("ngIfElse",a)}},RBb=function(a){a&1&&Yf(0)},SBb=function(a){a&1&&E(0,RBb,1,0,"ng-container",13);if(a&2){a=
P().$implicit;var b=P(2);I("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Kg(2,JBb,a))}},TBb=function(a){a&1&&E(0,QBb,4,2,"ng-container",14)(1,SBb,1,4,"ng-template",null,2,Og);if(a&2){a=sg(2);var b=P(2);I("ngIf",!b.optionTemplate)("ngIfElse",a)}},UBb=function(a,b){a&1&&(Wf(0),E(1,KBb,2,6,"div",10)(2,NBb,2,1,"ng-container",11)(3,TBb,3,2,"ng-template",null,1,Og),Xf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",b.includeEmptyOption),B(),I("ngForOf",a))},VBb=function(a){a&1&&Yf(0)},XBb=function(a){a&
1&&(Wf(0),E(1,VBb,1,0,"ng-container",11),Xf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,WBb,a.value)))},YBb=function(a){a&1&&Yf(0)},ZBb=function(a){a&1&&(Wf(0),E(1,YBb,1,0,"ng-container",11),Xf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Kg(2,WBb,a.value)))},$Bb=function(a){a&1&&E(0,ZBb,2,4,"ng-container",7);if(a&2){a=P();var b=sg(8);I("ngIf",a.optionTemplate)("ngIfElse",b)}},aCb=function(a){a&1&&(Wf(0),Q(1),Xf());
a&2&&(a=P(2),B(),S(" ",a.value," "))},bCb=function(a){a&1&&(K(0,"span",12),Q(1,"--"),L())},cCb=function(a){a&1&&E(0,aCb,2,1,"ng-container",7)(1,bCb,2,0,"ng-template",null,4,Og);if(a&2){a=sg(2);var b=P();I("ngIf",b.value!=null)("ngIfElse",a)}},dCb=function(a){a&1&&(Bd(),K(0,"svg",13),M(1,"path",14),L())},eCb=function(a){a&1&&(K(0,"div"),Q(1," The selected issues have no custom fields in common. "),L())},fCb=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},hCb=function(a){if(a&1){var b=t();K(0,"input",
10);Eg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Dg(d.textValue,c)||(d.textValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Cg("ngModel",a.textValue),Kf("aria-labelledby",gCb(a)))},iCb=function(a){if(a&1){var b=t();K(0,"input",11);Eg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Dg(d.numericValue,c)||(d.numericValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Cg("ngModel",a.numericValue),Kf("aria-labelledby",gCb(a)))},kCb=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?aSa(e):void 0)});L()()}if(a&2){a=P(2).$implicit;var c=P();B();var d;I("value",(d=jCb(a.dateValue))!=null?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",gCb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},mCb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",13);Eg("valueChange",function(d){u(b);var e=P(2).$implicit;Dg(e.enumValue,d)||(e.enumValue=d);return v(d)});L()}if(a&
2){a=P(2).$implicit;P();Cg("value",a.enumValue);var c;I("options",(c=a.allowedValue)!=null?c:Jg(3,lCb))("labelledById",gCb(a))}},oCb=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(nCb(g,f.customFieldId,e))});L()}if(a&2){a=P(2).$implicit;var c=P(),d;I("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",(d=a.allowedValue)!=null?d:Jg(3,lCb))}},pCb=function(a){a&
1&&F(0,hCb,1,2,"input",6)(1,iCb,1,2,"input",7)(2,kCb,2,4,"div")(3,mCb,1,4,"onedev-single-select",8)(4,oCb,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)}},qCb=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()}},rCb=function(a,b){a&1&&(K(0,"div",1)(1,
"div",4)(2,"label",5),Q(3),F(4,fCb,2,0,"span"),L()(),F(5,pCb,5,1)(6,qCb,4,0),L());a&2&&(a=b.$implicit,P(),B(2),I("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),Kf("id",gCb(a)),B(),S(" ",a.name," "),B(),G(a.required?4:-1),B(),G(a.hasMultipleValues?6:5))},sCb=function(a){if(a&1){var b=t();K(0,"b-list-field",2);N("valuesChange",function(d){u(b);var e=P(2);return v(e.save.emit(d.values))});L()}if(a&2){a=P();var c=P();I("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",
c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",c.getRepeatedValues())("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},uCb=function(a){if(a&1){var b=t();K(0,"b-edit-field",3);N("valueChange",function(e){u(b);var f=P(2);return v(f.save.emit(e))});L()}if(a&2){a=P();var c=P(),d;I("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",
!c.field.required)("value",c.getSingularValue())("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=null?d:Jg(12,tCb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},vCb=function(a,b){a&1&&F(0,sCb,1,10,"b-list-field",0)(1,uCb,1,13,"b-edit-field",1);a&2&&G(b.isRepeated()?0:1)},yCb=function(a,b){var c=new wCb;xCb(c,a,b);return c},xCb=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=xo.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Lm(d.reporterUser);a.assignee=Lm(d.assigneeUser);
a.assigneeEmail=Om(d.assigneeUser);a.verifier=Lm(d.verifierUser);a.verifierEmail=Om(d.verifierUser);a.cc=Mm(d.ccUsers);a.collaborator=Mm(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:"";a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/
1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;
a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;var m;a.lastModifier=Lm((m=b.aggregatedData)==null?void 0:m.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(c=l(c.componentPathInfo.allCustomField),
g=c.next();!g.done;g=c.next())g=g.value,a.customFieldMap[String(g.customFieldId)]=g,a.customFieldNameToIdMap[g.name.toLowerCase()]=g.customFieldId;if(d.customField)for(c=l(d.customField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldValueMap[String(g.customFieldId)]=g;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=d.sloEndTime;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;
d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel;a.descendantCount=b.descendantCount;a.openDescendantCount=b.openDescendantCount;a.oneDayViewCount=f?f.oneDayViewCount:0;a.sevenDayViewCount=f?f.sevenDayViewCount:0;a.thirtyDayViewCount=f?f.thirtyDayViewCount:0;a.escalationOwner=Lm(b.escalationOwner)},ACb=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(zCb(d,
c))});Q(6,"Edit custom fields");L()()()}},BCb=function(a){a&1&&(F(0,ACb,7,0,"div",0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.updatedIssueRows$))?0:-1,b)}},CCb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",5);Cma();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),Gma(a))},DCb=function(a){a&1&&(Qf(0,CCb,1,3,"b-custom-field-editor",4,Pf),T(2,"async"));a&2&&(a=P(),Rf(U(2,0,
a.customFields$)))},ECb=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",Aib(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions),Kf("aria-label",a.ariaLabel))},FCb=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(),Kf("aria-label",Hg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},GCb=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))},JCb=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();HCb(c,d.onRemoveUsers);ICb(d);return v()})("onCancel",function(){u(b);var c=P();
return v(ICb(c))});L()()()}a&2&&(a=P(),B(2),I("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},KCb=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)},LCb=function(a){a&1&&Qf(0,KCb,1,1,"b-hotlist-chip-smart",6,Pf);a&2&&(a=P(2),Rf(a.hotlistIdSet))},MCb=function(a){a&1&&(K(0,"div",5),Q(1,
"Multiple hotlists selected"),L())},OCb=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(NCb(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)}},PCb=function(a,b){a&1&&F(0,OCb,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)}},RCb=function(a,b){a&1&&Qf(0,PCb,1,1,null,null,QCb);a&2&&Rf(b)},TCb=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(SCb(d))});M(6,"mat-icon",4);Q(7," Add ");L();F(8,LCb,2,0)(9,MCb,2,0,"div",5);F(10,RCb,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)}},WCb=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(UCb(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(VCb(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))},XCb=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(UCb(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(VCb(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))},YCb=function(a){a&1&&F(0,WCb,1,
11,"input",1)(1,XCb,1,11,"input",2);a&2&&(a=P(),G(a.asMatInput?0:1))},Ht=function(){sj.call(this);this.name_="closure_frame"+ZCb++;this.iframesForDisposal_=[];$Cb[this.name_]=this},aDb=function(a,b){Ss.call(this,a.type,b);this.event_=a},It=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},Jt=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},bDb=function(a,
b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},dDb=function(a){a=Ci(a);for(var b=0;b<cDb.length;++b){var c=cDb[b],d=Jt(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,bDb(a,c))}return a},eDb=function(a){a=Ci(a);bDb(a,"X-Goog-Upload-Status");return a},gDb=function(a){if(a&1){var b=t();K(0,"button",3);N("fileSelected",function(c){u(b);var d=P();return v(fDb(d,c))});M(1,"mat-icon",4);L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",
a.disabled))},hDb=function(a){if(a&1){var b=t();K(0,"button",5);N("fileSelected",function(c){u(b);var d=P();return v(fDb(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))},iDb=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;Bg(" ",U(2,2,a.transferredBytes)," of ",U(3,4,(b=a.size)!=null?b:0)," ")}},jDb=function(a){a&
1&&(K(0,"span",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.errorMessage," "))},kDb=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)," ")}},lDb=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,iDb,4,6,"span");F(7,jDb,2,1,"span",7);F(8,kDb,3,3,"span",7);L()();K(9,"button",8);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.cancel(d))});L()()}a&
2&&(a=b.$implicit,b=P(2),yg("attachment-error",a.state===b.uploadStates.ERROR),B(3),I("matTooltip",a.name),B(),Ag(a.name),B(2),G(a.state===b.uploadStates.UPLOADING?6:-1),B(),G(a.state===b.uploadStates.ERROR?7:-1),B(),G(a.state===b.uploadStates.COMPLETE?8:-1),B(),I("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Kf("aria-label","Remove attachment"+a.name))},mDb=function(a){a&1&&(K(0,"div",0),Qf(1,lDb,10,9,"div",1,Pf),L());a&2&&(a=P(),B(),Rf(a.uploads))},Lt=function(a){Kt.call(this,
a||"all")},oDb=function(a){nDb.call(this,a)},Mt=function(){},pDb=function(a){this.action=a;this.wfv=!1},qDb=function(a,b){pDb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},rDb=function(a){pDb.call(this,"visibility");this.visible=a},sDb=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},uDb=function(a,b){var c=b&&b.getWindow()||window;if(sDb(b))a();else if(tDb)tDb.push(a);else var d=tDb=[a],e=c.setInterval(function(){if(sDb(b)){c.clearInterval(e);for(var f=0;f<
d.length;f++)d[f]();tDb=null}},100)},vDb=function(a){sj.call(this);this.element_=a;this.listenKeyIn_=uj(this.element_,"focus",this,!0);this.listenKeyOut_=uj(this.element_,"blur",this,!0)},wDb=function(a,b){this.element_=a;this.dom_=b},Ot=function(a,b){Nt.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=XJa({mutate:this.resizeBackground_},this);XJa({mutate:this.updateModalAndBackground_},this)},Rt=function(a,b,c){Ot.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=
Pt(Pt(new Qt,xDb,!0),yDb,!1,!0)},zDb=function(a,b,c){Rt.call(this,a,b,c)},CDb=function(a,b){var c=new ADb(a);St(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void BDb(a,e)},d).listen(a,"scroll",function(e){return void BDb(a,e)},d)},BDb=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=Tt(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!DDb(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()},EDb=function(){var a;if(a=a===void 0?window:a)return a!==a.parent&&a.hasOwnProperty("pangolinIframeGlobals");var b=Error("fg");setTimeout(function(){throw b;},1);return!1},Yt=function(a,b,c,d,e,f,g,k,m,r){k=k===void 0?!1:k;m=m===void 0?!1:m;r=r===void 0?!1:r;Rt.call(this,void 0,void 0,void 0);Rt.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);aua(a,"protocol");this.iframeManager_=new FDb;this.targetId_=GDb();this.rpcToken_=
GDb();a=Ut(a);Vt(a,"hostId");this.useGapi_=!m&&!EDb();k&&Wt(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=Vt(Ut(a.toString()),"hostId"),HDb||(HDb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!HDb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=g||this.getDomHelper();this.enablePopover_=r;b&&(g=this.gadgetsDomHelper_,
b=Vt(Ut(this.url_),"grugl")=="true"?IDb:JDb,sDb(g)||(g=g||tj(document),r=g.createElement("SCRIPT"),ri(r,b),r.type="text/javascript",g.document_.body.appendChild(r)));a=a.toString();b=null;g=a.indexOf("/picker?");g>-1?b=a.substring(0,g+8-1):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()):vsa(this.buttonEl_,Cj),Xt(this.buttonEl_,!!this.buttons_))},
KDb=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"))},LDb=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"))},MDb=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))},NDb=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))},ODb=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()," "))},PDb=function(a){a&1&&(K(0,"div",10),F(1,NDb,2,1,"button",12)(2,ODb,3,1,"button",13),L());a&2&&(a=P(2),B(),G(a.isRestricted()?2:
1))},QDb=function(a){if(a&1){var b=t();K(0,"div",6);fg(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,MDb,1,1,"b-drive-attachment",9);F(4,PDb,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))},RDb=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))},SDb=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: ",Ms(a.bannedWordsChecker),". Review your comment before posting. "))},TDb=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()()}},UDb=function(a){a&1&&Yf(0)},VDb=function(a){a&1&&E(0,UDb,1,0,"ng-container",16);
a&2&&(P(4),a=sg(3),I("ngTemplateOutlet",a))},XDb=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(WDb(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$)))},YDb=function(a){a&1&&(K(0,"mat-checkbox",18),Q(1," CC Me "),L());a&2&&I("checked",!0)("disabled",!0)},ZDb=function(a){a&1&&(K(0,"span",10),F(1,YDb,2,2,"mat-checkbox",18),T(2,"async"),L());
a&2&&(a=P(4),B(),G(U(2,1,a.isCurrentUserCCd$)?1:-1))},$Db=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))},aEb=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$)))},bEb=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=sg(1);return v(dob(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,SDb,4,1,"p",6);T(9,"async");F(10,TDb,2,0,"div",7);T(11,"async");K(12,"div",8);F(13,VDb,1,1,"ng-container");K(14,"div",9);fg(15);F(16,XDb,5,6,"span");T(17,"async");T(18,"async");F(19,ZDb,3,3,"span",10);T(20,"async");T(21,"async");F(22,$Db,1,1,"b-markdown-toggle",11);T(23,"async");F(24,aEb,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,m;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",(m=U(7,29,d.bannedWordsChecker.showWarning$))!=null?m:!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)}},cEb=function(a){a&1&&Yf(0)},dEb=function(a){a&1&&E(0,cEb,1,0,"ng-container",16);a&2&&(P(3),a=sg(3),I("ngTemplateOutlet",a))},eEb=function(a){a&1&&(K(0,"h3",2),Q(1,"Add comment"),L(),K(2,"div",3),T(3,"async"),
F(4,bEb,27,47,"b-comment-box",4),T(5,"async"),L(),F(6,dEb,1,1,"ng-container"));if(a&2){var b;a=P(2);B(2);yg("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)}},fEb=function(a,b){a&1&&F(0,eEb,7,10);a&2&&G(b.isDeleted?-1:0)},gEb=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"," ")}},hEb=function(a){a&1&&F(0,gEb,6,12,"b-button",20);a&2&&(a=P(),G(a.showCommentButton?0:-1))},iEb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",
a.removeSelfActionDescription," "))},jEb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",a.includeSelfActionDescription," "))},kEb=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,iEb,2,1,"span");F(2,jEb,2,1,"span");L()}a&2&&(a=P(2),yg("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))},lEb=function(a){a&1&&(K(0,"div",18),F(1,kEb,3,7,
"div",19),L());a&2&&(a=P(),B(),G(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},mEb=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))},nEb=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)}},oEb=function(a){a&1&&M(0,"b-icon",25)},pEb=function(a){a&1&&(F(0,oEb,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," ")}},qEb=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),yg("disabled-icon",!U(3,5,a.hasAclToAdmin$)))},rEb=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",
Hg("Remove ",a," from ",c.title));I("matTooltip","Remove item")}},sEb=function(a){a&1&&F(0,rEb,2,4,"button",29);a&2&&(a=P(2),G(a.isAllowedToEditCollection?0:-1))},tEb=function(a,b){a&1&&(K(0,"div",10)(1,"div",22),F(2,nEb,2,7,"b-user-membership-chip",23)(3,pEb,4,5),L(),F(4,qEb,4,7,"button",24),T(5,"async"),Nf(6,sEb,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)}},uEb=function(a){a&1&&
(K(0,"button",12),Q(1,"Add "),L());if(a&2){a=P();var b=sg(3);Kf("aria-label",Gg("Add item to ",a.title));I("dialogLabel",Gg("Add item to ",a.title))("matTooltip",Gg("Add item to ",a.title))("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},vEb=function(a){a&1&&Yf(0)},wEb=function(a,b){return{originX:a,originY:b}},xEb=function(a,b){return{overlayX:a,overlayY:b}},yEb=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)}},zEb=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__"])})},AEb=function(a){return typeof a==="function"},BEb=function(a,b,c){var d=Object.getPrototypeOf(a),e=d&&d.constructor.name!==
"Object"?d.constructor.name:null;d=zEb(a).map(function(f){var g=f.propertyName;var k=f.dispatch;f=f.useEffectsErrorHandler;var m=typeof a[g]==="function"?a[g]():a[g];f=f?c(m,b):m;return k===!1?f.pipe(vla()):f.pipe(Gla()).pipe(A(function(r){return{effect:a[g],notification:r,propertyName:g,sourceName:e,sourceInstance:a}}))});return ve.apply(null,q(d))},DEb=function(a){return CEb(a,"ngrxOnInitEffects")},CEb=function(a,b){return a&&b in a&&typeof a[b]==="function"},EEb=function(a,b,c){c=c===void 0?10:
c;return a.pipe(jf(function(d){b&&b.handleError(d);return c<=1?a:EEb(a,b,c-1)}))},FEb=function(a){return CEb(a,"ngrxOnIdentifyEffects")?a.ngrxOnIdentifyEffects():""},GEb=function(a,b){return function(c){var d=BEb(c,a,b);return CEb(c,"ngrxOnRunEffects")?c.ngrxOnRunEffects(d):d}},HEb=function(a,b){var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())c.push.apply(c,q(d.value));b=l(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 ed||AEb(e)?
p(e):e})},JEb=function(){var a=p(Zt,{optional:!0,skipSelf:!0}),b=p(IEb,{self:!0});if((b.length!==1||b[0].length!==0)&&a)throw new TypeError("kg");return"guarded"},KEb=function(a){a&1&&(K(0,"div",6),M(1,"gpp-chat"),L())},LEb=function(a){a&1&&(K(0,"div",7),M(1,"b-duckie-chat"),L())},MEb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b.$implicit)},NEb=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",
Gg("",b," more participant(s). Click to show.")),B(),S("",b," more"))},OEb=function(a){a&1&&F(0,NEb,2,3,"button",1);if(a&2){var b;a=P();G((b=a.emails.length-a.limit)?0:-1,b)}},QEb=function(a){a&1&&(K(0,"a",3),Q(1),L());a&2&&(a=P(2),I("href",a.makeCritiqueUrl(Jg(2,PEb),a.pending),Pe),B(),S("(",a.pending.length," pending)"))},REb=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,QEb,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))},SEb=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 "))},TEb=function(a){a&1&&F(0,SEb,2,2,"a",2);a&2&&(a=P(),G(a.count!=null?0:-1))},UEb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.count," Issues "))},VEb=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))},WEb=function(a,b){a&1&&(K(0,"mat-panel-title"),Q(1),L());a&2&&(a=P().$index,
B(),S(" ",b[a]," "))},XEb=function(a){a&1&&M(0,"mat-panel-title",3)},YEb=function(a,b){a&1&&(K(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),F(2,WEb,2,1,"mat-panel-title"),T(3,"async"),Nf(4,XEb,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)}},ZEb=function(a){a&1&&(K(0,
"div",1),Qf(1,YEb,8,7,"mat-expansion-panel",null,Pf),L());a&2&&(a=P(),B(),Rf(a))},$Eb=function(a,b){a&1&&F(0,VEb,2,1,"div",0)(1,ZEb,3,0,"div",1);a&2&&G(b.length===0?0:1)},aFb=function(a){a&1&&(K(0,"div",2,1)(2,"div",5)(3,"span",6),Q(4),L()()());a&2&&(a=P(),B(4),Ag(a.valueIndicatorText))},bFb=function(a,b){a&1&&M(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);zg(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");xg("transform",c._calcTickMarkTransform(b))}},cFb=function(a){a&
1&&Qf(0,bFb,1,4,"div",8,Of);a&2&&(a=P(2),Rf(a._tickMarks))},dFb=function(a){a&1&&(K(0,"div",6,1),F(2,cFb,2,0),L());a&2&&(a=P(),B(2),G(a._cachedWidth?2:-1))},eFb=function(a){a&1&&M(0,"mat-slider-visual-thumb",7);a&2&&(a=P(),I("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},fFb=function(a){a&1&&(K(0,"span"),Q(1,"All Components"),L())},gFb=function(a){a&1&&(K(0,"span"),Q(1,"Selected Components"),L())},hFb=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," "))},iFb=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," "))},jFb=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();$t(g.router,As.viewTriage.makeHref(f,e,au[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$)," ")}},kFb=function(a){a&1&&(F(0,jFb,7,4,"div",6),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?0:-1,b)}},lFb=function(a,b){a&1&&Q(0);a&2&&(a=P(),Bg(" ",b.length,"",b.length===a.FETCH_SIZE?
"+":""," "))},mFb=function(a){a&1&&Q(0," ... ")},nFb=function(a,b){a&1&&M(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=Gg("height: ",a*100,"%;");toa(roa,soa,a,!1);I("title",Hg("Modified ",b," days ago: ",c[b]," Issues"))}},oFb=function(a,b){a&1&&Qf(0,nFb,1,6,"i",10,Of);a&2&&Rf(b)},pFb=function(a){a&1&&(F(0,oFb,2,0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.ratioDaysOld$))?0:-1,b)}},rFb=function(a){return(qFb-a/1E3)/864E5},sFb=function(a,b){a&1&&(K(0,"span",5),Q(1),L());a&2&&(I("title",
b.description),B(),Ag(b.name))},tFb=function(a){a&1&&(K(0,"code",6),Q(1),T(2,"async"),L());a&2&&(a=P(),B(),Ag(U(2,1,a.id$)))},uFb=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)}},vFb=function(a){a&1&&(F(0,uFb,6,15,"div",7),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?0:-1,b)}},wFb=function(a){if(!a.unlinkifiedComment)return mn("Can't getClMetadata from an event with no unlinkifiedComment",a),{};if(bWa(a))if(Bo(a)){var b=a.unlinkifiedComment;var c=b.trim().split("\n");if(a.formattingMode==="MARKDOWN"){var d,e;var f=(e=
(d=c[5])==null?void 0:d.trim())!=null?e:"";var g;c=(g=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==null?void 0:g[1];var k;var m=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var r,w;f=(w=(r=c[7])==null?void 0:r.trim())!=null?w:"";var x,D;c=(D=(x=c[c.length-1])==null?void 0:x.trim())!=null?D:"";var H;m=(H=b.match(/^Author: .* <(.+)>/m))==null?void 0:H[1]}f||mn("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||mn("failed to parse a link from GitWatcher comment, which is unexpected.",
b);m?m=m.endsWith("@google.com")?m.split("@")[0]:m:mn("failed to parse an author from GitWatcher comment, which is unexpected.",b);b={author:m,title:f,link:c,reviewer:void 0,delta:void 0}}else b={};else{k=a.unlinkifiedComment;g=k.trim().split("\n");var J,O;H=(O=(J=g[0])==null?void 0:J.trim())!=null?O:"";var R;g=(R=g[2])==null?void 0:R.trim();x=(m=H.match(/^Change\s+(\d+)/))==null?void 0:m[1];x==null&&mn("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&&mn("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:dn(x),author:H,title:g,reviewer:c,delta:dn(f),link:"cl/"+x}}return b},xFb=function(a){var b;return(b=wFb(a).id)!=null?b:0},yFb=function(a){var b;return(b=wFb(a).link)!=null?b:""},zFb=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")},BFb=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(Ao(a)||Bo(a)){if(a=wFb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f==="product-feedback-gathering@prod.google.com")return AFb(a,"reporter")||f;return f},CFb=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},AFb=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},DFb=function(a){if(a==null)return"default";if(vo(a)&&a.commentNumber===1)return"create";if(Ao(a)||Bo(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=AFb(a,"assignee");a=CFb(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":vo(a)?"comment":c.has("component")?"component":"default"},EFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},FFb=function(a){a&1&&M(0,"changelist-link-plain",3);a&2&&(a=P(2),I("id",a.getChangelistNumber(a.event)))},GFb=function(a){a&1&&(K(0,"a",4),Q(1),L());a&2&&(a=P(2),I("href",a.getLink(a.event),Pe),B(),Ag(a.getLink(a.event)))},HFb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",5),Q(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},IFb=function(a){a&1&&(Q(0," submitted "),
F(1,FFb,1,1,"changelist-link-plain",3),F(2,GFb,2,2,"a",4),M(3,"b-formatted-date-time",2),F(4,HFb,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)}},JFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",
a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},KFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},LFb=function(a,b){a&1&&(Q(0," set status "),K(1,"span"),
Q(2),L(),Q(3," on "));a&2&&(a=P(2),B(),zg(Gg("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b])),B(),S(" ",b," "))},MFb=function(a){a&1&&(F(0,LFb,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",Cs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},NFb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",7),Q(2),L());a&2&&
(B(),I("title",b),B(),Ag(b))},OFb=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,NFb,3,2));if(a&2){var b;a=P();B();I("href",Cs(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)}},PFb=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",Cs(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)}},QFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),
B(),I("timestamp",a.event.modifiedDate))},RFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},SFb=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",Cs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},TFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(2),I("timestamp",a.event.modifiedDate))},UFb=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",Cs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},VFb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",9),Q(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},WFb=function(a){a&1&&F(0,VFb,3,2);if(a&2){var b;a=P();G((b=a.getComment())?0:-1,b)}},XFb=function(a,b){a&
1&&(Q(0," \u2014 "),K(1,"span",10),Q(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},YFb=function(a){a&1&&F(0,XFb,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)}},ZFb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},$Fb=function(a,b){a&1&&(K(0,"p",3),Q(1),L(),Qf(2,ZFb,1,1,"recent-event-row",4,Pf));if(a&2){a=P();var c=P(3);B();S("Last 24 hours ",c.printStats(a["<24h"]));B();Rf(b)}},aGb=function(a,
b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},bGb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Qf(2,aGb,1,1,"recent-event-row",4,Pf));if(a&2){a=P();var c=P(3);B();S("1-7 days ago ",c.printStats(a["24h-7d"]));B();Rf(b)}},cGb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},dGb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Qf(2,cGb,1,1,"recent-event-row",4,Pf));if(a&2){a=P();var c=P(3);B();S("1-4 weeks ago ",c.printStats(a["7d-30d"]));B();Rf(b)}},eGb=function(a,b){a&1&&
M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},fGb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Qf(2,eGb,1,1,"recent-event-row",4,Pf));if(a&2){a=P();var c=P(3);B();S(">30 days ago ",c.printStats(a[">30d"]));B();Rf(b)}},gGb=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",
" "))},hGb=function(a){a&1&&(F(0,$Fb,4,1),F(1,bGb,4,1),F(2,dGb,4,1),F(3,fGb,4,1),F(4,gGb,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)}},iGb=function(a){a&1&&(F(0,hGb,6,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.bucketedEventStats$))?0:-1,b)}},jGb=function(a){a&1&&
(K(0,"div",0),Q(1," Recent activity "),M(2,"input",1),L(),F(3,iGb,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)}},kGb=function(a){return function(b){var c;if(a){var d="";if(Ao(b)||Bo(b)){var e=wFb(b);d="submitted "+e.link+" "+e.title}e="b/"+b.issueId;var f=BFb(b),g=DFb(b),k=zFb(b);b=b==null||Ao(b)||Bo(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}},lGb=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(hn);return a.length===0?"":"\u2014 "+a.join(", ")},mGb=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},nGb=function(a,b){var c;a=(c=b[a])!=null?c:[];
var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=DFb(e),g=BFb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var m;d.pptCounts[g]=((m=d.pptCounts[g])!=null?m:0)+1}if(f==="changelist"){var r;d.clCount=((r=d.clCount)!=null?r:0)+1;var w;d.pptCounts[g]=((w=d.pptCounts[g])!=null?w:0)+1}else if(f==="create"){var x;d.created=((x=d.created)!=null?x:0)+1;var D;d.pptCounts[g]=((D=d.pptCounts[g])!=null?D:0)+1}else if(f==="status"&&AFb(e,"status")===
"Fixed"){var H;d.fixed=((H=d.fixed)!=null?H:0)+1}});return d},oGb=function(a){a&1&&(K(0,"p",11),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},pGb=function(a,b){a&1&&(K(0,"mat-list-option",8)(1,"div",9)(2,"label",10),Q(3),L()(),F(4,oGb,2,1,"p",11),L());a&2&&(a=b.$implicit,b=P(2),xg("height","auto"),I("selected",b.selectedIds.has(a.searchId))("value",a.searchId),B(3),Ag(a.name),B(),G(a.description?4:-1))},sGb=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(qGb(e,d))});Qf(1,pGb,5,6,"mat-list-option",7,rGb);L()}a&2&&(B(),Rf(b))},tGb=function(a,b){a&1&&M(0,"avatar-bunch",4);a&2&&I("emails",b)},uGb=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)},vGb=function(a,b){a&1&&M(0,"progress-pie",1);a&2&&I("closed",b.closed)("total",b.total)},xGb=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:Jg(4,wGb))}},yGb=function(a){a&1&&M(0,"gerrit-changes-count",4);a&2&&(a=P(),I("changes",a))},zGb=function(a,b){a&1&&F(0,yGb,1,1,"gerrit-changes-count",4);a&2&&G(b&&b.length>0?0:-1)},AGb=function(a){a&1&&M(0,"avatar-bunch",5);a&2&&(a=P(),I("emails",a))},BGb=function(a,b){a&1&&F(0,AGb,1,1,"avatar-bunch",5);a&2&&G(b.length>0?0:-1)},CGb=function(a){return a},DGb=function(a){a==="UNKNOWN_SOURCE"&&console.error("an UNKNOWN TaskSources snuck in");return a},EGb=function(a,b){return b.buganizerSignals.reduce(function(c,
d){return c.set(d,a.includes(d))},new Map)},FGb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},GGb=function(a,b){return b.changelistSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},HGb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==!1}):b.changelistSignals},IGb=function(a,b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},JGb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==
!1}):b.driveSignals},KGb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},LGb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==!1}):b.gerritSignals},MGb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==!1}):b.googleTasksSignals},NGb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},OGb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,
a.includes(d))},new Map)},PGb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},QGb=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();yg("muted",!a.isNumeric(a.countDisplay)||a.isDisabled());B();var b;Ag((b=a.countDisplay)!=null?b:"\u00a0")}},RGb=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$)))},SGb=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))},TGb=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)}},VGb=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=UGb(b),f=b.nextElementSibling&&UGb(b.nextElementSibling),g=b.previousElementSibling&&UGb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&g===e)return d="none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var m;if((m=b.nextElementSibling)==null?0:m.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;
d="before";return c()}var r;if(((r=b.nextElementSibling)==null?0:r.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},UGb=function(a){return Number(a.dataset.level)},WGb=function(a){var b;return bu((b=a.dataset.ancestorchain)!=null?b:"")},XGb=function(a){a&1&&M(0,"th",25)},YGb=function(a){if(a&1){var b=t();K(0,"td",26,0);N("click",function(c){var d=u(b).$implicit,e=sg(1),f=P();e.focus();Os(f.focusManager,d);return v(c.stopPropagation())});L()}},
ZGb=function(a){a&1&&M(0,"th",25)},$Gb=function(a){if(a&1){var b=t();K(0,"td",27,1);N("click",function(c){var d=u(b).$implicit,e=sg(1),f=P();e.focus();Os(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()}},aHb=function(a){a&1&&(K(0,"th",25),Q(1," Id "),L())},bHb=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))},cHb=function(a){a&1&&(K(0,"th",25),Q(1," Id "),
L())},dHb=function(a){a&1&&(K(0,"td",29),Q(1,"--"),L())},eHb=function(a){a&1&&(K(0,"th",25),Q(1," Title "),L())},fHb=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))},gHb=function(a){a&1&&(K(0,"th",25),Q(1," Type "),L())},hHb=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$)))},iHb=function(){},jHb=function(a){a&1&&Q(0," Assignee ")},kHb=function(a){a&1&&(K(0,"th",25),F(1,iHb,0,0)(2,jHb,1,0),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)===
"avatar-if-open"?1:2))},lHb=function(a,b){a&1&&M(0,"b-user-image",33);a&2&&I("email",b)},mHb=function(a){a&1&&F(0,lHb,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)}},nHb=function(a,b){a&1&&F(0,mHb,1,1);a&2&&(a=P(3),G(a.isOpen(b)?0:-1))},oHb=function(a){a&1&&(F(0,nHb,1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},pHb=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$)))},
qHb=function(a){a&1&&(K(0,"td",29),F(1,oHb,2,3)(2,pHb,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))},rHb=function(a){a&1&&(K(0,"th",25),Q(1," Status "),L())},sHb=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))},tHb=function(a){a&1&&(K(0,"th",25),Q(1," Team "),L())},uHb=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$)))},vHb=function(a){a&1&&M(0,"th",25)},xHb=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:Jg(3,wHb))}},yHb=function(a){a&1&&M(0,"th",25)},AHb=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",zHb(c,a))}},BHb=function(a){a&1&&M(0,"b-spinner")},CHb=function(a){a&1&&M(0,"b-spinner")},DHb=function(a,b){a&1&&(K(0,"td",36),F(1,AHb,1,1,"b-actions-menu",37)(2,BHb,1,0,"b-spinner"),E(3,CHb,1,0,"ng-template",null,2,Og),L());a&2&&(a=b.$implicit,B(),G(a.saving?2:1))},FHb=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(EHb(e,d))});K(4,"span",40);Q(5);L()()()()}a&2&&(a=b.$implicit,b=P(),xg("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"))},GHb=function(a){a&1&&(K(0,"th",25),Q(1," Title "),L())},IHb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);Eg("valueChange",function(d){var e=u(c).$implicit;Dg(e.title,d)||(e.title=d);return v(d)});
N("commit",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});L();K(3,"b-button",43);N("onAction",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});Q(4," Create ");L();K(5,"b-button",44);N("onAction",function(){var d=u(c).$implicit,e=P();return v(HHb(e,d))});Q(6," Cancel ");L()()()}a&2&&(a=b.$implicit,b=P(),xg("padding-left",(a.level+1)*24+b.EDITABLE_TITLE_OFFSET_PX,"px"),B(2),Cg("value",a.title),I("readonly",a.saving),B(),I("disabled",!a.title||a.saving),B(2),I("disabled",
a.saving))},JHb=function(a){a&1&&M(0,"tr",18)},KHb=function(a){a&1&&E(0,JHb,1,0,"tr",45);a&2&&(a=P(),I("matHeaderRowDef",a.tableColumns))},MHb=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(Os(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,
f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(),yg("selected",U(1,8,LHb(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()))},NHb=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(Os(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()))},OHb=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(HHb(e,d))})("keydown.backspace",function(d){var e=u(c).$implicit,f=P();return v(e.title||d.repeat||HHb(f,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Os(e.focusManager,d))});L()}a&2&&(a=
b.$implicit,I("row",a),Kf("data-type",a.type))},PHb=function(a,b){if(a&&a.length)return a.map(b)},QHb=function(a){var b=a.getFilename();var c=Wm(a,2,Oi(bn));return{filename:b,lineNumber:c,changeNumber:nn(a.getChangeNumber())}},SHb=function(a){var b=xi(a,1);a=Ni(a,RHb,2,Oi(bn));return{packageName:b,fileMentionSet:PHb(a,QHb)}},UHb=function(a){var b=Um(a,1,void 0,jb),c=Ri(a,2,void 0,jb);a=Ni(a,THb,3,Oi(bn),jb);return{totalMentions:b,truncated:c,packageMentionSet:PHb(a,SHb)}},WHb=function(a){return{issueId:Number(a.getIssueId()),
responseId:a.getResponseId(),response:a.getResponse(),issueCategory:VHb[a.getIssueCategory()]}},XHb=function(a){return{issueId:Number(a.getIssueId()),issueCategory:VHb[a.getIssueCategory()]}},ZHb=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(YHb).filter(function(b){var c;return(c=b.unlinkifiedComment)==null?void 0:c.trim()}))).length>=3},YHb=function(a){return!(!hVa(a.userPerformingAction)||
!a.isMajorEvent)},aIb=function(a){var b=$Hb(a.open);a=$Hb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},$Hb=function(a){var b=a.count;a=a.exact;return b===0||a?""+b:b+"+"},bIb=function(a){return"("+$Hb(a)+")"},cu=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},cIb=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)}},dIb=function(a){a&1&&Yf(0)},eIb=function(a){a&1&&E(0,dIb,1,0,"ng-container",6);a&2&&(P(),a=sg(14),I("ngTemplateOutlet",a))},fIb=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))},gIb=function(a){a&1&&(F(0,fIb,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)}},hIb=function(a){a&
1&&Yf(0)},iIb=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,hIb,1,0,"ng-container",6),L());a&2&&(P(),a=sg(14),B(5),I("ngTemplateOutlet",a))},jIb=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(),Bg(" Filtering ",b," issue",b===1?"":"s",". "))},lIb=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(kIb(c))});Q(2," Add blocker ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},mIb=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))},nIb=function(a,b){a&1&&(K(0,"span",8),Q(1),L());a&2&&(I("title",Gg("",b," applied filter(s)")),B(),Ag(b))},oIb=function(a){a&1&&
(F(0,nIb,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)}},pIb=function(a){a&1&&(K(0,"h1",6),Q(1),L());a&2&&(a=P(),B(),Ag(a.overlayTitle))},qIb=function(a){a&1&&(K(0,"h1"),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.title))},rIb=function(a){a&1&&(K(0,"p"),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},sIb=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,qIb,2,1,"h1");F(6,rIb,2,1,"p");L()()()}a&2&&(a=b.$implicit,b=P(),B(2),I("checked",U(3,3,Ns(b.internalSelectedOptions,a.key))),B(3),G(a.title?5:-1),B(),G(a.description?6:-1))},tIb=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=sg(1);return v(c.cancel(d))});Q(3);
L();K(4,"button",13);N("click",function(){u(b);var c=P(),d=sg(1);return v(c.confirm(d))});Q(5);L()()}a&2&&(a=P(),B(3),Ag(a.cancelButtonLabel),B(2),Ag(a.confirmButtonLabel))},uIb=function(a){a&1&&M(0,"b-spinner")},vIb=function(a){a&1&&Yf(0)},wIb=function(a){a&1&&E(0,vIb,1,0,"ng-container",23);a&2&&(P(2),a=sg(12),I("ngTemplateOutlet",a))},xIb=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$))}},yIb=function(a){a&1&&Yf(0)},zIb=function(a){a&1&&(K(0,"div")(1,"span",24),Q(2,"This issue has no parents"),L(),E(3,yIb,1,0,"ng-container",23),L());a&2&&(P(2),a=sg(12),B(3),I("ngTemplateOutlet",a))},AIb=function(a){a&1&&Yf(0)},CIb=function(a){a&1&&(E(0,AIb,1,0,"ng-container",25),T(1,"async"));if(a&2){a=P(2);var b=sg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(4,BIb,U(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},DIb=function(a){a&1&&Yf(0)},
EIb=function(a){a&1&&E(0,DIb,1,0,"ng-container",23);a&2&&(P(2),a=sg(14),I("ngTemplateOutlet",a))},FIb=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=sg(16);var b=sg(23),c=P(2);B(5);Bg(" ",Ng(7,11,U(6,9,c.totalDaysComplete$),"1.0-2")," of ",Ng(9,16,U(8,14,c.totalDaysCount$),"1.0-2")," days complete ");B(5);Kf("aria-label",Gg("",U(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed"));
B(2);I("onedevHovercardTrigger",a);B();xg("width",U(14,21,c.totalDaysDisplayPercent$),"%");B(6);S(" ",U(20,23,c.progressHovercardContent$)," ");B(2);I("onedevHovercardTrigger",b)}},GIb=function(a){a&1&&M(0,"rollups-project",21);a&2&&(a=P(),I("id",a))},HIb=function(a){a&1&&Yf(0)},IIb=function(a){a&1&&(E(0,HIb,1,0,"ng-container",25),T(1,"async"));if(a&2){a=P(2);var b=sg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(4,BIb,U(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},
JIb=function(a){a&1&&Yf(0)},KIb=function(a){a&1&&(K(0,"span",24),Q(1,"This issue has no children"),L(),E(2,JIb,1,0,"ng-container",23));a&2&&(P(3),a=sg(14),B(2),I("ngTemplateOutlet",a))},LIb=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)}},MIb=function(a){a&1&&(F(0,KIb,3,1),T(1,"async"),T(2,"async"),Nf(3,LIb,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)}},NIb=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,wIb,1,1,"ng-container");T(9,"async");L();F(10,xIb,3,7,"b-parents-table",15);T(11,"async");Nf(12,zIb,4,1,"div");F(13,CIb,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,EIb,1,1,"ng-container");T(26,"async");T(27,"async");L();F(28,FIb,28,25,"div",20);T(29,"async");T(30,"async");F(31,GIb,1,1,"rollups-project",21);M(32,"b-issue-relations-table",22);T(33,"async");T(34,"async");T(35,"async");F(36,IIb,2,6,"ng-container");T(37,"async");F(38,MIb,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();yg("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",Gg("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)}},OIb=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(),Bg(" Filtering ",a," issue",a===1?"":"s",". "))},PIb=function(a,b){a&1&&F(0,OIb,4,2,"p",24);a&2&&G(b.filteredCount?0:-1)},RIb=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(QIb(c))});Q(2," Add parent ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},SIb=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$)))},TIb=function(a){if(a&1){var b=t();F(0,SIb,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$)))},UIb=function(a,b){return le([a,b]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return d===0?0:Math.round(c*100/d*100)/100}))},VIb=function(a){return a===
1?a+" day":a+" days"},WIb=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))},XIb=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))},ZIb=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||YIb(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()()}},$Ib=function(a,b){a&1&&(F(0,ZIb,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)}},aJb=function(a){a&1&&(M(0,"b-issue-relations-table",
3),F(1,$Ib,2,3),T(2,"async"));if(a&2){var b;a=P(2);var c=P();I("saveExpansionAtKey",Gg("project-expansion-",a))("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);B();G((b=U(2,8,c.issue$))?1:-1,b)}},bJb=function(a){a&1&&(F(0,XIb,2,2),F(1,aJb,3,10));a&2&&(a=P(2),G(a.isInternalSession?0:-1),B(),G(a.showTable()?1:-1))},cJb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" Unhandled entity type: ",a.entityType," "))},dJb=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))},eJb=function(a){a&1&&(F(0,WIb,2,7,"one-work-area-list",0)(1,bJb,2,2)(2,cJb,1,1),F(3,dJb,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))},fJb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},gJb=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))},hJb=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))},iJb=function(a){a&1&&(F(0,hJb,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)}},jJb=function(a){a&1&&(K(0,"button",9),M(1,"mat-icon",13),Q(2," Add "),L());a&2&&(P(),a=sg(9),I("matMenuTriggerFor",a))},kJb=function(a){a&1&&M(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,I("trackerId",a.trackerId)("compactMode",!0))},lJb=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)}},mJb=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)," ")}},nJb=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);$r(e.butterBar,"ID copied",2E3);return v()});M(1,"mat-icon",31);Q(2);L()}a&2&&(B(2),S(" Copy ID: ",
b," "))},pJb=function(a){if(a&1){var b=t();F(0,kJb,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,lJb,6,2)(7,mJb,3,2,"a",21);F(8,nJb,3,1,"button",22);M(9,"mat-divider");K(10,"button",23);N("click",function(){u(b);var k=P().$implicit,m=P(2);return v(oJb(m.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,
m=P(2);return v(oJb(m.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,m=P(2).prefsService,r=k.workAreaUrl;if(r!=null){var w;k=((w=m.prefs.workAreaUrls)!=null?w:[]).slice();w=k.indexOf(r);w<0||(k.splice(w,1),du(m,{workAreaUrls:k}))}return v()});M(17,"mat-icon",27);Q(18," Remove ");L()()}if(a&2){var c;a=sg(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",Gg("Hide the work area '",e.workAreaUrl,"' from this section"))}},qJb=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)}},rJb=function(a){a&1&&(K(0,"mat-tab"),E(1,pJb,19,9,"ng-template",15)(2,qJb,1,2,"ng-template",16),L())},uJb=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(sJb(d.prefsService,d.SECTION_SLUG,c))});Qf(1,rJb,3,0,"mat-tab",null,tJb);T(3,"async");L()}a&2&&(a=P(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Rf(U(3,1,a.refsForTemplate$)))},vJb=function(a){a&1&&M(0,"b-issue-card",44);a&2&&(a=P().$implicit,I("issueId",a.ref))},
xJb=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(wJb(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,vJb,1,1,"b-issue-card",44);L()()}a&2&&(a=b.$implicit,b=sg(6),I("title",Gg("Click to add\n\rWhy this? ",a.suggestionRationale)),B(2),Ag(a.title),B(),I("onedevHovercardTrigger",b),B(),S("b/",a.ref),B(3),G(a.ref?7:-1))},yJb=function(a){a&1&&(K(0,"div",35)(1,"h4"),Q(2,"Suggestions:"),L(),K(3,"ol",39),Qf(4,
xJb,8,6,"li",40,Pf),L()());a&2&&(a=P(2),B(4),Rf(a.suggestions))},zJb=function(a){a&1&&(K(0,"section",12)(1,"div",33),M(2,"img",34),F(3,yJb,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=sg(9);B(2);I("src",a.EMPTY_STATE_IMG,Pe);B();G(a.suggestions.length>0?3:-1);B(3);I("matMenuTriggerFor",b)}},AJb=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),yg("b-menu-item-checked",a===b.pageSize),Kf("aria-checked",a===b.pageSize),B(3),S(" ",a," "))},BJb=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(),Qf(6,AJb,4,4,"button",8,Pf),L());if(a&2){a=sg(3);var b=P();I("matMenuTriggerFor",a);B(6);Rf(b.pageSizeOptions)}},
CJb=function(a){a&1&&(K(0,"span"),Q(1," - "),K(2,"strong"),Q(3),L()());a&2&&(a=P(),B(3),Ag(a.endIndex))},DJb=function(a,b){a&1&&(K(0,"span",27),Q(1),L());a&2&&(B(),S("",b," "))},EJb=function(a){a&1&&(F(0,DJb,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)}},FJb=function(a,b){a&1&&(K(0,"div",9)(1,"h2",7),Q(2),L(),K(3,"span",26),F(4,EJb,3,3),T(5,"async"),K(6,"span"),Q(7),T(8,"async"),L()()());if(a&2){var c;B(2);Ag(b.displayName);B(2);G((c=
U(5,3,b.attentionCount$))?4:-1,c);B(3);Ag(U(8,5,b.totalCount$))}},HJb=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(GJb(e,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(),B(),S(" ",b.SUBPHASE_TO_DISPLAY_NAME[a]," "))},IJb=function(a){a&1&&M(0,"mat-progress-bar",21)},JJb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" (",a.count,") "))},KJb=function(a,b){a&1&&(K(0,"mat-chip-option",30),T(1,"async"),K(2,"span",31),Q(3),F(4,JJb,1,1),L()());a&2&&(a=
b.$implicit,b=P(4),I("value",a.key)("selected",U(1,5,Ns(b.selectedFilterKeys,a.key))),B(2),I("matTooltip",a.tooltip),B(),S(" ",a.displayAs," "),B(),G(a.showCount?4:-1))},MJb=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(hn));return v()});Qf(1,KJb,5,7,"mat-chip-option",30,LJb);L()}a&2&&(a=P(),I("multiple",!0),B(),Rf(a))},NJb=function(a,b){a&1&&F(0,MJb,3,1,"mat-chip-listbox",28);a&2&&G(b.length?0:-1)},OJb=function(a){a&
1&&(F(0,NJb,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},PJb=function(a){a&1&&Yf(0)},RJb=function(a,b){a&1&&E(0,PJb,1,0,"ng-container",32);if(a&2){a=P();var c=sg(53);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(2,QJb,b,a.teamId))}},SJb=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()}},TJb=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()}},UJb=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()}},VJb=function(a){a&1&&F(0,TJb,1,0,"issue-triage-sidebar")(1,UJb,1,0,"cluster-triage-sidebar");a&2&&(a=P(),G(a.length===1?0:a.length>1?1:-1))},WJb=function(a){a&1&&F(0,SJb,1,0,"selection-triage-sidebar")(1,VJb,2,1);a&2&&(a=P(2),G(a.triageService.mode===a.TriageServiceMode.SELECTION?
0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},XJb=function(a){a&1&&(F(0,WJb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},aKb=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 m=P(2);return v(YJb(m,k))})("rowClick",function(k){u(b);var m=P(2);return v(YJb(m,k))})("selectedIssuesChange",function(k){u(b);var m=P(2);m.selectedIssues=k;k=m.selectedIssues.selected;
m.triageService.setIssueIds(k);k.length?(m.triageService.setMode(1),m.triageService.openSidebar()):(m.triageService.setMode(0),m.triageService.closeSidebar());return v()})("sortChange",function(k){u(b);var m=P(2);return v(m.onSortChange(k))})("columnsChange",function(k){u(b);var m=P(2);return v(m.onColumnsChange(k))});L()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,g;I("issueIds",a)("tableColumns",(e=U(1,7,d.tableColumns$))!=null?e:Jg(13,ZJb))("editableColumns",!0)("options",(f=U(2,9,
d.tableOptions$))!=null?f:Jg(14,$Jb))("teamId",c)("showReadStatus",!0)("alerts",(g=U(3,11,d.issueAlertsForCurrentPhase$))!=null?g:Jg(15,ZJb))}},bKb=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))},cKb=function(a,b){a&1&&F(0,aKb,4,16,"b-issues-table",34)(1,bKb,3,1,"div",35);a&2&&G(b.issueIds.length?0:1)},dKb=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 x8a(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return v8a(e,f)})?!0:!1})},fKb=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return TVa(VVa)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return UVa(VVa)(a,c.direction);case "PRIORITY":return $Va(VVa)(a,c.direction);case "TRIAGER":return XVa()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):
eKb(a,b,d)},eKb=function(a,b,c){var d=gKb.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(g){return v8a(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 Iq([].concat(q(b),q(c),q(a.map(function(f){return f.issueId}))),function(f){return Array.isArray(f)?f.join(";"):f})},hKb=function(a){a&1&&(K(0,"span",8),Q(1," > "),L())},kKb=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 iKb(f.pathIds,f.pathNames);g.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();jKb(g.autocompleteTrigger);return v()});Q(2);L();F(3,hKb,2,0,"span",8);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;B();I("matTooltip",a.pathNameText);B();Ag(a.name);B();G(d!==b-1?3:-1)}},lKb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div"),Qf(2,kKb,4,3,"span",null,Pf),L(),K(4,"span",6),Q(5),T(6,"slice"),L()());a&2&&(a=b.$implicit,I("value",
a),B(2),Rf(a.teamPath),B(2),I("matTooltip",a.description),B(),S("",Soa(6,3,a.description,100)," "))},mKb=function(a){a&1&&Q(0," Search results ")},nKb=function(a){a&1&&Q(0," Recommended ")},oKb=function(a){a&1&&(K(0,"th",18)(1,"span",19),Q(2,"Starred"),L()())},pKb=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")}},qKb=function(a){a&1&&(K(0,"th",18),Q(1,"Name"),L())},rKb=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"," "))},sKb=function(a){a&1&&(K(0,"th",18),Q(1,"Team"),L())},tKb=function(a,b){a&1&&
(K(0,"td",24),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.teamName," "))},uKb=function(a){a&1&&(K(0,"th",18),Q(1,"Scope"),L())},vKb=function(a,b){a&1&&(K(0,"td",25),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.scope," "))},wKb=function(a){a&1&&M(0,"tr",26)},xKb=function(a){a&1&&M(0,"tr",27)},yKb=function(a,b){a&1&&(K(0,"table",6),Wf(1,7),E(2,oKb,3,0,"th",8)(3,pKb,2,4,"td",9),Xf(),Wf(4,10),E(5,qKb,2,0,"th",8)(6,rKb,3,2,"td",11),Xf(),Wf(7,12),E(8,sKb,2,0,"th",8)(9,tKb,2,1,"td",13),Xf(),Wf(10,14),E(11,uKb,
2,0,"th",8)(12,vKb,2,1,"td",15),Xf(),E(13,wKb,1,0,"tr",16)(14,xKb,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))},zKb=function(a){a&1&&M(0,"b-spinner")},AKb=function(a){a&1&&(F(0,yKb,15,4,"table",6),T(1,"async"),Nf(2,zKb,1,0,"b-spinner"));if(a&2){var b;a=P();G((b=U(1,1,a.triageRows$))?0:2,b)}},BKb=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=
sg(7);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},CKb=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=sg(74);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},DKb=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=sg(90);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},EKb=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()}},FKb=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," "))},GKb=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," "))},HKb=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)," "))},IKb=function(a){a&1&&M(0,"mat-divider")},JKb=function(a){a&1&&M(0,"mat-icon",16);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},KKb=function(a,b){if(a&1){var c=t();F(0,IKb,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,JKb,1,1,"mat-icon",16);Q(3);L()}if(a&2){a=b.$implicit;b=b.$index;P();var d=
dg(58);G(b>0&&d[b].group!=d[b-1].group?0:-1);B();var e;I("matTooltip",(e=a.altText)!=null?e:"");B();G(a.icon?2:-1);B();S(" ",a.displayText," ")}},LKb=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()}},MKb=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()}},NKb=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,LKb,2,0,"button",3),F(7,MKb,2,0,"button",3),L());if(a&2){a=sg(5);var b=P();I("disabled",b.isAnonymous)("matMenuTriggerFor",a);B(6);G(b.showExportCsv?6:-1);B();G(b.showFlagIssuesAsSpam?7:-1)}},OKb=function(a){a&1&&Q(0," Network connection has been interrupted. ")},PKb=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},RKb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",
function(c){u(b);P(2);c.stopPropagation();c.preventDefault();var d={width:690,height:500,top:window.screenTop+(window.outerHeight-500)/2,left:window.screenLeft+(window.outerWidth-690)/2};c=window;var e=Ah("/refreshSso")?"/refreshSso":Bh(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var k=d.noreferrer;if(f&&k&&g==="unsafe-url")throw Error("mg");
g=k&&!f;k=d.target||"/refreshSso".target;var m=[],r=[],w=!1;for(D in d){var x=d[D];switch(D){case "width":case "height":case "top":case "left":m.push(D+"="+x);break;case "target":break;case "noopener":case "noreferrer":x?r.push(D):(w=!0,r.push(D+"=false"));break;case "attributionsrc":m.push(D+(x?"="+x:""));break;default:m.push(D+"="+(x?1:0))}}var D=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);D=fba()&&D;QKb&&f&&m.length===0&&r.length>0&&!D&&!w?(r.length===2&&(r=["noreferrer"]),
qi(c,e,k,r[0])):(f=m.join(","),Ga()&&c.navigator&&c.navigator.standalone&&k&&k!="_self"?(f=ot(document,"A"),qsa(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=qi(c,"",k,f),d=dra(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=Rta('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+eu(d)+'">'),(c=c.document)&&
c.write&&(c.write(th(d)),c.close()))):((c=qi(c,e,k,f))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null)));return v()});Q(1," Log in again ");L()}},SKb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),F(2,OKb,1,0)(3,PKb,1,0),L(),K(4,"b-callout-actions"),F(5,RKb,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))},TKb=function(a){a&1&&(K(0,"a",0),Q(1," Hiring! "),L())},UKb=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),Ag(a.displayAs),B(4),Ag(a.description))},VKb=function(a,b){a&1&&(K(0,"thead")(1,"tr"),M(2,"th",2),K(3,"th",3),Q(4),L()(),Qf(5,UKb,7,2,"tr",null,Pf),L());a&2&&(a=b.$implicit,B(4),Ag(a.title),B(),Rf(a.hotkeys))},WKb=function(a){a=a===void 0?!1:a;var b=K4a(),c=b.total,d=b.redundancyRatio;or("after-60s","xhr","redundant",b.redundant);or("after-60s","xhr","total",c);or("after-60s","xhr","redundancyRatio",d);a&&(console.table(J4a()),
console.log(b))},gu=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new fu({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new fu({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},XKb=function(a){a=hu(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=gu(b[0]))&&a?new iu(b,a):null},ju=
function(a,b){b=b===void 0?mo():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},YKb=function(a){a&1&&M(0,"bug-screensaver")},ZKb=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"))},$Kb=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))},aLb=function(a){a&1&&(K(0,"footer"),F(1,ZKb,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,$Kb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.currentTracker?1:-1),B(7),G(a.trackerCoc?8:-1))},bLb=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)}},cLb=function(a){a&1&&(F(0,bLb,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)}},dLb=function(a){a&1&&Yf(0)},eLb=function(a){a&1&&Yf(0)},fLb=function(a){a&1&&E(0,eLb,1,0,"ng-container",1);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},gLb=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(),yg("selected",a.location.path().startsWith(As.triageSettings.makeHref())),B(),
I("href",a.ROUTES.triageSettings.makeHref(),Pe))},hLb=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()}},iLb=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,hLb,2,0,"ng-template",12);L()}a&2&&(a=sg(6),B(3),I("matMenuTriggerFor",a))},jLb=function(a){a&
1&&(K(0,"div",17)(1,"span",18),Q(2),T(3,"async"),L()());a&2&&(a=P().$implicit,B(2),Ag(U(3,1,a.displayName$)))},kLb=function(a,b){a&1&&(K(0,"span",26),Q(1),L());a&2&&(B(),S(" ",b," "))},lLb=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,kLb,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)}},mLb=function(a,b){a&1&&(K(0,"li",24),F(1,lLb,5,5,"a",22),L());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);yg("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));I("title",b.phase(a).displayName);B();G((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?1:-1,c)}},nLb=function(a){a&1&&(K(0,"ul",19),Qf(1,mLb,2,4,"li",20,Pf),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();Rf(b.ALL_PHASES);B(2);yg("selected-indented",b.location.path().endsWith("issue-themes"));B();I("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),Pe)}},oLb=function(a){a&1&&F(0,nLb,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)}},qLb=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(As.viewTriage.makeHref(g.teamId,
g.triageId));return v()});E(4,jLb,4,3,"ng-template",null,3,Og)(6,oLb,1,1,"ng-template",null,4,Og);L()()}if(a&2){a=b.$implicit;b=sg(5);var d=sg(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,pLb(e,a.teamId,a.triageId)))!=null?f:!1)}},rLb=function(a){a&1&&(K(0,"ul",14),Qf(1,qLb,8,8,"li",15,Pf),L());a&2&&(a=P(2),B(),Rf(a))},sLb=function(a){a&1&&(M(0,"hr"),K(1,"sidebar-zippy",8),E(2,iLb,8,1,"ng-template",null,0,Og)(4,rLb,3,0,"ng-template",null,1,Og),
L());if(a&2){a=sg(3);var b=sg(5);B();I("header",a)("content",b)}},tLb=function(a,b){a&1&&F(0,gLb,5,3,"ul",5)(1,sLb,6,2);a&2&&G(b.length===0?0:1)},uLb=function(a){a&1&&Q(0," Archived ")},vLb=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=sg(5),I("matMenuTriggerFor",a))},wLb=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()}},xLb=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()}},yLb=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,wLb,2,0,"button",18);F(7,xLb,2,0,"button",18)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?6:-1),B(),G(a.isEditable()?7:-1))},zLb=function(a){a&1&&(K(0,"div",11)(1,"span",12),Q(2),L(),F(3,vLb,2,1,"button",13),K(4,"mat-menu",null,4),E(6,yLb,8,2,"ng-template",14),L()());a&2&&(a=P().$implicit,Kf("id",Gg("bv2-user-archived-bookmarkgroup-item-",a.id)),B(2),Ag(a.name),B(),G(a?3:-1))},ALb=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,yg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Kf("id",Foa("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," "))},BLb=function(a){a&1&&(K(0,"ul",
19),Qf(1,ALb,4,13,"li",20,Pf),L());a&2&&(a=P().$implicit,B(),Rf(a.items))},CLb=function(a,b){a&1&&(K(0,"li",8)(1,"sidebar-zippy",10),E(2,zLb,7,4,"ng-template",null,2,Og)(4,BLb,3,0,"ng-template",null,3,Og),L()());if(a&2){a=b.$implicit;b=sg(3);var c=sg(5);I("title",a.name);B();I("header",b)("content",c)}},DLb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",16),L());a&2&&(P(),a=sg(6),I("matMenuTriggerFor",a))},ELb=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()}},FLb=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()}},GLb=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,ELb,2,0,"button",18);F(3,FLb,2,0,"button",18)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isEditable()?3:-1))},HLb=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,DLb,2,1,"button",25);K(5,"mat-menu",null,5);E(7,GLb,4,2,"ng-template",14);L()()}a&2&&(a=b.$implicit,yg("selected",a.isSelected()),I("id",Gg("bv2-user-hotlists-archived-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Pe),B(2),Ag(a.name),B(),G(a?4:-1))},ILb=function(a){a&1&&(K(0,"ul",7),Qf(1,CLb,6,3,"li",8,Pf),Qf(3,HLb,8,8,"li",9,
Pf),L());a&2&&(a=P(2),B(),Rf(a.bookmarkGroups),B(2),Rf(a.hotlists))},JLb=function(a){a&1&&(K(0,"div"),M(1,"hr"),K(2,"sidebar-zippy",6),E(3,uLb,1,0,"ng-template",null,0,Og)(5,ILb,5,0,"ng-template",null,1,Og),L()());if(a&2){a=sg(4);var b=sg(6);B(2);I("header",a)("content",b)}},KLb=function(a){a&1&&M(0,"b-spinner")},LLb=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))},MLb=function(a){a&1&&M(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,I("hotlist",a))},NLb=function(a){a&1&&M(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,I("bookmarkGroup",a))},OLb=function(a,b){a&1&&(K(0,"mat-option",6)(1,"div",8),F(2,LLb,1,3,"b-star-toggle",9),K(3,"onedev-hovercard",null,2),F(5,MLb,1,1,"b-hotlist-card",10)(6,NLb,1,1,"b-bookmark-group-card",11),L(),K(7,"span",12),Q(8),L()()());if(a&2){a=b.$implicit;
b=sg(4);var c=P();I("value",a);B();yg("bv2-bookmark-group",c.showHotlists&&a.isGroup);B();G(c.shouldShowStar(a)?2:-1);B(3);G(a.isGroup?6:5);B(2);I("onedevHovercardTrigger",b);B();Ag(a.name)}},PLb=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))},QLb=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))},RLb=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=sg(5),I("matMenuTriggerFor",
a))},SLb=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()}},TLb=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()}},ULb=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()}},VLb=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,SLb,2,0,"button",19);F(7,TLb,2,0,"button",19);F(8,ULb,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))},WLb=function(a){a&1&&(K(0,"div",12)(1,"span",13),Q(2),L(),F(3,RLb,2,1,"button",14),K(4,"mat-menu",null,4),E(6,VLb,9,3,"ng-template",15),L()());a&2&&(a=P().$implicit,Kf("id",Gg("bv2-user-bookmarkgroup-item-",a.id)),B(2),Ag(a.name),B(),G(a?3:-1))},XLb=function(a){a&1&&(K(0,"button",24),M(1,"mat-icon",17),L());a&2&&(P(),a=sg(6),I("matMenuTriggerFor",a))},YLb=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()}},ZLb=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()}},$Lb=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(As.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return v()});Q(1," Settings ");L();F(2,YLb,2,0,
"button",19);F(3,ZLb,2,0,"button",19)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isPreferredHomepage()?-1:3))},aMb=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,XLb,2,1,"button",24);K(5,"mat-menu",null,5);E(7,$Lb,4,2,"ng-template",15);L()()}a&2&&(a=b.$implicit,b=P(2).$implicit,yg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type==
"HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Kf("id",Foa("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))},bMb=function(a){a&1&&(K(0,"ul",20),Qf(1,aMb,8,14,"li",21,Pf),L());a&2&&(a=P().$implicit,B(),Rf(a.items))},cMb=function(a,b){a&1&&(K(0,"li",10)(1,"sidebar-zippy",11),E(2,WLb,7,4,"ng-template",null,2,Og)(4,bMb,3,0,"ng-template",null,3,Og),L()());if(a&2){a=b.$implicit;
b=sg(3);var c=sg(5);I("title",a.name);B();I("header",b)("content",c)("expanded",!1)}},dMb=function(a){a&1&&(K(0,"ul",9),Qf(1,cMb,6,4,"li",10,Pf),L());a&2&&(a=P(2),B(),Rf(a.bookmarkGroups))},eMb=function(a){a&1&&F(0,dMb,3,0,"ul",9);a&2&&(a=P(),G(a.bookmarkGroups?0:-1))},fMb=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))},gMb=function(a){a&1&&(K(0,"button",11),M(1,"mat-icon",13),L());a&2&&(P(),a=sg(6),I("matMenuTriggerFor",a))},hMb=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()}},iMb=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()}},jMb=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()}},kMb=function(a){if(a&1){var b=t();F(0,hMb,3,0,"button",14);F(1,iMb,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,jMb,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)}},lMb=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,gMb,2,1,"button",11);K(5,"mat-menu",null,2);E(7,kMb,6,3,"ng-template",12);L()()}a&2&&(a=b.$implicit,yg("selected",a.isSelected()),I("id",Gg("bv2-user-hotlists-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Pe),B(2),
Ag(a.name),B(),G(a?4:-1))},mMb=function(a){a&1&&(K(0,"ul",6),Qf(1,lMb,8,8,"li",7,Pf),L());a&2&&(a=P(2),B(),Rf(a.hotlists))},nMb=function(a){a&1&&F(0,mMb,3,0,"ul",6);a&2&&(a=P(),G(a.hotlists?0:-1))},oMb=function(a){a&1&&(K(0,"span"),Q(1,"Saved searches"),L())},pMb=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()}},qMb=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()}},sMb=function(a){if(a&1){var b=t();F(0,pMb,3,0,"button",13);F(1,qMb,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(rMb(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)}},tMb=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,sMb,8,2,"ng-template",12);L()()}a&2&&(a=b.$implicit,b=sg(7),yg("selected",a.isSelected()),Kf("id",Gg("bv2-saved-searches-search-item-",a.id)),I("title",a.name),
B(),I("href",a.href,Pe),B(2),Ag(a.name),B(),I("matMenuTriggerFor",b))},uMb=function(a){a&1&&(K(0,"ul",5),Qf(1,tMb,9,8,"li",6,Pf),L());a&2&&(a=P(2),B(),Rf(a.searches))},vMb=function(a){a&1&&F(0,uMb,3,0,"ul",5);a&2&&(a=P(),G(a.searches?0:-1))},wMb=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")},xMb=function(a){a&1&&M(0,"mat-icon",24)},yMb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",
26),L());a&2&&(P(),a=sg(10),I("matMenuTriggerFor",a))},AMb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P(2);zMb(c,"MISSION_CONTROL");return v()});Q(1," Set as homepage ");L()}},BMb=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,wMb,1,3,"mat-icon",23);T(3,"async");T(4,"async");Nf(5,xMb,1,0,"mat-icon",24);Q(6," Home ");L();F(7,yMb,2,1,"button",25);T(8,"async");K(9,"mat-menu",
null,1);E(11,AMb,2,0,"ng-template",11);L()()}if(a&2){var c;a=P();yg("selected",!!a.location.path().match(/^\/home\b/));B();I("href",a.missionControlPath,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)}},CMb=function(a){a&1&&(K(0,"button",10),M(1,"mat-icon",26),L());a&2&&(P(),a=sg(13),I("matMenuTriggerFor",a))},DMb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P();zMb(c,"ASSIGNED_TO_ME");
return v()});Q(1," Set as homepage ");L()}},EMb=function(a){a&1&&M(0,"nav-sidebar-triage")},FMb=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},GMb=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)},IMb=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;HMb++;var d=156;d+=(HMb-1)*12;return function(e){e=e===void 0?b:e;var f,g=(f=document.getElementById(a))!=null?f:FMb(a,d);GMb(g,e,c)}},UMb=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: "+js(a.majorModifiedTimeMicros/1E3/1E3),JMb(a),KMb(a),LMb(a,c),MMb(a),NMb(a),OMb(a),PMb(a),QMb(a),RMb(f),SMb(a),TMb(b)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},LMb=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(", ")},TMb=function(a){if(a.length!==0){var b=a.map(function(c){a:{if(c!=null){var d=VMb(c);d=WMb(d);if(d!=null){var e,f=(e=c.lastCommentEditorUser)==
null?void 0:e.emailAddress;c=js(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}},WMb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g," "),a=a9a(a,b)},VMb=function(a){var b=a.unlinkifiedComment;a=a.formattedComment;if(b)return b;if(a)return eVa(a)},RMb=function(a){if(a!=null&&(a=VMb(a),a=WMb(a,600),a!=null))return"\n### Description\n"+a},OMb=function(a){a=a.descendantCount;if(!(a<=
0))return"Descendant count: "+a},MMb=function(a){var b;a=((b=l(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},NMb=function(a){var b;a=((b=l(a.snapshot).next().value.blockedByIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},JMb=function(a){var b;return(a=((b=l(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},KMb=function(a){var b;return(a=((b=l(a.snapshot).next().value.reporterUser)!=
null?b:{}).emailAddress)?"Reporter: "+a:void 0},PMb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},SMb=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=js((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+")"}},QMb=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},XMb=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():"")},YMb=function(a){a&1&&(K(0,"div",0),M(1,"router-outlet"),L())},ZMb=function(a){a&1&&(K(0,"div",0),M(1,"app-root-body"),L())},$Mb=function(){},bNb=function(a){if(a&1){var b=t();K(0,"a",8);N("keydown.enter",function(){u(b);var c=P(2);return v(aNb(c))})("keydown.space",function(){u(b);
var c=P(2);return v(aNb(c))})("click",function(){u(b);var c=P(2);return v(aNb(c))});Q(1," Dismiss");L()}},cNb=function(a){a&1&&(K(0,"div",1)(1,"div",5),M(2,"span",6),F(3,bNb,2,0,"a",7),L()());a&2&&(a=P(),B(2),I("innerHtml",a.announcement.message,Oe),B(),G(a.announcement.dismissible?3:-1))},eNb=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(dNb(d,c))});M(2,"b-sidebar");L()}a&2&&(a=P(),I("size",a.sidebarWidth))},fNb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";
case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},gNb=function(a){return new Set(a.map(function(b){return tSa(b)}))},ku=function(a,b,c){return a.has(b)?c:""},hNb=function(a,b,c){return a.has(b)?c:[]},lu=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},kNb=function(a){if(!a)return"";var b=iNb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=jNb.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},mNb=function(a){if(!a)return"";var b=a.inherit,c=lNb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},nNb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},oNb=function(a,b){a&1&&(K(0,"mat-option",17),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a," "))},pNb=
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))});Qf(3,oNb,2,2,"mat-option",17,Pf);L();K(5,"div",18);N("click",function(){u(b);var c=sg(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),Rf(a._displayedPageSizeOptions))},qNb=function(a){a&1&&(K(0,"div",15),Q(1),L());a&2&&(a=P(2),B(),Ag(a.pageSize))},rNb=function(a){a&1&&(K(0,"div",3)(1,"div",13),Q(2),L(),F(3,pNb,6,7,"mat-form-field",14),F(4,qNb,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))},sNb=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()))});Bd();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))},tNb=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()))});Bd();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))},uNb=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))},vNb=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=sg(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)}},wNb=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 "))},xNb=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),Ag(a.data.action))},yNb=function(){},zNb=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()}},ANb=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()}},BNb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},DNb=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(Kg(1,CNb,"status:open componentid:"+a.componentId)),Pe)}},ENb=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)}},FNb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},GNb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},HNb=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)}},
INb=function(a){a&1&&(K(0,"div",16),F(1,FNb,2,0,"div",21),F(2,GNb,2,0,"div",22),F(3,HNb,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))},JNb=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,zNb,2,0,"a",6)(5,ANb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,BNb,
2,0,"span")(11,DNb,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,ENb,2,1,"a",15);L()();F(18,INb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id",Gg("component-",a.componentId)),B(4),G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),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),Ag(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},KNb=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()}},LNb=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()}},MNb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},ONb=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(Kg(1,NNb,"status:open componentid:"+a.componentId)),Pe)}},PNb=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)}},QNb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},RNb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},SNb=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)}},TNb=function(a){a&1&&(K(0,"div",16),F(1,QNb,2,0,"div",21),F(2,RNb,2,0,"div",22),F(3,SNb,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))},UNb=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,KNb,2,0,"a",6)(5,LNb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,MNb,2,0,"span")(11,ONb,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,PNb,2,1,"a",15);L()();F(18,TNb,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),Ag(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},VNb=function(a){a&1&&(K(0,"div"),Q(1," Loading custom fields... "),L())},WNb=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,
". "))},XNb=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," "))},YNb=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))});Qf(5,XNb,2,2,"mat-option",6,Pf);L()()()}a&2&&(a=P(2),B(5),Rf(a.customFields))},ZNb=function(a){a&1&&(K(0,"div",3),F(1,VNb,2,0,"div"),F(2,WNb,2,1,"div"),F(3,YNb,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))},$Nb=function(a){a&1&&Yf(0)},aOb=function(){},bOb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P().value,B(),Ag(a.textValue))},cOb=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))}},dOb=function(a){a&1&&(Wf(0),Q(1),Xf());a&2&&(a=P().value,B(),Ag(a.enumValue))},eOb=function(a){a&1&&
(Wf(0),Q(1),Xf());a&2&&(a=P().value,B(),Ag(a.numericValue))},fOb=function(a,b){a&1&&(Wf(0),Q(1),Xf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},gOb=function(a){a&1&&Qf(0,fOb,2,2,"ng-container",null,Pf);a&2&&(a=P().value,Rf(a.repeatedTextValue.values))},hOb=function(a,b){a&1&&(Wf(0),M(1,"b-formatted-date-time",4),Q(2),Xf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);B();I("date",d.toDate(a));B();Ag(c===b-1?"":", ")}},iOb=function(a){a&1&&Qf(0,
hOb,3,2,"ng-container",null,Pf);a&2&&(a=P().value,Rf(a.repeatedDateValue.values))},jOb=function(a,b){a&1&&(Wf(0),Q(1),Xf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},kOb=function(a){a&1&&Qf(0,jOb,2,2,"ng-container",null,Pf);a&2&&(a=P().value,Rf(a.repeatedEnumValue.values))},lOb=function(a,b){a&1&&(Wf(0),Q(1),Xf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},mOb=function(a){a&1&&Qf(0,lOb,2,2,"ng-container",null,Pf);a&2&&
(a=P().value,Rf(a.repeatedNumericValue.values))},nOb=function(a,b){a&1&&(F(0,bOb,2,1,"ng-container"),F(1,cOb,1,1,"b-formatted-date-time",4),F(2,dOb,2,1,"ng-container"),F(3,eOb,2,1,"ng-container"),F(4,gOb,2,0),F(5,iOb,2,0),F(6,kOb,2,0),F(7,mOb,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))},oOb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),Bg(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},pOb=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),Bg(" ",a.issueId," - ",a.title," "))},qOb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L(),K(3,"ul"),Qf(4,pOb,2,2,"li",null,Pf),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),Rf(a.protectedIssues))},rOb=function(a){if(a&1){var b=t();K(0,"div",1)(1,"label");Q(2);L();K(3,"onedev-single-select",4);Eg("valueChange",function(c){u(b);var d=P();Dg(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return v(c)});L()()}a&2&&(a=P(),B(2),S(" ",a.effortSpecName," "),B(),Cg("value",a.currentEnumLabel),I("includeEmptyOption",!0)("options",a.allowedLabels))},sOb=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);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return v(c)});N("keypress",function(c){u(b);var d=P();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});L()()()}a&2&&(a=P(),B(3),S(" ",a.effortSpecName," "),B(),Cg("ngModel",a.numericEstimatedEffort))},yOb=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);tOb(f,e)||uOb(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(vOb(g,f))});L();K(3,"span");Q(4);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);xg("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");yg("focused",b===d.focusedRowIndex);I("title",Fg(a.name));Kf("id","hotlist-item-"+a.hotlistId)("aria-checked",wOb(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",tOb(d,a));B(2);I("state",xOb(d.selectedHotlistMap[a.hotlistId]))("disabled",
tOb(d,a));B(2);S(" ",a.name," ")}},zOb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S(" (",a.filterText,")"))},AOb=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),yg("focused",a.focusedRowIndex===a.choices.length+1),Kf("aria-label","Load hotlist from"+a.filterText),B(4),S("(",a.filterText,
")"))},COb=function(a){if(a&1){var b=t();K(0,"div",23,6);N("click",function(){u(b);var c=P(2);return v(BOb(c))})("keydown.enter",function(){u(b);var c=P(2);return v(BOb(c))});Q(2,"Apply");L()}a&2&&(a=P(2),yg("focused",a.focusedRowIndex===a.choices.length+2))},DOb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"div",15,2);Qf(3,yOb,5,12,"div",16,Pf);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,zOb,2,1,"span");L();F(10,AOb,5,4,"div",18);F(11,COb,3,2,"div",19)}a&2&&(a=P(),B(3),Rf(a.choices),B(3),yg("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))},EOb=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",Gg("issues/",a.issueId),Pe),B(),S("b/",
a.issueId),B(),I("issueId",a.issueId))},FOb=function(a,b){a&1&&F(0,EOb,4,4,"li");a&2&&G(b.$implicit.type==="issue"?0:-1)},GOb=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))},HOb=function(a,b){a&1&&F(0,GOb,3,2,"li");a&2&&G(b.$implicit.type==="component"?0:-1)},IOb=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"),Qf(5,FOb,1,1,null,null,Of),L(),Q(7," within: "),K(8,"ul"),Qf(9,HOb,1,1,null,null,Of),L()());a&2&&(a=P(),B(5),Rf(a.externalWarnings),B(4),Rf(a.externalWarnings))},KOb=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(JOb(e.issueEditBuilder,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(3),I("disabled",b.issueEditBuilder.issueState==a),B(),S(" ",a.displayValue," "))},LOb=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()()}},MOb=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()()}},NOb=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(mu(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(mu(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE)("email",a.issueEditBuilder.commonAssignee))},POb=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),yg("bv2-invalid-multiple-user-chip",!OOb(a.issueEditBuilder)),B(2),S(" Multiple ",OOb(a.issueEditBuilder)?
"":"(some unset)"," "))},QOb=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),yg("bv2-invalid-multiple-user-chip",!OOb(a.issueEditBuilder)),B(2),S(" Possibly multiple ",OOb(a.issueEditBuilder)?"":"(some unset)"," "))},ROb=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(mu(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(mu(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"))},SOb=function(a){a&1&&(K(0,"div")(1,"div",14)(2,"label",18),Q(3," Assignee "),L(),K(4,"div"),F(5,LOb,5,0,"div",19)(6,MOb,5,0,"div",19)(7,
NOb,2,2,"div"),L()(),K(8,"div",14)(9,"label",20),Q(10," Verifier "),L(),K(11,"div"),F(12,POb,5,3,"div",21)(13,QOb,5,3,"div",21)(14,ROb,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)}},TOb=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=h9a(c);return v(d.commonDuplicateOf=c.length===1?c[0]:"")})("keydown.control.enter",function(){u(b);var c=P(3);return v(mu(c))})("keydown.meta.enter",function(){u(b);var c=P(3);return v(mu(c))});L()()}a&2&&(a=P(3),B(3),I("ngModel",a.issueEditBuilder.commonDuplicateOf),Kf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},UOb=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();Qf(9,KOb,2,2,"button",13,Pf);L();K(11,"div");F(12,SOb,15,2,"div")(13,TOb,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=sg(6);var c=P(2);B();I("matMenuTriggerFor",a);B(2);Ag(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:
"No change");B(4);I("disabled",!c.issueEditBuilder.issueState);B(2);Rf(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)}},VOb=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()()}},XOb=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,UOb,18,8,"div",5),L(),F(8,VOb,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",!WOb(a)))},ZOb=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",YOb(a))("enableBulkEstimatedEffortOption",(c=U(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)}},cPb=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($Ob(c.copyIssueIdService,nu(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(aPb(c.copyIssueIdService,nu(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(bPb(c.copyIssueIdService,nu(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},dPb=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))},fPb=function(a){if(a&1){var b=t();K(0,"b-comment-box",15);Eg("commentChange",function(c){u(b);var d=P(2);Dg(d.comment,c)||(d.comment=
c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(ePb(c))});L()}a&2&&(a=P(2),Cg("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},gPb=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()()}},hPb=function(a){a&1&&(K(0,"h1",9),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,fPb,1,3,"b-comment-box",10),M(4,"b-external-warnings",11),L(),F(5,gPb,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))},iPb=function(a){a&1&&M(0,"tr",16)},jPb=function(a){a&1&&M(0,"tr",17)},kPb=function(a){a&1&&(K(0,"th",18),Q(1,"User"),L())},lPb=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))},mPb=function(a,b){a&1&&(K(0,"td",19),F(1,lPb,3,4,"div",20),L());if(a&2){var c;a=b.$implicit;B();G((c=a[0].user.user)?1:-1,c)}},nPb=function(a){a&1&&(K(0,"th",18)(1,"span",23),Q(2," Role "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(10),B(3),I("matTooltip",a),Kf("aria-label",a))},oPb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),
B(),Ag(a.displayText))},sPb=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(pPb(f,e[0],d.value))});K(2,"mat-select-trigger");Q(3);L();Qf(4,oPb,2,2,"mat-option",26,qPb);T(6,"async");L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].user.role),B(2),S(" ",rPb(a[0])," "),B(),Rf(U(6,3,b.roleOptions$)))},tPb=function(a){a&1&&(K(0,"th",18)(1,"span",27),Q(2," Lead "),M(3,"b-icon",24),L()());
a&2&&(P(),a=dg(14),B(3),I("matTooltip",a),Kf("aria-label",a))},vPb=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(uPb(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",Fg(d));I("checked",a[0].user.isLead)("disabled",!b.isAllowedToEdit)}},wPb=function(a){a&1&&(K(0,"th",18)(1,"span",29),Q(2,
" Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(18),B(3),I("matTooltip",a),Kf("aria-label",a))},xPb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},zPb=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(yPb(f,e,e[0],d.value))});Qf(2,xPb,2,2,"mat-option",26,qPb);K(4,"mat-option",26);Q(5,"Percentage");L()()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",
!b.isAllowedToEdit)("value",a[0].allocation.involvement),B(),Rf(b.involvementOptions),B(2),I("value",b.Involvement.INVOLVEMENT_UNSPECIFIED))},APb=function(a){a&1&&(K(0,"th",18)(1,"span",31),Q(2," Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(22),B(3),I("matTooltip",a),Kf("aria-label",a))},DPb=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(BPb(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(" ",CPb(a[0])," ")}},EPb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),Ag(a.displayText))},GPb=function(a){if(a&1){var b=t();K(0,"input",35,1);Eg("ngModelChange",function(d){u(b);var e=P(2);Dg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P().$implicit,f=P();return v(ou(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&&ou(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=Fo[d.option.value];ou(f,e);return v()});Qf(4,EPb,2,2,"mat-option",26,FPb);L()}if(a&2){a=sg(3);var c=P(2);I("matAutocomplete",a);Cg("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);B(4);Rf(c.involvementOptions)}},HPb=function(a,b){a&1&&(K(0,"td",19),F(1,DPb,4,2,"button",
32)(2,GPb,6,3),L());a&2&&(a=b.$implicit,b=P(),B(),G(b.allocationUnderEdit===a[0]?2:1))},IPb=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=dg(1);zg(Gg("timebound-allocation ",b%2===1?"blue":""));B();S(" ",a.displayText," ");B();I("matTooltip",c);Kf("aria-label",c)}},JPb=function(a){if(a&1){var b=t();K(0,"button",42,0);N("click",function(){u(b);P(2);var d=dg(1),e=P(2);return v(BPb(e,d))});Q(2);M(3,"mat-icon",34);L()}if(a&2){P(2);a=dg(1);var c=
P(2);I("disabled",!c.isAllowedToEdit);B(2);S(" ",CPb(a)," ")}},KPb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),Ag(a.displayText))},MPb=function(a){if(a&1){var b=t();K(0,"input",43,1);Eg("ngModelChange",function(d){u(b);var e=P(4);Dg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P(2).$implicit,f=P(2);return v(ou(f,e,d))})("keyup",function(){u(b);var d=P(4);return v(LPb(d))})("blur",
function(d){u(b);var e=P(2).$implicit,f=P(2);d.relatedTarget&&ou(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=Fo[d.option.value];ou(f,e);return v()});Qf(4,KPb,2,2,"mat-option",26,FPb);L()}if(a&2){a=sg(3);var c=P(4);I("matAutocomplete",a);Cg("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);B(4);Rf(c.involvementOptions)}},NPb=function(a){a&1&&F(0,JPb,4,2,"button",41)(1,MPb,6,3);if(a&
2){P();a=dg(1);var b=P(2);G(b.allocationUnderEdit===a?1:0)}},OPb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},PPb=function(a){if(a&1){var b=t();K(0,"mat-select",30);N("selectionChange",function(d){u(b);var e=P().$implicit,f=dg(1),g=P(2);return v(yPb(g,e,f,d.value))});Qf(1,OPb,2,2,"mat-option",26,qPb);K(3,"mat-option",26);Q(4,"Percentage");L()()}if(a&2){P();a=dg(1);var c=P(2);I("disabled",!c.isAllowedToEdit)("value",a.allocation==
null?null:a.allocation.involvement);B();Rf(c.involvementOptions);B(2);I("value",c.Involvement.INVOLVEMENT_UNSPECIFIED)}},QPb=function(a,b){a&1&&(K(0,"td",39),bg(1),F(2,NPb,2,1)(3,PPb,5,3,"mat-select",40),L());if(a&2){a=b.$implicit;b=P();var c=b.$implicit;zg(Gg("timebound-allocation ",b.$index%2===1?"blue":""));B();cg(c.extractPlannedAllocation(a));B();G(c.displayInvolvementAsPercentage?2:3)}},RPb=function(a,b){a&1&&(Wf(0,14),bg(1),E(2,IPb,3,6,"th",37)(3,QPb,4,5,"td",38),Xf());a&2&&(a=b.$implicit,
I("matColumnDef",a.columnDef),B(),cg("Set the involvement level of people\n        allocated to this issue during "+a.displayText+". Zero involvement levels are\n        useful when a person is either not involved during this quarter or the person is involved in\n        the work but does not spend a significant portion of their time on it."))},SPb=function(a){a&1&&(K(0,"th",18),Q(1,"Delete"),L())},UPb=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(TPb(d,c[0]))});M(2,"mat-icon",45);L()()}a&2&&(a=P(),B(),I("disabled",!a.isAllowedToEdit))},VPb=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," "))},WPb=function(a){a&1&&(K(0,"mat-error"),Q(1," Must be an integer between 1 and 300,000. "),L())},XPb=function(a){a&
1&&(K(0,"b-callout",2)(1,"b-callout-body"),Q(2," You do not have edit access "),L()())},ZPb=function(a,b){if(a&1){var c=t();K(0,"b-placeholder-chip",15);N("editPlaceholder",function(){var e=u(c).$implicit,f=P(),g=dg(6);return v(YPb(f,g,e.role))})("removePlaceholder",function(){var e=u(c).$implicit,f=P();return v(f.removePlaceholder(e))});L()}if(a&2){a=b.$implicit;b=P();var d=dg(2);I("placeholder",a)("isAllowedToEdit",b.isAllowedToEdit&&!d)}},$Pb=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},aQb=function(a){a&1&&(K(0,"span"),Q(1,"Cancel"),L())},bQb=function(a){a&1&&(K(0,"span"),Q(1,"Edit"),L())},hQb=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(cQb(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,aQb,2,0,"span")(12,bQb,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(dQb(e,d))});Q(15," Delete ");L()()}if(a&2){a=P().$implicit;var c=P();B(2);yg("selected",eQb(c,a));B();S(" ",a.name," ");B(2);I("href",fQb(c,a),Pe);Kf("aria-label",a.name+"- Click to create a new issue");
B();S(" ",fQb(c,a)," ");B(2);I("id",Gg("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",eQb(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B();G(eQb(c,a)?11:12);B(3);I("bAriaLabel","Delete "+a.name)("disabled",!gQb(c,a))}},iQb=function(a){a&1&&(K(0,"h2",23),Q(1," Create Template "),L())},jQb=function(a){a&1&&(K(0,"h2",23),Q(1),L());a&2&&(a=P(2).$implicit,B(),Bg(' Edit template "',
a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},kQb=function(a,b){a&1&&(K(0,"mat-option",82),Q(1),L());a&2&&(a=b.$implicit,I("value",Fg(a)),B(),S(" ",a," "))},lQb=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);Eg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Dg(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return v(d)});
N("ngModelChange",function(){u(b);P(2).$implicit.editableTemplate.dirty=!0;return v()});K(7,"mat-select-trigger");Q(8);L();Qf(9,kQb,2,3,"mat-option",82,Pf);L()()()}if(a&2){a=P(2).$implicit;var c=P();B(4);I("matTooltip",Fg(c.COLLABORATOR_GROUPS_TOOLTIP));B(2);Cg("ngModel",a.editableTemplate.collaboratorGroups);B(2);S(" ",a.editableTemplate.getCollaboratorGroupsString()," ");B();Rf(c.trackerCollaboratorGroups)}},nQb=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(mQb(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," ")}},oQb=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," "))},pQb=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," "))},qQb=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))},rQb=function(a){if(a&1){var b=t();bg(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," "))},sQb=function(a){a&
1&&(K(0,"h3"),Q(1,"Custom issue fields"),L())},tQb=function(a){if(a&1){var b=t();K(0,"input",97);Eg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Dg(f.editableTemplate.customFieldValues[e.id].textValue,d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Kf("id",Gg("template-cf-",a.id));Cg("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},
uQb=function(a){if(a&1){var b=t();K(0,"input",98);Eg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Dg(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Kf("id",Gg("template-cf-",a.id));Cg("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},
wQb=function(a){if(a&1){var b=t();K(0,"b-edit-field",99);N("valueChange",function(g){u(b);var k=P().$implicit,m=P(2).$implicit,r=P();return v(r.setCustomField(m,k.id,g))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Kf("id",Gg("template-cf-",a.id));var e,f;I("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",(e=c.editableTemplate.customFieldValues[a.id]==null?null:c.editableTemplate.customFieldValues[a.id].enumValue)!=null?e:null)("choices",(f=a.enumFields)!=null?f:Jg(7,vQb))}},
xQb=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",Gg("template-cf-",a.id));var d;I("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},zQb=
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",Gg("template-cf-",a.id));I("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",yQb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},AQb=function(a,b){a&1&&(K(0,"div")(1,"div",25)(2,"label",91),Q(3),L()(),K(4,
"div"),F(5,tQb,1,3,"input",92)(6,uQb,1,3,"input",93)(7,wQb,1,8,"b-edit-field",94)(8,xQb,1,3,"bv2-input-date-picker",95)(9,zQb,1,7,"b-list-field",96),L()());if(a&2){var c;a=b.$implicit;zg(Gg("cell-",a.cellType));B(2);I("for",Gg("template-cf-",a.id));B();Bg("",a.name," (id=",a.id,")");B(2);G((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c==="ENUM"?7:c==="DATE"?8:9)}},GQb=function(a){if(a&1){var b=t();K(0,"td",15)(1,"div",22);F(2,iQb,2,0,"h2",23)(3,jQb,2,2,"h2",23);K(4,"div",24)(5,"div",25)(6,"label",26);Q(7,
"Template Name");L()();K(8,"input",27);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.name,g)||(k.editableTemplate.name=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(9,"div",24)(10,"b-slide-toggle",28);N("modelChange",function(){u(b);var g=P().$implicit.editableTemplate;g.inheritable=!g.inheritable;g.dirty=!0;return v()});L();K(11,"span",25)(12,"label",29);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);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.description,g)||(k.editableTemplate.description=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(20,"div",33)(21,"h3");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,lQb,11,4,"div",38);L();K(30,"div",24)(31,"div",25)(32,"label",39);Q(33,"Title");L()();K(34,"input",40);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.title,g)||(k.editableTemplate.title=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});
L()();K(35,"div",41)(36,"div",25)(37,"label",42);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);Qf(45,nQb,2,3,"button",46,Pf);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);Qf(57,oQb,2,2,"button",49,Pf);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);Qf(69,pQb,2,2,"button",49,Pf);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();Qf(76,qQb,2,1,"div",55,Pf);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,m=P();return v(m.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,m=P();return v(m.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(BQb(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(CQb(k.editableTemplate,g))});L()();K(102,"div",24)(103,"div",25)(104,"label",67);Q(105,"Initial Comment");L()();K(106,"textarea",68);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.comment,g)||(k.editableTemplate.comment=g);return v(g)});N("ngModelChange",
function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});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,rQb,11,4,"div",72);L();K(115,"div",73);F(116,
sQb,2,0,"h3");Qf(117,AQb,10,8,"div",74,Pf);L();K(119,"div",75)(120,"b-button",76);N("onAction",function(){u(b);var g=P(2);return v(DQb(g))});Q(121," Save ");L();K(122,"b-button",77);N("onAction",function(){u(b);var g=P(2);return v(EQb(g))});Q(123," Cancel ");L()()()()}if(a&2){a=sg(44);var c=sg(56),d=sg(68),e=P().$implicit,f=P();B(2);G(e.editableTemplate.new?2:3);B(6);Cg("ngModel",e.editableTemplate.name);B(2);I("model",e.editableTemplate.inheritable);B(9);Cg("ngModel",e.editableTemplate.description);
B(9);I("disabled",!1)("defaultAccessLimitLevel",e.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);B();G(f.trackerCollaboratorGroups.length?29:-1);B(5);Cg("ngModel",e.editableTemplate.title);B(5);I("matMenuTriggerFor",a);B(2);Ag(FQb(e.issueType));B(2);I("overlapTrigger",!0);B(2);Rf(f.issueTypeChoices);B(6);I("matMenuTriggerFor",c);B(2);Ag(e.editableTemplate.priority);B(2);I("overlapTrigger",!0);B(2);Rf(f.priorityChoices);B(6);I("matMenuTriggerFor",d);B(2);Ag(e.editableTemplate.severity);
B(2);I("overlapTrigger",!0);B(2);Rf(f.severityChoices);B(6);I("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B();Rf(f.selectedHotlists);B(7);I("ariaLabel","The user assigned to this issue")("email",e.editableTemplate.assignee);B(5);I("ariaLabel","The user who will verify this issue")("email",e.editableTemplate.verifier);B(6);I("ariaLabel","Addition to Collaborators")("value",e.editableTemplate.collaborators.join(", "));B(6);I("ariaLabel","Addition to CCs")("value",e.editableTemplate.cc.join(", "));
B(6);Cg("ngModel",e.editableTemplate.comment);B(2);I("initialValue",e.editableTemplate.formattingMode);B(5);I("model",e.editableTemplate.inProd);B();G(f.sessionIsInternal?114:-1);B(2);G(f.customFieldRows.length>0?116:-1);B();Rf(f.customFieldRows);B(3);I("disabled",!e.editableTemplate.isDirty())}},HQb=function(a,b){a&1&&(K(0,"tr"),F(1,hQb,16,15)(2,GQb,124,34,"td",15),L());a&2&&(a=b.$implicit,B(),G(a.editableTemplate?2:1))},IQb=function(a){a&1&&(K(0,"tr")(1,"td",15)(2,"div",102)(3,"strong"),Q(4,"Templates inherited from parent components"),
L()()()())},JQb=function(a){a&1&&(Wf(0),M(1,"b-component-card",108,8),Xf());if(a&2){a=sg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},KQb=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(cQb(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,JQb,3,2,"ng-container",107);L()()()()}if(a&2){a=b.$implicit;b=sg(17);var d=P(2);B(3);yg("selected",eQb(d,a));B();S(" ",a.name," ");B(2);I("href",fQb(d,a),Pe);Kf("aria-label",a.name+"- Click to create a new issue");B();S(" ",fQb(d,a)," ");B(2);I("id",Gg("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]," ")}},LQb=function(a,b){a&1&&(F(0,IQb,5,0,"tr"),Qf(1,KQb,19,15,"tr",null,Pf));a&2&&(G(b.length?0:-1),B(),Rf(b))},MQb=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))},NQb=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))},OQb=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)"))},PQb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(),B(),S("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},QQb=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))},RQb=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))},SQb=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))},TQb=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))},UQb=function(a){a&1&&Q(0," No applicable SLO rules ")},VQb=
function(a){a&1&&Q(0," No SLO set on issue component ")},WQb=function(a){a&1&&(K(0,"div",6),F(1,UQb,1,0)(2,VQb,1,0),L());a&2&&(a=P(),B(),G(a.editSloLink?1:2))},XQb=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," "))},YQb=function(a){a&1&&(K(0,"span"),Q(1," (private) "),L())},ZQb=function(a){a&1&&(K(0,"span"),Q(1," SLO definition: "),F(2,XQb,2,2,"a",8)(3,YQb,2,0,"span"),
L());a&2&&(a=P(),B(2),G(a.sloName?2:3))},bRb=function(a){if(a.type==="CUSTOM_FIELD")return new pu({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==void 0,tooltip:""});a=tSa(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return $Qb.includes(a)?aRb(a):null},dRb=function(a){return cRb(a.map(bRb).filter(function(b){return!!b}))},eRb=function(a){return a.map(function(b){b.isCustomField?
b={type:"CUSTOM_FIELD",customFieldId:Gm(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})},cRb=function(a){return Iq(a,function(b){return b.name})},aRb=function(a){var b={name:a,label:a.toUpperCase()},c=fRb[a];c?Object.assign(b,c):$Qb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();
return new pu(b)},gRb=function(a,b){a&1&&M(0,"col");a&2&&zg(Gg("",b.$implicit.name,"-col"))},hRb=function(a){a&1&&Yf(0)},jRb=function(a,b){a&1&&E(0,hRb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),I("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Kg(2,iRb,a)))},kRb=function(a){a&1&&Yf(0)},mRb=function(a,b){a&1&&E(0,kRb,1,0,"ng-container",7);if(a&2){a=b.$implicit;b=b.$index;var c=P(),d=c.$implicit;c=c.$index;var e=P();I("ngTemplateOutlet",
e[b])("ngTemplateOutletContext",Mg(2,lRb,d,a,c))}},oRb=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()});Qf(2,mRb,1,6,"ng-container",null,nRb);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);yg("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);Kf("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);Rf(d.columns)}},qRb=function(a){a&1&&Qf(0,oRb,4,11,"tr",8,pRb);a&2&&(a=P(),Rf(a.list))},rRb=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))},sRb=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))},tRb=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||""))},uRb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S("column-",a.column.name))},vRb=function(a){a&1&&(K(0,"div",2),F(1,uRb,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," "))},wRb=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);
sg(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){u(b);var d=sg(1);return v(d.openMenu())});L()}if(a&2){a=P();var c=sg(5);yg("columnpicker-button-active",a.menuOpen);Kf("aria-label",Gg("",a.column.fullLabel," column configuration"));I("matMenuTriggerFor",c)}},zRb=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(xRb(e,d.name))});M(1,"b-icon",15);K(2,"span",16);Q(3);L()()}a&2&&(a=b.$implicit,b=P(),
yg("b-menu-item-checked",yRb(a.name).get(b.listViewPrefs)),B(3),S(" ",a.menuItem," "))},ARb=function(a){a&1&&M(0,"mat-divider")},BRb=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," "))},DRb=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=sg(19);I("matMenuTriggerFor",c)("matMenuTriggerData",Lg(3,CRb,a.columns,b));B(2);Ag(a.label)}},ERb=function(a,b){a&1&&F(0,BRb,2,2,"button",18)(1,DRb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),G(b.isIssueGridColumn(a)?0:1))},GRb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){var c=u(b).before,d=P();return v(FRb(d,c))});Q(1," Custom Field ");L();M(2,"mat-divider");Qf(3,ERb,2,1,null,null,
Pf)}a&2&&(a=P(),B(3),Rf(a.currentAvailableItems))},HRb=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," "))},IRb=function(a,b){a&1&&Qf(0,HRb,2,1,"button",20,Pf);a&2&&Rf(b.columns)},yRb=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("qg`"+a);}},JRb=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. "))},KRb=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: ",Ms(a.bannedWordsChecker),". Review your status update before posting. "))},
LRb=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))},MRb=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=sg(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," ")}},NRb=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()}},ORb=function(a){a&1&&M(0,"mat-icon",16)},PRb=function(a){a&1&&M(0,"mat-icon",17)},QRb=function(a){a&1&&M(0,"mat-icon",19)},RRb=function(a){a&1&&M(0,"mat-icon",20)},VRb=function(a,b){if(a&1){var c=t();K(0,"button",15);N("click",function(){u(c);var d=P();return v(SRb(d))});
F(1,ORb,1,0,"mat-icon",16)(2,PRb,1,0,"mat-icon",17);L();K(3,"button",18);N("click",function(){u(c);var d=P();return v(TRb(d))});F(4,QRb,1,0,"mat-icon",19)(5,RRb,1,0,"mat-icon",20);L()}a&2&&(a=P(),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(URb(a.insightsActionsService,b,a.enrichment.category).hasThumbsUpped?1:2),B(2),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(URb(a.insightsActionsService,b,a.enrichment.category).hasThumbsDowned?4:5))},WRb=function(a){a&1&&M(0,"b-actions-menu",7);a&2&&(P(),a=
dg(10),I("menuItems",a))},XRb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayName," "))},YRb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",12,0);a&2&&(a=P(5),yg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b))},$Rb=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(ZRb(d))});L()}a&2&&(a=P(6),yg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b.formattedContent))},
aSb=function(a){a&1&&M(0,"b-spinner")},bSb=function(a){a&1&&(F(0,$Rb,2,3,"b-formatted-comment-presenter",8),T(1,"async"),Nf(2,aSb,1,0,"b-spinner"));if(a&2){var b;a=P(2).$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},cSb=function(a){a&1&&(K(0,"div"),Q(1,"No content was found for this enrichment."),L())},dSb=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"," "))},eSb=function(a){a&1&&(F(0,YRb,2,3,"b-formatted-comment-presenter",8)(1,bSb,3,3)(2,cSb,2,0,"div"),K(3,"div",9),F(4,dSb,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)}},fSb=function(a,b){a&1&&(K(0,"expandable-tab",5),E(1,XRb,1,1,"ng-template",6)(2,eSb,6,3,"ng-template",7),L());a&2&&(a=b.$implicit,I("key",
a.displayName)("ariaLabel",a.displayName))},kSb=function(a,b){if(a&1){var c=t();bg(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)));ZRb(f);gSb(f);return v()})("showAllClicked",function(){u(c);var e=P(),f=P();return v(hSb(f,e[0].issueId))});Qf(3,fSb,3,2,"expandable-tab",5,iSb);L()}if(a&2){a=P();var d=U(1,4,P().tabKeys$)||Jg(6,jSb);B(2);I("showMultiple",!1)("showIcons",!1)("tabKeys",d)("expandedTabs",b);B();Rf(a)}},
lSb=function(a){a&1&&(F(0,kSb,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)}},nSb=function(a){return function(b){b=X(b,mSb,1);var c,d=b==null?void 0:(c=b.getData())==null?void 0:c.getWorkspacesMap(),e,f;return((f=b==null?void 0:(e=b.getContextsMap().get("b/"+a))==null?void 0:e.getTypedWorkspaceIdsList())!=null?f:[]).map(function(g){g=g.getWorkspaceId();var k=d==null?void 0:d.get(g),m;return{workspaceId:nn(g),workspaceName:(m=k==null?void 0:k.getName())!=
null?m:"",issueId:a}})}},oSb=function(a){a&1&&Yf(0)},qSb=function(a){a&1&&(Wf(0),E(1,oSb,1,0,"ng-container",8),Xf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,pSb,a.value)))},rSb=function(a){a&1&&Q(0);a&2&&(a=P(),Ag(a.value!=null?a.value:"--"))},sSb=function(a){a&1&&(Bd(),K(0,"svg",9),M(1,"path",10),L())},tSb=function(a){a&1&&M(0,"input",11);a&2&&(a=P(),I("required",a.required())("formControl",a.editingValue),Kf("aria-labelledby",a.labelledById))},uSb=function(a){return a!=
null?Number(a):void 0},vSb=function(a){a&1&&M(0,"mat-icon",4);a&2&&(P(),a=sg(5),I("onedevHovercardTrigger",a))},wSb=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=sg(2);I("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},xSb=function(a){a&
1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.label," "))},ySb=function(a){a&1&&Q(0," -- ")},zSb=function(a,b){a&1&&F(0,xSb,1,1)(1,ySb,1,0);a&2&&G(b.$implicit?0:1)},BSb=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,zSb,2,1,"ng-template",null,2,Og)}if(a&2){a=sg(2);var c=P(2),d;I("value",c.selectedOption)("options",(d=c.effortSpec.enumSpec==null?null:c.effortSpec.enumSpec.options)!=null?d:Jg(6,ASb))("includeEmptyOption",
!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},CSb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},DSb=function(a){a&1&&(K(0,"onedev-edit-field")(1,"onedev-field-label",3),Q(2),F(3,vSb,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,wSb,1,
4,"onedev-numeric-field",9)(13,BSb,3,7)(14,CSb,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)}},ESb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},FSb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a!=null?a:"--"," "))},GSb=function(a,b){a&1&&F(0,ESb,1,1)(1,FSb,1,1);a&2&&(a=b.$implicit,b=P(),G(b.isNaN(a)?
0:1))},HSb=function(a){a&1&&Q(0," -- ")},ISb=function(a){a&1&&(K(0,"div",12),Q(1),L(),K(2,"div",13),Q(3),L());a&2&&(a=P(),B(),Ag(a.staffingUserSummary),B(2),Ag(a.staffingPlaceholderSummary))},JSb=function(a){a&1&&M(0,"mat-icon",4)},KSb=function(a){a&1&&M(0,"mat-icon",11)},LSb=function(a){a&1&&M(0,"mat-icon",12)},MSb=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))},NSb=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))},OSb=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))},PSb=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,MSb,2,1,"span")(7,NSb,4,1,"span");L();E(8,OSb,1,3,"ng-template",25);L()()}if(a&2){a=sg(5);var c=
P();B(6);G(c.hasSloStartTime?6:7);B(2);I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},QSb=function(a){a&1&&(K(0,"span"),Q(1," Set closure SLO "),L())},RSb=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))},SSb=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))},TSb=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))},USb=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,QSb,2,0,"span");F(7,RSb,2,1,"span");F(8,SSb,4,1,"span");L();E(9,TSb,1,3,"ng-template",25);L()()}if(a&2){a=sg(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)}},VSb=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))},WSb=function(a){a&1&&Q(0," None ")},XSb=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," "))},YSb=function(a){a&1&&(K(0,"div",22),Q(1," SLO definition: "),
F(2,XSb,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)}},ZSb=function(a){if(a&1){var b=t();K(0,"div",22)(1,"a",31);N("click",function(){u(b);P();or("component","open","fromIssueSloBox");return v()});Q(2,"Select an SLO");L()()}a&2&&(a=P(),B(),Kf("href",a.componentSloLink,Pe))},$Sb=function(a){return a&&a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},aTb=function(a){a&1&&Yf(0)},bTb=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);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.teamAction,d)||(e.teamAction=d);return v(d)});K(6,"p")(7,"mat-radio-button",8);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,aTb,1,0,"ng-container",10);L()}if(a&2){a=P();var c=sg(5);B(2);I("href",a.componentSetting,
Pe);B(3);Cg("ngModel",a.teamAction);B(7);I("ngTemplateOutlet",c)}},cTb=function(a){a&1&&Yf(0)},dTb=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,cTb,1,0,"ng-container",10),L());if(a&2){a=P();var b=sg(5);B(2);I("href",a.componentSetting,Pe);B(3);I("ngTemplateOutlet",b)}},eTb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P().$implicit,
B(),Ag(a.teamPath))},fTb=function(a){a&1&&Q(0," -- ")},gTb=function(a,b){a&1&&F(0,eTb,2,1,"span",16)(1,fTb,1,0);a&2&&G(b.$implicit?0:1)},hTb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"onedev-single-select",13);Eg("valueChange",function(d){u(b);var e=P(2);Dg(e.selectedTeam,d)||(e.selectedTeam=d);return v(d)});N("valueChange",function(d){u(b);var e=P(2);return v(e.selectOption(d))});L();E(2,gTb,2,1,"ng-template",null,1,Og);K(4,"a",14);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});
M(5,"mat-icon",15);L()()}if(a&2){a=sg(3);var c=P(2);B();I("disabled",c.teamAction==="NONE");Cg("value",c.selectedTeam);I("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);B(3);Kf("href",c.getMomaTeamLink(),Pe)}},iTb=function(a){a&1&&F(0,hTb,6,6,"div",12);a&2&&(a=P(),G(a.teamOptions.length>0?0:-1))},jTb=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),Ag(a.buttonName))},
kTb=function(a){a&1&&Yf(0)},lTb=function(a){a&1&&E(0,kTb,1,0,"ng-container",47);a&2&&(P(),a=sg(96),I("ngTemplateOutlet",a))},nTb=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",Kg(8,mTb,b))("showInternalOnlyFieldBadge",!U(1,6,a.issueIsOnInternalComponent$)))},oTb=function(a){a&1&&(F(0,nTb,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)}},qTb=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:Jg(8,pTb))}},rTb=function(a){a&1&&(F(0,qTb,4,9,"div",49),
T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},sTb=function(a){a&1&&Yf(0)},tTb=function(a){a&1&&E(0,sTb,1,0,"ng-container",47);a&2&&(P(),a=sg(98),I("ngTemplateOutlet",a))},uTb=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(qu(e,d))})("keydown.enter",function(d){var e=u(c);qu(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);
qu(P(3),e);d.stopPropagation();return v(d.preventDefault())});Q(5);L()()}a&2&&(a=P(3),B(2),yg("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," "))},vTb=function(a){a&1&&(F(0,uTb,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)}},wTb=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))},xTb=function(a){a&1&&(M(0,"b-issue-card",56,16),T(2,"async"));if(a&2){a=sg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",U(2,2,b.canonicalIssueId$))}},zTb=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(yTb(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$))}},ATb=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",ws(a.documentationLinks)+"#expanded-access",Pe))},BTb=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,ATb,4,1,"ng-template",null,17,Og),L()());a&2&&(a=sg(7),B(3),I("panelTemplate",a))},CTb=function(a){a&1&&(K(0,"span",65),T(1,"async"),Q(2),L());if(a&2){a=P();var b=P(3);yg("disabled",!!U(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));B(2);S(" ",
a.displayText," ")}},DTb=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(qu(e,d))})("click",function(){var d=u(c),e=P(3);return v(qu(e,d))})("keydown.enter",function(d){var e=u(c);qu(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);qu(P(3),e);d.stopPropagation();return v(d.preventDefault())});M(2,"div",52);F(3,CTb,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))},ETb=function(a){a&1&&(F(0,DTb,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)}},FTb=function(a){a&1&&Yf(0)},GTb=function(a){a&1&&E(0,FTb,1,0,"ng-container",47);a&2&&(P(),a=sg(100),I("ngTemplateOutlet",a))},HTb=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")}},ITb=function(a,b){a&1&&(F(0,HTb,1,6,"b-list-field",44),T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},JTb=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$))}},KTb=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)")}},MTb=function(a,b){a&1&&(K(0,"div"),Yf(1,66),L());a&2&&(a=b.$implicit,P(),b=sg(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,LTb,a)))},NTb=function(a,b){a&1&&(K(0,"div"),Yf(1,66),L());a&2&&(a=b.$implicit,P(),b=sg(112),B(),I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Kg(2,LTb,a)))},OTb=function(a){a&1&&Yf(0)},PTb=function(a){a&1&&E(0,OTb,1,0,"ng-container",47);a&2&&(P(),a=sg(110),I("ngTemplateOutlet",a))},QTb=function(a){a&1&&M(0,"hr",45)},RTb=function(a){a&1&&Yf(0)},STb=function(a){a&1&&E(0,RTb,1,0,"ng-container",47);a&2&&(P(2),a=sg(96),I("ngTemplateOutlet",a))},TTb=function(a){a&1&&Yf(0)},UTb=function(a){a&1&&E(0,TTb,1,0,"ng-container",47);a&2&&(P(2),a=sg(98),I("ngTemplateOutlet",a))},VTb=function(a){a&1&&Yf(0)},WTb=function(a){a&
1&&E(0,VTb,1,0,"ng-container",47);a&2&&(P(2),a=sg(100),I("ngTemplateOutlet",a))},XTb=function(a,b){a&1&&(K(0,"div"),Yf(1,66),L());a&2&&(a=b.$implicit,P(2),b=sg(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,LTb,a)))},YTb=function(a){a&1&&Yf(0)},ZTb=function(a){a&1&&E(0,YTb,1,0,"ng-container",47);a&2&&(P(2),a=sg(110),I("ngTemplateOutlet",a))},$Tb=function(a){a&1&&(K(0,"collapsible-panel",46),T(1,"async"),F(2,STb,1,1,"ng-container"),T(3,"async"),F(4,UTb,1,1,"ng-container"),T(5,"async"),
F(6,WTb,1,1,"ng-container"),T(7,"async"),Qf(8,XTb,2,4,"div",null,t()[15][8].trackCustomField,!0),T(10,"async"),F(11,ZTb,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);Rf(U(10,14,a.hiddenCustomFields$));B(3);G(U(12,16,a.isForgottenFourPrimary$)?
-1:11)}},aUb=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)}},bUb=function(a){a&1&&E(0,aUb,6,19,"ng-template",67);a&2&&(a=P(2),I("refreshable",a.refreshMonitor.getObservable()))},dUb=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(cUb(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)))}},gUb=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),m=[],r=[];g=l(g.values);for(var w=g.next();!w.done;w=g.next()){w=w.value;var x=gr(w);x?m.push(x):r.push(w)}eUb(k.editIssueService,k.issueId,r);fUb(k.editIssueService,k.issueId,m);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",
Znb(a,f.sessionIsExternal))("listFieldDisabled",!!U(2,17,f.isSaving$(f.IssueFieldName.CHANGELISTS)));B(3);yg("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)||Jg(25,pTb))("tooltip",((e=U(6,23,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},
iUb=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(hUb(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)))}},
kUb=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(jUb(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)))}},
mUb=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(lUb(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)))}},
oUb=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(nUb(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)))}},pUb=function(a){a&1&&Yf(0)},qUb=function(a){a&1&&Yf(0)},rUb=
function(a){a&1&&Yf(0)},sUb=function(a){a&1&&Yf(0)},tUb=function(a){a&1&&(K(0,"div",20),E(1,pUb,1,0,"ng-container",47)(2,qUb,1,0,"ng-container",47)(3,rUb,1,0,"ng-container",47)(4,sUb,1,0,"ng-container",47),L());if(a&2){P();a=sg(102);var b=sg(104),c=sg(106),d=sg(108);B();I("ngTemplateOutlet",a);B();I("ngTemplateOutlet",b);B();I("ngTemplateOutlet",c);B();I("ngTemplateOutlet",d)}},vUb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",73);T(1,"async");T(2,"async");Cma();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);Gma(a);I("readonly",!U(1,5,d.hasAclToEdit$))("disabled",!!U(2,7,d.isSaving$(Kg(9,uUb,a.customFieldId))))}},HUb=function(a,b){if(a&1){var c=t();F(0,lTb,1,1,"ng-container");T(1,"async");F(2,oTb,2,3);F(3,rTb,2,3);T(4,"async");K(5,"b-single-user-control",18);T(6,"async");N("valueChange",function(x){u(c);var D=P();return v(wUb(D,x))})("emailChange",
function(x){u(c);var D=P();return v(xUb(D.editIssueService,D.issueId,x))});L();K(7,"b-edit-field",19,0);T(9,"async");T(10,"async");N("valueChange",function(x){u(c);var D=sg(8),H=P();return v(yUb(H,D,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=sg(13);return v(is(x,null,!0,!1))})("valueChange",function(x){u(c);var D=P();return v(zUb(D.editIssueService,D.issueId,x!=null?x:""))});L();F(16,tTb,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=sg(20);return v(is(x,null,!0,!1))})("valueChange",function(x){u(c);var D=P();return v(D.onStatusChanged(x!=null?x:""))});L();F(25,vTb,2,3);T(26,"async");L();F(27,wTb,9,12,"div",24);T(28,"async");K(29,"onedev-hovercard",null,3);E(31,xTb,3,4,"b-issue-card",25);L();F(32,zTb,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 D=P();return v(D.toggleAccessLimitsWithKeystroke(x))})("keydown.space",function(x){u(c);var D=P();return v(D.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,BTb,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=sg(62);return v(x.openEditor())})("valueChange",function(x){u(c);var D=P();return v(AUb(D,x))})("emailChange",function(x){u(c);var D=P();return v(BUb(D.editIssueService,D.issueId,x))});L();F(64,ETb,2,3);T(65,"async");K(66,"b-single-user-control",40);T(67,"async");N("valueChange",function(x){u(c);var D=P();
return v(CUb(D,x))})("emailChange",function(x){u(c);var D=P();return v(DUb(D.editIssueService,D.issueId,x))});L();Wf(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 D=P();return v(EUb(D,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(FUb(x))})("valueChange",function(x){u(c);var D=P();return v(GUb(D,x))});L();Xf();L();F(77,GTb,1,1,"ng-container");T(78,"async");F(79,ITb,2,3);T(80,"async");F(81,JTb,3,7,"b-staffing-row",43);F(82,KTb,1,6,"b-list-field",44);Qf(83,MTb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(85,"async");Qf(86,NTb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(88,"async");F(89,PTb,1,1,"ng-container");T(90,"async");F(91,QTb,1,0,"hr",45);T(92,"async");
F(93,$Tb,13,18,"collapsible-panel",46);T(94,"async");E(95,bUb,1,1,"ng-template",null,6,Og)(97,dUb,3,12,"ng-template",null,7,Og)(99,gUb,7,26,"ng-template",null,8,Og)(101,iUb,3,11,"ng-template",null,9,Og)(103,kUb,3,11,"ng-template",null,10,Og)(105,mUb,3,11,"ng-template",null,11,Og)(107,oUb,3,11,"ng-template",null,12,Og)(109,tUb,5,4,"ng-template",null,13,Og)(111,vUb,3,11,"ng-template",null,14,Og)}if(a&2){var d,e;a=sg(30);var f=sg(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 m;I("name","status")("title","Status")("type",g.FieldType.ENUM)("value",b.status)("choices",(m=U(21,113,g.statusChoices$))!=null?m:Jg(171,
pTb))("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);Ag(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);yg("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();Rf(U(85,161,g.visibleGlobalCustomFields$));B(3);Rf(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)}},IUb=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",Gg("/issues/",b),Pe),B(3),S(" ",
b," "))},JUb=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)},LUb=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(KUb(c))});M(3,"mat-icon",25);L()}a&2&&(a=P(),Kf("title",a.snapshot[0].title),B(),S(" ",a.snapshot[0].title,
" "))},NUb=function(a){if(a&1){var b=t();K(0,"button",31);N("click",function(){u(b);var c=P(3);return v(MUb(c))});Q(1,"Cancel");L()}},OUb=function(a){a&1&&Q(0," Update title ")},PUb=function(a){a&1&&Yf(0)},QUb=function(a){a&1&&E(0,PUb,1,0,"ng-container",32);a&2&&(P(3),a=sg(23),I("ngTemplateOutlet",a))},RUb=function(a){if(a&1){var b=t();K(0,"mat-form-field",26)(1,"textarea",27);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.draftTitle,c)||(d.draftTitle=c);return v(c)});L()();K(2,"div",28);F(3,
NUb,2,0,"button",29);K(4,"button",30);N("click",function(){u(b);var c=P(2);return v(c.saveTitle())});F(5,OUb,1,0)(6,QUb,1,1,"ng-container");L()()}a&2&&(a=P(2),B(),I("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),Cg("ngModel",a.draftTitle),I("bFocus",!0),B(2),G(a.isSavingTitle?-1:3),B(),I("disabled",a.isSavingTitle),B(),G(a.isSavingTitle?6:5))},SUb=function(a){a&1&&(K(0,"div",15)(1,"div",23),F(2,LUb,4,2),F(3,RUb,7,7),L()());a&2&&(a=P(),B(2),G(a.editTitleMode?-1:2),B(),G(a.editTitleMode?3:-1))},
TUb=function(a){a&1&&(K(0,"span"),Q(1," No update yet "),L())},UUb=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()}},VUb=function(a){a&1&&M(0,"mat-icon",46)},WUb=function(a){a&1&&M(0,"mat-icon",47)},XUb=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,VUb,1,0,"mat-icon",46);F(2,WUb,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))},YUb=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)}},ZUb=function(a){a&1&&(K(0,"div",51),F(1,YUb,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)}},$Ub=function(a){a&1&&(F(0,ZUb,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)}},aVb=function(a){a&1&&(K(0,"span"),Q(1," No description yet "),L())},cVb=function(a){if(a&1){var b=t();K(0,"button",56);N("click",function(){u(b);var c=P(3);return v(bVb(c))});M(1,"mat-icon",25);L()}},dVb=function(a){a&1&&M(0,"mat-icon",46)},eVb=function(a){a&1&&M(0,"mat-icon",47)},fVb=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,dVb,1,0,"mat-icon",46);F(2,eVb,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))},gVb=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)}},hVb=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()()}},iVb=function(a){a&1&&(K(0,"div",58),F(1,gVb,2,6,"b-note-container",52),T(2,"async"),T(3,"async"),L(),F(4,hVb,3,0,"div",59));if(a&2){var b;a=P(4);yg("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)}},jVb=function(a){a&
1&&(K(0,"div",55,3),F(2,iVb,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)}},kVb=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,aVb,2,0,"span"),T(7,"async"),F(8,cVb,2,0,"button",53),T(9,"async"),T(10,"async"),F(11,fVb,3,3,"button",54),T(12,"async"),L()(),F(13,jVb,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))},lVb=function(a){a&1&&Yf(0)},mVb=function(a){a&1&&E(0,lVb,1,0,"ng-container",32);a&2&&(P(2),a=sg(23),I("ngTemplateOutlet",a))},nVb=function(a){a&1&&Q(0," 1 suggestion available ")},oVb=function(a){a&1&&Q(0," 2 suggestions available ")},pVb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=dg(26),B(),I("recommendation",a)("showTitle",
!0))},qVb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=dg(23),B(),I("recommendation",a)("showTitle",!0))},rVb=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,nVb,1,0)(8,oVb,1,0),L()(),F(9,pVb,2,2,"div",62),F(10,qVb,2,2,"div",62),L());if(a&2){P();a=dg(25);var b=dg(26);B(7);G(a&&b?8:7);B(2);G(b?9:-1);B();G(a?10:-1)}},sVb=function(a){a&1&&M(0,"mat-icon",46)},tVb=function(a){a&1&&M(0,
"mat-icon",47)},uVb=function(a){a&1&&(K(0,"div",48),M(1,"edit-issue-metadata",64),L());a&2&&(a=P(),B(),I("issueId",a.issueId))},vVb=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,TUb,2,0,"span");T(12,"async");F(13,UUb,2,0,"button",39);T(14,"async");T(15,"async");F(16,XUb,3,3,"button",40);T(17,"async");L()();F(18,$Ub,2,3);T(19,"async");L();
F(20,kVb,14,12,"div",41);T(21,"async");Nf(22,mVb,1,1,"ng-container");bg(23);T(24,"async");bg(25)(26);T(27,"async");F(28,rVb,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,sVb,1,0,"mat-icon",46);F(37,tVb,1,0,"mat-icon",47);L()();F(38,uVb,2,1,"div",48);L()()}if(a&2){var c,d,e=sg(2);a=P();B();yg("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=cg(U(24,27,a.playbookRecommendation$));B(2);c=cg(a.isPlaybookEnabled&&!!c);B();d=cg(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)}},wVb=function(a){a&1&&Yf(0)},xVb=function(a){a&1&&E(0,wVb,1,0,"ng-container",32);a&2&&(P(),a=sg(23),I("ngTemplateOutlet",a))},yVb=function(a){a&1&&(K(0,"div",65),M(1,"b-spinner"),L())},zVb=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))},AVb=function(a){a&1&&Q(0," This issue is retained indefinitely. ")},BVb=function(a){a&1&&(F(0,zVb,6,6)(1,AVb,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))},CVb=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))},DVb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=qo(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||0)/1E6:0))},GVb=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(EVb(d))})("navigateToPreviousIssue",function(){u(b);var d=P(2);return v(FVb(d))});L()}if(a&2){var c;a=P(2);I("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},HVb=function(a){a&1&&Yf(0)},IVb=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,GVb,1,1,"issue-sidebar",8);L();K(4,"mat-sidenav-content");E(5,HVb,1,0,"ng-container",9);L()()}if(a&2){a=P();var c=sg(4);yg("sidebar-enabled",a.isIssueSidebarEnabled);B(2);I("opened",a.isIssueSidebarOpen)("disableClose",!0);B();G(a.isIssueSidebarOpen?3:-1);B(2);I("ngTemplateOutlet",c)}},JVb=function(a){a&1&&Yf(0)},KVb=function(a){a&1&&E(0,JVb,1,0,"ng-container",9);a&2&&(P(),a=sg(4),I("ngTemplateOutlet",a))},LVb=function(a,b){a&1&&M(0,"th",32);a&2&&Kf("data-stable-column-name",
b.column.name)},MVb=function(a,b){a&1&&M(0,"th",33);a&2&&Kf("data-stable-column-name",b.column.name)},QVb=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(NVb(d))})("keydown.enter",function(c){u(b);var d=P(3);c.stopPropagation();return v(NVb(d))})("keydown.space",function(c){u(b);var d=P(3);c.stopPropagation();return v(NVb(d))});L()}a&2&&(a=P(3),I("state",OVb(a)),Kf("aria-checked",PVb(a)))},RVb=function(a,b){a&1&&(K(0,"th",
34),F(1,QVb,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))},SVb=function(a,b){a&1&&M(0,"th");a&2&&Kf("data-stable-column-name",b.column.name)},TVb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P().column,I("column",a))},UVb=function(a,b){a&1&&(K(0,"th"),F(1,TVb,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))},VVb=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)}},WVb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P(2).column,I("column",a))},XVb=function(a){a&1&&F(0,VVb,1,3,"b-column-picker",38)(1,WVb,1,1,"pop-grid-default-th",37);a&2&&(a=P(3),G(a.enableColumnSaving?0:
1))},YVb=function(a,b){a&1&&(K(0,"th"),F(1,XVb,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))},ZVb=function(a){a&1&&M(0,"td",32)},$Vb=function(a){a&1&&M(0,"td",40)},aWb=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=l(f.searchResults.issues.slice(g,k));for(k=g.next();!k.done;k=g.next())k.value.selected=!c;ru(f)}e.selected=!e.selected;f.lastCheckedIndex=d;ru(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))},bWb=function(a){a&1&&(K(0,"td",34),F(1,aWb,1,3,"mat-pseudo-checkbox",41),L());a&2&&(P(2),B(),G(1))},cWb=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")}},dWb=function(a){a&1&&(K(0,"td",43),F(1,cWb,1,4,"b-star-toggle",44),L());a&2&&(P(2),B(),G(1))},eWb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().row,Kf("title",a.position),B(),S(" ",a.position," "))},fWb=function(a){a&1&&(K(0,"td"),F(1,eWb,2,2,"span"),L());a&2&&
(P(2),B(),G(1))},gWb=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))},hWb=function(a){a&1&&(K(0,"a",48),Q(1),L());a&2&&(a=P(2).row,P(2),I("href",Cs(a.issueId),Pe),Kf("title",a.title),B(),S(" ",a.issueId," "))},iWb=function(a){a&1&&F(0,gWb,1,3,"b-issue-id-picker",47)(1,hWb,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))},jWb=function(a){a&1&&(K(0,"td",46),F(1,iWb,2,1),L());a&2&&(P(2),B(),G(1))},kWb=function(a){a&1&&M(0,"archived-issue-indicator")},lWb=function(a){a&1&&M(0,"mat-icon",58)},nWb=function(a){if(a&1){var b=t();K(0,"b-sidebar-toggle",62);N("onClick",function(){u(b);var d=P(4);return v(mWb(d))});L()}if(a&2){a=P(2).index;var c=P(2);I("isParentRowActive",c.hoveredRowIndex===a||c.focusedRowIndex===a&&c.isIssueSidebarOpen)}},oWb=function(a,b){a&1&&M(0,
"b-hotlist-chip-smart",63);a&2&&I("id",b.$implicit)("removable",!1)},pWb=function(a){a&1&&(K(0,"div",60),Qf(1,oWb,1,2,"b-hotlist-chip-smart",63,Pf),L());a&2&&(a=P(2).row,B(),Rf(a.hotlistId))},qWb=function(a){if(a&1){var b=t();K(0,"recommendation-chip",65);N("onClick",function(){u(b);var e=P(5);mWb(e);return v()});L()}if(a&2){P();a=dg(1);var c=P(2).index,d=P(2);I("recommendation",a)("isParentRowActive",d.hoveredRowIndex===c||d.focusedRowIndex===c&&d.isIssueSidebarOpen)}},rWb=function(a){a&1&&(K(0,
"div",61),bg(1),F(2,qWb,1,2,"recommendation-chip",64),L());if(a&2){a=P(2).row;P();var b=dg(1);B();a=cg(b.get(a.issueId));B();G(a?2:-1)}},sWb=function(a){a&1&&(K(0,"div",52),F(1,kWb,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,lWb,1,0,"mat-icon",58),L(),F(9,nWb,1,1,"b-sidebar-toggle",59),L(),F(10,pWb,3,0,"div",60),F(11,rWb,3,2,"div",61),L());if(a&2){a=P().row;P();var b=dg(1),c=P();yg("bv2-grid-cell-flex-wrap",
c.listViewPrefs&&c.listViewPrefs.wrapTitles)("no-padding",c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled)("align-items-center",c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled);B();G(a.archived?1:-1);B();I("issueId",a.issueId)("compactMode",!0);B();I("trackerId",a.trackerId)("compactMode",!0);B();I("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);I("href",Cs(a.issueId),Pe);Kf("title",a.title);B();S(" ",a.title," ");B();G(c.isIssueSidebarEnabled&&
!c.isSidebarIlpIconEnabled?8:-1);B();G(c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled?9:-1);B();G(c.listViewPrefs&&c.listViewPrefs.showHotlists?10:-1);B();G(c.isPlaybookEnabled&&b?11:-1)}},tWb=function(a){a&1&&(K(0,"td",50),F(1,sWb,12,22,"div",51),L());a&2&&(a=P(2),yg("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles)("bv2-grid-cell-recommendation",a.isPlaybookEnabled),B(),G(1))},uWb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=P().row,P(2),yg("low",Number(a.priority)>=
2)("high",Number(a.priority)<2)("p0",Number(a.priority)===0),B(),S(" P",a.priority," "))},vWb=function(a){a&1&&(K(0,"td",66),F(1,uWb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},wWb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=P().row,P(2),yg("low",Number(a.severity)>=2)("high",Number(a.severity)<2)("p0",Number(a.severity)===0),B(),S(" S",a.severity," "))},xWb=function(a){a&1&&(K(0,"td",69),F(1,wWb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},yWb=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:"")}},zWb=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:""," ")}},AWb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(4);zg(Gg("chippy status-",a," margin-left-auto"));B();var c;S(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},BWb=function(a,b){a&1&&(K(0,"span",71),F(1,yWb,1,1,"mat-icon",72)(2,zWb,1,1)(3,AWb,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)}},CWb=function(a){a&1&&F(0,BWb,4,2,"span",71);if(a&2){var b;a=P().row;G((b=a.status)?0:-1,b)}},DWb=function(a){a&1&&(K(0,"td",70),F(1,CWb,1,1),L());a&2&&(P(2),B(),G(1))},EWb=function(a){a&1&&(Q(0),T(1,"enumToHuman"));a&2&&(a=P().row,
S(" ",U(1,1,a.type)," "))},FWb=function(a){a&1&&(K(0,"td",74),F(1,EWb,2,3),L());a&2&&(P(2),B(),G(1))},GWb=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," "))},HWb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},IWb=function(a){a&1&&(F(0,GWb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,HWb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.reporter)?0:-1),B(2),G(a.reporter?-1:2))},JWb=function(a){a&
1&&(K(0,"td",75),F(1,IWb,3,4),L());a&2&&(P(2),B(),G(1))},KWb=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," "))},LWb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},MWb=function(a){a&1&&(F(0,KWb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,LWb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.assignee)?0:-1),B(2),G(a.assignee?-1:2))},NWb=function(a){a&1&&(K(0,"td",75),F(1,MWb,3,4),L());a&2&&
(P(2),B(),G(1))},OWb=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," "))},PWb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},QWb=function(a){a&1&&(F(0,OWb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,PWb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.verifier)?0:-1),B(2),G(a.verifier?-1:2))},RWb=function(a){a&1&&(K(0,"td",75),F(1,QWb,3,4),L());a&2&&(P(2),B(),G(1))},SWb=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)," "))},TWb=function(a){a&1&&(K(0,"td",75),F(1,SWb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},UWb=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)," "))},VWb=function(a){a&1&&(K(0,"td",75),F(1,UWb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},WWb=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)," "))},XWb=function(a){a&1&&(K(0,"td",75),F(1,WWb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},YWb=function(a){a&1&&Yf(0)},ZWb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},aXb=function(a,b){a&1&&(E(0,YWb,1,0,"ng-container",77),F(1,ZWb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=sg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(3,$Wb,a));B();
G(c!==b-1?1:-1)}},bXb=function(a){a&1&&Qf(0,aXb,2,5,null,null,Pf);a&2&&(a=P().row,Rf(a.blockingIssueId))},cXb=function(a){a&1&&(K(0,"td",75),F(1,bXb,2,0),L());a&2&&(P(2),B(),G(1))},dXb=function(a){a&1&&Yf(0)},eXb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},fXb=function(a,b){a&1&&(E(0,dXb,1,0,"ng-container",77),F(1,eXb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=sg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(3,$Wb,a));B();G(c!==b-1?1:-1)}},gXb=function(a){a&
1&&Qf(0,fXb,2,5,null,null,Pf);a&2&&(a=P().row,Rf(a.blockedByIssueId))},hXb=function(a){a&1&&(K(0,"td",75),F(1,gXb,2,0),L());a&2&&(P(2),B(),G(1))},iXb=function(a){a&1&&Yf(0)},jXb=function(a){a&1&&E(0,iXb,1,0,"ng-container",77);if(a&2){a=P(2).row;P(2);var b=sg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,$Wb,a.duplicateOfIssueId))}},kXb=function(a){a&1&&F(0,jXb,1,4,"ng-container");a&2&&(a=P().row,G(a.duplicateOfIssueId?0:-1))},lXb=function(a){a&1&&(K(0,"td",75),F(1,kXb,1,1),L());a&2&&(P(2),
B(),G(1))},mXb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.createdTime))},nXb=function(a){a&1&&(K(0,"td",78),F(1,mXb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},oXb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.modifiedTime))},pXb=function(a){a&1&&(K(0,"td",78),F(1,oXb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},qXb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.resolvedTime))},
rXb=function(a){a&1&&(K(0,"td",78),F(1,qXb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},sXb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.verifiedTime))},tXb=function(a){a&1&&(K(0,"td",78),F(1,sXb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},uXb=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)," "))},vXb=function(a){a&
1&&(K(0,"td",75),F(1,uXb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},wXb=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)," "))},xXb=function(a){a&1&&(K(0,"td",75),F(1,wXb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},yXb=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),
" "))},zXb=function(a){a&1&&(K(0,"td",75),F(1,yXb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},AXb=function(a){a&1&&(Q(0),T(1,"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.inProd)," "))},BXb=function(a){a&1&&(K(0,"td",75),F(1,AXb,2,3),L());a&2&&(P(2),B(),G(1))},CXb=function(a){a&1&&(Q(0),T(1,"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.archived)," "))},DXb=function(a){a&1&&(K(0,"td",75),F(1,CXb,2,3),L());a&2&&(P(2),B(),G(1))},EXb=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();Ag(b.getComponentPath(a.componentPath))}},FXb=function(a){a&1&&(K(0,"td",80),F(1,EXb,4,2,"div",52),L());if(a&2){var b=P(2);a=yg("bv2-grid-cell-variable-height",b.listViewPrefs&&b.listViewPrefs.wrapComponents);var c;b=!((c=b.listViewPrefs)==null||!c.rtlComponentPath);a("rtl-component-path",b);B();G(1)}},GXb=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))},HXb=function(a){a&1&&F(0,GXb,2,5,"slo-status-card",82);a&2&&(a=P().row,G(a.sloStatus?0:-1))},IXb=function(a){a&1&&(K(0,"td",81),F(1,HXb,1,1),L());a&2&&(P(2),B(),G(1))},JXb=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))},
KXb=function(a){a&1&&F(0,JXb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},LXb=function(a){a&1&&(K(0,"td",81),F(1,KXb,1,1),L());a&2&&(P(2),B(),G(1))},MXb=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))},NXb=function(a){a&1&&F(0,MXb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?
0:-1))},OXb=function(a){a&1&&(K(0,"td",81),F(1,NXb,1,1),L());a&2&&(P(2),B(),G(1))},PXb=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))},QXb=function(a){a&1&&F(0,PXb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},RXb=function(a){a&1&&(K(0,"td",81),F(1,QXb,1,1),L());a&2&&(P(2),B(),G(1))},
SXb=function(a,b){a&1&&M(0,"b-formatted-date-time",86);a&2&&(P(4),I("timestamp",b.seconds*1E3))},TXb=function(a){a&1&&F(0,SXb,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)}},UXb=function(a){a&1&&(K(0,"td",75),F(1,TXb,1,1),L());a&2&&(P(2),B(),G(1))},VXb=function(a){a&1&&M(0,"div",87)},WXb=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))},XXb=function(a){a&1&&F(0,VXb,1,0,"div",87)(1,WXb,2,3,"div");a&2&&(a=P(3),G(a.isLoadingTeams?0:1))},YXb=function(a){a&1&&(K(0,"td",75),F(1,XXb,2,1),L());a&2&&(P(2),B(),G(1))},ZXb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.effort==null?null:a.effort.estimate," "))},$Xb=function(a){a&1&&(K(0,"td",75),F(1,ZXb,1,1),L());a&2&&(P(2),B(),G(1))},aYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",(a.effort==null?null:a.effort.totalOpen)||""," "))},bYb=function(a){a&
1&&(K(0,"td",75),F(1,aYb,1,1),L());a&2&&(P(2),B(),G(1))},cYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",(a.effort==null?null:a.effort.totalComplete)||""," "))},dYb=function(a){a&1&&(K(0,"td",75),F(1,cYb,1,1),L());a&2&&(P(2),B(),G(1))},eYb=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)," ")}},fYb=function(a){a&1&&(K(0,"td",81),F(1,eYb,1,1),L());a&2&&(P(2),B(),G(1))},gYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.descendantCount," "))},
hYb=function(a){a&1&&(K(0,"td",75),F(1,gYb,1,1),L());a&2&&(P(2),B(),G(1))},iYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.openDescendantCount," "))},jYb=function(a){a&1&&(K(0,"td",75),F(1,iYb,1,1),L());a&2&&(P(2),B(),G(1))},kYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.oneDayViewCount," "))},lYb=function(a){a&1&&(K(0,"td",75),F(1,kYb,1,1),L());a&2&&(P(2),B(),G(1))},mYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.sevenDayViewCount," "))},nYb=function(a){a&1&&(K(0,"td",75),F(1,mYb,1,1),L());
a&2&&(P(2),B(),G(1))},oYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.thirtyDayViewCount," "))},pYb=function(a){a&1&&(K(0,"td",75),F(1,oYb,1,1),L());a&2&&(P(2),B(),G(1))},qYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},rYb=function(a){a&1&&(K(0,"td",75),F(1,qYb,1,1),L());a&2&&(P(2),B(),G(1))},sYb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.position," "))},tYb=function(a){a&1&&(K(0,"td",75),F(1,sYb,1,1),L());a&2&&(P(2),B(),G(1))},uYb=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," "))},vYb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},wYb=function(a){a&1&&(F(0,uYb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,vYb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.escalationOwner)?0:-1),B(2),G(a.escalationOwner?-1:2))},xYb=function(a){a&1&&(K(0,"td",75),F(1,wYb,3,4),L());a&2&&(P(2),B(),G(1))},zYb=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 m;e=(m=e==null?void 0:e.closest(".recommendation-chip"))!=null?m:!1;g&&!e||f||pq(c.event)||!d.isIssueSidebarEnabled?d.rowClick.emit(c):mWb(d);return v()});bg(1);T(2,"async");E(3,LVb,1,1,"th",12)(4,MVb,1,1,"th",13)(5,RVb,2,2,"th",14)(6,SVb,1,1,"th",15)(7,UVb,2,2,"th",15)(8,YVb,2,2,"th",16)(9,ZVb,1,0,"td",17)(10,$Vb,1,0,"td",18)(11,bWb,2,1,"td",19)(12,dWb,2,1,"td",20)(13,fWb,2,1,"td",21)(14,jWb,2,1,"td",22)(15,tWb,2,5,"td",
23)(16,vWb,2,1,"td",24)(17,xWb,2,1,"td",25)(18,DWb,2,1,"td",26)(19,FWb,2,1,"td",27)(20,JWb,2,1,"td",28)(21,NWb,2,1,"td",28)(22,RWb,2,1,"td",28)(23,TWb,2,1,"td",28)(24,VWb,2,1,"td",28)(25,XWb,2,1,"td",28)(26,cXb,2,1,"td",28)(27,hXb,2,1,"td",28)(28,lXb,2,1,"td",28)(29,nXb,2,1,"td",29)(30,pXb,2,1,"td",29)(31,rXb,2,1,"td",29)(32,tXb,2,1,"td",29)(33,vXb,2,1,"td",28)(34,xXb,2,1,"td",28)(35,zXb,2,1,"td",28)(36,BXb,2,1,"td",28)(37,DXb,2,1,"td",28)(38,FXb,2,5,"td",30)(39,IXb,2,1,"td",31)(40,LXb,2,1,"td",31)(41,
OXb,2,1,"td",31)(42,RXb,2,1,"td",31)(43,UXb,2,1,"td",28)(44,YXb,2,1,"td",28)(45,$Xb,2,1,"td",28)(46,bYb,2,1,"td",28)(47,dYb,2,1,"td",28)(48,fYb,2,1,"td",31)(49,hYb,2,1,"td",28)(50,jYb,2,1,"td",28)(51,lYb,2,1,"td",28)(52,nYb,2,1,"td",28)(53,pYb,2,1,"td",28)(54,rYb,2,1,"td",28)(55,tYb,2,1,"td",28)(56,xYb,2,1,"td",28);L()}a&2&&(a=P(),yg("sidebar-open",a.isIssueSidebarOpen),I("list",(a.searchResults==null?null:a.searchResults.issues)||Jg(64,yYb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",
".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),B(),cg(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"))},AYb=function(a){a&1&&M(0,"b-issue-card",91,4);if(a&2){a=sg(1);
var b=P().id;I("onedevIsHovercardReady",a.init)("issueId",b)}},BYb=function(a,b){a&1&&(K(0,"onedev-hovercard",null,3),E(2,AYb,2,2,"b-issue-card",89),L(),K(3,"span",90),Q(4),L());a&2&&(a=b.id,b=sg(1),B(3),I("onedevHovercardTrigger",b),B(),Ag(a))},CYb=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",YOb(a))}},EYb=function(a){a&1&&M(0,"playbook-controls",4);a&2&&(a=P(),I("issueIds",DYb(a)))},FYb=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($Ob(c.copyIssueIdService,
nu(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(aPb(c.copyIssueIdService,nu(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(bPb(c.copyIssueIdService,nu(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},GYb=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))},HYb=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))},IYb=function(a){a&1&&M(0,"hotlist-archive-btn",13);a&2&&(a=P(2),I("hotlistId",
a.currentHotlistId))},JYb=function(a){a&1&&(F(0,HYb,1,1,"hotlist-add-issue-btn",13),F(1,IYb,1,1,"hotlist-archive-btn",13));a&2&&(a=P(),G(a.enableBulkEditUi?0:-1),B(),G(a.isHotlistAdmin?1:-1))},KYb=function(a){a&1&&(K(0,"span",17),Q(1,"Reporting"),L())},LYb=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,KYb,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))},MYb=function(a){if(a&1){var b=t();K(0,"b-comment-box",24);Eg("commentChange",function(c){u(b);var d=P(2);Dg(d.comment,c)||(d.comment=c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(ePb(c))});L()}a&2&&(a=P(2),Cg("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},NYb=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()()}},
OYb=function(a){a&1&&(K(0,"h1",18),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,MYb,1,3,"b-comment-box",19),M(4,"b-external-warnings",20),L(),F(5,NYb,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))},PYb=
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"))},QYb=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)}},RYb=function(a,b){a&1&&Q(0);a&2&&S(" ",b.name," ")},SYb=function(a){a&1&&(K(0,"strong",2),Q(1,"(archived)"),L())},TYb=function(a){a&1&&M(0,"b-spinner")},UYb=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)}},VYb=function(a){a&1&&(K(0,"p",6),Q(1,
" This hotlist cannot be edited because you are not an administrator of it. "),L())},WYb=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,VYb,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))},XYb=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),Ag(b))},YYb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),Q(2),L()());a&2&&(a=P(),B(2),Ag(a.error))},ZYb=function(a){a&1&&(Wf(0),Q(1,", "),Xf())},$Yb=function(a,b){a&1&&(Q(0),F(1,ZYb,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)}},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.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);Qf(8,$Yb,2,2,null,null,Pf);L();K(10,"td",12);Q(11);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=
P();yg("grid-focus",d.isFocused(b));Kf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);I("href",As.editHotlist.makeHref(a.hotlistId),Pe);B();S(" ",a.name," ");B(2);S(" ",a.description," ");B(2);Rf(a.adminUsers);B(3);S(" ",a.hotlistId," ")}},bZb=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()}},cZb=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()}},dZb=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()}},eZb=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()}},fZb=function(a){if(a&1){var b=
t();F(0,bZb,2,0,"button",4);F(1,cZb,2,0,"button",5);F(2,dZb,2,0,"button",6);F(3,eZb,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))},gZb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),Kf("title",a.getValue()),B(),S(" ",a.getValue()," "))},hZb=function(a){a&1&&M(0,"b-custom-field-value-display",0);a&2&&(a=P(),I("customFieldValue",a.getCustomFieldValue()))},
iZb=function(a){a&1&&M(0,"edit-issue-metadata",4);a&2&&(a=P(),I("issueId",a.issueId))},jZb=function(a){a&1&&M(0,"b-actions-menu",1);a&2&&(a=P(),I("menuItems",a.menuItems))},kZb=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),Bg("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),B(3),Ag(a.searchResults.totalText))},lZb=function(a){a&1&&(K(0,"div"),Q(1," Hotlist not found. "),L())},mZb=function(a){a&1&&(K(0,"div"),
Q(1," Loading details... "),L())},nZb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},oZb=function(a){a&1&&(K(0,"span",9),Q(1," \u00a0(changed) "),L())},pZb=function(a){a&1&&(K(0,"div"),F(1,nZb,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,oZb,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",Fg(a.resource.description)),
B(),Ag(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},qZb=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()()}},rZb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S("Searching for ",a.searchParams.query," ..."))},sZb=function(a){a&1&&(K(0,"div",12),M(1,"b-spinner",15),F(2,rZb,2,1,"span"),L());
a&2&&(a=P(2),B(),I("large",!1),B(),G(a.searchParams&&a.searchParams.query?2:-1))},tZb=function(a){a&1&&(K(0,"div",13),Q(1," No issues in hotlist. "),L())},vZb=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(uZb(d,c))});Eg("focusedRowIndexChange",function(c){u(b);var d=P(2);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(2);Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",
function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){u(b);var d=P(2);return v(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",
a.issueColumns),I("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},wZb=function(a){a&1&&(K(0,"div"),F(1,sZb,3,2,"div",12),F(2,tZb,2,0,"div",13),F(3,vZb,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))},xZb=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),
L())},yZb=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},zZb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},AZb=function(a){a&1&&(K(0,"span",8),Q(1," \u00a0(changed) "),L())},BZb=function(a){a&1&&(K(0,"div",3),F(1,zZb,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,AZb,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",Fg(a.resource.description)),B(),Ag(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},CZb=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("Searching for ",b,"..."))},DZb=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",12),F(2,CZb,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)}},EZb=function(a){a&1&&(K(0,"div",10),Q(1," No issues in saved search. "),L())},FZb=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(uZb(d,c))});Eg("focusedRowIndexChange",function(c){u(b);var d=P(2);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)});N("columnsChange",function(c){u(b);var d=P(2);return v(d.columnsChange(c))})("sortChange",function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+
1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex),I("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},GZb=function(a){a&1&&(K(0,"div"),F(1,DZb,3,2,"div",9),F(2,EZb,2,0,"div",10),F(3,FZb,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))},HZb=function(a,b){a&1&&(K(0,"span",2)(1,"a",3),Q(2),L()());a&2&&(a=b.$implicit,B(),I("routerLink",Gg("/teams/",a.id,"/edit"))("preserveFragment",!0),B(),Ag(a.name))},IZb=function(a){a&1&&M(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),I("innerHTML",a.menuLabel,Oe))},JZb=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()()())},KZb=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()()())},LZb=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," "))},MZb=function(a){a&1&&(K(0,"span",3),Q(1," (must be between 30 days and 20 years) "),L())},OZb=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);
su(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 ",NZb(a.model.retentionPeriodDays),". "))},PZb=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()()())},QZb=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()()())},RZb=function(a){a&1&&(K(0,"span",3),Q(1," (Issue Retention is shorter than default Restricted Retention) "),
L())},TZb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),S(" ",SZb(a)," "))},UZb=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()())},XZb=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);su(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);su(d);return v()});L()();K(12,"div",16)(13,
"p");Q(14);L()();F(15,UZb,3,0,"div",18);L()}a&2&&(a=P(),B(4),I("disabled",!VZb(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 ",NZb(a.model.piiRetentionPeriodDays),". "),B(4),I("disabled",!VZb(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 ",
NZb(a.model.spiiRetentionPeriodDays),". "),B(),G(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&WZb(a)?15:-1))},YZb=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()())},ZZb=function(a,b,c){a=
tu(a.slice(b),c,"[()|]","[()|,\\s]");a.idx+=b;return a},tu=function(a,b,c,d){var e=$Zb(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}},$Zb=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},uu=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},a_b=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,
token:a}},vu=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e=b.val.toLowerCase();a=a.filter(function(m){m=m.name.toLowerCase();return m!==e||d?c?m.startsWith(e):za(m,e):!1});b=b.idx;for(var f=b+e.length,g=l(a),k=g.next();!k.done;k=g.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},wu=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}}},b_b=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," "))},c_b=function(a){a&1&&(K(0,"div",8),Q(1),L());a&2&&(a=P(),B(),S(" ",a.errorString," "))},d_b=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(2),B(),Bg(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},e_b=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},g_b=function(a){a&1&&(K(0,"span"),F(1,
e_b,2,0,"span"),K(2,"span"),Q(3),L()());a&2&&(a=P(2),B(),G(a.objectiveBusinessDays?1:-1),B(2),Bg("",a.intervalString," ",f_b(a,a.intervalUnit)))},h_b=function(a){a&1&&(K(0,"span",0),F(1,d_b,2,2,"span",2),F(2,g_b,4,3,"span"),L());a&2&&(a=P(),B(),G(a.objectiveBusinessDays?1:-1),B(),G(a.intervalString&&a.intervalString!="0"?2:-1))},j_b=function(a){if(a&1){var b=t();K(0,"span",3)(1,"input",4);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.businessDayString,c)||(d.businessDayString=c);return v(c)});
N("ngModelChange",function(){u(b);var c=P(2);return v(i_b(c))});L();K(2,"span",7);Q(3,"days,");L()()}a&2&&(a=P(2),B(),yg("ng-invalid",!!a.errorString),Cg("ngModel",a.businessDayString))},k_b=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(" ",f_b(b,a)," "))},r_b=function(a){if(a&1){var b=t();K(0,"span",1);F(1,j_b,4,3,"span",3);K(2,"span",3)(3,"input",4);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.intervalString,c)||(d.intervalString=c);return v(c)});
N("ngModelChange",function(){u(b);var c=P();return v(i_b(c))});L();K(4,"mat-select",5);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.intervalUnit,c)||(d.intervalUnit=c);return v(c)});N("selectionChange",function(){u(b);var c=P();l_b(c);m_b(c);return v()});Qf(5,k_b,2,2,"mat-option",6,Pf);L()()()}a&2&&(a=P(),B(),G(n_b(a)?1:-1),B(2),yg("invalid",!!a.errorString),Cg("ngModel",a.intervalString),B(),Cg("ngModel",a.intervalUnit),B(),Rf(n_b(a)?[o_b,p_b]:[o_b,p_b,q_b]))},t_b=function(a){if(a&1){var b=
t();K(0,"b-icon",22);N("click",function(){u(b);var c=P(2);return v(s_b(c,0))});L()}a&2&&I("name","add")("size","small")},v_b=function(a){if(a&1){var b=t();K(0,"span",5)(1,"span",18)(2,"span",19);F(3,t_b,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(u_b(d,c))});L()()()()}a&2&&(a=P(),B(3),G(a.canPerformActions?3:-1),B(2),I("name","delete")("size","small"))},w_b=function(a){a&1&&M(0,"td",26)},x_b=function(a){a&1&&M(0,"td",27)},y_b=function(a){if(a&1){var b=
t();K(0,"td",28)(1,"slo-element-property-picker",42);Eg("optionsChange",function(c){u(b);var d=P().$implicit;Dg(d.typePickerValues,c)||(d.typePickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any type")("validator",a.validateTypePicker),Cg("options",a.typePickerValues))},z_b=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},A_b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a))},
C_b=function(a){a&1&&(K(0,"span",43),Qf(1,A_b,3,1,"span",44,Pf),L());if(a&2){a=P(2).$implicit;B();if(a.parseResult.types.length===0)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(B_b(a.controllerReference,d));a=b}Rf(a)}},D_b=function(a){a&1&&(K(0,"td",29),F(1,z_b,2,1,"div")(2,C_b,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},E_b=function(a){if(a&
1){var b=t();K(0,"td",30)(1,"slo-element-property-picker",46);Eg("optionsChange",function(c){u(b);var d=P().$implicit;Dg(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any priority")("validator",a.validatePriorityPicker),Cg("options",a.priorityPickerValues))},F_b=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},G_b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());
a&2&&(a=b.$implicit,B(2),Ag(a))},I_b=function(a){a&1&&(K(0,"span",43),Qf(1,G_b,3,1,"span",44,Pf),L());if(a&2){a=P(2).$implicit;B();if(a.parseResult.priorities.length===0)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(H_b(a.controllerReference,d));a=b}Rf(a)}},J_b=function(a){a&1&&(K(0,"td",31),F(1,F_b,2,1,"div")(2,I_b,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),
G(a.parseResult.error?1:2))},K_b=function(a){if(a&1){var b=t();K(0,"td",32)(1,"slo-element-property-picker",47);Eg("optionsChange",function(d){u(b);var e=P().$implicit;Dg(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return v(d)});L()()}if(a&2){a=P().$implicit;var c=P(2);B();I("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);Cg("options",a.postmortemPickerValues)}},L_b=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},
M_b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a))},N_b=function(a){a&1&&(K(0,"span",43),Qf(1,M_b,3,1,"span",44,Pf),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])];Rf(a)}},O_b=function(a){a&1&&(K(0,"td",33),F(1,L_b,2,1,"div")(2,N_b,3,0,"span",43),L());a&2&&(a=P().$implicit,
B(),G(a.parseResult.error?1:2))},Q_b=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(" ",P_b(a)," "))},R_b=function(a){if(a&1){var b=t();K(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);Eg("ngModelChange",function(d){u(b);var e=P().$implicit;Dg(e.selectedMetric,d)||(e.selectedMetric=d);return v(d)});Qf(3,Q_b,2,2,"mat-option",50,Pf);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Cg("ngModel",a.selectedMetric);I("customValidators",a.metricValidators);
B();Rf(c.metricChoices)}},S_b=function(a){a&1&&(K(0,"td",35),Q(1),L());a&2&&(a=P().$implicit,P(2),B(),S(" ",P_b(a.sloElement.metric)," "))},T_b=function(a){if(a&1){var b=t();K(0,"td",36)(1,"slo-objective-selector",51);Eg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Cg("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("validator",a.validateObjective)("isDisabled",!1))},U_b=function(a){if(a&1){var b=t();K(0,"td",37)(1,"slo-objective-selector",52);Eg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);
var d=P().$implicit;Dg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Cg("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("isDisabled",!a.isEditing()))},W_b=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(" ",V_b.get(a||"CALENDAR")," "))},X_b=function(a){if(a&1){var b=t();K(0,"td",38)(1,"mat-form-field",
48)(2,"mat-select",53);Eg("ngModelChange",function(d){u(b);var e=P().$implicit;Dg(e.selectedDayType,d)||(e.selectedDayType=d);return v(d)});N("selectionChange",function(){u(b);var d=P().$implicit;d.selectedDayType==="BUSINESS"?d.selectedObjectiveDuration.seconds%86400===0&&(d.selectedObjectiveBusinessDays=d.selectedObjectiveDuration.seconds/86400,d.selectedObjectiveDuration.seconds=0):(d.selectedObjectiveDuration.seconds===0&&(d.selectedObjectiveDuration.seconds=d.selectedObjectiveBusinessDays*86400),
d.selectedObjectiveBusinessDays=0);return v()});Qf(3,W_b,2,2,"mat-option",50,Pf);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Cg("ngModel",a.selectedDayType);B();Rf(c.dayTypes)}},Y_b=function(a){a&1&&(K(0,"td",39),Q(1),L());a&2&&(a=P().$implicit,P(2),B(),S(" ",V_b.get(a.sloElement.dayType||"CALENDAR")," "))},a0b=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())Z_b(c.openRow.typePickerValues)&&
Z_b(c.openRow.priorityPickerValues)&&Z_b(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Dh("An SLO rule that matches all issues is not allowed. These rules are considered too broad, and are typically created in error. Some filtering criteria is required to continue."),confirmButtonText:"Ok",showCancelButton:!1}):$_b(c);else{var d=c.openRow;(d.selectedDayType!=="BUSINESS"?d.selectedObjectiveDuration.seconds>0:d.selectedObjectiveDuration.seconds>
0||d.selectedObjectiveBusinessDays>0)||c.confirmationDialogService.open({title:"SLO validation error",content:Dh('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),confirmButtonText:"Ok",showCancelButton:!1})}return v()});L()();K(4,"span",19)(5,"b-icon",55);N("click",function(){u(b);var c=P().$implicit,d=P(2);return v(d.removeElement(c))});L()()()()}a&
2&&(B(3),I("name","done")("size","small"),B(2),I("name","delete")("size","small"))},c0b=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(b0b(e,d,c))});L()}a&2&&I("name","edit")("size","small")},d0b=function(a){a&1&&M(0,"b-icon",57);a&2&&(P(),a=sg(8),I("name","more-settings-vertical")("size","small")("matMenuTriggerFor",a))},f0b=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(e0b(d,
c,1))});Q(1," Move row down ");L()}},g0b=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(e0b(d,c,-1))});Q(1," Move row up ");L()}},i0b=function(a){if(a&1){var b=t();K(0,"td",41)(1,"span",18)(2,"span",19);F(3,c0b,1,2,"b-icon",56);L();K(4,"span",19)(5,"span");F(6,d0b,1,3,"b-icon",57);L();K(7,"mat-menu",null,0);F(9,f0b,2,0,"button",58);F(10,g0b,2,0,"button",59);K(11,"button",60);N("click",function(){u(b);var d=P().$implicit,e=P(2);s_b(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);s_b(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(e.removeElement(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(h0b(c,a,1).valid?9:-1);B();G(h0b(c,a,-1).valid?10:-1)}},j0b=function(a,b){a&1&&(K(0,"tr",25),
F(1,w_b,1,0,"td",26)(2,x_b,1,0,"td",27),F(3,y_b,2,3,"td",28)(4,D_b,3,1,"td",29),F(5,E_b,2,3,"td",30)(6,J_b,3,1,"td",31),F(7,K_b,2,3,"td",32)(8,O_b,3,1,"td",33),F(9,R_b,5,2,"td",34)(10,S_b,2,1,"td",35),F(11,T_b,2,5,"td",36)(12,U_b,2,4,"td",37),F(13,X_b,5,1,"td",38)(14,Y_b,2,1,"td",39),F(15,a0b,6,4,"td",40)(16,i0b,17,4,"td",41),L());a&2&&(a=b.$implicit,b=P(2),yg("draggable",!b.isDisabled&&b.openRow==null),B(),G(a.isEditing()?1:2),B(2),G(a.isEditing()?3:4),B(2),G(a.isEditing()?5:6),B(2),G(a.isEditing()?
7:8),B(2),G(a.isEditing()?9:10),B(2),G(a.isEditing()?11:12),B(2),G(a.isEditing()?13:14),B(2),G(a.isEditing()?15:16))},k0b=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))});Qf(1,j0b,17,10,"tr",24,Pf);L()}a&2&&(a=P(),I("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||a.openRow!=null),B(),Rf(a.collection))},l0b=function(a){a&1&&(K(0,"div",17),Q(1," There are currently no rules for this SLO "),L())},m0b=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();yg("grid-focus",d.isFocused(b));Kf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);I("href",As.editSlo.makeHref(a.sloId),Pe);B();S(" ",a.name," ");B(2);S(" ",a.description," ")}},n0b=function(a){if(a)return(Array.isArray(a)?
a.map(function(b){return Gm(b)}):[Gm(a)]).filter(function(b){return!isNaN(b)})},o0b=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!wa(c,b)})},p0b=function(a,b){typeof a==="string"&&(a=a.trim())&&b(Pm(a))},q0b=function(a,b){if(!a)return[];a=l(typeof a==="string"?a.split(","):a);for(var c=a.next();!c.done;c=a.next())p0b(c.value,function(d){return b.push(d)});return kSa(b)},r0b=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("tg");}},s0b=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();Ag((b=U(2,2,a.component$))==null?null:b.name)}},t0b=function(a){a&1&&(K(0,"output"),Q(1),L());a&2&&(a=P(),B(),Ag(a.componentId))},u0b=function(a){a&1&&Yf(0)},v0b=function(a){a&1&&E(0,u0b,1,0,"ng-container",4);a&2&&(P(),a=sg(6),I("ngTemplateOutlet",a))},w0b=function(a){a&1&&Yf(0)},x0b=function(a){a&
1&&E(0,w0b,1,0,"ng-container",4);a&2&&(P(),a=sg(8),I("ngTemplateOutlet",a))},y0b=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))},z0b=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))},A0b=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,y0b,4,1,"li"),F(39,z0b,4,1,"li"),L());a&2&&(a=P(),B(5),Ag(a.issueId),
B(5),Ag(a.issueType),B(4),I("issuePriority",a.issuePriority),B(5),Ag(a.issueSeverity),B(5),Ag(a.issueStatus),B(5),Ag(Ng(30,10,a.issueLastModified,"medium")),B(6),S("",a.accessLimitLevel," "),B(),I("href",a.documentationLinks.getIssueAccessLimit(),Pe),B(2),G(a.issueComponentId?38:-1),B(),G(a.issueTeamId?39:-1))},B0b=function(a){a&1&&(Wf(0),Q(1,"Signing in..."),Xf(),M(2,"b-spinner"))},C0b=function(a){a&1&&(Wf(0),Q(1,"Sign in"),Xf())},D0b=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,B0b,3,0)(4,C0b,2,0,"ng-container");L()}a&2&&(a=P(),B(3),G(a.signInProgressing?3:4))},E0b=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},F0b=function(a){a.label||(a=Em(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},H0b=function(a){return{type:G0b[a.getType()],value:a.getValue()}},
J0b=function(a){var b,c=I0b[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(J0b);a=Ni(a,K0b,3,Oi());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(H0b)}},O0b=function(a){var b,c=L0b[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(J0b);b=Ri(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:M0b[e.getField()],customFieldId:Number(e.getCustomFieldId_asString())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:N0b[Ii(a,5)]}},T0b=function(a){switch(a.getKindCase()){case 2:var b=
jm(a,P0b,2,Q0b,jb);return{syntaxErrorResponse:{syntaxError:xi(b,1,void 0,jb)},queryBuilderResponse:void 0};case 1:return a=jm(a,xu,1,Q0b,jb),{syntaxErrorResponse:void 0,queryBuilderResponse:{type:R0b[a.getType()],expressions:((b=Ni(a,S0b,2,Oi(),jb))!=null?b:[]).map(O0b)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},U0b=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," ")}},V0b=function(a){a&1&&(K(0,"div",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a," "))},W0b=function(a,b){a&1&&(K(0,"mat-option",4),F(1,U0b,2,2,"mat-checkbox",6)(2,V0b,2,1,"div",7),L());a&2&&(a=b.$implicit,b=P(),I("value",a),B(),G(b.allowMultiSelect?1:2))},Y0b=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(X0b(c))})("keydown.enter",
function(){u(b);var c=P();return v(X0b(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(X0b(c))});M(4,"mat-icon",12);L()()}a&2&&(a=P(),B(),Kf("aria-label",Gg("Apply changes to ",a.customFieldTitle)),I("disabled",!a.hasPendingChanges),B(2),Kf("aria-label",Gg("Discard changes to ",a.customFieldTitle)))},Z0b=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," "))},$0b=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," "))},a1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",10);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.expressionType,c)||(d.expressionType=c);return v(c)});Qf(2,$0b,2,2,"mat-option",11,Pf);T(4,"keyvalue");L()()}a&2&&(a=P(2),B(),Cg("ngModel",a.expressionType),B(),Rf(U(4,1,a.globalTypeLabels)))},b1b=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]," "))},c1b=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)," ")}},d1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",18);Eg("ngModelChange",function(c){u(b);var d=P().$implicit;Dg(d.type,c)||(d.type=c);return v(c)});Qf(2,c1b,2,2,"mat-option",11,Pf);L()()}a&2&&(a=P().$implicit,B(),Cg("ngModel",a.type),B(),Rf(a.getLegalTypes()))},
f1b=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(e1b(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,"")," "))},g1b=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+'"';yu(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())}},h1b=function(a){if(a&1){var b=t();K(0,"div",22);F(1,f1b,3,2,"div",23);F(2,g1b,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(zu(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)}},i1b=function(a,b){a&1&&F(0,h1b,4,2,"div",22);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},j1b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},k1b=function(a){a&1&&(K(0,"div",19),Qf(1,i1b,1,1,null,null,Pf),F(3,j1b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},l1b=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," "))},m1b=function(a){a&1&&(K(0,"div",20),Qf(1,l1b,3,3,"div",30,Pf),L());a&2&&(a=P(2).$implicit,B(),Rf(a.getOptions()))},n1b=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-multi",32);Eg("valueChange",function(d){u(b);var e=P(3).$implicit;Dg(e.csv,d)||(e.csv=d);return v(d)});L()()}if(a&
2){a=P(3).$implicit;var c=P(2);B();Cg("value",a.csv);I("candidateDenylist",c.candidateEmailAutocompleteDenylist)}},o1b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",33);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Cg("ngModel",a.csv))},p1b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",34);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,
B(),Cg("ngModel",a.csv))},q1b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",35);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Cg("ngModel",a.csv))},r1b=function(a){a&1&&(K(0,"div"),F(1,n1b,2,2,"div"),F(2,o1b,2,1,"div"),F(3,p1b,2,1,"div"),F(4,q1b,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))},s1b=function(a,b){if(a&1){var c=t();K(0,"div",36)(1,"div",24)(2,"input",35);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});L()();K(3,"button",37);N("click",function(){var d=u(c).$implicit,e=P(3).$implicit,f=P(2);return v(zu(f,e,d))});L()()}a&2&&(a=b.$implicit,B(2),Cg("ngModel",a.value))},t1b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,
B(),S(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND"," "))},u1b=function(a){a&1&&(K(0,"div",19),Qf(1,s1b,4,1,"div",36,Pf),F(3,t1b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},w1b=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(v1b(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]),
" ")}},x1b=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;yu(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},y1b=function(a){if(a&
1){var b=t();K(0,"div",38);F(1,w1b,3,2,"div",23);F(2,x1b,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(zu(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")}},z1b=function(a,b){a&1&&F(0,y1b,6,5,"div",38);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},A1b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},B1b=function(a){a&1&&(K(0,"div",19),Qf(1,z1b,1,1,null,null,
Pf),F(3,A1b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},D1b=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(C1b(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," ")}},E1b=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;yu(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedTracker",a.trackerUnderEdit))},F1b=function(a){if(a&1){var b=t();K(0,"div",42);F(1,D1b,3,2,"div",23);F(2,E1b,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(zu(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)}},G1b=function(a,b){a&1&&F(0,F1b,4,2,"div",42);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},H1b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},I1b=function(a){a&1&&(K(0,"div",19),Qf(1,G1b,1,1,null,null,
Pf),F(3,H1b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},K1b=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(J1b(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])," ")}},M1b=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(L1b(d,c))});L()()}a&2&&(a=P(8),B(),I("teamSelected",a.teamUnderEdit))},N1b=function(a){if(a&1){var b=t();K(0,"div",44);F(1,K1b,5,6,"div",23);F(2,M1b,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(zu(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")}},O1b=function(a,b){a&1&&F(0,N1b,6,5,"div",44);a&2&&(a=b.$implicit,b=P(6),G(b.chipUnderEdit===a||a.value?0:-1))},P1b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(4).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?
"OR":"AND"," "))},Q1b=function(a){a&1&&(Qf(0,O1b,1,1,null,null,Pf),F(2,P1b,2,1,"button",21));a&2&&(a=P(3).$implicit,Rf(a.values),B(2),G(a.type?2:-1))},R1b=function(a){a&1&&(K(0,"div",19),F(1,Q1b,3,1),L());a&2&&(a=P(4),B(),G(a.sessionIsInternal?1:-1))},T1b=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=S1b(d);return v()});L();Q(2," and ");K(3,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateTo=
S1b(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)}},U1b=function(a){if(a&1){var b=t();K(0,"div");Q(1," the last ");K(2,"input",48);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.duration,c)||(d.duration=c);return v(c)});L();Q(3," days. ");L()}a&2&&(a=P(3).$implicit,B(2),Cg("ngModel",a.duration))},V1b=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=S1b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0)}},W1b=function(a){a&1&&(K(0,"div"),F(1,T1b,4,4,"div"),F(2,U1b,4,1,"div"),F(3,V1b,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))},X1b=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(Bu(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," ")}},Y1b=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," "))},Z1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",
50)(1,"mat-select",51);Eg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(yu(d))});Qf(2,Y1b,2,2,"mat-option",11,Pf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Cg("ngModel",a.value);B();Rf(c.userHotlists)}},$1b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,X1b,3,2,"div",23);F(2,Z1b,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(zu(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)}},a2b=function(a,b){a&1&&F(0,$1b,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},b2b=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(Au(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},c2b=function(a){a&1&&(K(0,"div",19),Qf(1,a2b,
1,1,null,null,Pf),F(3,b2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},d2b=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(Bu(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," ")}},e2b=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," "))},f2b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",52);Eg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(yu(d))});Qf(2,e2b,2,2,"mat-option",11,Pf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Cg("ngModel",a.value);B();Rf(c.userSavedSearches)}},g2b=function(a){if(a&1){var b=t();K(0,
"div",49);F(1,d2b,3,2,"div",23);F(2,f2b,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(zu(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)}},h2b=function(a,b){a&1&&F(0,g2b,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},i2b=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(Au(d,
c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},j2b=function(a){a&1&&(K(0,"div",19),Qf(1,h2b,1,1,null,null,Pf),F(3,i2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Rf(a.values),B(2),G(a.type?3:-1))},k2b=function(a){a&1&&(K(0,"div",14),F(1,k1b,4,1,"div",19),F(2,m1b,3,0,"div",20),F(3,r1b,5,4,"div"),F(4,u1b,4,1,"div",19),F(5,B1b,4,1,"div",19),F(6,I1b,4,1,"div",19),F(7,R1b,2,1,"div",19),F(8,W1b,4,3,"div"),F(9,c2b,4,1,"div",19),F(10,j2b,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 Cu?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)}},l2b=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)," ")}},o2b=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]=m2b(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);n2b(e,e.expressions[d]);return v()});L()()}},q2b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);Eg("ngModelChange",
function(d){var e=u(c).$implicit;Dg(e.label.field,d)||(e.label.field=d);return v(d)});N("selectionChange",function(){var d=u(c).$index,e=P(2);return v(p2b(e,d))});Qf(4,b1b,2,2,"mat-option",11,Pf);L()();F(6,d1b,4,1,"mat-form-field",4);L();F(7,k2b,11,10,"div",14);F(8,l2b,2,1,"div",15);F(9,o2b,2,0,"div",16);K(10,"button",17);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.removeExpression(d))});L()()}a&2&&(a=b.$implicit,b=P(2),B(3),Cg("ngModel",a.label.field),B(),Rf(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))},r2b=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]," "))},s2b=function(a){a&1&&(K(0,"div",1)(1,"div",2)(2,"span",3),Q(3,"Advanced search query builder"),L(),F(4,a1b,5,3,"mat-form-field",4),L(),Qf(5,q2b,11,5,"div",5,Of),K(7,"div",6)(8,"button",
7),Q(9),L(),K(10,"mat-menu",8,0),Qf(12,r2b,2,1,"button",9,Pf),L()()());if(a&2){a=sg(11);var b=P();B(4);G(b.expressions.length?4:-1);B();Rf(b.expressions);B(3);I("matMenuTriggerFor",a);B();S(" ",b.expressionType," ... ");B(3);Rf(b.availableLabels)}},u2b=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(t2b(c))});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.buttonLabel," "))},v2b=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(t2b(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," "))},w2b=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()}},x2b=function(a){a&1&&M(0,"mat-divider")(1,"b-whats-new-button",11);a&2&&(B(),I("menuMode",!0))},y2b=function(a){a&1&&M(0,"b-whats-new-button",0);a&2&&(a=P(),I("alertMode",a.majorReleaseNotesUpdated))},
z2b=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()}},A2b=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()}},D2b=function(a,b){a&1&&(K(0,"output",7),Q(1),L());a&2&&(a=b.$implicit,zg(a.color?Kg(3,B2b,a.color):Jg(5,C2b)),B(),Ag(a.name))},E2b=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),Ag(a.header.hotlist.name))},F2b=function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},G2b=function(a){a&1&&F(0,E2b,4,1,"span")(1,F2b,1,0);a&2&&(a=P(2),G(a.header.hotlist?0:1))},H2b=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),Ag(a.header.savedSearch.name))},I2b=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
J2b=function(a){a&1&&F(0,H2b,4,1,"span")(1,I2b,1,0);a&2&&(a=P(2),G(a.header.savedSearch?0:1))},K2b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subcomponents"),L()())},L2b=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,K2b,4,0,"span"),L());if(a&2){a=P(3);B(3);var b=a.header.component,c=Du(a.trackerHelpers,b.componentPathInfo);Ag(c&&c.componentPathName?c.componentPathName.join(" > "):
b.name);B();I("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);B();I("trackerId",a.header.component.trackerId);B();G(a.header.includeChildren?6:-1)}},M2b=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},N2b=function(a){a&1&&F(0,L2b,7,4,"span")(1,M2b,1,0);a&2&&(a=P(2),G(a.header.component?0:1))},O2b=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),Ag(a.header.tracker.name))},P2b=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},Q2b=function(a){a&1&&F(0,O2b,4,1,"span")(1,P2b,1,0);a&2&&(a=P(2),G(a.header.tracker?0:1))},R2b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subteams"),L()())},S2b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected team: "),K(2,"strong"),Q(3),L(),F(4,R2b,4,0,"span"),L());a&2&&(a=P(3),B(3),Ag(a.header.team.name),B(),G(a.header.includeChildren?4:-1))},
T2b=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},U2b=function(a){a&1&&F(0,S2b,5,2,"span")(1,T2b,1,0);a&2&&(a=P(2),G(a.header.team?0:1))},V2b=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),Ag(b.name),B(3),Ag(U(7,2,b.type)))},W2b=function(a){a&1&&Q(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},
X2b=function(a){a&1&&F(0,V2b,9,4,"span")(1,W2b,1,0);if(a&2){var b;a=P(2);G((b=a.header.customField)?0:1,b)}},Y2b=function(a){a&1&&(K(0,"div",0),F(1,G2b,2,1),F(2,J2b,2,1),F(3,N2b,2,1),F(4,Q2b,2,1),F(5,U2b,2,1),F(6,X2b,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))},Z2b=function(a){a&1&&(K(0,
"span"),Q(1),L());a&2&&(a=P().$implicit,B(),Bg(" ",a.id,": ",a.name," "))},$2b=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),Ag(a.name))},a3b=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),Ag(a.name),B(3),Ag(a.query))},b3b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.name," "))},c3b=function(a){a&
1&&(K(0,"span"),Q(1," > "),L())},e3b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;d3b(f);return v(e.stopPropagation())});Q(1);L();F(2,c3b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Hg("",a.id,": ",a.name));B();Ag(a.name);B();G(d!==b-1?2:-1)}},f3b=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),Qf(7,e3b,3,5,null,null,
Pf),L()());a&2&&(a=P().$implicit,B(3),Ag(a.id),B(),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),Rf(a.componentPath))},g3b=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),Ag(a.name))},h3b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},i3b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;d3b(f);return v(e.stopPropagation())});Q(1);L();
F(2,h3b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Hg("",a.id,": ",a.name));B();Ag(a.name);B();G(d!==b-1?2:-1)}},j3b=function(a){a&1&&(K(0,"span"),Q(1," Team "),K(2,"strong"),Q(3),L(),K(4,"span",8),Qf(5,i3b,3,5,null,null,Pf),L()());a&2&&(a=P().$implicit,B(3),Ag(a.id),B(2),Rf(a.teamPath))},k3b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},l3b=function(a,b){a&1&&(K(0,"span"),Q(1),L(),F(2,k3b,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Ag(a);B();G(c!==
b-1?2:-1)}},m3b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L(),K(4,"span",10),Qf(5,l3b,3,2,null,null,Pf),L()());a&2&&(a=P().$implicit,B(),S(" Custom Field ",a.id,": "),B(2),Ag(a.name),B(2),Rf(a.componentPathNames))},n3b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),Bg(" ",a.label,": ",a.name," "))},p3b=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&&
o3b(e),f.itemSelected.emit(e));return v()});F(1,Z2b,2,2,"span");F(2,$2b,4,2,"span");F(3,a3b,7,3,"span");F(4,b3b,2,1,"span");F(5,f3b,9,3,"span");F(6,g3b,4,2,"span");F(7,j3b,7,1,"span");F(8,m3b,7,2,"span");F(9,n3b,2,2,"span");L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Kf("id",Gg("b-app-search-option-",b));I("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);B();G(a.completionCfg.type==="issue"?1:-1);B();G(a.completionCfg.type==="hotlist"?2:-1);B();G(a.completionCfg.type==="savedsearch"?
3:-1);B();G(a.completionCfg.type==="atom"?4:-1);B();G(a.completionCfg.type==="component"?5:-1);B();G(a.completionCfg.type==="tracker"?6:-1);B();G(a.completionCfg.type==="team"?7:-1);B();G(a.completionCfg.type==="customField"?8:-1);B();G(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},r3b=function(a,b){var c=0,d=0;q3b(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},q3b=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},t3b=function(a){if(a&1){var b=
t();K(0,"div",21)(1,"input",22,2);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.searchName,c)||(d.searchName=c);return v(c)});N("keydown.Tab",function(){u(b);var c=P();return v(s3b(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(),Cg("ngModel",a.searchName),B(2),I("disabled",!a.searchName))},u3b=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(),
yg("muted",a.disabled),B(),Ag(a.cardTitle))},v3b=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),Ag(a.selectedOption.displayText))},w3b=function(a){a&1&&M(0,"mat-icon",15);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},x3b=function(a,b){a&1&&(K(0,"mat-option",14),F(1,w3b,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," "))},y3b=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);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.selectedOption,c)||(d.selectedOption=c);return v(c)});N("selectionChange",function(c){u(b);P(2).dropdownSelectionChanged.emit(c.value);return v()});F(4,v3b,4,2,"mat-select-trigger");Qf(5,x3b,3,3,"mat-option",14,Pf);L()()}a&2&&(a=P(2),B(3),I("disabled",a.disabled),Cg("value",a.selectedOption),B(),G(a.selectedOption&&a.selectedOption.icon?4:-1),B(),Rf(a.dropdownOptions))},
z3b=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,y3b,7,3,"mat-form-field",12)}a&2&&(a=P(),B(),yg("muted",a.disabled||!a.selected),I("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Kf("aria-label",a.ariaLabelForCardTitle),B(),G(a.dropdownOptions.length?2:-1))},A3b=function(a){a&1&&M(0,"mat-icon",5)},B3b=function(a){a&1&&M(0,"mat-icon",
6)},C3b=function(a){a&1&&(K(0,"div",7),fg(1),L())},D3b=function(a){a&1&&(K(0,"button",18),M(1,"mat-icon",22),L());a&2&&(a=P(2),I("disabled",a.disabled))},E3b=function(a){a&1&&M(0,"mat-divider",19);a&2&&I("vertical",!0)},F3b=function(a){a&1&&(K(0,"mat-slide-toggle",20),Q(1," Required "),L());a&2&&(a=P(2),I("disabled",a.disabled))},G3b=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))},H3b=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,D3b,2,1,"button",18);F(6,E3b,1,1,"mat-divider",19);F(7,F3b,2,1,"mat-slide-toggle",20);F(8,G3b,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))},I3b=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),Ag(a.name))},J3b=function(a){if(a&1){var b=t();K(0,"mat-form-field")(1,"mat-select",5);Eg("valueChange",function(c){u(b);var d=P();Dg(d.selected,c)||(d.selected=c);return v(c)});
Qf(2,I3b,2,2,"mat-option",6,Pf);L()()}a&2&&(a=P(),B(),Cg("value",a.selected),B(),Rf(a.options))},K3b=function(a){a&1&&Q(0," All the available shared fields have been activated. ")},L3b=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()())},M3b=function(a){a&1&&(K(0,"h3"),Q(1),L());a&2&&(a=P(2),B(),S(" Edit Custom Field ",a.editableField.customFieldId,
" "))},N3b=function(a){a&1&&(K(0,"h3"),Q(1," Create Custom Field "),L())},O3b=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.serverError," "))},Q3b=function(a,b){a&1&&(K(0,"button",24),Q(1),T(2,"enumToHuman"),L());a&2&&(a=b.$implicit,P(),b=sg(33),I("matMenuTriggerFor",b)("matMenuTriggerData",Kg(5,P3b,a)),B(),S(" ",U(2,3,a)," "))},R3b=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," "))},S3b=function(a){a&1&&Qf(0,R3b,2,1,"button",39,Pf);a&2&&(a=P(2),Rf(a.secondaryTypes))},U3b=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(T3b(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))},V3b=function(a){a&1&&(K(0,"label",26),Q(1," Default Value: "),L())},Y3b=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);W3b(e,d);return v()});L()}a&2&&(a=P(2),I("name","Default")("type",b)("tooltip","Set default value")("value",X3b(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",!0)("clearable",!0))},Z3b=function(a){a&1&&(K(0,"label",28),Q(1," Default Values: "),
L())},$3b=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);W3b(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))},a4b=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)," "))},b4b=function(a){if(a&1){var b=t();K(0,"div",8);F(1,M3b,2,1,"h3")(2,N3b,2,0,"h3");F(3,O3b,2,1,"div",10);K(4,"form",11)(5,"div",12)(6,"label",13);Q(7,"Name:");L();K(8,"input",14);Eg("ngModelChange",function(m){u(b);var r=P();Dg(r.editableField.name,m)||(r.editableField.name=m);return v(m)});L()();K(9,"div",12)(10,"label",15);Q(11,"Description:");L();K(12,"textarea",16);Eg("ngModelChange",function(m){u(b);var r=P();Dg(r.editableField.description,
m)||(r.editableField.description=m);return v(m)});L()();K(13,"table",17)(14,"tr")(15,"td",12)(16,"div",18)(17,"label",19);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);Qf(30,Q3b,3,7,"button",24,Pf);L();K(32,"mat-menu",null,2);E(34,
S3b,2,0,"ng-template",25);L()();F(35,U3b,4,7,"td",12);K(36,"td",12);F(37,V3b,2,0,"label",26);F(38,Y3b,1,9,"b-edit-field",27);F(39,Z3b,2,0,"label",28);F(40,$3b,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(m){u(b);var r=P();return v(r.editableField.required=!!m)});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);Qf(64,a4b,3,3,"button",36,Pf);L()()()();K(66,"button",37);N("click",function(){u(b);var m=P();return v(m.save())});Q(67," Save ");L();K(68,"button",38);N("click",function(){u(b);var m=P();return v(m.cancel())});Q(69," Cancel ");L()()()}if(a&2){var c,d;a=sg(20);var e=sg(29),f=sg(50),g=sg(63),k=P();B();G(k.editableField.customFieldId?
1:2);B(2);G(k.serverError?3:-1);B(5);I("bFocus",k.editableField&&!k.isLoading);Cg("ngModel",k.editableField.name);I("disabled",k.isSaving);B(4);Cg("ngModel",k.editableField.description);I("disabled",k.isSaving);B(5);I("onedevHovercardTrigger",a);B(7);I("matMenuTriggerFor",e)("disabled",!!k.editableField.customFieldId);B();S(" ",U(26,25,k.editableField.type)," ");B(5);Rf(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);
Rf(k.significanceChoices);B(2);I("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},c4b=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",46),L());a&2&&(B(),I("large",!0))},d4b=function(a){a&1&&(K(0,"th"),Q(1,"Actions"),L())},f4b=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(e4b(d,c))});Q(4,"Delete");L()()}},g4b=
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,f4b,5,0,"td",51),L());a&2&&(a=b.$implicit,b=P(2),B(2),Ag(a.name),B(2),Ag(a.customFieldId),B(2),Ag(U(7,9,a.type)),B(3),Ag(a.description),B(2),Ag(U(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),
B(2),Ag(U(17,13,a.allowedValue)),B(3),Ag(U(20,15,a.fieldSignificance)),B(2),G(b.editMode?21:-1))},h4b=function(a){a&1&&(K(0,"tr")(1,"td",53),Q(2," There are no custom fields defined on this component. "),L()())},i4b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Fields inherited from parent components"),L()()())},j4b=function(a){a&1&&(Wf(0),M(1,"b-component-card",60,6),Xf());if(a&2){a=sg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},
k4b=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,j4b,3,2,"ng-container",59);L()()()()}if(a&2){a=b.$implicit;b=sg(28);var d=P(3);zg(a.enabledOnIssues?"enabled-field":"disabled-field");B(2);Ag(a.name);B(2);Ag(a.customFieldId);B(2);Ag(U(7,13,a.type));B(3);Ag(a.description);B(2);Ag(U(12,15,a.required));B(3);I("customFieldValue",a.typedDefaultValue);B(2);Ag(U(17,17,a.allowedValue));B(3);Ag(U(20,19,a.fieldSignificance));B(6);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),Pe);B();S(" ",d.componentIdsToNames[a.componentId],
" ")}},l4b=function(a){a&1&&Qf(0,k4b,30,21,"tr",55,Pf);a&2&&(a=P(2),Rf(a.inheritedCustomFields))},m4b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Shared fields"),L()()())},o4b=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(n4b(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.":"")}},p4b=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,o4b,3,2,"div",51),L()());
a&2&&(a=b.$implicit,b=P(3),B(2),Ag(a.name),B(2),Ag(a.customFieldId),B(2),Ag(U(7,9,a.type)),B(3),Ag(a.description),B(2),Ag(U(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),B(2),Ag(U(17,13,a.allowedValue)),B(3),Ag(U(20,15,a.fieldSignificance)),B(3),G(b.editMode?22:-1))},q4b=function(a){a&1&&Qf(0,p4b,23,17,"tr",48,Pf);a&2&&(a=P(2),Rf(a.sharedFields))},r4b=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()()())},u4b=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=Em(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(s4b(c))});Q(4," Activate a Shared Field ");L()()}a&2&&(a=P(2),B(3),I("disabled",t4b(a).length==0))},v4b=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,d4b,2,0,"th"),L(),Qf(20,g4b,22,17,"tr",48,Pf),F(22,h4b,3,0,"tr"),F(23,i4b,4,0,"tr"),F(24,l4b,2,0),F(25,m4b,4,0,"tr"),F(26,q4b,2,0),F(27,r4b,9,0,"tfoot"),L(),F(28,u4b,5,1,"div",49),L());a&2&&(a=P(),B(19),G(a.editMode?19:-1),B(),Rf(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))},w4b=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))},x4b=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,w4b,2,1,"button",16);L()()}a&2&&(a=b.$implicit,b=P(),B(4),I("appearance","outline"),B(),yg("muted",b.disabled),I("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),B(3),I("appearance","outline"),B(),
yg("muted",b.disabled),I("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),B(2),G(b.disabled?-1:11))},y4b=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()}},z4b=function(a){a&1&&Yf(0)},A4b=function(a){a&1&&E(0,z4b,1,0,"ng-container",5);a&2&&(P(),a=sg(7),I("ngTemplateOutlet",a))},B4b=function(a){if(a&1){var b=t();K(0,"b-numeric-config",6);Eg("valueChange",function(c){u(b);var d=P();
Dg(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return v(c)});L()}a&2&&(a=P(),I("disabled",a.disabled),Cg("value",a.numericSpecMultiplier))},C4b=function(){},D4b=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);Eg("valueChange",function(c){u(b);var d=P();Dg(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),Cg("value",a.selectedAggregationRule),I("disabled",a.disabled),B(2),S(" ",U(10,7,a.selectedAggregationRule)," "),B(2),I("value",
a.aggregationRules.SUM),B(2),Ag(U(14,9,a.aggregationRules.SUM)),B(4),I("value",a.aggregationRules.MAX),B(2),Ag(U(20,11,a.aggregationRules.MAX)))},E4b=function(a){if(a&1){var b=t();K(0,"b-config-grid",15);Eg("optionsChange",function(c){u(b);var d=P();Dg(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return v(c)});N("addRow",function(){u(b);var c=P();return v(c.addRow())})("removeAtIndex",function(c){u(b);P().enumSpecOptions.splice(c,1);return v()});L()}a&2&&(a=P(),Cg("options",a.enumSpecOptions),I("disabled",
a.disabled||a.inherit))},F4b=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))},G4b=function(a,b){a&1&&F(0,F4b,2,2,"div",4);a&2&&(a=P(),G(!a.isAdmin||b!=="MISSING"&&b!=="DELETED"?-1:0))},H4b=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))},J4b=function(a){if(a&1){var b=t();K(0,"a",8);N("click",function(){u(b);P(2);or("component","navigate","to-internal-team-page");return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),I("routerLink",I4b(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},K4b=function(a){a&1&&F(0,J4b,2,2,"a",7);a&2&&(a=P(),G(I4b(a)?0:-1))},L4b=function(a){if(a&1){var b=
t();K(0,"a",11);N("click",function(){u(b);var c=P(2);or("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))},M4b=function(a){a&1&&F(0,L4b,2,1,"a",10);a&2&&(a=P(),G(I4b(a)?0:-1))},N4b=function(a){a&1&&(K(0,"th",14),Q(1," Order"),L())},O4b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.index,B(),S(" ",a+1," "))},P4b=function(a){a&1&&(K(0,"th",14),Q(1," Name"),L())},Q4b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());
a&2&&(a=b.$implicit,B(),S(" ",a.name," "))},R4b=function(a){a&1&&(K(0,"th",14),Q(1," Type"),L())},S4b=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)," "))},T4b=function(a){a&1&&(K(0,"th",14),Q(1," Required"),L())},U4b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.required?"Yes":"No"," "))},V4b=function(a){a&1&&(K(0,"th",14),Q(1," ID"),L())},W4b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&
(a=b.$implicit,B(),S(" ",a.customFieldId," "))},X4b=function(a){a&1&&M(0,"tr",16)},Y4b=function(a){a&1&&M(0,"tr",17)},Z4b=function(a){a&1&&(K(0,"div",12),Q(1," There are no custom fields defined on this component. "),L())},b5b=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($4b(c))});Q(3," Reorder fields ");L();K(4,"button",18);N("click",function(){u(b);var c=P();return v(a5b(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"))},c5b=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"),") "))},e5b=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",d5b(b,a),Pe),B(),Ag(a))},f5b=function(a){a&1&&(K(0,"span"),Q(1," ("),K(2,"ul",2),Qf(3,e5b,3,2,"li",3,Pf),L(),Q(5,") "),L());
a&2&&(a=P(),B(3),Rf(a.lineNumbers))},g5b=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))},h5b=function(a){a&1&&M(0,"img",13);a&2&&(a=P(3),I("src",a.LOGO_PURPLE,Pe))},i5b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14);a&2&&I("formattedComment",
b)},j5b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14,1);a&2&&I("formattedComment",b.formattedContent)},k5b=function(a){a&1&&M(0,"b-spinner")},l5b=function(a){a&1&&(F(0,j5b,2,1,"b-formatted-comment-presenter",14),T(1,"async"),Nf(2,k5b,1,0,"b-spinner"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},m5b=function(a){a&1&&(K(0,"div"),Q(1,"No content was found for this enrichment."),L())},n5b=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=sg(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,h5b,1,1,"img",13);Q(5);L()();F(6,i5b,1,1,"b-formatted-comment-presenter",14)(7,l5b,3,3)(8,m5b,2,0,"div");K(9,"mat-action-row")(10,"span",15);M(11,
"b-formatted-date-time",16);L();M(12,"insights-actions",17);L()()}if(a&2){var d;a=b.$implicit;b=P(2);I("id",Gg("insight-",a.category))("expanded",!0);B(4);G(b.FIRST_PARTY_ENRICHMENTS.includes(a.category)?4:-1);B();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)}},p5b=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);Qf(5,n5b,13,8,"mat-expansion-panel",11,o5b);L()}a&2&&(P(),a=dg(0),B(5),Rf(a))},q5b=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),L())},r5b=function(a){a&1&&(K(0,"a",4),Q(1," Create Component "),L());a&2&&(a=P(),I("href",a.createComponentPath,Pe))},s5b=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(As.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)}},u5b=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)&&t5b(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.")}},
v5b=function(a){a&1&&(K(0,"div",8),M(1,"b-spinner",13),L())},w5b=function(a){a&1&&(K(0,"p",1),Q(1),L());a&2&&(a=P(),B(),Ag(a.packageMentionSet.packageName))},x5b=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))},y5b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),S(" Signed in as ",a.activeSession.getUserEmail(),
" "))},z5b=function(a){a&1&&(K(0,"span",3),Q(1," Select at least one tracker "),L())},A5b=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," "))},B5b=function(a){a&1&&M(0,"b-top-bar-outlet-body")},C5b=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$)))},D5b=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),K(2,"span"),Q(3,"Initializing query builder..."),L()())},E5b=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()())},F5b=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())},G5b=function(a){a&1&&(K(0,"div",4),F(1,E5b,4,0,"div",6),F(2,F5b,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))},H5b=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())},I5b=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))},J5b=function(a){a&1&&M(0,"b-user-display-name",8);a&2&&(a=P().$implicit,I("user",a.author))},K5b=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," "))},L5b=function(a){a&1&&(K(0,"span")(1,"label"),Q(2),L(),F(3,K5b,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," "))},M5b=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," "))},N5b=function(a){a&1&&Qf(0,M5b,4,2,"div",null,Pf);a&2&&(a=P(2).$implicit,Rf(a.diff.removed))},O5b=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," "))},P5b=function(a){a&1&&Qf(0,O5b,4,2,"div",null,Pf);a&2&&(a=P(2).$implicit,Rf(a.diff.added))},
Q5b=function(a){a&1&&(K(0,"div"),F(1,N5b,2,0),F(2,P5b,2,0),L());a&2&&(a=P().$implicit,B(),G(a.diff.removed?1:-1),B(),G(a.diff.added?2:-1))},R5b=function(a,b){a&1&&(K(0,"div",12),F(1,L5b,5,3,"span"),F(2,Q5b,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))},S5b=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,J5b,1,1,"b-user-display-name",8),K(6,"span",9),M(7,"b-formatted-date-time",
10),L()(),K(8,"div",11),Qf(9,R5b,3,2,"div",12,Pf),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),Rf(a.diffs))},Eu=function(a){Fi.call(this);this.errorHandlerFn_=a},T5b=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},U5b=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"},V5b=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),Ag(a.description))},X5b=function(a,b){a&1&&Yf(0,4);a&2&&(a=b.$implicit,P(),b=sg(3),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,W5b,a)))},Y5b=function(a){a&1&&Yf(0,4);if(a&
2){a=P().question;P();var b=sg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,W5b,a))}},Z5b=function(a){a&1&&Yf(0,4);if(a&2){a=P().question;P();var b=sg(7);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,W5b,a))}},$5b=function(a){a&1&&Yf(0,4);if(a&2){a=P().question;P();var b=sg(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,W5b,a))}},a6b=function(a,b){a&1&&F(0,Y5b,1,4,"ng-container",4)(1,Z5b,1,4,"ng-container",4)(2,$5b,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)}},c6b=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(b6b(f))});L()()}a&2&&(a=b.question,I("innerHtml",a.question,Oe),B(2),I("ngModel",a.response),Kf("aria-label",a.question))},d6b=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(b6b(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))},f6b=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(" ",e6b(a)?a.text:a," "))},g6b=function(a){a&1&&Yf(0,4);if(a&2){a=P().question;P();var b=sg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,W5b,a.response.child))}},h6b=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(b6b(f))});Qf(3,f6b,2,2,"mat-option",10,Pf);L()();F(5,g6b,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(),Rf(a.options),B(2),G(e6b(a.response)?5:-1))},i6b=function(a){a&1&&fg(0)},k6b=function(a){a&1&&Yf(0,2);a&2&&(a=P(),I("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",
Mg(2,j6b,a.index,a.active,a.optional)))},l6b=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),Ag(a._getDefaultTextForState(a.state)))},m6b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),B(),Ag(a._intl.completedLabel))},n6b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),B(),Ag(a._intl.editableLabel))},o6b=function(a){a&1&&(F(0,m6b,2,1,"span",8)(1,n6b,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),Ag(a._getDefaultTextForState(a.state)))},
p6b=function(a){a&1&&F(0,l6b,2,1,"span",7)(1,o6b,4,2);a&2&&(a=P(),G(a.state==="number"?0:1))},q6b=function(a,b){a&1&&(K(0,"div",4),Yf(1,9),L());a&2&&(B(),I("ngTemplateOutlet",b.template))},r6b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),Ag(a.label))},s6b=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),Ag(a._intl.optionalLabel))},t6b=function(a){a&1&&(K(0,"div",6),Q(1),L());a&2&&(a=P(),B(),Ag(a.errorMessage))},u6b=function(){},v6b=function(a){a&1&&(fg(0),E(1,u6b,0,0,"ng-template",
0));a&2&&(a=P(),B(),I("cdkPortalOutlet",a._portal))},w6b=function(a){a&1&&fg(0)},y6b=function(a){a&1&&(K(0,"div",5),Yf(1,9)(2,6),L());if(a&2){a=P(2);var b=sg(6);B();I("ngTemplateOutlet",a.headerPrefix());B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,x6b,a.steps))}},z6b=function(a){a&1&&Yf(0,6);if(a&2){a=P(2);var b=sg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,x6b,a.steps))}},A6b=function(a,b){a&1&&(K(0,"div",10,2),Yf(2,9),L());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);
zg("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));I("id",c._getStepContentId(b));Kf("aria-labelledby",c._getStepLabelId(b))("inert",c.selectedIndex===b?null:"");B(2);I("ngTemplateOutlet",a.content)}},B6b=function(a){a&1&&(K(0,"div",3),F(1,y6b,3,5,"div",5)(2,z6b,1,4,"ng-container",6),K(3,"div",7),Qf(4,A6b,3,6,"div",8,Pf),L()());a&2&&(a=P(),B(),G(a.headerPrefix()?1:2),B(3),Rf(a.steps))},C6b=function(a){a&1&&Yf(0,9);a&2&&(a=P(2),I("ngTemplateOutlet",a.headerPrefix()))},E6b=function(a,
b){a&1&&(K(0,"div",11),Yf(1,6),K(2,"div",12,2)(4,"div",13)(5,"div",14),Yf(6,9),L()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;var e=P(2),f=sg(4);B();I("ngTemplateOutlet",f)("ngTemplateOutletContext",Kg(10,D6b,a));B();yg("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)}},F6b=
function(a){a&1&&(K(0,"div",4),F(1,C6b,1,1,"ng-container",9),Qf(2,E6b,7,12,"div",11,Pf),L());a&2&&(a=P(),B(),G(a.headerPrefix()?1:-1),B(),Rf(a.steps))},G6b=function(a,b){if(a&1){var c=t();K(0,"mat-step-header",15);N("click",function(){var d=u(c).step;return v(d.select())})("keydown",function(d){u(c);var e=P();return v(e._onKeydown(d))});L()}a&2&&(a=b.step,b=P(),yg("mat-horizontal-stepper-header",b.orientation==="horizontal")("mat-vertical-stepper-header",b.orientation==="vertical"),I("tabIndex",b._getFocusIndex()===
a.index()?0:-1)("id",b._getStepLabelId(a.index()))("index",a.index())("state",a.indicatorType())("label",a.stepLabel||a.label)("selected",a.isSelected())("active",a.isNavigable())("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",b._iconOverrides)("disableRipple",b.disableRipple||!a.isNavigable())("color",a.color||b.color),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))},H6b=function(a){a&
1&&M(0,"div",17)},I6b=function(a,b){a&1&&(Yf(0,6),F(1,H6b,1,0,"div",17));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(2);var d=sg(4);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(3,D6b,a));B();G(c!==b-1?1:-1)}},J6b=function(a,b){a&1&&(K(0,"div",16),Qf(1,I6b,2,5,null,null,Pf),L());a&2&&(a=b.steps,B(),Rf(a))},K6b=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())},M6b=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);Eg("categoryChange",function(c){u(b);var d=P();Dg(d.model.category,c)||(d.model.category=
c);return v(c)});L();K(3,"mat-card",53)(4,"mat-card-header");Q(5," Ensure quality of issue reports: ");L();K(6,"mat-card-content")(7,"mat-checkbox",54);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.ackIssueQuality,c)||(d.ackIssueQuality=c);return v(c)});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,K6b,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),Cg("category",a.model.category),B(5),Cg("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",!L6b(a,0)))},O6b=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(Jg(1,N6b)),Pe))},P6b=function(a){a&1&&(K(0,"mat-error"),Q(1," Summary is required "),L())},Q6b=function(a){a&1&&(K(0,"mat-error"),Q(1," Steps to reproduce are required "),L())},R6b=function(a){a&1&&(K(0,"mat-error"),Q(1," Issue description is required "),L())},S6b=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))},T6b=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()()}},U6b=function(){},V6b=function(){},W6b=function(){},X6b=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},Z6b=function(a){return a.length?"# Custom Questions\n"+Y6b(a).map(function(b){var c;return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},Y6b=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,e6b(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,q(Y6b([c.response.child])))):b.push(c);return b},$6b=function(a){a&1&&
(K(0,"a",8),Q(1," Create Component "),L())},a7b=function(a){a&1&&(K(0,"p",16),Q(1," None found. "),K(2,"a",18),Q(3,"Learn More"),L()())},b7b=function(a){a&1&&(Wf(0),M(1,"b-component-path-card",28,1),Xf());if(a&2){a=sg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},c7b=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,b7b,3,2,"ng-container",27),L()());if(a&2){a=b.$implicit;b=sg(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);Ag(a.description);B(2);I("routerLinkObj",c.componentSettings(a.componentId));
B(2);I("routerLinkObj",c.createIssue(a.componentId))}},d7b=function(a,b){a&1&&(F(0,a7b,4,0,"p",16),K(1,"ol",17),Qf(2,c7b,17,10,"li",null,Pf),L());a&2&&(G(b.length===0?0:-1),B(2),Rf(b))},f7b=function(a){a&1&&(K(0,"a",23),Q(1," Learn more "),L());a&2&&(P(),I("href",e7b(),Pe))},g7b=function(a){a&1&&(Q(0),T(1,"async"));a&2&&(a=P(2),S(" ",U(1,1,a.suggestedTitle$)," "))},h7b=function(a){a&1&&M(0,"b-spinner")},i7b=function(a,b){if(a&1){var c=t();K(0,"button",17);N("click",function(){var d=u(c).$implicit;
P();var e=sg(19),f=P();f.llmSuggestTitleService.generatedTitle.next(null);f.analytics.trackEvent("llm","reject","title-"+String(d));$r(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),Ag(b.REJECT_REASON_TO_DISPLAY.get(a)))},k7b=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,g7b,2,3);T(12,"async");Nf(13,h7b,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(j7b(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);Qf(25,i7b,3,1,"button",16,Pf);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),Rf(a.suggestedTitleRejectionReasons))},l7b=function(a){a&1&&(K(0,"a",3),M(1,"mat-icon",5),L())},m7b=function(a){a&1&&M(0,"b-spinner")},n7b=function(a,b){a&1&&M(0,"b-issues-table",
4);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions))},o7b=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},p7b=function(a){a&1&&Yf(0)},r7b=function(a){a&1&&(Wf(0),E(1,p7b,1,0,"ng-container",9),Xf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,q7b,a.value)))},s7b=function(a){a&1&&Q(0);a&2&&(a=P(),Ag(a.value||"--"))},t7b=function(a){a&1&&(Bd(),K(0,"svg",10),M(1,"path",11),L());
a&2&&(a=P(),yg("centered",a.centerEditIcon))},u7b=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))},v7b=function(a){a&1&&M(0,"input",16);a&2&&(a=P(3),I("formControl",a.editingValue),Kf("aria-labelledby",a.labelledById))},w7b=function(a){a&1&&(Wf(0),K(1,"div",13),E(2,u7b,1,4,"textarea",14)(3,v7b,1,2,"ng-template",null,4,Og),L(),Xf());if(a&2){a=sg(4);var b=P(2);B(2);
I("ngIf",b.allowMultipleLines)("ngIfElse",a)}},x7b=function(a){a&1&&Yf(0)},z7b=function(a){a&1&&(Wf(0),E(1,x7b,1,0,"ng-container",9),Xf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",Kg(2,y7b,a.editingValue)))},A7b=function(a){a&1&&E(0,w7b,5,2,"ng-container",12)(1,z7b,2,4,"ng-container",12);a&2&&(a=P(),I("ngIf",!a.editorTemplate),B(),I("ngIf",a.editorTemplate))},B7b=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))},C7b=function(a,b){a&1&&(K(0,"a",13),Q(1,"View recent issues"),L());a&2&&(a=P(),I("routerLinkObj",a.recentIssuesInComponent(b)))},G7b=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(),yg("partner",D7b(a))("public",E7b(a)),B(),I("name","alert")("size","small"),B(2),S("",F7b(a),"\u00a0"),B(),I("href",a.selectedComponent?As.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Pe))},J7b=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: ",H7b(a).concat(I7b(a)).join(", ")," "))},K7b=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"');Ag(b?b.join(" & ")+" must be"+((b.length<=1?" a":"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},L7b=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(3),B(),S(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},M7b=function(a){a&1&&(K(0,"div",32),Q(1," Error: The following field(s) have invalid values: "),K(2,"ul"),F(3,K7b,2,1,"li"),F(4,L7b,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))},N7b=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())},P7b=function(a){a&1&&(K(0,"div",18),F(1,J7b,2,1,"div",32),F(2,M7b,5,2,"div",32),F(3,N7b,2,0,"div",32),L());a&2&&(a=P(),B(),G(H7b(a).length!==0||I7b(a).length!==0?1:-1),B(),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&
a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),B(),G(O7b(a.comment)?3:-1))},Q7b=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))},R7b=function(a){a&1&&(K(0,"div",19),Qf(1,Q7b,2,1,"div",33,Pf),L());a&2&&(a=P(),B(),Rf(a.selectedHotlists))},S7b=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(),Ag(a.name))},T7b=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(),Ag(a.availableExistingIssueTemplate.name))},U7b=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),Qf(9,S7b,2,1,"button",39,Pf),F(11,T7b,2,1,"button",
39),L()());if(a&2){a=sg(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);Rf(b.availablePredefinedTemplates);B(2);G(b.availableExistingIssueTemplate?11:-1)}},V7b=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()())},W7b=function(a){a&1&&M(0,"llm-suggest-title-button",44);a&2&&(a=P(2),I("description",a.comment))},Y7b=
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(X7b(d))});L()}},Z7b=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: ",Ms(a.titleBannedWordsChecker),". Review your title before posting. "))},$7b=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(),Ag(a.displayText))},a8b=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();Qf(11,$7b,2,1,"button",68,Pf);L()()}if(a&2){a=sg(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);Rf(c.priorityChoices)}},b8b=function(a){a&1&&M(0,"mat-divider")},c8b=function(a){a&1&&M(0,"mat-icon",71);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},d8b=function(a,b){if(a&1){var c=t();F(0,b8b,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,c8b,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," ")}},e8b=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();Qf(13,d8b,4,4,null,null,Pf);L()()}if(a&2){a=sg(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);Rf(c.issueTypeChoices)}},f8b=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:"")}},g8b=function(a){a&1&&(K(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),
L())},h8b=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);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.collaboratorsText,c)||(d.collaboratorsText=c);return v(c)});L()();F(8,g8b,2,0,"mat-error");L()}a&2&&(a=P(2),B(6),yg("invalid",!a.isCollaboratorsValid),I("ariaLabel","Addition to Collaborators"),Cg("value",a.collaboratorsText),B(2),G(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},
i8b=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);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.ccsText,c)||(d.ccsText=c);return v(c)});L()()()}a&2&&(a=P(2),B(5),I("ariaLabel","Addition to CCs"),Cg("value",a.ccsText))},j8b=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: ",Ms(a.descriptionBannedWordsChecker),". Review your description before posting. "))},
k8b=function(a){a&1&&Yf(0)},l8b=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,k8b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=sg(30);B(4);I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},m8b=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,l8b,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))},n8b=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(),Ag(a.displayText))},p8b=
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:Jg(6,o8b)));B(3);S(" ",U(8,4,a.issue.staffing==null?null:a.issue.staffing.plannedAllocations),
" ")}},q8b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},r8b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},s8b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},u8b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",113);Q(3," Parents ");F(4,s8b,2,0,"span");L()();K(5,"input",114);N("ngModelChange",function(c){u(b);var d=P(3);d.parentIssueIds=t8b(d,c).map(Mbb);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Fu(d.parentIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isParentIssueIdsValid?
-1:4),B(),I("ngModel",a.joinStringArray(a.parentIssueIds)))},v8b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},w8b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",115);Q(3," Children ");F(4,v8b,2,0,"span");L()();K(5,"input",116);N("ngModelChange",function(c){u(b);var d=P(3);d.childrenIssueIds=t8b(d,c).map(Mbb);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Fu(d.childrenIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isChildIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.childrenIssueIds)))},
x8b=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))},y8b=function(a){a&1&&Yf(0)},z8b=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,y8b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=sg(30);B(4);I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},A8b=function(a){if(a&1){var b=t();K(0,"onedev-text-field",122);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Gg("bv2-custom-field-",a.customFieldId))("value",a.textValue)("required",c.isCustomFieldRequired(a))("labelledById",
"bv2-custom-field-"+a.customFieldId+"-label")}},B8b=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",123);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Gg("bv2-custom-field-",a.customFieldId))("value",a.numericValue)("required",c.isCustomFieldRequired(a));Kf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},C8b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",
124);N("boundValueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()()}if(a&2){a=P(2).$implicit;var c=P(3);B();I("bv2AriaLabelledby",Fg("bv2-custom-field-"+a.customFieldId+"-label"))("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},D8b=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")}},E8b=function(a,b){a&1&&(K(0,"div"),F(1,A8b,1,5,"onedev-text-field",119),F(2,B8b,1,5,"onedev-numeric-field",120),F(3,C8b,2,5,"div"),F(4,D8b,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))},F8b=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")}},
G8b=function(a,b){a&1&&(K(0,"div",92)(1,"div",22)(2,"label",118),Q(3),L()(),F(4,E8b,5,4,"div"),F(5,F8b,2,7,"div"),L());if(a&2){var c,d;a=b.$implicit;b=P(3);B(2);yg("required",b.isCustomFieldRequired(a));var e=I("id",Gg("bv2-custom-field-",a.customFieldId,"-label")),f=b.customFieldMap[a.customFieldId];e("matTooltip",Fg((f&&f.description?f.description:"Custom Field")+" [ID: "+a.customFieldId+"]"));f=(e=b.customFieldMap[a.customFieldId])?e.name:"";e&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&
(f+=", required field");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)}},H8b=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);Qf(18,n8b,2,1,"button",68,Pf);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);Eg("ngModelChange",function(f){u(b);var g=P(2);Dg(g.issue.inProd,f)||(g.issue.inProd=
f);return v(f)});L()();M(30,"div",55);F(31,p8b,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,q8b,2,0,"span");L()();K(53,"input",105);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockedByIssueId=t8b(g,f);g.isBlockedByIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(Fu(g.issue.blockedByIssueId));return v()});L()();K(54,"div",92)(55,"div",22)(56,
"label",106);Q(57," Blocking ");F(58,r8b,2,0,"span");L()();K(59,"input",107);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockingIssueId=t8b(g,f);g.isBlockingIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(Fu(g.issue.blockingIssueId));return v()});L()();F(60,u8b,6,2,"div",92);F(61,w8b,6,2,"div",92);M(62,"div",55);F(63,x8b,5,3,"div",92);F(64,z8b,6,3,"div",21);M(65,"div",55);Qf(66,G8b,6,10,"div",92,Pf);L()()}if(a&2){a=sg(17);var c=P(2);B(13);I("matMenuTriggerFor",a);Kf("aria-label","Severity"+(c.issue.severity?
", "+c.issue.severity:""));B();Ag(c.issue.severity);B(2);I("overlapTrigger",!0);B(2);Rf(c.severityChoices);B(6);I("ngModel",c.joinStringArray(c.originalIssueCopy.foundInVersion));B(5);Cg("ngModel",c.issue.inProd);B(2);G(c.sessionIsExternal?-1:31);B(5);var d;I("email",(d=c.reporterText)!=null?d:"");B(5);var e;I("email",(e=c.verifierText)!=null?e:"");B(5);I("ngModel",c.joinStringArray(c.originalIssueCopy.targetedToVersion));B(6);G(c.isBlockedByIssueIdValid?-1:52);B();I("ngModel",c.joinStringArray(c.issue.blockedByIssueId));
B(5);G(c.isBlockingIssueIdValid?-1:58);B();I("ngModel",c.joinStringArray(c.issue.blockingIssueId));B();G(c.sessionIsExternal?-1:60);B();G(c.sessionIsExternal?-1:61);B(2);G(Dt(c.selectedComponent)?-1:63);B();G(c.trackerCollaboratorGroups.length>0&&!Dt(c.selectedComponent)?64:-1);B(2);Rf(c.issue.customField)}},I8b=function(a,b){a&1&&M(0,"similar-issues",127);a&2&&(a=P(3),I("context",b)("componentId",a.issue.componentId))},J8b=function(a){a&1&&(F(0,I8b,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)}},K8b=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),yg("partner",D7b(a))("public",E7b(a)),B(),I("name","alert")("size","small"),B(2),S("",F7b(a),"\u00a0"),B(),I("href",a.selectedComponent?As.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Pe))},L8b=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()()}},O8b=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(X7b(e))});L();F(9,W7b,1,1,"llm-suggest-title-button",44);L();F(10,Y7b,1,0,"llm-suggest-title-preview");F(11,Z7b,4,1,"p",45);T(12,"async");L();F(13,a8b,13,4,"div",26);F(14,e8b,15,8,
"div",26);L();Wf(15);K(16,"div",20);F(17,f8b,6,1,"div",46);F(18,h8b,9,5,"div",47);L();K(19,"div",20);F(20,i8b,7,2,"div",48);L();Xf();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");Eg("commentChange",function(e){u(b);var f=P();Dg(f.comment,e)||(f.comment=e);return v(e)});N("onChange",function(){u(b);var e=P();return v(e.saveCommentDraft())})("onSubmit",function(e){u(b);var f=P();return v(M8b(f,e,!e.shiftKey))})("onRestrict",
function(){u(b);var e=P();return v(e.showNewContentJudgementDialog())});F(29,j8b,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,m8b,7,4,"div",54);M(33,"div",55);K(34,"div",56);F(35,H8b,68,18,"mat-expansion-panel",57);L();F(36,J8b,2,3);F(37,K8b,6,8,"div",17);F(38,L8b,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(M8b(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(M8b(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;yg("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);yg("bv2-upload-ongoing",O7b(a.comment));I("supportsPreview",!0);Cg("comment",a.comment);var d;I("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("placeholder",a.piiWarningMessage)("idForAriaLabel",a.descriptionBoxId)("audience",
a.audience)("showRestrictionOptions",a.canEditIssuesInComponent)("warn",(d=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&&Dt(a.selectedComponent)?32:-1);B(3);G(a.canEditIssuesInComponent?35:-1);B();G(a.issue.componentId&&!a.submitRequested?
36:-1);B();G(D7b(a)||E7b(a)?37:-1);B();G(a.enableRecaptcha?38:-1);B(2);I("disabled",N8b(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",N8b(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",N8b(a))}},P8b=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),Ag(a),B(2),I("mat-dialog-close",!0))},Q8b=function(a,b){a&1&&(K(0,"mat-option",135),Q(1),L());a&2&&(a=b.$implicit,I("value",Fg(a)),B(),S(" ",a," "))},S8b=function(a){if(a&1){var b=t();K(0,"mat-form-field",133)(1,"mat-select",134);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=c);return v(c)});K(2,"mat-select-trigger");Q(3);
L();Qf(4,Q8b,2,3,"mat-option",135,Pf);L()()}a&2&&(a=P(),B(),Cg("ngModel",a.collaboratorGroupsText),I("ngModelOptions",Jg(3,R8b)),B(2),Ag(a.getCollaboratorGroupsString()),B(),Rf(a.trackerCollaboratorGroups))},T8b=function(a,b){b.assigneeText=Lm(a.assigneeUser);b.reporterText=Lm(a.reporterUser);b.verifierText=Lm(a.verifierUser);var c;b.collaboratorsText=Fu(((c=a.collaboratorsUsers)!=null?c:[]).map(Lm));var d;b.ccsText=Fu(((d=a.ccUsers)!=null?d:[]).map(Lm))},U8b=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=Pm(a.assigneeText));a.reporterText!=null&&(b.reporterUser=Pm(a.reporterText));a.verifierText!=null&&(b.verifierUser=Pm(a.verifierText));b.collaboratorsUsers=NSa(Gu(a.collaboratorsText));b.ccUsers=NSa(Gu(a.ccsText))},W8b=function(a,b){for(var c=l(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=V8b[d];d==="customField"||Dm(e,f)||(Array.isArray(e)?a[d]?(e=kSa([].concat(q(e),
q(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},X8b=function(a){a=Object.assign({},a);return delete a.hotlistId,a},Y8b=function(a){var b={};a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.customFieldId]=c;return b},Z8b=function(a){var b={};a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.allowedValue&&(b[c.customFieldId]=c.allowedValue.map(function(d){return{value:d,displayText:d}}));return b},Gu=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},Fu=
function(a){return a?a.join(", "):""},$8b=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)},a9b=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))},b9b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",5);F(2,$8b,1,4,"b-star-toggle",6)(3,a9b,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," "))},e9b=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(c9b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(d9b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",e.String(a.resourceId))("first",d===0)("last",d===c-1)("resultsPerPage",e.resultsPerPage)}},f9b=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(c9b(k,g,f))})("selectionChange",function(f){u(b);var g=P(2);return v(d9b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",e.Number(a.resourceId))("first",d===0)("last",d===c-1)("resultsPerPage",e.resultsPerPage)}},g9b=function(a,b){a&1&&(K(0,"div"),F(1,e9b,1,7,"b-saved-search-panel",11)(2,
f9b,1,7,"b-hotlist-panel",12),L());if(a&2){var c;a=b.$implicit;B();G((c=a.type)==="SAVED_SEARCH"?1:c==="HOTLIST"?2:-1)}},h9b=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()))},i9b=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()))},j9b=function(a){a&1&&(K(0,"span",12),Q(1," (archived) "),L())},l9b=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(k9b(e,d))});L()()}a&2&&(B(),I("id",b))},n9b=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(m9b(f,e))})("keydown.enter",function(){var e=u(c),f=P(4);return v(m9b(f,e))})("keydown.space",function(){var e=
u(c),f=P(4);return v(m9b(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))}},o9b=function(a){a&1&&(K(0,"span",43),Q(1,"<None>"),L())},p9b=function(a,b){a&1&&(K(0,"div",33),F(1,l9b,2,1,"div"),F(2,n9b,5,5,"div",42),F(3,o9b,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)}},r9b=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(q9b(e,d))});Q(1);L()}a&2&&(a=b.$implicit,B(),S("",a.name," "))},s9b=function(a){a&1&&Qf(0,r9b,2,1,"button",52,Pf);a&2&&(a=P(4),
Rf(a.savedSearchChoices))},t9b=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,s9b,2,0,"ng-template",51),L()());a&2&&(a=sg(8),B(3),I("matMenuTriggerFor",a))},y9b=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);Qf(6,p9b,4,3,"div",33,Pf);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(u9b(d,c))})("onCreate",function(c){u(b);var d=P(2);return v(v9b(d,c))})("onLoad",function(c){u(b);var d=P(2);return v(w9b(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)&&(x9b(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",
hotlistId:c.hotlistId}));return v()});L()();F(17,t9b,10,1,"div",41);L()}a&2&&(a=P(2),B(6),Rf(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))},A9b=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",z9b(b,a),Pe);B();S(" ",a.name||"(name not available)",
" ")}},B9b=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",z9b(b,a),Pe);B();S(" ",a.name||"(name not available)"," ")}},C9b=function(a,b){a&1&&(K(0,"li"),F(1,A9b,4,3,"span"),F(2,B9b,4,3,"span"),L());a&2&&(a=b.$implicit,B(),G(a.resourceType==="HOTLIST"?1:-1),B(),G(a.resourceType==="SAVED_SEARCH"?2:-1))},D9b=function(a){a&1&&(K(0,"div",24)(1,"label")(2,"span",20),Q(3,"Items"),L()(),K(4,"div",54)(5,
"ul"),Qf(6,C9b,3,2,"li",null,Pf),L()()());a&2&&(a=P(2),B(6),Rf(a.bookmarkGroup.item))},E9b=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()))},F9b=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))},I9b=function(a){if(a&1){var b=t();K(0,"div",11)(1,"h2");Q(2);L();F(3,j9b,2,0,"span",12);K(4,"a",13);Q(5," (View Dashboard)");L()();K(6,"mat-tab-group",14);Eg("selectedIndexChange",
function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(7,"mat-tab",15)(8,"div",16);M(9,"b-error-banner",17);K(10,"div",18)(11,"label",19)(12,"span",20);Q(13,"Name");L()();K(14,"input",21,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return v(c)});L()();K(16,"div",18)(17,"label",22)(18,"span",20);Q(19,"Description");
L()();K(20,"textarea",23);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.bookmarkGroupUnderEdit.description,c)||(d.bookmarkGroupUnderEdit.description=c);return v(c)});L()();F(21,y9b,18,6)(22,D9b,8,0,"div",24);F(23,E9b,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,F9b,5,1,"div",25);L()()()}a&2&&(a=P(),B(2),Bg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),B(),G(a.isArchived()?3:-1),B(),I("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Pe),B(2),Cg("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.bookmarkGroupUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),yg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(4),Cg("ngModel",a.bookmarkGroupUnderEdit.description),I("disabled",a.isEditDisabled()),B(),G(a.isAdmin?21:22),B(2),G(a.isAdmin?23:-1),B(3),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(33,
G9b,Kg(31,H9b,a.accessPolicyUnderEdit.admins))),B(3),I("href",ws(a.documentationLinks)+"#bookmark-groups",Pe),B(3),G(a.isAdmin?45:-1))},J9b=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()))},K9b=function(a){a&1&&(K(0,"div",8)(1,"h2"),Q(2," Saved search not found "),L()())},L9b=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()))},M9b=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))},P9b=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);Eg("selectedIndexChange",function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(6,"mat-tab",12)(7,"div",
13);M(8,"b-error-banner",14);K(9,"div",15)(10,"label",16)(11,"span",17);Q(12,"Name");L()();K(13,"input",18,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return v(c)});L()();K(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");L()();K(19,"textarea",20);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return v(c)});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,L9b,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,M9b,
5,1,"div",25);L()()()}a&2&&(a=P(),B(2),Bg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(),I("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Pe),B(2),Cg("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.savedSearchUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.savedSearchUnderEdit.description),I("disabled",
a.isEditDisabled()),B(9),S(" ",a.savedSearch.query," "),B(),G(a.isAdmin?29:-1),B(3),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(32,N9b,Kg(30,O9b,a.accessPolicyUnderEdit.admins))),B(3),I("href",ws(a.documentationLinks)+
"#saved-searches",Pe),B(3),G(a.isAdmin?49:-1))},Q9b=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),L())},R9b=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),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(2),I("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},S9b=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()())},U9b=function(a){if(a&1){var b=t();K(0,"b-button",45);N("onAction",function(){u(b);var c=P(3);return v(T9b(c,!0))});Q(1," Archive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},
V9b=function(a){if(a&1){var b=t();K(0,"b-button",46);N("onAction",function(){u(b);var c=P(3);return v(T9b(c,!1))});Q(1," Unarchive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},W9b=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,U9b,2,1,
"b-button",43);F(6,V9b,2,1,"b-button",44);L()}if(a&2){P();a=sg(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)}},X9b=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()))},$9b=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);Eg("selectedIndexChange",function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=
P();return v(d.tabChange(c))});K(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);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,R9b,8,4,"div",19);L();F(22,S9b,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,W9b,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,X9b,5,1,"div",23);L()()()()}a&2&&(a=P(),B(4),Bg(" SLO ",a.slo.sloId,": ",a.slo.name," "),B(),Cg("selectedIndex",a.selectedTabIndex),B(5),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("required",!0)("ngModel",
a.editableCopy.name)("disabled",a.isEditDisabled()),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),B(2),G(a.isImportedFromBugScope||a.alertState.getSavedValue()?21:-1),B(),G(a.isUneditedFromBugScope&&a.isAdmin()?22:-1),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(),I("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),B(7),G(a.isAdmin()?31:-1),B(4),yg("bv2-edit-resource-readonly",a.isEditDisabled()),
B(6),I("users",a.editableAccessPolicy.admins),Kf("disabled",a.isEditDisabled()?!0:null),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(35,Y9b,Kg(33,Z9b,a.editableAccessPolicy.admins))),Kf("disabled",a.isEditDisabled()?!0:null),B(3),I("href",Gg("",ws(a.documentationLinks),"#slos"),Pe),B(3),G(a.isAdmin()?54:-1))},b$b=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(a$b(c))});Q(10," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.TEA_LIGHT,Pe),B(),I("src",a.TEA_DARK,Pe))},c$b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},d$b=function(a){a&
1&&(F(0,c$b,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)}},e$b=function(a){a&1&&(K(0,"p",12),Q(1,"Not blocking any open issues \ud83e\udd73"),L())},f$b=function(a,b){a&1&&(K(0,"h4",11),Q(1),L(),F(2,d$b,2,3)(3,e$b,2,0,"p",12));a&2&&(B(),S("Open (",b.length,")"),B(),G(b.length>0?2:3))},g$b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},h$b=function(a){a&1&&(K(0,"h4",11),Q(1),L(),F(2,
g$b,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)}},i$b=function(a,b){a&1&&F(0,h$b,4,4);a&2&&G(b.length>0?0:-1)},j$b=function(a){a&1&&(F(0,f$b,4,2),T(1,"async"),F(2,i$b,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)}},k$b=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",Gg("Issue ",a)),I("routerLink",Gg("/issues/",a)),B(2),S("b/",a))},l$b=function(a){a&1&&(K(0,"h4",11),Q(1,"Loading..."),L(),K(2,"ol",14),Qf(3,k$b,6,5,"li",null,Pf),L());a&2&&(a=P(2),B(3),Rf(a))},m$b=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)},n$b=function(a){if(a&1){var b=t();F(0,j$b,4,6);T(1,"async");Nf(2,l$b,5,0);K(3,"aside",9)(4,"button",8);N("click",function(){u(b);var d=P(2);return v(a$b(d))});
Q(5," Add ");L();F(6,m$b,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)}},o$b=function(a,b){a&1&&F(0,b$b,11,2,"div",2)(1,n$b,8,6);a&2&&G(b.length===0?0:1)},p$b=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},q$b=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"))},r$b=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"))},s$b=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(4),zg(Gg("chippy status-",b," margin-s-left")),B(),S(" ",a.STATUS_JS_TERSE.get(b)," "))},t$b=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,s$b,2,4,"span",12),L()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);I("routerLink",Gg("/issues/",a.issueId));B();yg("border-bottom",
d!==c-1);B(3);Ag(a.issueId);B(2);Ag(a.snapshot[0].title);B(2);zg(e.priorityClass(a.snapshot[0].priority));B();Ag(a.snapshot[0].priority);B();G((b=a.snapshot[0].status)?10:-1,b)}},u$b=function(a,b){a&1&&F(0,t$b,11,10,"a",6);a&2&&G(b.$index<5?0:-1)},w$b=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(v$b(c))});Q(2,"View all parent issues");L()()}},x$b=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();$t(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});Q(2,"View all blockers");L()()}},z$b=function(a,b){a&1&&(K(0,"div",0),F(1,q$b,4,1,"div",1),F(2,r$b,4,1,"div",1),K(3,"div"),Qf(4,u$b,1,1,null,null,y$b),F(6,w$b,3,0,"div",2),F(7,x$b,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),Rf(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))},A$b=function(a){a&1&&M(0,"mat-icon",4)},B$b=function(a){a&1&&(Wf(0),M(1,"b-list-issues-card",6,1),Xf());if(a&2){a=sg(2);P();var b=sg(4),c=P();B();I("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},C$b=function(a){a&1&&(K(0,"a",3),Q(1),L(),F(2,A$b,1,0,"mat-icon",
4),K(3,"onedev-hovercard",null,0),E(5,B$b,3,5,"ng-container",5),L());if(a&2){a=sg(4);var b=P();I("title",Gg("",b.multiParentIssueIds.length," parents at this position"))("onedevHovercardTrigger",a);B();S("",b.multiParentIssueIds.length," Parents\u2026");B();G(b.multiParentIssueIds.length>1?2:-1)}},D$b=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=a9a(c)):c=String(c);Ag(c);B();yg("last",a===b-1)}},F$b=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(E$b(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"," "))},G$b=function(a){a&1&&Yf(0)},H$b=function(a){a&1&&E(0,G$b,1,
0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},I$b=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," ")}},J$b=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=sg(13);B(3);I("retentionState",a.retentionState);B(2);I("content",c)}},K$b=function(a){a&1&&M(0,"retention-help-text",18);a&2&&(a=P(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},L$b=function(a){a&1&&F(0,K$b,1,2,"retention-help-text",18);a&2&&(a=P(),G(a.retentionState&&a.modifiedTimeMilliseconds?
0:-1))},N$b=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=sg(3);return v(E$b(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);Qf(9,I$b,3,5,"button",10,M$b);F(11,J$b,6,
2,"button",11);L();E(12,L$b,1,1,"ng-template",null,2,Og)}if(a&2){a=sg(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);Rf(b.menuItems);B(2);G(d.retentionEnabled?11:-1)}},O$b=function(){},P$b=function(a){a&1&&(K(0,"output"),Q(1),T(2,"async"),L());if(a&
2){a=P();var b=P();B();Bg(" ",a," of ",U(2,2,b.currentSearchResults.totalText$)," ")}},S$b=function(a,b){if(a&1){var c=t();F(0,P$b,3,4,"output");K(1,"span")(2,"button",0);T(3,"async");N("onHotkey",function(){u(c);var d=P();return v(Q$b(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(Q$b(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(R$b(d.currentSearchResults))})("click",function(){u(c);var d=P();
return v(R$b(d.currentSearchResults))});M(7,"mat-icon",3);L()()}a&2&&(a=P(),G(b!==-1?0:-1),B(),yg("invisible",b===-1)("zero-width",b===-1),B(),I("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!U(3,9,a.currentSearchResults.hasPreviousIssue$)),B(3),I("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!U(6,11,a.currentSearchResults.hasNextIssue$)))},T$b=function(a){a&1&&M(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),I("issueId",a.issueId))},U$b=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))},V$b=function(a){a&1&&M(0,"b-retention-chip",3);a&2&&(a=P(2),I("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},W$b=function(a){a&1&&(K(0,"div",0),F(1,T$b,1,1,"b-issue-visibility-chip",1),F(2,U$b,1,3,"b-access-limits-chip",2),F(3,V$b,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))},X$b=function(a,b){a&1&&F(0,W$b,4,3,"div",0);a&2&&G(b.isShowingPublicPartner||b.isShowingRetention||b.isAccessLimited?0:-1)},Y$b=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=sg(4);I("onedevHovercardTrigger",b);B(2);S("",U(3,2,a.teamName$)," ")}},Z$b=function(a){a&1&&Yf(0)},$$b=function(a){a&1&&E(0,Z$b,1,0,"ng-container",20);a&2&&(P(),a=sg(13),I("ngTemplateOutlet",a))},aac=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$)))},bac=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,aac,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))},cac=function(a,b){a&1&&M(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),I("ancestors",b)("issueId",a.issueId))},dac=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",25),T(1,"async"),K(2,"div",26),F(3,cac,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$))}},eac=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,dac,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))},fac=function(a,
b){a&1&&(K(0,"div",17),M(1,"mat-icon",29),Q(2),L());a&2&&(P(),a=sg(36),I("onedevHovercardTrigger",a),B(2),S(" ",b," "))},gac=function(a){a&1&&(Wf(0),M(1,"b-list-issues-card",30,2),T(3,"async"),Xf());if(a&2){a=sg(2);var b=P(),c=sg(36);B();I("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",U(3,5,b.blockedByids$))("mode",b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},hac=function(a){if(a.length!==0)return a.length===1?As.viewIssue.makeHref(a[0]):As.listIssues.makeHref()},
iac=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," "))},jac=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(),Ag(a.key),B(3),S('"',a.value,'"'))},kac=function(a,b){a&1&&F(0,jac,6,2);a&2&&G(b.$implicit.value?0:-1)},lac=function(a){a&1&&(K(0,"p"),Q(1," [ "),Qf(2,kac,1,1,null,null,Pf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Rf(U(4,0,a.arguments)))},
mac=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),Ag(a.key),B(3),S('"',a.value,'"'))},nac=function(a,b){a&1&&F(0,mac,7,2,"p",16);a&2&&G(b.$implicit.value?0:-1)},oac=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,lac,6,2,"p"),K(6,"p")(7,"span",13),Q(8,"Output:"),L()(),Qf(9,nac,1,1,null,null,Pf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),Ag(a.name),B(2),G(a.arguments?
5:-1),B(4),Rf(U(11,2,a.outputs)))},pac=function(a){a&1&&Qf(0,oac,12,4,"div",12,Pf);a&2&&(a=P().$implicit,Rf(a.functionCalls))},qac=function(a,b){a&1&&(K(0,"div",6)(1,"p",9),Q(2),L(),F(3,iac,4,1),F(4,pac,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))},rac=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},sac=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),Qf(5,rac,
1,1,"li",4,Of),L());a&2&&(a=P(),B(5),Rf(a.problemIdentificationSummaries))},tac=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},uac=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),Qf(5,tac,1,1,"li",4,Of),L());a&2&&(a=P(),B(5),Rf(a.solutionSummaries))},vac=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},wac=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),Qf(5,vac,
1,1,"li",4,Of),L());a&2&&(a=P(),B(5),Rf(a.codeChangeSummaries))},xac=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()}},yac=function(a){a&1&&F(0,xac,2,0,"button",9);a&2&&(a=P(2),G(a.trajectory.prompt!==""&&a.trajectory.steps.length>0?0:-1))},zac=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()}},Aac=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,yac,1,1),F(14,
zac,4,0),L());if(a&2){var c;a=P();B(6);I("href",Gg("https://fusion2.corp.google.com/invocations/",b.buildInvocationId),Pe);B(3);I("href",Gg("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)}},Bac=function(a,b){a&1&&(F(0,sac,7,0),F(1,uac,7,0),F(2,wac,7,0),F(3,Aac,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)}},Cac=function(a,b){a&1&&M(0,"b-bug2code-sidebar",9);a&2&&I("issueId",b)},Dac=function(a){a&1&&(K(0,"div",10),Q(1,"View an issue details to gain AI insights."),L())},Eac=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 "))},Fac=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),Ag(a.issueId),B(5),Ag(a.issueType),B(5),Ag(a.issueStatus))},Gac=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,Fac,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))},Hac=function(a,b){if(a instanceof Element){var c=dn(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)}}},Iac=function(a,b){a&1&&(K(0,"h2",7),Q(1),L());a&2&&(B(),S("Issue ",b))},Jac=function(a){a&1&&Yf(0,10);a&2&&(P(3),a=sg(12),I("ngTemplateOutlet",a))},Kac=function(a){a&1&&Yf(0,10);a&2&&(P(4),a=sg(16),I("ngTemplateOutlet",a))},Mac=function(a){a&1&&Yf(0,12);if(a&2){a=P(2);P(3);var b=sg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Lac,a.monorailRedirectUrl))}},Nac=function(a){a&1&&F(0,Mac,1,4,"ng-container",12);a&
2&&(a=P(),G(a.monorailRedirectUrl?0:-1))},Oac=function(a,b){a&1&&F(0,Kac,1,1,"ng-container",10)(1,Nac,1,1);if(a&2){var c;G((c=b.status)===403?0:c===404?1:-1)}},Pac=function(a,b){a&1&&(F(0,Jac,1,1,"ng-container",10),F(1,Oac,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)}},Qac=function(a){a&1&&(F(0,Pac,3,4),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.readyForView$))?0:-1,b)}},Rac=function(a){a&1&&M(0,"tailwind-sidebar")},Sac=function(a){a&
1&&M(0,"llm-chat")},Tac=function(a){a&1&&F(0,Rac,1,0,"tailwind-sidebar")(1,Sac,1,0,"llm-chat");a&2&&(a=P(),G(a.enableTailwindSidebar?0:a.enableLlmChat?1:-1))},Uac=function(a,b){a&1&&F(0,Tac,2,1);a&2&&G(b.isIssueDetailsPageSidebarOpen?0:-1)},Vac=function(a){a&1&&(F(0,Uac,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issueDetailsOptions$))?0:-1,b)}},Wac=function(a){a&1&&(K(0,"a",24),Q(1,"Learn more"),L())},Xac=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()}},Yac=function(a){a&1&&(K(0,"b-callout",16)(1,"b-callout-body"),Q(2,"This issue has been archived. "),F(3,Wac,2,0,"a",24),L(),K(4,"b-callout-actions"),F(5,Xac,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)}},Zac=function(a){a&1&&(K(0,"a",27),Q(1,"Learn more"),L())},$ac=
function(a){a&1&&(K(0,"b-callout",17)(1,"b-callout-body"),Q(2," This issue is in an archived component. "),F(3,Zac,2,0,"a",27),L()());a&2&&(a=P(3),I("format","app")("iconOverride","archive_24px"),B(3),G(a.activeSession.isInternalSession()?3:-1))},abc=function(a,b){a&1&&(Q(0," Reason: "),K(1,"code"),Q(2),L(),Q(3,". "));a&2&&(B(2),Ag(b))},bbc=function(a){a&1&&(K(0,"a",28),Q(1,"Learn more"),L())},dbc=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(cbc(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$))}},ebc=function(a){a&1&&(K(0,"b-callout",18)(1,"b-callout-body"),Q(2," This issue has been deleted. "),F(3,abc,4,1),T(4,"async"),F(5,bbc,2,0,"a",28),L(),K(6,"b-callout-actions"),F(7,dbc,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)}},fbc=function(a){a&1&&(K(0,"a",31),Q(1,"Major updates"),L())},gbc=function(a){a&1&&(K(0,"a",32),Q(1,"Major edits"),L())},hbc=function(a){a&1&&(K(0,"a",33),Q(1,"Learn more"),L())},ibc=function(a){a&1&&(K(0,"b-callout",19)(1,"b-callout-body"),Q(2," This issue has been marked as inactive. "),F(3,fbc,2,0,"a",31)(4,gbc,2,0,"a",32),Q(5," will reopen the issue. "),F(6,hbc,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))},jbc=function(a,b){a&1&&(K(0,"output",37),Q(1),L());a&2&&(B(),S(" ",b," "))},lbc=function(a,b){a&1&&(K(0,"a",36,6),Q(2),F(3,jbc,2,1,"output",37),T(4,"async"),L());if(a&2){var c;a=b.$implicit;b=sg(1);I("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",Jg(7,kbc));B(2);S(" ",a.title," ");B();G((c=U(4,5,a.count$))?3:-1,c)}},mbc=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),Qf(6,lbc,5,8,"a",36,Pf),L(),M(8,"mat-tab-nav-panel",null,5),L());if(a&2){a=sg(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();Rf(c.tabs)}},nbc=function(a,b){a&1&&M(0,"issue-metadata-sidebar",23);a&2&&I("issueId",b)},obc=function(a){a&1&&(K(0,"div",15),T(1,"async"),F(2,Yac,7,7,"b-callout",16),T(3,"async"),F(4,$ac,4,3,"b-callout",17),T(5,"async"),F(6,ebc,9,
7,"b-callout",18),T(7,"async"),F(8,ibc,7,3,"b-callout",19),T(9,"async"),F(10,mbc,10,8,"header",20),T(11,"async"),K(12,"div",21)(13,"article",22),M(14,"router-outlet"),L(),F(15,nbc,1,1,"issue-metadata-sidebar",23),T(16,"async"),L()());if(a&2){var b,c;a=P(2);yg("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)}},pbc=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$)))},qbc=function(a){a&1&&(F(0,obc,17,22,"div",13),T(1,"async"),Nf(2,pbc,3,3,"div",14));a&2&&(a=P(),G(U(1,1,a.showTrackerRedirect$)?2:0))},rbc=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," "))},sbc=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$)))},tbc=function(a){a&1&&M(0,"b-access-denied-metadata",41)},ubc=function(a){a&1&&(K(0,"div",14),F(1,sbc,2,3,"b-access-denied-metadata",40)(2,tbc,1,0,"b-access-denied-metadata",41),L());a&2&&(a=P(),B(),G(a.activeSession.isInternalSession()?1:2))},vbc=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))},xbc=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(wbc(c))});Q(11," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.ROBOT_SLEEPING,Pe))},ybc=function(a,b){a&1&&M(0,"b-duplicates-table",
10);a&2&&(a=P(2),I("issueId",b)("duplicateIds",a))},zbc=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)},Abc=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(wbc(e))});Q(4," Add ");L()();F(5,ybc,1,2,"b-duplicates-table",10);T(6,"async");K(7,"aside",11);F(8,zbc,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)}},Bbc=function(a){a&1&&(F(0,xbc,12,1,"div",2),T(1,"async"),Nf(2,Abc,10,9));a&2&&(a=P(),G(U(1,1,a.showTable$)?2:0))},Cbc=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},Dbc=function(a,b){a&1&&(K(0,"span",9),Q(1," of "),K(2,"a",10),Q(3),L()());a&2&&(P(2),a=sg(11),B(2),I("routerLink",Gg("/issues/",b))("onedevHovercardTrigger",a),B(),S(" ",b," "))},Ebc=function(a,b){a&1&&(K(0,"div")(1,"div",8),T(2,"async"),Q(3),L(),F(4,
Dbc,4,4,"span",9),T(5,"async"),L());if(a&2){var c;a=P();B();zg(Gg("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)}},Fbc=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),zg(Gg("b-chip squared issue-type-",b)),B(),S(" ",a.issueTypeToDisplay(b)," "))},Gbc=function(a,b){a&1&&M(0,"b-issue-hotlists",6);a&2&&I("issueId",b)},Hbc=function(a){a&1&&(M(0,
"b-issue-card",11,1),T(2,"async"));if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",U(2,2,b.canonicalId$))}},Ibc=function(a){a&1&&Yf(0)},Kbc=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,Ibc,1,0,"ng-container",12),L());if(a&2){a=P();var b=sg(23);B(4);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Jbc,a.data.trajectory))}},Lbc=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," "))},Mbc=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(),Ag(a.key),B(3),S('"',a.value,'"'))},Nbc=function(a,b){a&1&&F(0,Mbc,6,2);a&2&&G(b.$implicit.value?0:-1)},Obc=function(a){a&1&&(K(0,"p"),Q(1," [ "),Qf(2,Nbc,1,1,null,null,Pf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Rf(U(4,0,a.arguments)))},Pbc=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),Ag(a.key),B(3),S('"',a.value,'"'))},Qbc=function(a,b){a&1&&F(0,Pbc,7,2,"p",25);a&2&&G(b.$implicit.value?0:-1)},Rbc=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,Obc,6,2,"p"),K(6,"p")(7,"span",22),Q(8,"Output:"),L()(),Qf(9,Qbc,1,1,null,null,Pf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),Ag(a.name),B(2),G(a.arguments?5:-1),B(4),Rf(U(11,2,a.outputs)))},Sbc=function(a){a&1&&
Qf(0,Rbc,12,4,"div",21,Pf);a&2&&(a=P().$implicit,Rf(a.functionCalls))},Tbc=function(a,b){a&1&&(K(0,"div",17)(1,"p",18),Q(2),L(),F(3,Lbc,4,1),F(4,Sbc,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))},Ubc=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()(),Qf(6,Tbc,5,3,"div",17,Pf),L());a&2&&(a=b.data,B(5),S(" ",a.prompt," "),B(),Rf(a.steps))},Vbc=function(a){a&1&&M(0,"div",9)},Wbc=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())},Xbc=function(a){a&1&&Yf(0)},Ybc=function(a){a&1&&E(0,Xbc,1,0,"ng-container",17);a&2&&(P(2),a=sg(5),I("ngTemplateOutlet",a))},Zbc=function(a){a&1&&Yf(0)},$bc=function(a){a&1&&E(0,Zbc,1,0,"ng-container",17);a&2&&(P(2),a=sg(7),I("ngTemplateOutlet",a))},acc=function(a){a&1&&Yf(0)},bcc=function(a){a&1&&E(0,acc,1,0,"ng-container",18);if(a&2){P(2);a=sg(9);var b=dg(0);
I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Hu,b))}},ccc=function(a){a&1&&Yf(0)},dcc=function(a){a&1&&E(0,ccc,1,0,"ng-container",18);if(a&2){P(2);a=sg(9);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Hu,b))}},ecc=function(a){a&1&&Yf(0)},fcc=function(a){a&1&&E(0,ecc,1,0,"ng-container",18);if(a&2){P(2);a=sg(11);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Hu,b))}},gcc=function(a){a&1&&Yf(0)},hcc=function(a){a&1&&E(0,gcc,1,0,"ng-container",18);if(a&
2){P(2);a=sg(11);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Hu,b))}},icc=function(a){a&1&&(K(0,"div",6)(1,"div",7),M(2,"mat-icon",8),F(3,Vbc,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,Wbc,2,0,"ng-template",null,5,Og),L(),K(12,"a",14),M(13,"mat-icon",15),L()(),K(14,"div",16),F(15,Ybc,1,1,"ng-container")(16,$bc,1,1,"ng-container")(17,bcc,1,4,"ng-container")(18,dcc,1,4,"ng-container")(19,fcc,1,4,"ng-container")(20,
hcc,1,4,"ng-container"),L()());if(a&2){a=sg(11);var b=P(),c=dg(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)}},jcc=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P();return v(c.startTailwindRun())});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()}},kcc=function(){},lcc=function(a){a&1&&Yf(0)},mcc=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){u(c);var d=P();return v(d.handleViewSummary())});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,lcc,1,0,"ng-container",18)}a&2&&(a=b.status,P(),b=sg(13),B(4),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Hu,a)))},ncc=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()}},occ=function(a){a&1&&Yf(0)},pcc=function(a,b){a&1&&(F(0,ncc,2,0,"button",23),E(1,occ,1,0,"ng-container",18));if(a&2){a=b.status;b=P();var c=sg(13);G(b.hasTrajectoryData()?0:-1);B();I("ngTemplateOutlet",
c)("ngTemplateOutletContext",Kg(3,Hu,a))}},qcc=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);var c=P(2);return v(c.handleRetry())});Q(1," Retry ");L()}},rcc=function(a,b){a&1&&F(0,qcc,2,0,"button",25);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?0:-1))},scc=function(a,b){a&1&&M(0,"b-issue-person-card",4);a&2&&I("email",b)},tcc=function(a,b){a&1&&(K(0,"span",3),Q(1),T(2,"shortenEmail"),L(),K(3,"onedev-hovercard",null,0),F(5,scc,1,1,"b-issue-person-card",
4),L());if(a&2){var c;a=sg(4);var d=P(2);I("onedevHovercardTrigger",a);B();S(" ",Ng(2,3,d.userToLossyEmail(b),30)," ");B(4);G((c=b.emailAddress)?5:-1,c)}},ucc=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",Gg("Comment number ",b)),I("routerLinkObj",a.getCommentNumberLink(b)),B(),S(" #",b))},vcc=function(a){a&1&&(Wf(0),Q(1,","),Xf())},wcc=function(a,b){a&1&&(K(0,"span",1),F(1,tcc,6,6),
K(2,"span"),F(3,ucc,2,4,"a",2),F(4,vcc,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)}},xcc=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",Fg(U(2,6,a.src)),Pe),B(2),I("showByDefault",!0)("src",a.srcCorp),B(),I("issueId",b.issueId)("comments",
a.comments))},zcc=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(ycc(d,c.length))});Q(1," Load more ");L()}},Acc=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()}},Bcc=function(a){a&1&&F(0,zcc,2,0,"button",6)(1,Acc,2,0,"button",7);a&2&&(a=P(3),G(a.paginate?0:1))},Ccc=function(a,b){a&1&&(K(0,"div",1),Qf(1,xcc,5,8,"div",2,Of),T(3,"async"),L(),F(4,Bcc,
2,1));if(a&2){a=P();var c=P();yg("show-all-images",c.paginate);B();Rf(U(3,3,c.imagesToRender$));B(3);G(a.length!==b.length?4:-1)}},Dcc=function(a){a&1&&(F(0,Ccc,5,5),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.imagesToRender$))?0:-1,b)}},Ecc=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=b.get(c.src))!=null?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var g=l(f);f=g.next().value;g=g.next().value;return{src:f,
comments:Jq(g)}})},Fcc=function(a){a&1&&(K(0,"span",1)(1,"span",4),Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.leftText," "))},Gcc=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(),Ag(a.linkText))},Hcc=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(),Ag(a.linkText))},Icc=function(a){a&1&&(K(0,"a",6),Q(1),L());a&2&&(a=P(2),I("href",Fg(a.redirectedHref),
Pe),B(),Ag(a.linkText))},Jcc=function(a){a&1&&F(0,Hcc,2,3,"b-issue-reference-widget",5)(1,Icc,2,3,"a",6);a&2&&(a=P(),G(a.issueId?0:1))},Kcc=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),Ag(a.rightText))},Lcc=function(a){var b=document.createElement("div");a&&vsa(b,a);return b},Mcc=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))}},Ncc=function(a,b){a&1&&(K(0,"tr"),F(1,Mcc,9,10),L());a&2&&(a=b.$implicit,B(),G(a.sourceComments&&a.relatedLinks?1:-1))},
Occ=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()}},Pcc=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()}},Qcc=function(a){a&1&&(K(0,"div"),F(1,Occ,2,0,"button",5)(2,Pcc,2,0,"button",6),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Rcc=function(a,
b){a&1&&(K(0,"section")(1,"table"),Qf(2,Ncc,2,1,"tr",null,Pf),L(),F(4,Qcc,3,1,"div"),L());a&2&&(a=P(),B(2),Rf(a),B(2),G(b.length!==a.length?4:-1))},Scc=function(a){a&1&&(F(0,Rcc,5,1,"section"),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allMentionedIssues$))?0:-1,b)}},Tcc=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)))},Ucc=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()}},Vcc=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()}},Wcc=function(a){a&1&&(K(0,"div"),F(1,Ucc,2,0,"button",3)(2,Vcc,2,0,"button",4),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Ycc=function(a,
b){a&1&&(Qf(0,Tcc,4,6,"div",0,Xcc),F(2,Wcc,3,1,"div"));a&2&&(a=P(),Rf(b),B(2),G(a.length!==b.length?2:-1))},Zcc=function(a){a&1&&(F(0,Ycc,3,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.linkGroupsToRender$))?0:-1,b)}},adc=function(a,b){var c=a.filter(function(d){return c$a(d[0])});a=a.filter(function(d){return!c$a(d[0])});return $cc([].concat(q(c),q(a)).slice(0,b),"ASCENDING")},bdc=function(a){a&1&&M(0,"mat-icon",14)},cdc=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,")")}},fdc=function(a,b){if(a&1){var c=t();K(0,"inline-images-summary",16);T(1,"async");N("click",function(){u(c);var e=P(3);ddc(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:Jg(4,edc))}},gdc=function(a){a&1&&(F(0,fdc,2,5,"inline-images-summary",15),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueId$))?0:-1,b)}},hdc=function(a){a&1&&M(0,"mat-icon",
17)},idc=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,")")}},jdc=function(a,b){if(a&1){var c=t();K(0,"b-mentioned-issues",19);N("click",function(){u(c);var d=P(3);ddc(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});L()}a&2&&(a=P(3),I("issueReferences",b)("currentIssueId",a.issueId))},kdc=function(a){a&1&&(F(0,jdc,1,2,"b-mentioned-issues",18),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issues$))?
0:-1,b)}},ldc=function(a){a&1&&M(0,"mat-icon",20)},mdc=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,")")}},ndc=function(a){if(a&1){var b=t();K(0,"related-links-widget",21);T(1,"async");N("click",function(){u(b);var d=P(2);ddc(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:Jg(4,edc))("issueId",a.issueId)}},odc=function(a){a&1&&M(0,"mat-icon",22)},
pdc=function(a){a&1&&Q(0,"Similar issues")},qdc=function(a,b){if(a&1){var c=t();K(0,"suggested-similar-issues",24);N("click",function(){u(c);var e=P(5);ddc(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)}},rdc=function(a){a&1&&(F(0,qdc,1,3,"suggested-similar-issues",23),T(1,"async"));if(a&2){var b;a=P(4);G((b=U(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},sdc=function(a){a&
1&&(F(0,rdc,2,3),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.similarIssueIds$))?0:-1,b)}},tdc=function(a){a&1&&(K(0,"expandable-tab",9),E(1,odc,1,0,"ng-template",4)(2,pdc,1,0,"ng-template",5)(3,sdc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.SIMILAR_ISSUES))},udc=function(a){a&1&&M(0,"mat-icon",25)},vdc=function(a){a&1&&Q(0,"Deduplicate")},wdc=function(a,b){a&1&&M(0,"b-recommendation",26);a&2&&I("recommendation",b)},xdc=function(a){a&1&&(F(0,wdc,1,1,"b-recommendation",26),T(1,"async"));
if(a&2){var b;a=P(2);G((b=U(1,1,a.dedupeRecommendation$))?0:-1,b)}},ydc=function(a){a&1&&M(0,"mat-icon",27)},zdc=function(a){a&1&&Q(0,"Assign to reporter")},Adc=function(a,b){a&1&&M(0,"b-recommendation",26);a&2&&I("recommendation",b)},Bdc=function(a){a&1&&(F(0,Adc,1,1,"b-recommendation",26),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.assignToReporterRecommendation$))?0:-1,b)}},Cdc=function(a){a&1&&(K(0,"expandable-tab",11),E(1,ydc,1,0,"ng-template",4)(2,zdc,1,0,"ng-template",5)(3,Bdc,2,3,"ng-template",
6),L());a&2&&(a=P(2),I("key",a.TabKeys.ASSIGN_TO_REPORTER))},Ddc=function(a){a&1&&M(0,"mat-icon",28)},Edc=function(a){a&1&&Q(0,"Reroute")},Fdc=function(a,b){a&1&&M(0,"b-recommendation",26);a&2&&I("recommendation",b)},Gdc=function(a){a&1&&(F(0,Fdc,1,1,"b-recommendation",26),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.componentRoutingRecommendation$))?0:-1,b)}},Hdc=function(a){a&1&&(K(0,"expandable-tab",12),E(1,Ddc,1,0,"ng-template",4)(2,Edc,1,0,"ng-template",5)(3,Gdc,2,3,"ng-template",6),L());
a&2&&(a=P(2),I("key",a.TabKeys.COMPONENT_ROUTING))},Idc=function(a){a&1&&M(0,"mat-icon",22)},Jdc=function(a){a&1&&Q(0," AI Suggestions ")},Kdc=function(a,b){a&1&&M(0,"b-recommendation",29);a&2&&I("showTitle",!0)("recommendation",b)},Ldc=function(a){a&1&&(F(0,Kdc,1,2,"b-recommendation",29),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.anyIssueEditRecommendation$))?0:-1,b)}},Mdc=function(a){a&1&&(K(0,"expandable-tab",13),E(1,Idc,1,0,"ng-template",4)(2,Jdc,1,0,"ng-template",5)(3,Ldc,2,3,"ng-template",
6),L());a&2&&(a=P(2),I("key",a.TabKeys.ANY_ISSUE_EDIT))},Odc=function(a,b){if(a&1){var c=t();K(0,"expandable-tabs",2);N("expandedTabsChanged",function(d){var e=u(c),f=P();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){u(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var g=l(Ndc),k=g.next();!k.done;k=g.next())k=k.value,d.has(k)?(Iu(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+
"-content-not-shown")):(Iu(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));d.size>0?(f.recordImpressionOnce(),Iu(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(Iu(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,bdc,1,0,"ng-template",4)(3,cdc,2,3,"ng-template",5)(4,gdc,2,3,"ng-template",6);L();K(5,"expandable-tab",7);E(6,hdc,1,0,"ng-template",4)(7,idc,2,3,"ng-template",5)(8,kdc,2,3,"ng-template",6);L();K(9,"expandable-tab",8);E(10,ldc,1,0,"ng-template",4)(11,mdc,2,3,"ng-template",5)(12,ndc,2,5,"ng-template",6);L();F(13,tdc,4,1,"expandable-tab",9);T(14,"async");K(15,"expandable-tab",10);E(16,udc,1,0,"ng-template",4)(17,vdc,1,0,"ng-template",5)(18,xdc,2,3,"ng-template",6);L();F(19,Cdc,4,1,"expandable-tab",
11);F(20,Hdc,4,1,"expandable-tab",12);F(21,Mdc,4,1,"expandable-tab",13);T(22,"async");L()}a&2&&(a=P(),I("tabKeys",b)("expandedTabs",a.initiallyExpandedTabs),B(),I("key",a.TabKeys.IMAGES),B(4),I("key",a.TabKeys.MENTIONED_ISSUES),B(4),I("key",a.TabKeys.LINKS),B(4),G(U(14,10,a.shouldShowSimilarIssues$)?13:-1),B(2),I("key",a.TabKeys.DUPES),B(4),G(a.enableNeedsInfoUi?19:-1),B(),G(a.activeSession.isInternalSession()?20:-1),B(),G(U(22,12,a.shouldShowAnyIssueEditSuggestion$)?21:-1))},Pdc=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),Ag(a.updateText))},Qdc=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()}},Rdc=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,Qdc,2,0,"button",8),T(6,"async"),L());a&2&&(a=P(2),B(5),G(U(6,
1,a.showEditButton$)?5:-1))},Tdc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(4);return v(Sdc(c))});Q(1," Mark as fresh ");L()}},Udc=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,Tdc,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))},Vdc=function(a){a&1&&M(0,"mat-icon",19)},Wdc=function(a,b){a&1&&(F(0,Vdc,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=sg(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:"")}},Xdc=
function(a,b){a&1&&M(0,"b-actions-menu",14);a&2&&I("buttonLabel","Status Update actions")("menuItems",b)},Ydc=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)}},Zdc=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()}},$dc=function(a){a&1&&(K(0,"div",15)(1,"div",null,1),F(3,Ydc,3,8,"b-note-container",23),T(4,"async"),L(),F(5,Zdc,2,0,"button",24),L());if(a&2){var b;a=P(3);B();yg("collapsed",a.isCollapsed);B(2);G((b=U(4,4,a.statusUpdateAsNote$))?3:-1,b);B(2);G(a.isCollapsed?5:-1)}},aec=function(a){a&1&&(K(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),Q(4,"Status Update"),L(),F(5,Udc,4,3),T(6,"async"),L(),K(7,"div",13),F(8,Wdc,10,9),T(9,"async"),F(10,Xdc,1,2,"b-actions-menu",14),T(11,"async"),L()(),F(12,$dc,
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)}},cec=function(a,b){a&1&&(K(0,"div"),T(1,"async"),M(2,"mat-icon",3),F(3,Rdc,7,3,"header",4),F(4,aec,14,12,"div",5),L());a&2&&(a=P(),zg(Gg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",U(1,9,a.semanticClass$))),yg("display-none",Kg(11,bec,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))},dec=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";case 0:return"";default:return""}},eec=function(a){a&1&&M(0,"llm-suggested-bug-fix",7);a&2&&(a=P(),I("issueId",a))},fec=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,eec,1,1,"llm-suggested-bug-fix",7),M(7,"b-issue-description",8));if(a&2){a=
sg(4);var c=P();I("id",b);B();yg("hidden",!U(2,6,a.shouldShowInsights$));B(4);I("issueId",b);B();G(c.enableTailwind?6:-1);B();I("id",b)}},gec=function(a,b){a&1&&(M(0,"issue-summary-card",9,1),T(2,"async"));a&2&&(a=sg(1),yg("hidden",!U(2,3,a.shouldShowSummaryCard$)),I("issueId",b))},hec=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},iec=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},jec=function(a,b){a&1&&(K(0,"div",10),M(1,"b-event-stream-header"),F(2,hec,
1,1,"issue-event-list",11),M(3,"b-post-comment",7),F(4,iec,1,1,"issue-event-list",11),L());a&2&&(a=P(),yg("recent-first",a.showRecentEventsFirst),B(2),G(a.showRecentEventsFirst?-1:2),B(),I("issueId",b),B(),G(a.showRecentEventsFirst?4:-1))},kec=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)}},lec=function(a){a&
1&&F(0,kec,7,4,"section");a&2&&(a=P(),G(a.length?0:-1))},mec=function(a){a&1&&F(0,lec,1,1);a&2&&(a=P(2),G(a.isInternalSession?0:-1))},nec=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)}},oec=function(a,b){a&1&&F(0,nec,7,4,"section");a&2&&G(b.length?0:-1)},pec=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)}},qec=function(a,b){a&1&&F(0,pec,5,4,"section");a&2&&G(b.length?0:-1)},rec=function(a){a&1&&(F(0,mec,1,1),T(1,"async"),F(2,oec,1,1),T(3,"async"),F(4,qec,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)}},sec=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))}},tec=function(a){if(a&1){var b=t();Qf(0,sec,1,3,"b-package-mentions-listing",2,Pf);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(),Rf(a.mentions.packageMentionSet),B(3),I("href",a.link,Pe))},uec=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))},vec=function(a,b){a&1&&F(0,tec,5,1)(1,uec,8,1,"div",1);a&2&&G(b.mentions&&b.mentions.totalMentions>0?0:1)},wec=function(a){a&1&&(F(0,vec,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.codeMentionsState$))?0:-1,b)}},xec=function(a){a&1&&M(0,"b-spinner",4);a&
2&&I("large",!0)},yec=function(a){a&1&&M(0,"b-hotlist-grid",5);a&2&&(a=P(),I("hotlists",a.hotlists))},zec=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:"","..."))},Aec=function(a){a&1&&Q(0," No issues match your search. ")},Bec=function(a){a&1&&Q(0," Use search box to find issues. ")},Dec=function(a){a&1&&(K(0,"a",10),Q(1," Click to see all open issues"),L());a&2&&I("queryParams",Jg(1,Cec))},Eec=function(a){a&1&&(K(0,
"a",11),Q(1,"Learn more about searching"),L())},Fec=function(a){a&1&&(K(0,"div",7),M(1,"img",9),F(2,Aec,1,0)(3,Bec,1,0),F(4,Dec,2,2,"a",10)(5,Eec,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))},Gec=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",12);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Eg("columnsChange",function(c){u(b);var d=P();Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});
N("columnsChange",function(){u(b);var c=P();return v(c.onColumnsChange())})("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P();return v(Ju(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(Ju(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex),Cg("columns",a.issueColumns),I("enableColumnSaving",
!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Hec=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()())},Iec=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},Jec=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(2),I("slos",a.activeSlos))},Kec=function(a){a&1&&(K(0,"div",7),Q(1,"You have no Active SLOs"),L())},Lec=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(3),I("slos",a.archivedSlos))},Mec=
function(a){a&1&&(K(0,"p",12),Q(1," You have no archived SLOs. "),L())},Nec=function(a){a&1&&(K(0,"div",11),F(1,Lec,1,1,"b-slo-grid",6)(2,Mec,2,0,"p",12),L());a&2&&(a=P(2),B(),G(a.archivedSlos.length?1:2))},Oec=function(a){if(a&1){var b=t();F(0,Jec,1,1,"b-slo-grid",6)(1,Kec,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,Nec,3,1,"div",11)}a&2&&(a=P(),G(a.activeSlos.length?
0:1),B(4),yg("rotate-180",a.areArchivedSlosExpanded),I("svgIcon","arrow-dropdown"),B(),S(" Archived SLOs (",a.archivedSlos.length,") "),B(),G(a.areArchivedSlosExpanded?6:-1))},Pec=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))},Qec=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," "))},Rec=function(a){a&1&&M(0,"mat-icon",28);a&2&&(P(),a=dg(2),I("svgIcon",a))},Sec=function(a,b){a&1&&(K(0,"mat-checkbox",26)(1,"div",27),bg(2),F(3,Rec,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=cg(a.constants.issueTypeIcons.get(b));B();G(c?3:-1);B();S(" ",a.issueTypeToDisplay(b)," ")}},Uec=function(a){a&1&&(F(0,Qec,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),Qf(7,Sec,5,4,"mat-checkbox",26,Tec),T(9,"keyvalue"),L());if(a&2){var b;a=P();G((b=U(1,1,a.conflictingIssueTypes$))?0:-1,b);B(7);Rf(U(9,3,a.issueTypesForms))}},Vec=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),Ag(a.text))},Wec=function(a){if(a&1){var b=t();K(0,"th",30)(1,"mat-checkbox",31);N("change",function(){u(b);var d=P(),e=dg(11);d=l(d.customFieldRows);for(var f=d.next();!f.done;f=d.next())f.value.formControl.setValue((e===
"all"?"hidden":"visible")==="visible");return v()});Q(2," Is Visible? ");L()()}if(a&2){a=P();var c=dg(11);B();I("disabled",a.isReadOnly)("checked",c==="all")("indeterminate",c==="some")}},Xec=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))},Yec=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},Zec=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.name," "))},$ec=function(a){a&1&&(K(0,"th",30),
Q(1," ID"),L())},afc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a.customField.customFieldId))},bfc=function(a){a&1&&(K(0,"th",30),Q(1," Type"),L())},cfc=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)," ")}},dfc=function(a){a&1&&(K(0,"th",30),Q(1," Description"),L())},efc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.description,
" "))},ffc=function(a){a&1&&(K(0,"th",30),Q(1," Required?"),L())},gfc=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)," "))},hfc=function(a){a&1&&(K(0,"th",30),Q(1," Default"),L())},ifc=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))},jfc=function(a){a&1&&M(0,"tr",34)},kfc=function(a,b){a&1&&M(0,"tr",35);a&2&&yg("disabled-field",
!b.$implicit.formControl.value)},lfc=function(a){a&1&&M(0,"tr",35)},pfc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",8);N("onSave",function(e){u(b);var f=P(2),g=dg(0);return v(mfc(f,g.config,e))})("onCancel",function(){u(b);var e=P(2);return v(nfc(e))});L()}if(a&2){a=P(2);var c=dg(0),d=ofc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("configUnderEdit",c.config)("isReadOnly",!a.isAdmin)("existingConfiguredIssueTypes",d)}},rfc=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(nfc(d))});L()}if(a&2){a=P(2);var c=dg(0);I("currentComponentId",c.config.componentId)("customFields",qfc(a,c.config))("configUnderEdit",c.config)("isReadOnly",!0)}},tfc=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(sfc(f,e))})("onCancel",function(){u(b);var e=P(2);return v(nfc(e))});L()}if(a&2){a=P(2);var c=dg(0),d=ofc(a,c.config);
I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("disallowIssueTypes",c.disallowIssueTypes)("configUnderEdit",c.config)("existingConfiguredIssueTypes",d)}},vfc=function(a){a&1&&(K(0,"a",12),Q(1," Learn more "),L());a&2&&(P(3),I("href",ufc(),Pe))},wfc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,Kf("colspan",5),B(2),Ag(a.text))},xfc=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},yfc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,
B(),S(" ",a.name," "))},zfc=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=sg(5),B(3),I("onedevHovercardTrigger",a))},Afc=function(a){a&1&&Yf(0)},Cfc=function(a,b){a&1&&(K(0,"td",29),E(1,Afc,1,0,"ng-container",35),L());a&
2&&(a=b.$implicit,P(),b=sg(36),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Bfc,a)))},Dfc=function(a){a&1&&(K(0,"th",30),Q(1," Inherited From"),L())},Efc=function(a){a&1&&(Wf(0),M(1,"b-component-card",40,4),Xf());if(a&2){a=sg(2);P(2);var b=dg(1);B();I("onedevIsHovercardReady",a.init)("componentId",b.toString())}},Ffc=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,Efc,3,2,"ng-container",39),L()());if(a&2){a=
sg(6);P();var b=dg(1),c=dg(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," ")}},Gfc=function(a,b){a&1&&(K(0,"td",29),bg(1)(2),F(3,Ffc,8,4,"div",36),L());a&2&&(b=b.$implicit,a=P(3),B(),b=cg(b.owningComponentId),B(),cg(a.componentIdsToPaths[b]),B(),G(b!==a.currentComponentId?3:-1))},Hfc=function(a){a&1&&(K(0,"th",30),Q(1," Actions"),L())},Ifc=function(a){a&1&&Yf(0)},Jfc=function(a,b){a&1&&
(K(0,"td",29),E(1,Ifc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=sg(34),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Bfc,a)))},Kfc=function(a){a&1&&M(0,"tr",41)},Lfc=function(a){a&1&&M(0,"tr",42)},Mfc=function(a){a&1&&M(0,"tr",43)},Nfc=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())},Ofc=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))},Pfc=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=Em(c.data);c.name+=" (Copy)";sfc(d,c);return v()});Q(1," Create Copy ");L()}},Rfc=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(Qfc(d,c.data))});Q(3," Delete ");L()}},Sfc=function(a){a&1&&(F(0,Pfc,2,0,"button",50),F(1,Rfc,4,0));a&2&&(a=P().row,G(a.isDefault?-1:0),B(),G(a.inherited?-1:1))},Tfc=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()}},Ufc=function(a,b){a&1&&(K(0,"div",48),F(1,Sfc,2,2),F(2,Tfc,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))},Vfc=function(a){a&1&&M(0,"mat-icon",57);if(a&2){P();a=dg(1);var b=dg(2);yg("non-applicable",a);I("svgIcon",b)}},Wfc=function(a,b){a&1&&(K(0,"div",31),bg(1)(2),F(3,Vfc,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=cg(!c.effectiveIssueTypes.has(a));B();var d=cg(b.constants.issueTypeIcons.get(a));B();G(d?3:-1);B();yg("non-applicable",c);B();Ag(b.issueTypeToDisplay(a))}},
Xfc=function(a,b){a&1&&(K(0,"div",55),Qf(1,Wfc,6,6,"div",31,Pf),L());a&2&&(a=b.row,B(),Rf(a.issueTypes))},agc=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,vfc,2,1,"a",12);L();K(4,"table",13);Wf(5,14);E(6,wfc,3,2,"td",15);Xf();Wf(7,16);E(8,xfc,2,0,"th",17)(9,yfc,2,1,"td",15);Xf();Wf(10,18);E(11,zfc,9,1,"th",17)(12,Cfc,2,
4,"td",15);Xf();Wf(13,19);E(14,Dfc,2,0,"th",17)(15,Gfc,4,3,"td",15);Xf();Wf(16,20);E(17,Hfc,2,0,"th",17)(18,Jfc,2,4,"td",15);Xf();E(19,Kfc,1,0,"tr",21)(20,Lfc,1,0,"tr",22)(21,Mfc,1,0,"tr",23);L();M(22,"mat-divider");F(23,Nfc,2,0,"div",24);K(24,"div",25)(25,"button",26);N("click",function(){u(b);var c=P(2);return v(Yfc(c))});Q(26," Create New Typed Configuration ");L();K(27,"button",27);N("click",function(){u(b);var c=P(2);Yfc(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(Zfc(c))});Q(30," Reorder Configurations ");L()();E(31,Ofc,7,3,"ng-template",null,0,Og)(33,Ufc,3,2,"ng-template",null,1,Og)(35,Xfc,3,0,"ng-template",null,2,Og);L()}a&2&&(a=P(2),B(3),G(a.isInternalSession?3:-1),B(),I("dataSource",a.allTableRows$),B(15),I("matHeaderRowDef",a.displayedColumns),B(),I("matRowDefColumns",a.displayedColumns),B(),I("matRowDefColumns",Jg(10,$fc))("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))},bgc=function(a){a&1&&F(0,pfc,1,5,"b-field-configuration-editor",5)(1,rfc,1,4,"b-field-configuration-editor",6)(2,tfc,1,5,"b-field-configuration-editor",7)(3,agc,37,11,"div");a&2&&(P(),a=dg(0),G(a.view=="edit"?0:a.view=="readonly"?1:a.view=="create"?2:3))},cgc=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))},dgc=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))},egc=function(a){var b={};a=l(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},hgc=function(a){return{approximateSize:nn(En(a,2)),groupEmail:xi(a,1),sizeCategory:fgc[Ii(a,3)],permissionCategory:ggc[Ii(a,5)]}},jgc=function(a){a=
Ni(a,igc,1,Oi(),jb);return{groupMetadata:(a!=null?a:[]).map(hgc)}},lgc=function(a,b){var c=[];if(!b||!a)return c;for(var d=l(kgc),e=d.next();!e.done;e=d.next()){e=e.value;var f=Hm(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},ngc=function(a,b){if(!a.appenders||!b||Dm(b.appenders,a.appenders))return!1;a=l(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,mgc.has(c)&&!b.appenders.includes(c))return!0;return!1},ogc=function(a){var b=
new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.sizeCategory){case "LARGE":case "HUGE":case "ENORMOUS":b.set(c.groupEmail,c)}return b},pgc=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"},qgc=function(a){if(a.size===0)return Cj;for(var b=a.size===
1?Hh("p",{},"The following large group is added: "):Hh("p",{},"The following large groups are added: "),c=[],d=l(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Hh("p",{},Fh([Hh("b",{},e)," has approximately ",Hh("b",{},f)," Googlers."])))}return Fh([b].concat(q(c)))},rgc=function(a){if(a.size===0)return Cj;var b=a.size===1?Hh("p",{},"The following open group is added: "):Hh("p",{},"The following open groups are added: "),c=[];a=l(a.keys());for(var d=a.next();!d.done;d=
a.next())c.push(Hh("p",{},Hh("b",{},d.value)));return Fh([b].concat(q(c)))},sgc=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.permissionCategory==="OPEN_TO_JOIN"&&b.set(c.groupEmail,c);return b},tgc=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},ugc=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},Ku=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:LSa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},vgc=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))},wgc=function(a,b){a&1&&(K(0,"tr",2)(1,"th",3),Q(2),L(),K(3,"td"),Qf(4,vgc,1,5,"b-contact-chip",4,Pf),L()());a&2&&(a=b.$implicit,B(2),Ag(a.permission),B(2),Rf(a.principals))},Agc=function(a){var b="minimal";b=b===void 0?"expanded":b;a=xgc(a);a=tVa(a,function(c){c=ygc(c);return zgc(c,b)});return xgc(a)},Cgc=function(a){a=xgc(a);a=tVa(a,function(b){b=Bgc(b);return ygc(b)});return xgc(a)},
zgc=function(a,b){var c=b==="expanded"?Dgc:Egc;return new Set([].concat(q(a)).flatMap(function(d){return[].concat(q(c.get(d)))}))},Bgc=function(a){return new Set(Fgc.filter(function(b){return hSa(a,Egc.get(b))}))},ygc=function(a){a=zgc(a,"expanded");var b=Bgc(a);return new Set([].concat(q(b)).filter(function(c){return[].concat(q(Ggc.get(c))).every(function(d){return!b.has(d)})}))},xgc=function(a){var b=new Map;a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;
d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;b.set(e,((f=b.get(e))!=null?f:new Set).add(c))}}return b},Igc=function(){function a(f,g){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(g);var m;g=l((m=b.get(g))!=null?m:[]);for(m=g.next();!m.done;m=g.next())m=m.value,k.has(m)||a(f,m)}var b=Hgc,c=new Map,d=[].concat(q(b.values())).flatMap(function(f){return[].concat(q(f))});d=l(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},Jgc=function(a){var b=Agc(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")}}},
Kgc=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return Jq([].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()},Mgc=function(a){function b(e){var f;return[].concat(q((f=d.get(e))!=null?f:[])).sort()}if(!a)return Lgc;var c=a.issueAccessPolicy;a=a.componentAccessPolicy;var d=Cgc(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}},Ngc=function(a,b){var c;(c=!b)||(c=!(!Dm([].concat(q(b.admins)).sort(),[].concat(q(a.admins)).sort())||!Dm([].concat(q(b.appenders)).sort(),[].concat(q(a.appenders)).sort())||!Dm(b.implicitAccess,a.implicitAccess)));
return!c},Ogc=function(a,b){return b&&a?!Dm([].concat(q(a.admins)).sort(),[].concat(q(b.admins)).sort())||!Dm([].concat(q(a.editors)).sort(),[].concat(q(b.editors)).sort())||!Dm([].concat(q(a.appenders)).sort(),[].concat(q(b.appenders)).sort())||!Dm([].concat(q(a.readers)).sort(),[].concat(q(b.readers)).sort())||!Dm([].concat(q(a.restrictedReaders)).sort(),[].concat(q(b.restrictedReaders)).sort())||!Dm([].concat(q(a.restrictedPlusReaders)).sort(),[].concat(q(b.restrictedPlusReaders)).sort()):!1},
Pgc=function(a,b){var c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!N0a(a[d],b[d]))return!0;return!1},Qgc=function(a){if(a&1){var b=t();K(0,"input",15);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Rgc=function(a){if(a&1){var b=t();
K(0,"input",16);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Sgc=function(a){if(a&1){var b=t();K(0,"input",17);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=
c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Tgc=function(a,b){a&1&&(K(0,"p",14)(1,"a",18),Q(2," Learn more "),L()());a&2&&(B(),I("href",b,Pe))},Ugc=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,Qgc,1,2,"input",7),K(7,"label",8),Q(8),L()(),K(9,"div",6),F(10,Rgc,1,2,"input",9),K(11,"label",10),Q(12),L()(),K(13,"div",11),
F(14,Sgc,1,2,"input",12),K(15,"label",13),Q(16),L()()(),F(17,Tgc,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(" ",Btb(a.AccessLevelStrings.INTERNAL)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);B(2);S(" ",Btb(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?14:-1);B(2);S(" ",Btb(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");B();G((b=
Tib(a.documentationLinks))?17:-1,b)}},Zgc=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);yg("bv2-edit-resource-readonly",b.canEdit);B(2);I("htmlFor",a.roleType);B();Ag(a.label);B();I("matTooltip",a.tooltip);B(2);var d;I("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",
(d=a.customValidators)!=null?d:Jg(24,Vgc))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?Kg(28,Wgc,Lg(25,Xgc,a.chips.displayText,a.chips.values)):Jg(30,Ygc));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"))}},$gc=function(a){a&1&&(K(0,"div",0),M(1,"b-spinner"),L())},bhc=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();ahc(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))},dhc=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(chc(c))});Q(2);L()}a&2&&(a=P(3),I("disabled",a.isSaving()),B(2),S(" ",a.archiveAction," Component "))},ehc=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()))},fhc=function(a){a&1&&(K(0,"a",17),Q(1," Browse Components "),L(),F(2,dhc,3,2,"b-button",18),F(3,ehc,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))},ghc=function(a){a&1&&(K(0,"div",16),M(1,"b-spinner"),L())},hhc=function(a){a&1&&(K(0,"span",23),Q(1," (archived) "),L())},ihc=function(a){a&1&&Yf(0)},jhc=function(a){a&
1&&Yf(0)},khc=function(a){a&1&&Yf(0)},lhc=function(a){a&1&&Yf(0)},mhc=function(a){a&1&&Yf(0)},nhc=function(a){a&1&&Yf(0)},phc=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),yg("required",a.isParentComponentRequired&&!ohc(a)),B(11),I("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!ohc(a)))},qhc=function(a){a&1&&(K(0,"a",60),Q(1," Learn more "),L());a&2&&(P(4),I("href",e7b(),Pe))},rhc=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),yg("bv2-edit-resource-readonly",!a.isAdmin()),
B(8),I("href",Lu(),Pe),B(3),I("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",a.component.retentionSettings))},thc=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&&shc(d);return v()});L()()}a&2&&(a=P(5),B(),I("anchorTarget",
Fg(a.hasUnsavedChanges()?"_blank":"_self"))("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==null?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},uhc=function(a){a&1&&(K(0,"div",79)(1,"label",80)(2,"span",43),Q(3,"Team Configuration"),L()(),F(4,thc,2,7,"div",81),L());a&2&&(a=P(4),yg("bv2-edit-resource-readonly",!a.isAdmin()),B(4),G(a.component.team?4:-1))},vhc=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," ")}},whc=function(a){a&1&&Q(0," None ")},xhc=function(a,b){a&1&&(K(0,"div",87),Q(1," Inherited SLO Policy: "),F(2,vhc,2,2,"a",92)(3,whc,1,0),L());a&2&&(B(2),G(b.id!=="0"?2:3))},yhc=function(a){a&1&&(K(0,"a",93),Q(1),T(2,"titlecase"),L());a&2&&(a=P(),I("routerLinkObj",a.link),B(),Bg(" (",U(2,3,a.type),") ",a.name," "))},zhc=function(a){a&1&&Q(0," None ")},Ahc=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))},Bhc=function(a){a&1&&F(0,Ahc,2,2,"div",95);a&2&&(a=P(6),G(a.showSloInheritancePath?0:-1))},Chc=function(a,b){if(a&1){var c=t();K(0,"div",88);Q(1," Policy Source: ");F(2,yhc,3,5,"a",93)(3,zhc,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,Bhc,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)}},Dhc=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}))},Ehc=function(a){a&1&&(K(0,"div",89),Q(1," SLO Admins: "),K(2,"a",97),Q(3,"Component Admins"),L(),F(4,Dhc,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))},Fhc=function(a){a&1&&(M(0,"mat-icon",98),Q(1," on "))},Ghc=function(a){a&1&&(M(0,"mat-icon",99),Q(1," off "))},Hhc=function(a){a&1&&(Q(0," Lock: "),F(1,Fhc,2,0),T(2,"async"),Nf(3,Ghc,2,0));a&2&&(a=P(5),B(),G(U(2,1,a.sloLocked$)?1:3))},Jhc=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||shc(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",!Ihc(a)))},Khc=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);Eg("ngModelChange",function(c){u(b);var d=P(6);Dg(d.component.slo.comment,c)||(d.component.slo.comment=c);return v(c)});L()()}a&2&&(a=P(6),B(4),Cg("ngModel",a.component.slo.comment),I("disabled",!a.isComponentSloEditor))},Lhc=function(a){a&
1&&(K(0,"a",106),M(1,"mat-icon",110),L());a&2&&(a=P(6),I("target",Fg(a.hasUnsavedChanges()?"_blank":"_self"))("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},Phc=function(a){if(a&1){var b=t();F(0,Khc,5,2,"div",101);K(1,"mat-slide-toggle",102);Eg("ngModelChange",function(d){u(b);var e=P(5);Dg(e.isEnableSloChecked,d)||(e.isEnableSloChecked=d);return v(d)});N("change",function(d){u(b);var e=P(5);d=d.checked;e.isEnableSloChecked=d;d||(e.component.slo.id=void 0);return v()});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,Lhc,2,3,"a",106);L()}if(a&2){a=P(5);G(Mhc(a)?0:-1);B();yg("indented",Nhc(a));Cg("ngModel",a.isEnableSloChecked);I("disabled",!Ohc(a));B(5);var c;I("bv2Disabled",!a.isEnableSloChecked||!Ohc(a))("boundId",(c=a.component.slo.id)!=null?c:null)("bv2Placeholder",a.isEnableSloChecked&&Ohc(a)?"Type to search for an SLO":"SLO disabled");B();G(a.component.slo.id&&
a.component.slo.id!=="0"?7:-1)}},Qhc=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,xhc,4,1,"div",87),T(15,"async"),F(16,Chc,8,6,"div",88),T(17,"async"),
F(18,Ehc,5,2,"div",89),K(19,"div",90),F(20,Hhc,4,3),L()(),F(21,Jhc,4,2,"div",91),F(22,Phc,8,9),L());if(a&2){var b,c;a=P(4);yg("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(Nhc(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)}},Rhc=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()))},Shc=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()))},Thc=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()}},Uhc=function(a){a&1&&M(0,"b-spinner")},Vhc=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))},Whc=function(a){a&1&&(K(0,"span"),Q(1," No child components. "),
L())},Yhc=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);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.component.name,c)||(d.component.name=c);return v(c)});L()();K(9,"div",45)(10,"div",46)(11,"label",47)(12,"span",43);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);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.component.description,c)||(d.component.description=c);return v(c)});Q(21,"                ");L()();F(22,phc,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,qhc,2,1,"a",60);L()()();F(33,rhc,12,8,"div",61);F(34,uhc,5,3,"div",62);F(35,Qhc,23,12,"div",63);F(36,Rhc,2,2,"mat-slide-toggle",64);K(37,"div",65);F(38,Shc,7,3,"div",66);K(39,"div",66);F(40,Thc,2,0,"b-button",67);L()();K(41,"div",68)(42,"label")(43,"span",43);Q(44,"Child Components");L()();F(45,Uhc,1,0,"b-spinner");F(46,Vhc,1,1,"b-component-children-list",69);F(47,Whc,2,0,"span");L()()()}a&2&&(a=P(3),B(),yg("show-errors",a.error),B(2),I("error",a.error),B(),yg("bv2-edit-resource-readonly",
Xhc(a)),B(4),Cg("ngModel",a.component.name),I("disabled",Xhc(a)),B(),yg("bv2-edit-resource-readonly",Xhc(a)),B(11),Cg("ngModel",a.component.description),I("disabled",Xhc(a)),B(2),G(a.isAdmin()?22:-1),B(),yg("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),I("checked",a.commentEditsEnabled)("disabled",Xhc(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))},$hc=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(Zhc(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))},aic=function(a){a&1&&(K(0,"a",121),Q(1," Learn more "),L());a&2&&(P(4),I("href",ufc(),Pe))},cic=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,aic,2,1,"a",121);L();K(4,"b-field-reorder",122);N("onReload",function(){u(b);var c=P(3);return v(bic(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()))},dic=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))},eic=function(a){a&1&&F(0,dic,2,2,"div",
38);a&2&&(a=P(3),G(a.component.componentPathInfo?0:-1))},fic=function(a){a&1&&M(0,"b-edit-templates",124);a&2&&(a=P(4),I("componentId",a.componentId)("supportCustomFields",!0))},gic=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},hic=function(a,b){a&1&&(K(0,"div",125)(1,"label"),Q(2),L(),F(3,gic,2,1,"div"),K(4,"div")(5,"a",126),Q(6),L()()());a&2&&(a=b.$implicit,B(2),Ag(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(),Ag(a.url))},iic=function(a){a&1&&Qf(0,hic,7,5,"div",125,Pf);a&2&&(a=P(4),Rf(a.templates))},jic=function(a){a&1&&(K(0,"div",38),F(1,fic,1,2,"b-edit-templates",124)(2,iic,2,0),L());a&2&&(a=P(3),B(),G(a.isEditorInternal?1:2))},lic=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;kic(d);return v()});L()}a&2&&(a=P(3),I("tabIndex",a.tabsService.selectedAccessSubTabIndex))},mic=function(a){if(a&
1){var b=t();K(0,"div")(1,"div",22)(2,"h2");Q(3);L();F(4,hhc,2,0,"span",23);K(5,"a",24);N("click",function(){u(b);var m=P(2);return v(m.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(m){u(b);var r=P(2);return v(r.tabsService.tabChange(m))});K(13,"mat-tab",31);E(14,ihc,1,0,"ng-container",32);
L();K(15,"mat-tab",33);E(16,jhc,1,0,"ng-container",32);L();K(17,"mat-tab",34);E(18,khc,1,0,"ng-container",32);L();K(19,"mat-tab",35);E(20,lhc,1,0,"ng-container",32);L();K(21,"mat-tab",36);E(22,mhc,1,0,"ng-container",32);L();K(23,"mat-tab",37);E(24,nhc,1,0,"ng-container",32);L()();E(25,Yhc,48,26,"ng-template",null,2,Og)(27,$hc,6,7,"ng-template",null,3,Og)(29,cic,5,5,"ng-template",null,4,Og)(31,eic,1,1,"ng-template",null,5,Og)(33,jic,3,1,"ng-template",null,6,Og)(35,lic,1,1,"ng-template",null,7,Og);
L()}if(a&2){a=sg(26);var c=sg(28),d=sg(30),e=sg(32),f=sg(34),g=sg(36),k=P(2);B(3);Bg(" Component ",k.component.componentId,": ",k.currentName," ");B();G(k.isArchived()?4:-1);B();I("routerLinkObj",k.getRecentIssuesLink());B(2);I("accessLevel",k.getComponentAccessLevel());B();I("trackerId",k.component.trackerId);B(2);I("componentPathInfo",k.component.componentPathInfo)("isArchived",k.isArchived())("label","Parent Component");B(2);I("selectedIndex",k.tabsService.selectedTabIndex);B();I("id",k.tabsService.Tab.BASIC);
B();I("ngTemplateOutlet",a);B();I("id",k.tabsService.Tab.CUSTOM_FIELDS)("label","Fields");B();I("ngTemplateOutlet",c);B();I("id",k.tabsService.Tab.FIELD_ORDERING);B();I("ngTemplateOutlet",d);B();I("id",k.tabsService.Tab.FIELD_VISIBILITY);B();I("ngTemplateOutlet",e);B();I("id",k.tabsService.Tab.TEMPLATES);B();I("ngTemplateOutlet",f);B();I("id",k.tabsService.Tab.ACCESS);B();I("ngTemplateOutlet",g)}},nic=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",Lu(),Pe))},oic=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))},pic=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),Ag(a.componentPath),B(),yg("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),B(3),Ag(b.getRetentionPeriod(a)))},qic=function(a){a&
1&&(K(0,"span"),Qf(1,pic,8,4,"span",null,Pf),L());a&2&&(a=P(3),B(),Rf(a.descendants))},ric=function(a){a&1&&(K(0,"span")(1,"span"),Q(2),L()());a&2&&(a=P(3),B(2),Ag(a.descendants[0].componentPath))},sic=function(a){if(a&1){var b=t();K(0,"h2",128);Q(1);L();K(2,"mat-dialog-content");F(3,nic,14,2,"span");F(4,oic,7,1,"span");K(5,"p");Q(6," The following components will be affected: ");L();K(7,"div",129);F(8,qic,3,0,"span");F(9,ric,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(),Ag(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),B(2),G(a.archiveAction==="Archive"?3:-1),B(),G(a.archiveAction==="Unarchive"?4:-1),B(4),G(a.archiveAction==="Archive"?
8:-1),B(),G(a.archiveAction==="Unarchive"?9:-1))},tic=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,fhc,4,3);L()()();K(6,"div",15);F(7,ghc,2,0,"div",16);F(8,mic,37,23,"div");L();E(9,sic,15,5,"ng-template",null,0,Og)}a&2&&(a=P(),B(5),G(a.component?5:-1),B(2),G(a.isLoading?7:-1),B(),G(!a.isLoading&&a.component&&a.component.componentId?8:-1))},uic=function(a){a&1&&(K(0,"div",9),
M(1,"b-tracker-redirect",135),L());a&2&&(a=P(),B(),I("component",a.component))},vic=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}},wic=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}},xic=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},yic=function(a){return a?a.filter(function(b){return!b.shared}):[]},zic=function(a,b){a&1&&(K(0,"div",10),M(1,"b-team-breadcrumb",39),L());a&2&&(B(),I("teamPath",b))},Aic=
function(a,b){a&1&&(Wf(0),Q(1),Xf());a&2&&(B(),Ag(b.trim()))},Bic=function(a){a&1&&Q(0," No description ")},Cic=function(a,b){a&1&&M(0,"b-multi-user-input",25);a&2&&(I("users",b),Kf("disabled",!0))},Dic=function(a){a&1&&(K(0,"p"),Q(1,"No child teams"),L())},Eic=function(a,b){a&1&&(M(0,"br"),K(1,"a",40),Q(2),L());a&2&&(a=b.$implicit,B(),I("routerLink",Gg("/teams/",a.id,"/edit")),B(),Ag(a.name))},Fic=function(a){a&1&&Qf(0,Eic,3,3,null,null,Pf);a&2&&(a=P(),Rf(a))},Gic=function(a,b){a&1&&F(0,Dic,2,0,
"p")(1,Fic,2,0);a&2&&G(b.length===0?0:1)},Hic=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," ")}},Iic=function(a){a&1&&Q(0," None ")},Jic=function(a,b){a&1&&(K(0,"div",29),Q(1," Inherited SLO Policy: "),F(2,Hic,2,2,"a",41)(3,Iic,1,0),L());a&2&&(B(2),G(b.link?2:3))},Kic=function(a,b){a&1&&(K(0,"a",31),Q(1),L());a&2&&(I("routerLinkObj",b.link),B(),S(" ",b.name," "))},Lic=function(a){a&1&&Q(0," None ")},Mic=
function(a){a&1&&(M(0,"mat-icon",42),Q(1," on "))},Nic=function(a){a&1&&(M(0,"mat-icon",43),Q(1," off "))},Oic=function(a){a&1&&(Q(0," Lock: "),F(1,Mic,2,0)(2,Nic,2,0));a&2&&(a=P(2),B(),G(a.originalSloLock?1:2))},Pic=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))},Qic=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))},Ric=
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",Fg(U(1,3,a.hasUnsavedChanges$)?"_blank":"_self"))("routerLinkObj",b))},Sic=function(a){if(a&1){var b=t();F(0,Qic,6,6,"div",46);K(1,"div",14)(2,"mat-slide-toggle",47);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.enableSloChecked,e)||(f.enableSloChecked=e);return v(e)});N("change",function(e){u(b);var f=P(3);return v(f.enableSloChecked=e.checked)});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,Ric,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);yg("indented",!a.value);Cg("ngModel",d.enableSloChecked);I("disabled",!d.hasSloEditAccess);B(2);I("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");B();G((c=U(6,9,d.sloPickerLink$))?5:-1,c)}},Tic=function(a,b){a&1&&(F(0,Pic,
4,2,"div",44),F(1,Sic,7,11));a&2&&(a=P(2),G(b.value?-1:0),B(),G(a.isSloInheritEnabled?-1:1))},Uic=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))},Wic=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&&Vic(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))},Zic=function(a,b){if(a&1){var c=t();F(0,Wic,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),Ag(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),B(),I("users",a.escalationOwner?Kg(9,Xic,a.escalationOwner):Jg(11,Yic))("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,
" "))},bjc=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($ic(d,c))});Q(4," Update ");L();K(5,"button",59);T(6,"async");N("click",function(){u(b);var c=P(2);return v(ajc(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$)))},cjc=function(a){a&1&&(K(0,"p"),Q(1,"No mapped components"),L())},djc=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",Gg("/components/",a.componentId,"/edit")),B(),S(" ",a.name," "))},ejc=function(a){a&1&&(Qf(0,djc,4,3,"ul",null,Pf),T(2,"async"));a&2&&(a=P(3),Rf(U(2,0,a.associatedComponents$)))},fjc=function(a,b){a&1&&F(0,cjc,2,0,"p")(1,ejc,3,2);a&2&&G(b.length===0?0:1)},gjc=function(a){a&1&&(K(0,"th",70)(1,"span",71),Q(2,"Starred"),L()())},hjc=function(a,b){if(a&1){var c=t();K(0,"td",72)(1,"b-star-toggle",73);N("starClicked",function(){var f=
u(c).$implicit,g=P(),k=P(2),m=P();return v(m.toggleStar(f.id,k.teamId,g))});L()()}if(a&2){a=b.$implicit;b=P();var d=P(2),e=P();B();I("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},ijc=function(a){a&1&&(K(0,"th",70),Q(1,"Name"),L())},jjc=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",
" ")}},kjc=function(a){a&1&&(K(0,"th",70)(1,"span",71),Q(2,"Actions"),L()())},ljc=function(a){a&1&&M(0,"div",79)},njc=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(mjc(d,c))});M(1,"mat-icon",82);L()}a&2&&(a=P(5),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},pjc=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(ojc(f,d.id,e))});M(3,"mat-icon",
78);L();F(4,ljc,1,0,"div",79)(5,njc,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))},qjc=function(a){a&1&&M(0,"tr",83)},rjc=function(a){a&1&&M(0,"tr",84)},tjc=function(a){if(a&1){var b=t();K(0,"h3");Q(1,"Triage views");L();K(2,"table",60);Wf(3,61);E(4,gjc,3,0,"th",62)(5,hjc,2,3,"td",63);Xf();Wf(6,64);E(7,ijc,2,0,"th",62)(8,jjc,3,2,"td",65);Xf();Wf(9,66);E(10,kjc,3,0,"th",62)(11,pjc,6,2,"td",63);Xf();E(12,qjc,1,0,"tr",
67)(13,rjc,1,0,"tr",68);L();K(14,"button",69);N("click",function(){u(b);var c=P(2),d=P();return v(sjc(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))},ujc=function(a){a&1&&(K(0,"mat-tab",36)(1,"div",13),F(2,tjc,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)}},xjc=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(vjc(c))});Q(3," Update ");L();K(4,"button",59);N("click",function(){u(b);var c=P(2);return v(wjc(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()))},zjc=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,zic,2,1,"div",10);T(7,"async");K(8,"mat-tab-group",11);Eg("selectedIndexChange",function(D){u(c);var H=P();Dg(H.selectedTabIndex,D)||(H.selectedTabIndex=D);return v(D)});N("selectedIndexChange",function(D){u(c);var H=P();return v(H.tabChange(D))});K(9,"mat-tab",12)(10,"div",13);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,Aic,2,1,"ng-container")(23,Bic,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,Cic,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,Gic,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,Jic,4,1,"div",29);T(60,"async");K(61,"div",30);Q(62," Policy Source: ");F(63,Kic,2,2,"a",31);T(64,"async");Nf(65,Lic,1,0);L();K(66,
"div",32);F(67,Oic,3,1);L()();M(68,"b-error-banner",33);F(69,Tic,2,2);T(70,"async");F(71,Uic,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,Zic,8,12);T(84,"async");F(85,bjc,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,fjc,2,1);T(94,"async");L()()();F(95,ujc,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(D){u(c);P().sloDelegates=D;return v()});L()();F(110,xjc,6,2,"div",34);L()()()}if(a&2){var d,e,f,g,k,m,r,w,x;a=P();B(2);S(" Team ",b.teamId,": ");B();I("href",Gg("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);Cg("selectedIndex",a.selectedTabIndex);B();I("id",a.Tab.BASIC);B(3);I("href",Gg("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((m=U(64,38,a.sloPolicySource$))?63:65,m);B(4);G(a.enableSloLockingUi?67:-1);B();I("error",a.error);B();G((r=Kg(46,yjc,U(70,40,a.isRootTeam$)))?69:-1,r);B(2);G(a.enableSloLockingUi?71:-1);B(12);G((w=Kg(48,yjc,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)}},Ajc=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))},Bjc=function(a){a&
1&&(K(0,"a",9),Q(1,"Learn more"),L())},Cjc=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),B(),Ag(a.validationErrorMessage))},Djc=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,Bjc,2,0,"a",9);L()();K(4,"mat-form-field",10);M(5,"input",11,3);F(7,Cjc,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))},Ejc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Title is required"),L())},Fjc=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," "))},Gjc=function(a){a&1&&(K(0,"mat-error",
26),Q(1,"Task list is required"),L())},Ijc=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,Ejc,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);Qf(16,Fjc,2,2,"mat-option",25,Hjc);T(18,"async");L();F(19,Gjc,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=sg(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=sg(4);var c=sg(10),d=sg(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);Rf(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)}},Jjc=function(a){a&1&&Yf(0)},Kjc=function(a){a&1&&Yf(0)},Ljc=function(a){a&1&&(K(0,"mat-tab-group",7)(1,"mat-tab",32),E(2,Jjc,1,0,"ng-container",33),L(),K(3,"mat-tab",34),E(4,Kjc,1,0,"ng-container",33),L()());if(a&2){P();a=sg(3);var b=sg(5);B(2);I("ngTemplateOutlet",a);B(2);I("ngTemplateOutlet",
b)}},Mjc=function(a){a&1&&Yf(0)},Njc=function(a){a&1&&E(0,Mjc,1,0,"ng-container",33);a&2&&(P(),a=sg(3),I("ngTemplateOutlet",a))},Ojc=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)}},Pjc=function(a){a&1&&M(0,"iteration-card",4,1);if(a&2){a=sg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("iteration",b.iteration)}},Qjc=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,Pjc,2,2,"iteration-card",3);L()}a&2&&(a=sg(3),I("onedevHovercardTrigger",a))},Xjc=function(a,b,c,d,e){return Rjc(a).map(function(f){var g=f.task,k=Sjc(f.signals,b,e);if(g&&k&&k.length!==0){var m,r,w,x,D,H,J=g.taskId,O=g.taskResourceType,R=g.title,V=Tjc(k);f=Ujc(f,k);if(g.issueResource){var ba=g.issueResource.priority;ba=ba==="P0"||ba==="P1"?ba:null}else ba=null;return{id:J,type:O,description:R,lastAlertTimestamp:V,signals:f,link:g.externalLink,icon:d4a(g),priority:ba,accessLevel:(w=(m=
g.issueResource)==null?void 0:m.accessLevel)!=null?w:null,hotlistIds:g.issueResource?g.issueResource.hotlistIds:[],issueId:h9a(g.taskId).length===1?h9a(g.taskId)[0]:null,futureAvailability:Vjc(k),reviewEstimate:Wjc(k),lastMentionLink:((r=g.driveResource)==null?0:r.lastMentionLink)&&g.driveResource.lastMentionLink!==""?g.driveResource.lastMentionLink:void 0,isStaleTask:(x=g.isStaleTask)!=null?x:!1,snoozeUntilTimestamp:(D=g.snoozeUntilTimestamp)!=null?D:void 0,manualSignalTimestamp:(H=g.manualSignalTimestamp)!=
null?H:void 0,iteration:c.get(g.taskId),okrIds:d.get(g.taskId)}}}).filter(hn)},Sjc=function(a,b,c){return Yjc(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})},Rjc=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})},Ujc=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})},Yjc=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"})},Tjc=function(a){return a.sort(function(b,c){var d,e;return((d=qo(c.timestamp))!=null?d:0)-((e=qo(b.timestamp))!=null?e:0)})[0].timestamp},Zjc=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}},$jc=function(a){var b=a[0],c=Zjc(b);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Zjc(d)<c&&(b=d,c=Zjc(b));return b},Vjc=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(hn)},Wjc=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(hn)},akc=function(a){var b=m6a(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),
e=a.getLastUpdatedTimestamp();if(!b)throw Error("je");if(!c)throw Error("ke");if(!d)throw Error("le");if(!e)throw Error("Dg");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:o6a(c),timeOfDay:q6a(d),displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:Ri(a,8),showInBuganizerHome:Ri(a,9),baselineIssueIds:[].concat(q(jn(a,10))),isOverflowing:Ri(a,11),lastUpdated:qn(e)}},bkc=function(a){var b=(new Mu).setId(a.id).setFrequency(n6a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(p6a(a.timeZone)).setTimeOfDay(r6a(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);
b=op(b,8,a.sendEmail);b=op(b,9,a.showInBuganizerHome);b=Er(b,10,a.baselineIssueIds);b=op(b,11,a.isOverflowing);a=rn(a.lastUpdated);return Zi(b,ej,12,a)},gkc=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),Ag(b.displayName),B(3),Ag(b.query),B(2),I("routerLinkObj",Kg(6,ckc,Kg(4,dkc,b.id))),B(2),I("routerLinkObj",Kg(10,ekc,Kg(8,fkc,b.query))))},hkc=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))},ikc=function(a){a&1&&Q(0," a comment ")},jkc=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,hkc,2,1,"a",3)(6,ikc,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),Ag(b.content))},kkc=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," ")}},lkc=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(),yg("has-reacted-icon",a.thumbsUpClicked),B(),I("disabled",a.hasReacted),B(),yg("has-reacted-icon",a.thumbsDownClicked))},mkc=function(a,b){a&1&&(K(0,"div"),M(1,"b-note-container",8),T(2,"async"),F(3,lkc,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)}},nkc=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,kkc,3,4,"a",5),L()(),K(7,"span"),M(8,"b-formatted-date-time",6),L()(),F(9,mkc,4,6,"div"),L());if(a&2){var c;a=b.$implicit;var d=b.$index;b=b.$count;P(2);yg("margin-s-bottom",d!==b-1)("padded-s-bottom",
d!==b-1)("border-bottom",d!==b-1);B(3);I("model",a.lastCommentEditorUser);B(3);G((c=a.commentNumber)?6:-1,c);B(2);I("timestamp",a.commentLastModifiedAtDate);B();var e;c={commentNumber:(e=a.commentNumber)!=null?e:void 0,unlinkifiedComment:a.commentRedacted?"Comment access restricted. Please reach out to the issue owner to view.":a.unlinkifiedComment,formattedComment:a.commentRedacted?void 0:a.formattedComment};G(c?9:-1,c)}},pkc=function(a,b){a&1&&(K(0,"div",0),Qf(1,nkc,10,10,"div",1,okc),K(3,"div"),
Yf(4),L()());a&2&&(B(),Rf(b))},qkc=function(a){a&1&&Yf(0)},skc=function(a){a&1&&E(0,qkc,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=sg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,rkc,a))}},tkc=function(a,b){a&1&&F(0,skc,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),G(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},vkc=function(a){a&1&&(K(0,"div",4),Qf(1,tkc,1,1,null,null,ukc),L());a&2&&(a=P(),B(),Rf(a.signals))},wkc=function(a){a&1&&Yf(0)},ykc=function(a,b){a&1&&(K(0,"div",
6),E(1,wkc,1,0,"ng-container",5),K(2,"div",7),Q(3),L()());if(a&2){a=P(2);var c=sg(3);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(4,rkc,b));B();I("matTooltip",xkc(a.signals,b));B();S(" and ",a.signals.length-1," more ")}},zkc=function(a){a&1&&F(0,ykc,4,6,"div",6);if(a&2){var b;a=P();G((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},Akc=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":Nu.get(b);S(" ",a," ")}},Bkc=
function(a){a&1&&Q(0);if(a&2){a=P().signal;var b=P();S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a.type)," ")}},Dkc=function(a){a&1&&M(0,"mentioned-issue-comments-card",9,3);if(a&2){a=sg(1);var b=P(2).signal,c=P(),d;I("onedevIsHovercardReady",a.contentReady$)("issueId",c.issueId)("commentNumbers",(d=b.commentNumbers)!=null?d:Jg(4,Ckc))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},Ekc=function(a){a&1&&E(0,Dkc,2,5,"mentioned-issue-comments-card",12)},Fkc=function(a){a&1&&M(0,"mentioned-drive-comments-card",
10,3);if(a&2){a=sg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("fileId",b.driveFileId)("commentId",b.driveCommentId)("lastMentionLink",b.driveCommentLink)}},Gkc=function(a){a&1&&E(0,Fkc,2,4,"mentioned-drive-comments-card",13)},Hkc=function(a){a&1&&M(0,"configurable-alert-card",11,3);if(a&2){a=sg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("subscriptionId",b.configurableAlertSubscriptionId)}},Ikc=function(a){a&1&&E(0,Hkc,2,2,"configurable-alert-card",14)},
Nkc=function(a,b){if(a&1){var c=t();bg(0);K(1,"div",8,1);N("mouseenter",function(){u(c);var f=sg(2),g=dg(0);return v(g?f.disabled=!0:null)})("mouseleave",function(){u(c);var f=sg(2),g=dg(0);return v(g?f.disabled=!1:null)});F(3,Akc,1,1)(4,Bkc,1,1);L();K(5,"onedev-hovercard",null,2);F(7,Ekc,1,0,"mentioned-issue-comments-card",9)(8,Gkc,1,0,"mentioned-drive-comments-card",10)(9,Ikc,1,0,"configurable-alert-card",11);L()}if(a&2){a=b.signal;b=sg(6);var d=P(),e=cg(Jkc(d,a)||Kkc(a)||Lkc(a));B();zg(Gg("signal-chip type-button urgent-",
d.getSignalUrgency(a)));yg("keep-focus-ring",e);I("onedevHovercardActive",e)("onedevHovercardTrigger",b)("matTooltip",Jkc(d,a)||Kkc(a)||Lkc(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":Mkc.get(a.type));Kf("tabindex",e?"0":"-1");B(2);G(d.enableTailwindMissionControl?3:4);B(4);G(Jkc(d,a)?7:Kkc(a)?8:Lkc(a)?9:-1)}},Pkc=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 ",Okc(b==null?null:b.priorityRating)),B(2),I("href",b==null?null:b.url,Pe),B(),Ag(b==null?null:b.title))},Qkc=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 ",Okc(b.priorityRating)),B(2),I("href",b.url,Pe),B(),S(" ",b==null?null:b.title))},Tkc=function(a,b){a&1&&(K(0,"div",2),F(1,Pkc,6,3,"div",3),F(2,Qkc,6,3,"div",4),L());if(a&2){var c,d;a=b.$implicit;b=P();P();B();G((c=Rkc(b,a))?1:-1,c);B();
G((d=Skc(b,a))?2:-1,d)}},Ukc=function(a){a&1&&(K(0,"div",0)(1,"div",1),Qf(2,Tkc,3,2,"div",2,Pf),L()());a&2&&(a=P(),B(2),Rf(a.okrIds))},Vkc=function(a){a&1&&M(0,"okr-card",4,1);if(a&2){a=sg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("okrIds",b.okrIds)}},Wkc=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,Vkc,2,2,"okr-card",3);L()}a&2&&(a=sg(3),I("onedevHovercardTrigger",
a))},Xkc=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()()()())},Ykc=function(a){a&1&&M(0,"stale-task-card",5,1);if(a&2){a=sg(1);var b=P();I("onedevIsHovercardReady",a.hovercardReady$)("taskId",b.taskId)}},Zkc=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)," "))},$kc=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),zg(Gg("icon-s checkmark ",a.displayName)))},clc=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,$kc,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();yg("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",alc(d,a))("selectedSignals",
blc(d,a))("source",a)}},dlc=function(a,b){a&1&&F(0,clc,6,9,"span",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},elc=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," "))},flc=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()}},glc=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))},hlc=function(a){if(a&1){var b=t();Wf(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()()();Xf()}a&2&&(a=P(),B(),I("matTooltip",a.DMA_TOOLTIP_TEXT))},ilc=function(a){a&1&&(K(0,"label",11),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),Ag(a.label))},jlc=function(a){a&1&&(K(0,
"mat-tab"),E(1,ilc,2,2,"ng-template",10),L())},klc=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(CGb);f.prefs.needsAttentionBuganizerFilteredSignals=EGb(g.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=IGb(g.driveSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=
KGb(g.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=GGb(g.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=OGb(g.googleTasksSignals,f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=PGb(g.irmSignals,f.filteredSignalsOptions);du(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(CGb);
f.prefs.needsAttentionSources=e;du(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)}},llc=function(a){a&1&&(F(0,klc,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)}},mlc=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;du(e,{needsAttentionDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},nlc=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()()}},olc=function(a){a&1&&(K(0,"p",16),Q(1," No alerts "),L())},plc=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)}},qlc=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)))},rlc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=
P(4),B(),Ag(a.selection.hasValue()?"":"Source"))},slc=function(a,b){a&1&&(K(0,"td",34),M(1,"mat-icon",36),L());a&2&&(a=b.$implicit,B(),zg(Gg("product-icon ",a.icon)),I("matTooltip",a.type)("svgIcon",a.icon),Kf("aria-label",a.type))},ulc=function(a){if(a&1){var b=t();K(0,"button",39);N("click",function(){u(b);var c=P(5);tlc(c,c.selection.selected);c.selection.clear();return v()});Q(1);T(2,"async");L()}a&2&&(a=P(5),B(),Ag(U(2,1,a.dismissButtonLabel$)))},vlc=function(a){a&1&&(K(0,"span"),Q(1,"Description"),
L())},xlc=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);wlc(f,f.selection.selected,e);f.selection.clear();return v()})("unsnooze",function(){u(b);var e=P(5);wlc(e,e.selection.selected);e.selection.clear();return v()});L()}if(a&2){a=sg(1);var c=sg(5),d=P(5);I("matMenuTriggerFor",c.menu);B(2);Ag(U(3,4,d.snoozeButtonLabel$));B(2);I("isSnoozed",d.signalStatusFilter$.getValue()===d.SignalStatus.SNOOZED)("datePickerAnchor",
a)}},Alc=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(ylc(c))});Q(1);L()}a&2&&(a=P(5),B(),Ag(zlc(a)?"Trigger manual signal":"Remove manual signal"))},Blc=function(a){a&1&&(K(0,"th",32),F(1,ulc,3,3,"button",37)(2,vlc,2,0,"span"),F(3,xlc,6,6),F(4,Alc,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))},Clc=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))}},Dlc=function(a){a&1&&M(0,"okr-chip",46);a&2&&(a=P(2).$implicit,I("okrIds",a.okrIds))},Elc=function(a){a&1&&M(0,"iteration-chip",47);a&2&&(a=P(2).$implicit,I("iteration",a.iteration))},Flc=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)))},Glc=function(a){a&1&&(K(0,"div",49),Q(1),T(2,"number"),L());a&2&&(a=P(2).$implicit,B(),S(" <",Ng(2,
1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},Hlc=function(a){a&1&&M(0,"b-issue-priority-display",50);a&2&&(a=P(2).$implicit,I("issuePriority",a.priority))},Jlc=function(a){if(a&1){var b=t();K(0,"div",43);F(1,Clc,1,1,"b-issue-visibility-chip",45);F(2,Dlc,1,1,"okr-chip",46);F(3,Elc,1,1,"iteration-chip",47);F(4,Flc,3,3,"div",48);F(5,Glc,3,4,"div",49);F(6,Hlc,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",Ilc(a),Pe);Kf("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);
B();S(" ",a.description," ");B();I("hotlistIds",a.hotlistIds)}},Klc=function(a){a&1&&(K(0,"span",44),Q(1,"No access to linked file"),L())},Llc=function(a,b){a&1&&(K(0,"td",34),F(1,Jlc,10,10,"div",43)(2,Klc,2,0,"span",44),L());a&2&&(a=b.$implicit,B(),G(a.description&&a.description!==""?1:2))},Mlc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":"Most recent alert"))},Nlc=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))},Olc=function(a){a&1&&M(0,"b-formatted-date-time",55);a&2&&(a=P(2).$implicit,I("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},Plc=function(a){a&1&&F(0,Olc,1,2,"b-formatted-date-time",55);a&2&&(a=P().$implicit,G(a.lastAlertTimestamp?0:-1))},Qlc=function(a,b){a&1&&(K(0,"td",34),F(1,Nlc,2,2,"div")(2,Plc,
1,1),L());a&2&&(a=b.$implicit,B(),G(a.isStaleTask?1:2))},Rlc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),S(" ",a.selection.hasValue()?"":"Alert"," "))},Slc=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))},Tlc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":"Action"))},Ulc=function(a){a&1&&(K(0,"a",57),Q(1),L());
if(a&2){a=P().$implicit;var b=P(4);I("href",Ilc(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," ")}},Vlc=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",Ilc(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," ")}},Wlc=function(a,b){a&1&&(K(0,"td",34),F(1,Ulc,2,4,"a",57)(2,Vlc,2,4,"a",57),L());a&2&&(a=b.$implicit,b=P(4),B(),G(b.enableTailwindMissionControl&&a.action?1:2))},Xlc=function(a){a&1&&(K(0,"th",58),Q(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},Zlc=function(a){a&1&&(K(0,"span",59),Q(1),L());a&2&&(a=P().$implicit,P(4),B(),S("",Ylc(a)," "))},$lc=function(a,b){if(a&
1){var c=t();K(0,"td",34);F(1,Zlc,2,1,"span",59);K(2,"div",60)(3,"button",61);N("click",function(k){var m=u(c).$implicit,r=P(4);k.preventDefault();return v(r.copyIdOrLink(m))});M(4,"mat-icon",62);L();bg(5);T(6,"async");K(7,"button",63);N("click",function(k){var m=u(c).$implicit,r=P(4);k.preventDefault();return v(r.dismissAlert(m))});M(8,"mat-icon",64);L();bg(9);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 m=u(c).$implicit,r=P(4);wlc(r,[m.id],k);return v()})("unsnooze",function(){var k=u(c).$implicit,m=P(4);wlc(m,[k.id]);return v()});L()()()}if(a&2){var d=b.$implicit;a=sg(12);b=sg(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)}},amc=function(a){a&1&&M(0,"tr",67)},bmc=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()}},cmc=function(a){a&1&&(K(0,"tr",69)(1,"td",70),Q(2," No alerts found "),L()())},dmc=function(a){a&1&&M(0,"mat-icon",72)},emc=function(a){a&1&&M(0,"mat-icon",73)},fmc=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,dmc,1,0,"mat-icon",72);F(3,emc,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)}},gmc=function(a){a&1&&(K(0,"table",17),Wf(1,18),E(2,plc,2,2,"th",19)(3,qlc,2,1,"td",20),Xf(),Wf(4,21),E(5,rlc,2,1,"th",19)(6,slc,2,6,"td",20),Xf(),Wf(7,22),E(8,Blc,5,3,"th",19)(9,Llc,3,1,"td",20),Xf(),Wf(10,23),E(11,Mlc,2,1,"th",19)(12,Qlc,3,1,"td",20),Xf(),Wf(13,24),E(14,Rlc,2,1,"th",19)(15,Slc,2,3,"td",20),Xf(),Wf(16,25),E(17,Tlc,2,1,"th",19)(18,Wlc,3,1,"td",20),Xf(),Wf(19,26),E(20,Xlc,2,1,"th",27)(21,$lc,16,14,"td",20),Xf(),E(22,amc,1,0,"tr",28)(23,bmc,1,0,"tr",29)(24,
cmc,3,0,"tr",30),L(),F(25,fmc,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)}},hmc=function(a,b){a&1&&(F(0,olc,2,0,"p",16),F(1,gmc,26,4));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},imc=function(a){a&1&&(F(0,hmc,2,2),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allNeedsAttention$))?0:-1,b)}},jmc=function(a){a&
1&&(K(0,"div",9),M(1,"b-spinner",74),L());a&2&&(B(),I("ariaLabel","loading needs attention alerts"))},kmc=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=Jq(a).filter(function(d){return!c.includes(d)}).sort();return[c.join(","),a.join(",")]},lmc=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)},mmc=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)},nmc=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(hn)},omc=function(a,b){return a.issueId&&a.type==="ISSUE"&&b.has(a.issueId)&&a.signals.some(function(c){return c.type==="ISSUE_SNOOZE_EXPIRED"})},pmc=function(a,b){a&1&&(K(0,"div",6)(1,"span",8),Q(2),L()());a&2&&(B(2),Ag(b))},qmc=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))},rmc=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," ")}},smc=function(a,b){a&1&&F(0,rmc,3,4,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},tmc=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}},umc=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"},vmc=function(a){a&1&&(K(0,"label",11),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),Ag(a.label))},wmc=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(CGb);e.prefs.myTasksSources=d;du(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return v()});L()}a&2&&(a=P(5),I("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},xmc=function(a){a&1&&(K(0,"span",2),Q(1,"Sources"),L(),F(2,wmc,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)}},ymc=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;du(e,{myTasksDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},zmc=function(a){a&1&&(K(0,"div",9),F(1,xmc,4,3),F(2,ymc,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)}},Amc=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))},Bmc=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"," "))},Cmc=function(a){a&1&&(F(0,Bmc,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)}},Dmc=function(a){a&1&&(K(0,"th",36),Q(1,"Source"),L())},Emc=function(a,b){a&1&&(K(0,"td",37),M(1,"mat-icon",38),L());a&2&&(a=b.$implicit,b=P(6),B(),zg(Gg("product-icon ",b.taskResourceTypeToIcon(a))),I("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},Fmc=function(a){a&
1&&(K(0,"th",36),Q(1,"Description"),L())},Gmc=function(a){a&1&&M(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,I("issueId",a.issueId)("compactMode",!0))},Hmc=function(a){a&1&&M(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,I("issuePriority",a.issueResource.priority))},Imc=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))},Kmc=
function(a){if(a&1){var b=t();F(0,Gmc,1,2,"b-issue-visibility-chip",40);F(1,Hmc,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,Imc,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&&Jmc(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();Ag(a.title);B();G(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},Lmc=function(a){a&1&&(K(0,"span",39),Q(1,"No access to linked file"),L())},Mmc=function(a,b){a&1&&(K(0,"td",37),F(1,Kmc,5,6)(2,Lmc,2,0,"span",39),L());a&2&&(a=b.$implicit,B(),G(a.title&&a.title!==""?1:2))},Nmc=function(a){a&1&&(K(0,"th",36),Q(1,"Last modified"),L())},Omc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",
a.lastModifiedTimestamp)("paddingLeftPx",0))},Pmc=function(a,b){a&1&&(K(0,"td",37),F(1,Omc,1,2,"b-formatted-date-time",45),L());a&2&&(a=b.$implicit,B(),G(a.lastModifiedTimestamp?1:-1))},Qmc=function(a){a&1&&(K(0,"th",36),Q(1,"My role"),L())},Rmc=function(a,b){a&1&&(K(0,"td",37),Q(1),L());a&2&&(a=b.$implicit,B(),Ag(a.resourceRelationships[0].roleName))},Smc=function(a){a&1&&(K(0,"th",36),Q(1,"Creation date"),L())},Tmc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",
a.createdTimestamp)("paddingLeftPx",0))},Umc=function(a){a&1&&Q(0," -- ")},Vmc=function(a,b){a&1&&(K(0,"td",37),F(1,Tmc,1,2,"b-formatted-date-time",45)(2,Umc,1,0),L());a&2&&(a=b.$implicit,B(),G(a.createdTimestamp?1:2))},Wmc=function(a){a&1&&(K(0,"th",46),Q(1," Options "),L())},Ymc=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(Xmc(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"))},Zmc=function(a){a&1&&M(0,"tr",53)},$mc=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()}},anc=function(a){a&1&&M(0,"mat-icon",58)},bnc=function(a){a&1&&M(0,"mat-icon",59)},cnc=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,anc,1,0,"mat-icon",58);F(3,bnc,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)}},dnc=function(a){a&1&&(K(0,"td",55),F(1,cnc,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)}},enc=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))}},fnc=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"," "))},gnc=function(a){a&1&&(K(0,"tr",61),F(1,
fnc,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)}},jnc=function(a){a&1&&(K(0,"table",19),Wf(1,20),E(2,Dmc,2,0,"th",21)(3,Emc,2,5,"td",22),Xf(),Wf(4,23),E(5,Fmc,2,0,"th",21)(6,Mmc,3,1,"td",22),Xf(),Wf(7,24),E(8,Nmc,2,0,"th",21)(9,Pmc,2,1,"td",22),Xf(),Wf(10,25),E(11,Qmc,2,0,"th",21)(12,Rmc,2,1,"td",22),Xf(),Wf(13,26),E(14,Smc,2,0,"th",21)(15,Vmc,3,1,"td",22),Xf(),Wf(16,27),E(17,Wmc,2,0,"th",28)(18,Ymc,6,4,"td",29),Xf(),E(19,Zmc,1,0,"tr",30)(20,$mc,1,0,"tr",
31),Wf(21,32),E(22,dnc,2,1,"td",33),Xf(),E(23,enc,1,1,"tr",34)(24,gnc,3,3,"tr",35),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);zg(Gg("table-",b.label));I("dataSource",a.slice(0,c.numDisplayedRows)||Jg(7,hnc));B(19);I("matHeaderRowDef",c.displayColumns);B();I("matRowDefColumns",c.displayColumns);B(3);I("matFooterRowDef",Jg(8,inc))}},knc=function(a,b){a&1&&(F(0,Cmc,2,3),F(1,jnc,25,9,"table",17));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},lnc=function(a){a&1&&(F(0,Amc,1,3,"b-issues-table",
16),T(1,"async"),F(2,knc,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)}},mnc=function(a){a&1&&(K(0,"div",10),M(1,"b-spinner",63),L());a&2&&(B(),I("ariaLabel","loading tasks"))},nnc=function(a,b){a&1&&(K(0,"mat-tab"),E(1,vmc,2,2,"ng-template",8),F(2,zmc,4,4,"div",9),F(3,lnc,4,6)(4,mnc,2,1,"div",10),L());a&2&&(a=b.$implicit,B(2),G(a.liteTasks?2:-1),B(),G(a.loading?4:3))},onc=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))});Qf(2,nnc,5,2,"mat-tab",null,Pf);L()()}a&2&&(a=P(),B(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Rf(a.tabData))},pnc=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?qo(b.lastModifiedTimestamp)-qo(a.lastModifiedTimestamp):1:-1},rnc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",9);N("click",function(){u(b);var c=P();qnc(c.userFeedback);return v()});Q(2,"Give feedback");L()()}},snc=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," "))},tnc=function(a,b){return a.gmt===b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},unc=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," "))},vnc=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))});
Qf(5,unc,2,2,"mat-option",2,Pf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Rf(a.frequencyOptions))},wnc=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," "))},xnc=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))});Qf(5,wnc,2,2,"mat-option",2,Pf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),
Rf(a.repeatOnOptions.get(a.frequency$.value)))},ync=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," "))},znc=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))});Qf(5,ync,2,2,"mat-option",2,Pf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b)("compareWith",a.compareTimeOfDay),B(),Rf(a.repeatAtOptions))},
Anc=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))},Bnc=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&a.seconds===b.seconds&&a.nanos===b.nanos},Cnc=function(a){a&1&&Yf(0)},Dnc=function(a){a&1&&(K(0,"th",17),Q(1,"Name"),L())},Enc=function(a,b){a&1&&(K(0,"td",18),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.displayName," "))},Fnc=function(a){a&
1&&(K(0,"th",17),Q(1,"Status"),L())},Gnc=function(a){a&1&&M(0,"mat-icon",19);a&2&&(a=P(3),I("matTooltip",a.warningTooltipText))},Hnc=function(a,b){a&1&&(K(0,"td",18),F(1,Gnc,1,1,"mat-icon",19),L());a&2&&(a=b.$implicit,B(),G(a.isOverflowing?1:-1))},Inc=function(a){a&1&&(K(0,"th",17),Q(1,"Actions"),L())},Jnc=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=sg(4),P(2),B(),I("matMenuTriggerFor",b),B(4),I("routerLinkObj",{path:"/issues",queryParams:{q:a.query,s:"modified_time:desc"}}))},Knc=function(a){a&1&&M(0,"tr",25)},Lnc=function(a,b){a&1&&M(0,"tr",26);a&2&&(a=b.$implicit,Kf("aria-label",
"Subscription "+a.id+": "+a.displayName))},Mnc=function(a){a&1&&(K(0,"div",8)(1,"table",9),Wf(2,10),E(3,Dnc,2,0,"th",11)(4,Enc,2,1,"td",12),Xf(),Wf(5,13),E(6,Fnc,2,0,"th",11)(7,Hnc,2,1,"td",12),Xf(),Wf(8,14),E(9,Inc,2,0,"th",11)(10,Jnc,12,2,"td",12),Xf(),E(11,Knc,1,0,"tr",15)(12,Lnc,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))},Nnc=function(a){a&1&&Q(0," Add configurable alert ")},
Onc=function(a){a&1&&Q(0," Update configurable alert ")},Pnc=function(a){a&1&&Q(0," Create a new configurable alert. ")},Qnc=function(a){a&1&&Q(0," Update a configurable alert. ")},Rnc=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" Subscription ID: ",a.id," "))},Snc=function(a){a&1&&M(0,"b-spinner")},Tnc=function(a,b){if(a&1){var c=t();K(0,"h1",27);F(1,Nnc,1,0)(2,Onc,1,0);L();K(3,"mat-dialog-content")(4,"p",28);F(5,Pnc,1,0)(6,Qnc,1,0);L();K(7,"mat-form-field",29)(8,"mat-label");Q(9,"Name");L();K(10,
"input",30);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.displayName,d)||(e.displayName=d);return v(d)});L()();K(11,"mat-form-field",29)(12,"mat-label");Q(13,"Search query");L();K(14,"input",31);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.query,d)||(e.query=d);return v(d)});L()();K(15,"b-delivery-frequency-subform",32);N("frequencyChange",function(d){var e=u(c).$implicit,f=P();return v(f.setFrequency(e,d))});Eg("ordinalChange",function(d){var e=u(c).$implicit;Dg(e.ordinal,
d)||(e.ordinal=d);return v(d)})("timeOfDayChange",function(d){var e=u(c).$implicit;Dg(e.timeOfDay,d)||(e.timeOfDay=d);return v(d)})("timeZoneIdChange",function(d){var e=u(c).$implicit;Dg(e.timeZone.id,d)||(e.timeZone.id=d);return v(d)});L();K(16,"div",29)(17,"mat-slide-toggle",33);N("change",function(d){var e=u(c).$implicit;return v(e.sendEmail=d.checked)});Q(18," Send email when newly matching issues are found. ");L()();K(19,"div",34)(20,"span",35);F(21,Rnc,1,1);L();F(22,Snc,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),Cg("ngModel",a.displayName),B(4),Cg("ngModel",a.query),B(),I("frequency",a.frequency),Cg("ordinal",a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),B(2),I("checked",a.sendEmail),B(4),G(a.id!=="0"?21:-1),B(),G(U(23,12,b.isSaving$)?22:-1),
B(6),S(" ",a.id==="0"?"Add":"Update"," "))},Unc=function(a){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=P().$implicit,I("value",a),B(),S(" ",a.name," "))},Vnc=function(a,b){a&1&&F(0,Unc,2,2,"mat-option",21);a&2&&G(b.$implicit.shouldDisplay()?0:-1)},Wnc=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," "))},Ync=function(a){if(a&1){var b=t();K(0,"mat-form-field",5)(1,"mat-select",22);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.preferredHomepage.selectedOptionId,
c)||(d.preferredHomepage.selectedOptionId=c);return v(c)});N("selectionChange",function(){u(b);var c=P();return v(Xnc(c.preferredHomepage))});Qf(2,Wnc,2,2,"mat-option",23,Pf);L()()}a&2&&(a=P(),B(),Cg("ngModel",a.preferredHomepage.selectedOptionId),B(),Rf(a.preferredHomepage.selectedMainOption.options))},Znc=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," "))},$nc=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," "))},aoc=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," "))},boc=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()))},
eoc=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":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":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",coc(a)),B(3),I("checked",doc(a)))},foc=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))},goc=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)," "))},hoc=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)," "))},ioc=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)," "))},joc=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)," "))},koc=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)," "))},loc=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)," "))},moc=function(a){a&1&&M(0,"b-spinner")},noc=function(a){a&1&&(K(0,"mat-hint"),Q(1,"This field is read-only"),L())},ooc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},qoc=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(poc(f,e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Pe),B(),Ag(a),B(),I("matTooltip","Remove SLO ID "+a))},roc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P(2),B(),S(" Subscription ID: ",a.id," "))},toc=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);Ou(g,
Object.assign({},f,{ordinal:e}));return v()})("timeOfDayChange",function(e){u(b);var f=P(),g=P(2);Ou(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);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return v(e)});N("blur",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))})("keydown.enter",
function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))});L()()();K(6,"div")(7,"mat-form-field",18)(8,"mat-label");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))});Qf(11,ooc,2,2,"mat-option",21,Pf);L()()();K(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");Q(16,"Add SLO ID");L();K(17,"input",23);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.newSloId,e)||(f.newSloId=e);return v(e)});N("keydown.enter",function(){u(b);
var e=P(),f=P(2);return v(soc(f,e))})("blur",function(){u(b);var e=P(),f=P(2);return v(soc(f,e))});L()();Qf(18,qoc,5,3,"div",24,Pf);L();F(20,roc,2,1,"div",25)}if(a&2){a=P();var c=P(2),d;I("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?d:0)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Cg("ngModel",c.inputDaysRemaining);B(5);I("ngModel",a.types);B();Rf(c.typeChoices);B(6);Cg("ngModel",c.newSloId);B();Rf(a.sloIds);B(2);G(a.id?20:-1)}},voc=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(uoc(d))});Q(4," Subscribe to your own reports ");F(5,moc,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,noc,2,0,"mat-hint");L()();F(13,toc,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))},woc=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,voc,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)}},xoc=function(a){a&1&&M(0,"b-spinner")},yoc=function(a){a&1&&
(K(0,"th",36),Q(1,"Scope"),L())},zoc=function(a,b){a&1&&(K(0,"td",37),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.lead.emailAddress," "))},Aoc=function(a){a&1&&(K(0,"th",36),Q(1,"Frequency"),L())},Coc=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="- "+Boc[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="";Eoa(" ",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)," ")}},Doc=function(a){a&1&&M(0,"th",36)},Eoc=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=sg(4),B(),I("matMenuTriggerFor",a))},Foc=function(a){a&1&&M(0,"tr",42)},Goc=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))},Hoc=function(a){a&1&&(K(0,"table",10),Wf(1,29),E(2,yoc,2,0,"th",30)(3,zoc,2,1,"td",31),Xf(),Wf(4,32),E(5,
Aoc,2,0,"th",30)(6,Coc,4,8,"td",31),Xf(),Wf(7,33),E(8,Doc,1,0,"th",30)(9,Eoc,9,1,"td",31),Xf(),E(10,Foc,1,0,"tr",34)(11,Goc,1,1,"tr",35),L());a&2&&(a=P(),I("dataSource",a.subscriptions$),B(10),I("matHeaderRowDef",a.columns),B(),I("matRowDefColumns",a.columns))},Ioc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Please select a valid, single user"),L())},Joc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Report for sundar@ cannot be generated"),L())},Koc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=
b.$implicit,I("value",a.value),B(),Ag(a.displayText))},Moc=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(Loc(e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Pe),B(),Ag(a),B(),I("matTooltip","Remove SLO ID "+a))},Noc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P().$implicit,B(),S(" Subscription ID: ",a.id," "))},Qoc=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,Ioc,2,0,"mat-error");F(11,Joc,2,0,"mat-error");L()();K(12,"b-delivery-frequency-subform",17);N("frequencyChange",function(f){var g=u(c).$implicit;P();
g.frequency=f;f!=="daily"?g.ordinal=1:delete g.ordinal;return v()})("ordinalChange",function(f){var g=u(c).$implicit;return v(g.ordinal=f)});Eg("timeOfDayChange",function(f){var g=u(c).$implicit;Dg(g.timeOfDay,f)||(g.timeOfDay=f);return v(f)})("timeZoneIdChange",function(f){var g=u(c).$implicit;Dg(g.timeZone.id,f)||(g.timeZone.id=f);return v(f)});L();K(13,"div")(14,"mat-form-field",15)(15,"mat-label");Q(16,"Days remaining");L();K(17,"input",48);Eg("ngModelChange",function(f){var g=u(c).$implicit;
Dg(g.daysRemaining,f)||(g.daysRemaining=f);return v(f)});L()()();K(18,"div")(19,"mat-form-field",15)(20,"mat-label");Q(21,"Types");L();K(22,"mat-select",20);Eg("ngModelChange",function(f){var g=u(c).$implicit;Dg(g.types,f)||(g.types=f);return v(f)});Qf(23,Koc,2,2,"mat-option",21,Pf);L()()();K(25,"div",8)(26,"mat-form-field",49)(27,"mat-label");Q(28,"Add SLO ID");L();K(29,"input",23);Eg("ngModelChange",function(f){u(c);var g=P();Dg(g.newSloId,f)||(g.newSloId=f);return v(f)});N("keydown.enter",function(){var f=
u(c).$implicit,g=P();return v(Ooc(g,f))})("blur",function(){var f=u(c).$implicit,g=P();return v(Ooc(g,f))});L()();Qf(30,Moc,5,3,"div",24,Pf);L();F(32,Noc,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(Poc(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);Cg("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Cg("ngModel",a.daysRemaining);B(5);Cg("ngModel",a.types);B();Rf(b.typeChoices);B(6);Cg("ngModel",b.newSloId);B();Rf(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"," ")}},Roc=function(a){a&1&&(K(0,"div",7),M(1,"b-general-settings"),L())},Soc=function(a){a&1&&(K(0,"div",7),M(1,"b-notification-settings"),L())},Toc=function(a){a&1&&(K(0,"div",7),M(1,"b-configurable-alert-settings"),L())},Uoc=function(a){a&1&&(K(0,"div",7),M(1,"b-slo-reports-settings"),L())},Voc=function(a){a&1&&(K(0,"mat-tab",6),E(1,Uoc,2,0,"ng-template",3),L())},Woc=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)},Xoc=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))},Yoc=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(),Ag(b.getDisplayName(a)))},Zoc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",3)(2,"div",4);F(3,Woc,1,4,"b-star-toggle",5)(4,Xoc,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);Qf(11,Yoc,3,2,"li",null,Pf);L()()}a&2&&(a=P(),B(3),G(a.userIsAdmin?3:4),B(3),S("Bookmark Group: ",a.bookmarkGroup.name,
" "),B(3),Ag(a.bookmarkGroup.description),B(2),Rf(a.bookmarkGroup.item))},$oc=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()}},apc=function(a,b){a&1&&F(0,$oc,2,0,"button",9);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},bpc=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))},cpc=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)},dpc=function(a){a&1&&M(0,"b-star-toggle",12);
a&2&&I("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},epc=function(a){a&1&&(K(0,"div",14),Q(1," Hotlist not found. "),L());a&2&&I("bFocus",!0)},fpc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},gpc=function(a){a&1&&(K(0,"span",19),Q(1," (archived) "),L())},hpc=function(a){a&1&&(K(0,"span",22),Q(1," \u00a0(changed) "),L())},ipc=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,gpc,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,hpc,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))},jpc=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()()}},kpc=function(a){a&1&&(K(0,"div",5),F(1,bpc,1,3,"b-star-toggle",11),F(2,cpc,1,4,"b-star-toggle",12),F(3,dpc,1,4,"b-star-toggle",12),K(4,"div",13),F(5,epc,2,1,"div",14),F(6,fpc,2,0,"div"),F(7,ipc,9,4,"div"),L(),F(8,jpc,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))},lpc=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))},mpc=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. "))},npc=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" No issues in hotlist ",a.hotlistId,". "))},opc=function(a){a&1&&(K(0,"div",7),F(1,mpc,1,1)(2,npc,1,1),L());a&2&&(a=P(),I("bFocus",!0),B(),
G((a.searchResults==null?0:a.searchResults.hasNextPage())?1:2))},ppc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",25);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Eg("focusedRowIndexChange",function(c){u(b);var d=P();Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P();Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",
function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){u(b);var d=P();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){u(b);var c=P();return v(Ju(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(Ju(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",
!0))},qpc=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()}},rpc=function(a,b){a&1&&F(0,qpc,2,0,"button",8);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},spc=function(a){a&1&&(K(0,"span",13),Q(1," \u00a0(changed) "),L())},tpc=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,spc,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))},upc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},vpc=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),L())},wpc=function(a){a&1&&F(0,upc,2,0,"div")(1,vpc,2,0,"div");a&2&&(a=P(2),G(a.isLoading?0:1))},xpc=function(a){a&1&&(K(0,"div",6),F(1,tpc,6,3,"div",10)(2,wpc,2,1),L());a&2&&(a=P(),B(),G(a.savedSearch?1:2))},
ypc=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()}},zpc=function(a){if(a&1){var b=t();K(0,"div",7);F(1,ypc,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))},Apc=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:"","..."))},Bpc=function(a){a&1&&(K(0,"div",19),M(1,"b-spinner"),F(2,Apc,2,1,"span"),L());a&2&&(a=P(2),B(2),G(a.searchParams?2:-1))},Cpc=function(a){if(a&1){var b=t();K(0,"div",20)(1,"b-issues-grid",22);N("init",function(c){u(b);var d=P(3);return v(d.resultsGrid=c)});Eg("focusedRowIndexChange",function(c){u(b);var d=
P(3);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(3);Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P(3);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(3);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(3);return v(Ju(c,c.page,1))})("onPrevPage",function(){u(b);var c=P(3);return v(Ju(c,c.page,-1))});L()()}a&2&&(a=P(3),B(),I("searchResults",
a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Dpc=function(a){a&1&&(K(0,"div",21),Q(1," No issues in saved search. "),L());a&2&&I("bFocus",!0)},Epc=function(a){a&1&&F(0,Cpc,2,6,"div",20)(1,Dpc,2,1,"div",21);a&2&&(a=P(2),G(a.hasResults()?0:1))},Fpc=function(a){a&1&&(K(0,"div"),F(1,Bpc,3,1,"div",19)(2,Epc,2,1),L());a&2&&(a=P(),B(),G(a.isLoading?1:2))},Pu=function(a,b){return Gpc(function(){return TWa(a)},
b)},Gpc=function(a,b){return a()?[b]:[]},Hpc=function(){var a=p(Qu).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},Jpc=function(a){a=a.internal;var b,c,d;(b=X(a,Ipc,11))==null?d=void 0:d=Ln(b,1,Oi(bn)).sort().join("-");b=(c=d)!=null?c:"";var e,f,g;(e=X(a,Ipc,11))==null?g=void 0:g=Ln(e,2,Oi(bn)).sort().join("-");c=(f=g)!=null?f:"";return xi(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},Mpc=function(a,b){for(var c=[],d=a.length,e=0,f=[],g,
k,m=0;m<d;){switch(e){case 0:var r=a.indexOf("<",m);if(r<0){if(c.length===0)return a;c.push(a.substring(m));m=d}else c.push(a.substring(m,r)),k=r,m=r+1,Kpc?(Lpc.lastIndex=m,r=Lpc.exec(a)):(Lpc.lastIndex=0,r=Lpc.exec(a.substring(m))),r?(f=["<",r[0]],g=r[1],e=1,m+=r[0].length):c.push("<");break;case 1:r=a.charAt(m++);switch(r){case "'":case '"':var w=a.indexOf(r,m);w<0?m=d:(f.push(r,a.substring(m,w+1)),m=w+1);break;case ">":f.push(r);c.push(b(f.join(""),g));e=0;f=[];k=g=null;break;default:f.push(r)}break;
default:throw Error();}e===1&&m>=d&&(m=k+1,c.push("<"),e=0,f=[],k=g=null)}return c.join("")},Ru=function(a,b){b=a(b||Npc,void 0);a=tj();if(b&&b.renderAsElement)a=b.renderAsElement();else{a=a.createElement("DIV");b:if(Oa(b)){if(b.toSafeHtml&&(b=b.toSafeHtml(),b instanceof qh))break b;b=Dh("zSoyz")}else b=Dh(String(b));a.innerHTML=th(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+'"]')},Opc=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+
b+'"]'))},Ppc=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"))})},Spc=function(a,b){if(/-[a-z]/.test(b))return null;if(Qpc&&a.dataset){if(iba()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+Rpc(b))},Tpc=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 Upc: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(Vpc,{imageUrls:b,backupUrl:f,size:c,preloadSize:d,pixelRatio:Wpc()});e=new Xpc(c,e);a.appendChild(c);return e},Zpc=function(a,b){var c="",d=0;b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c=c+a.substring(d,e.getStart())+"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3"+
a.substring(e.getStart(),e.getEnd())+"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",d=e.getEnd();c+=a.substring(d,a.length);return Ypc(Ypc(eu(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},$pc=function(a){var b=a.getDisplayName();return b?Zpc(b,a.getMatchInfo().getDisplayNameMatches()):""},aqc=function(a){var b=a.getDisplayValue();return b?Zpc(b,a.getMatchInfo().getDisplayValueMatches()):""},bqc=function(a,b){var c=b?$pc(a):eu(a.getDisplayName());b=
b?aqc(a):eu(a.getDisplayValue());c=c||b;b=b||eu(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()]}},cqc=function(a){var b=a.result();b=bqc(b,!1);a=a.getDisplayNameWithOverrideApplied();return{label:eu(a)||b.sublabel,sublabel:b.sublabel,name:a,photos:b.photos,hovercardId:b.hovercardId}},dqc=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||
0){case 3:return"isError";default:return""}},eqc=function(a){var b;return((b=a.statefulChipConfig)==null?void 0:b.customChipClass)||""},gqc=function(a,b,c){var d=cqc(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=dqc(c);c=eqc(c);return{id:Uu(fqc),label:d.label,name:d.name,photos:e,
hovercardId:d.hovercardId,stateClass:f,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion(),customChipClass:c}},iqc=function(a,b,c,d){var e="",f=eu(a.getDescription()),g=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(m){var r=m.getPrimaryTarget().getName(),w="";if(r){if(b){var x;var D=(r=(D=m.getPrimaryTarget())==null?void 0:(x=D.getName())==null?void 0:x.getGivenName())?Zpc(r,m.getMatchInfo().getGivenNameMatches()):""}else D=eu(r.getGivenName());(w=
D)||(w=b?$pc(m):eu(m.getDisplayName()))}w||(w=b?aqc(m):eu(m.getDisplayValue()));return w}),c&&(e=e.reverse()),e=b?$pc(a)||e.join(", "):eu(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=hqc({memberCount:f}),g=!0);else if(k===1)return e=a.getMemberList()[0],f=bqc(e,b),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});c=a.getPhotoUrl();c=a.getDisplayName()&&c?[c]:a.getMemberList().map(function(m){return m.getPhotoUrl()});
return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:g}},Vu=function(a){return new Gi(a)},jqc=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},kqc=function(a,b){return jqc(a,b,"CustomEvent")},lqc=function(a){return a.resultType===4||a.resultType===5},pqc=function(a){Wu.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=iqc(c.result(),!1,f,!1);if(f.flatResult){var g=Object;c=g.assign;var k=f.flatResult,m=k.getPrimaryTarget(),r=d.getWarnForExternalSelections()&&m.getOrgState()===2;m=d.getShouldDisplayExternalSelectionIcon()&&r&&m.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos;var w=dqc(e);e=eqc(e);d={id:Uu(fqc),label:f.label,name:k.getDisplayName(),photos:m,hovercardId:f.hovercardId,stateClass:w,isWarning:r,isDeletionDisabled:!d.getAllowChipDeletion(),
customChipClass:e};d=c.call(g,{},d,{type:f.type})}else k=c.result().getPrimaryTarget(),c=d.getWarnForExternalSelections()&&k.getOrgState()===2,k=d.getShouldDisplayExternalSelectionIcon()&&c&&k.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos,d=Object.assign({},{id:Uu(mqc),isDeletionDisabled:!d.getAllowChipDeletion(),stateClass:"",isWarning:c,name:f.label},f,{customChipClass:((g=e.statefulChipConfig)==null?void 0:g.customChipClass)||
"",photos:k});f=Ru(nqc,d);Tu(Su(f,"d6MZcd"),d.photos,b.avatarSize,b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(f);return{chip:new oqc(f,b.selection,b.selectionsState),root:f,state:0}},shouldCreate:lqc}})},qqc=function(a){return 0===a.resultType},tqc=function(a){Wu.addCoreFactory({type:1,configurationKey:a,factory:{create:function(b){var c=gqc(b.selection,b.chipConfig,b.chipCustomization);c=Ru(rqc,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new sqc(c,
b.selection,b.selectionsState),root:c,state:0}},shouldCreate:qqc}})},Iqc=function(a,b,c,d,e){var f;if(f=c.offsetParent){var g=f.tagName=="HTML"||f.tagName=="BODY";if(!g||uqc(f)!="static"){var k=Xu(f);if(!g){g=Yu(f);var m;if(m=g){m=vqc&&aba(wqc,10)>=0;var r;if(r=xqc)r=aba(yqc,10)>=0;var w=zqc&&aba(wqc,85)>=0;m=oj||m||r||w}g=m?-f.scrollLeft:g&&Tt(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft;k=Aqc(k,new lj(g,f.scrollTop))}}}f=k||new lj;k=Bqc(a);(g=Cqc(a))&&k.intersection(Dqc(g));
g=tj(a);m=tj(c);if(g.document_!=m.document_){g=g.document_.body;m=m.getWindow();r=new lj(0,0);w=Zu($u(g));if(Eqc(w,"parent")){var x=g;do{if(w==m)var D=Xu(x);else D=Fqc(x),D=new lj(D.left,D.top);r.x+=D.x;r.y+=D.y}while(w&&w!=m&&w!=w.parent&&(x=w.frameElement)&&(w=w.parent))}g=Aqc(r,Xu(g));k.left+=g.x;k.top+=g.y}a=Gqc(a,b);b=k.left;a&4?b+=k.width:a&2&&(b+=k.width/2);b=new lj(b,k.top+(a&1?k.height:0));b=Aqc(b,f);a=Gqc(c,d);k=Hqc(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 xj(0,0,0,0);a.left=b.x;a.top=b.y;a.width=k.width;a.height=k.height;c=Cqc(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},Jqc=function(a,b){av(a,new lj(b.left,b.top));b=b.getSize();var c=Hqc(a);c==b||c&&b&&c.width==b.width&&c.height==b.height||(a=a.style,oj?a.MozBoxSizing=
"border-box":nj?a.WebkitBoxSizing="border-box":a.boxSizing="border-box",a.width=Math.max(b.width,0)+"px",a.height=Math.max(b.height,0)+"px")},Kqc=function(a,b){return new bv(a,b)},Oqc=function(a,b,c){b=Ru(Lqc,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;c=c.hideDelayMs;c=new Mqc(b,a===void 0?500:a,c===void 0?300:c);return new Nqc(b,c)},Pqc=function(a){return!a.chipCustomization.statefulChipConfig||a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&
a.chipCustomization.statefulChipConfig.chipState!==3?!1:!0},Qqc=function(a){Wu.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new cv(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:Pqc},configurationKey:a})},Uqc=function(a,b,c){var d=Ru(Rqc,{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("Pg`"+f);}}e.call(a,f);if(c.tooltipLabel){var g=d.getAttribute("data-tooltip-id")||"";g=Oqc(b,g,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});Sqc(g,d)}return new Tqc(d,c.icon,c.disabledIcon,g,c.disableDomNavigation,c.onClick)},dv=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)},ev=function(a){return kqc("pcw-click",a)},Wqc=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 Vqc(a,b,f,e)},Xqc=function(a){fv.addDecoratorFactory({type:1,factory:{create:function(b,c){return Wqc(c,b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig}},configurationKey:a})},Yqc=function(a){a=Jpc(a);tqc(a);Qqc(a);pqc(a);Xqc(a)},Zqc=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},$qc=function(a,
b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");a.setAttribute("pkd-ac-state",String(Dh(b)))},arc=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Dh(b)))},brc=function(a,b){a.setAttribute("pkd-ps-state",String(Dh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(Dh("2")))},function(){a.setAttribute("pkd-ps-state",String(Dh("3")))})},erc=function(a,b){crc(drc,b).create(a)},hrc=function(a){a=a===void 0?new frc:a;return new grc(a)},
jrc=function(a,b,c,d,e){var f=hrc(new frc(function(){var k=e();k&&!k.hasFocus()&&k.getNavigatable().reset()})),g=new irc;erc({injectableAutocompleteGrouping:g,injectableResultConfig:f,autocompleteConfig:a,clientConfig:b,peopleStore:c,searchSession:d,getAutocomplete:e},Jpc(b));return{injectableResultConfig:f,injectableAutocompleteGrouping:g}},nrc=function(a){var b=Ru(krc,{id:Uu(lrc)});a.appendChild(b);return new mrc(b)},qrc=function(a){if(gv){var b=orc(a);prc(a,b)}else a.scrollIntoView({block:"nearest"})},
src=function(a){return new rrc(a)},vrc=function(a,b){b=Ru(trc,{label:b.label});a.appendChild(b);return new urc(b)},xrc=function(a,b){for(var c=l(wrc.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=wrc.get(b))&&a.classList.add(b)},zrc=function(a,b){for(var c=l(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=yrc.get(b))&&a.classList.add(b)},Crc=function(a,b,c,d){b=Ru(Arc,{content:b,header:d});a.appendChild(b);a=Su(b,"Sx9Kwc");
d=vrc(Su(b,"IbE0S"),{label:"Close"});zrc(b,c.getTheme());xrc(a,c.getStyle());return new Brc(b,d)},Hrc=function(a,b){var c=a.headerText,d=a.infoGroupConfig;a=a.collapsibleGroupConfig;if(c){var e=Uu(Mt.getInstance());e=Ru(Drc,{id:e,header:c});c=new Erc(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new Frc(c,d,b,e));a&&(c=new hv(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(b=c,b.getRoot().setAttribute("role","group"),c=new Grc(b));return c}},Jrc=function(){return new (Function.prototype.bind.apply(Irc,
[null].concat(q(ad.apply(0,arguments)))))},Krc=function(a){var b,c;return(c=a==null?void 0:(b=a.collapsibleGroupConfig)==null?void 0:b.isDemoted)!=null?c:!1},Mrc=function(){return new (Function.prototype.bind.apply(Lrc,[null].concat(q(ad.apply(0,arguments)))))},Nrc=function(a){return Object.values(a).filter(function(b){return b!=null}).length},Orc=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&Nrc(b)!==0?b.headerText!=null&&Nrc(b)===1:!0})},Rrc=function(a,b,c,d,e,f){f?
Orc(f)?f=Mrc(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=Jrc(a,b,c,d,e,f),Object.values(f.groupConfigs).some(Krc)&&(a=new Prc(a,f)),f=a):f=new Qrc(a,b,c,e);return f},Src=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Pg`"+a);}},Trc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";
case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Pg`"+a);}},iv=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},Xrc=function(){var a=jv("gapi.config.get");if((a=iv(a&&a("googleapis.config/sessionIndex")))||(a=iv(ra.__X_GOOG_AUTHUSER))||(a=iv(jv("google.authuser"))))return a;var b=ra.location.href||"",c=Urc.exec(b);try{a=iv(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;
c=Vrc.exec(b);try{a=iv(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=Wrc.exec(b);return(a=iv(a&&a[1]))?a:""},Yrc=function(){var a=jv("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=jv("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}},$rc=function(a){a=a===void 0?"":a;var b;if(!(b=Yrc())){b=a;var c=
c===void 0?Xrc():c;a={};var d=Zrc([]);d&&(a.Authorization=d);b||(b=(b=jv("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},asc=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=jv("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&(c.indexOf("staging")>0||c.indexOf("test")>0)?2:1:0,c=c===2;c&&(b=7);switch(b){case 7:c="dev-";var d=".corp";break;case 1:c="autopush-";d=".sandbox";break;case 2:c="staging-";d=".sandbox";break;default:b=
4,c="",d=".clients6"}switch(b){case 7:case 1:case 2:a.endsWith(".pa")?a=a.substring(0,a.length-3)+"-googleapis.pa":d="-googleapis"+d}a="https://"+c+a+d+".google.com";(b=(b=jv("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},bsc=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},csc=function(a){var b,c=(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();
return c&&a?[c,a]:null},dsc=function(a){return(a=csc(a))?JSON.stringify(a):null},esc=function(a,b){b=b===void 0?null:b;b=a.getProfileId()||b;return b?(a=csc(a))?JSON.stringify([a,b]):null:null},fsc=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},gsc=function(){var a=null;try{a=ra.localStorage||null}catch(b){}fsc.call(this,a)},kv=function(a,b){this.mechanism_=a;this.prefix_=b+"::"},isc=function(a){return hsc.map(function(b){return new kv(a,b)})},jsc=function(a,b){window.setTimeout(a,
b)},ksc=function(a,b){return new Promise(function(c){b>0?jsc(function(){return c(a)},b):c(a)})},lsc=function(a){return new Promise(function(b,c){a>0?jsc(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},msc=function(a,b,c){b=ksc(b,c);return Promise.race([a,b])},nsc=function(a,b){b=lsc(b);return Promise.race([a,b])},osc=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},psc=function(){return bba&&Da?!Da.mobile&&(Ea("iPad")||Ea("Android")||Ea("Silk")):Ea("iPad")||Ea("Android")&&!Ea("Mobile")||
Ea("Silk")},qsc=function(a){var b=new lv;if(a instanceof mv)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},ssc=function(a){a=a===void 0?null:a;var b=(new rsc).setExperimentFlags(new nv).setSource(3);a&&b.setError(qsc(a));return b},Bsc=function(a){var b=b===void 0?new gsc:b;if(tsc)return tsc;var c=new usc(a),d=new vsc(a),e;b.isAvailable()?e=new wsc(a,b):e=new xsc(a);b=e;try{b.clean()}catch(f){}c=new ysc(new zsc(b,c),d,a.runtime_);return tsc=new Asc(a,c)},Dsc=function(a){var b=a.resultCustomizationConfig,c=bqc(a.result,!0);a=Csc(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}},Csc=function(a,b){var c=a.result,d=a.resultConfig;a=Trc(a.appearanceConfig.getDensity());var e=[],f=Esc.getExperiments();Ri(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(Fsc),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},Hsc=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,e=a.isRightToLeft,f=Ri(a.clientConfig.internal,6);d=Trc(d.getDensity());b=iqc(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=Csc(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(Gsc),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},
Jsc=function(a,b,c){return Ks(new Isc(a===void 0?0:a,b!=null?b:[],c!=null?c:null))},ov=function(a){return(a||"").trim()},Lsc=function(a,b,c,d){return new Ksc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Msc=function(a){return a.resultCustomizationConfig.shouldDisable?2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},Osc=function(a){return new Nsc(a)},Qsc=function(a,b,c,d){return new Psc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?
null:d)},Rsc=function(a){var b=-1;(a=pv(a))&&zn(a,2)&&(b=Um(a,2));return"index:"+b},Tsc=function(a,b,c,d,e,f,g,k,m){return new Ssc(a,b,c,d,e,f,g,k,m)},Vsc=function(){return new (Function.prototype.bind.apply(Usc,[null].concat(q(ad.apply(0,arguments)))))},qv=function(a){return a instanceof TypeError?4:3},Wsc=function(){return"https://support.google.com/contacts/answer/7345608"},Ysc=function(a){return Xsc.some(function(b){return a instanceof b})},dtc=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=d.getAutocompleteHeader(),
H=d.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var J=d.getAutocompleteGroupingType()===4||d.getAutocompleteGroupingType()===5;var O=H&&Ysc(H);J=J&&O?H:new Zsc}else switch(d.getAutocompleteGroupingType()){case 1:J=new Zsc;break;case 2:J=new $sc(d.getAutocompleteGroupingLabel());break;case 3:J=new atc(d.getAutocompleteGroupingLabel());break;case 4:case 5:J=H}H=d.getAutocompleteGroupingType();e=l(e.groupingDecorators);for(O=e.next();!O.done;O=e.next())O=O.value,J=
O(H,J);e=J;D=Ru(btc,{header:D||""});a.appendChild(D);a=nrc(Su(D,"tjneg"));b=Vsc(a,f,g,d,k,b,c,m,r,w,e);return new ctc(b,c,x)},etc=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},ftc=function(a,b){return new rv(a,b)},gtc=function(a){return a.getAttribute("peoplekit-id")===
"XLuqBd"},itc=function(a,b){return new htc(a,b)},jtc=function(){return!1},ktc=function(){},mtc=function(){return new (Function.prototype.bind.apply(ltc,[null].concat(q(ad.apply(0,arguments)))))},ptc=function(a,b){b=Ru(ntc,b);a.appendChild(b);return new otc},vtc=function(a,b,c,d,e,f,g,k,m,r,w){var x=Ru(qtc);dv({element:x,veid:85843,actions:["impression"],componentId:"peoplekitweb"});xrc(x,g.getStyle());a.appendChild(x);a=Su(x,"tjneg");var D=new rtc(x),H;w||(w=jrc(g,k,r,c,function(){return H}));r=w;
d=dtc(a,d,e,g,r.injectableAutocompleteGrouping,g,r.injectableResultConfig,k,m,b,D,f);e=Su(a,"rymPhb");b.setAttribute("aria-owns",e.id);b.setAttribute("aria-controls",e.id);e.setAttribute("aria-labelledby",b.id);m=g.getNoResultsMessage();e=Ru(stc);m=m?m.display?new ttc(e,m):ptc(e,m):new utc;x.appendChild(e);return H=mtc(x,b,d,c,f,g,m,k)},ytc=function(a,b,c,d,e,f,g,k,m,r){var w=Ru(wtc);xrc(w,g.getStyle());a.appendChild(w);var x;a=jrc(g,k,r,c,function(){return x});c=vtc(w,b,c,d,e,f,g,k,m,r,a);return x=
new xtc(w,b,c,d,g)},Atc=function(a,b){return new ztc(a,b)},Btc=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},sv=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},Ctc=function(a,b,c){switch(b){case 1:a.reporter.reportProceed(sv(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(sv(c))}},Etc=function(a,
b,c){return new Dtc(a,b,c)},Ktc=function(a,b){a=a.internal.getClearcut();b=new Ftc(a,b);b=new Gtc(Htc(b));a=a.getInterfaceType();return new Itc(new Jtc(b,a))},Ltc=function(a,b,c,d){var e;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(g){e||(e=g)}}if(e)throw e;},Mtc=function(a,b,c,d,e){e=l(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},Ttc=function(a,b,c){var d=new tv,e=Xrc();c=(new Ntc).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(834323501);
d=new Otc(d,1394,e,void 0,void 0,void 0,new Ptc(c));d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=Qtc(new Rtc,Esc.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");d.clearcut_.setProductID(109303191);return new Stc(a,d)},$tc=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=Utc(Vtc||(Vtc=Wtc('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));
f=new Xtc(f,7)}else f=new uv;else f=new uv;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new Ytc).setPeopleApiEnv(a.apiEnv_),e);Esc=new Ztc(d,a);c&&c(b)},buc=function(a,b,c,d,e,f){var g=c.beginSession(function(){},f.sessionOptions||new vv);return auc(a,b,c,g,d,e,f)},auc=function(a,b,c,d,e,f,g){$tc({clientConfig:f,commonConfig:e,initializeIoC:Yqc});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=Ru(cuc,{classes:"aU4VQc"});a.appendChild(k);
Ri(f.internal,14,!0)&&e.setStyle(1);zrc(k,e.getTheme());dv({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new wv;var m=Etc(d,a,e.getEntryPoint()),r=Ktc(f,e.getEntryPoint());b=ytc(k,b,d,a,m,r,e,f,new duc(g.intelligence),c);brc(b.getRoot(),c);c=Ttc(k,f.internal.getClearcut(),e.getEntryPoint());c.start(euc);return new fuc(k,b,a,m,c,e)},guc=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Pg`"+a);}},huc=function(a){var b=Number("2"),
c=Number("4");return guc(a)+2*b+2*c},iuc=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=xv.get(a))==null?void 0:b.get("jCCvxc"),label:"Copy",keyboardShortcut:[512,67],veid:108906})},juc=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=xv.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},kuc=function(a){var b;return Object.freeze({id:"YCRBfe",iconUrl:(b=xv.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,
69],veid:120676})},luc=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=xv.get(a))==null?void 0:b.get("l1309"),label:"Change email address",keyboardShortcut:[16,70],veid:135428})},muc=function(a){var b=yv?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=xv.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"})},nuc=function(a){return a.map(function(b){if(yv)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)}})},quc=function(a,b){var c=Uu(Mt.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=nuc(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("Pg`"+
b);}d=Ru(ouc,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&dv({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});return new puc(d,a)},tuc=function(a,b,c,d){var e=Ru(ruc);dv({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new suc(e);a.appendChild(e);return new zv(e,b,c,f,d)},Buc=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return uuc(vuc(wuc(),xuc(c).setEdit(!0)));
if(d)return uuc(yuc(wuc(),(new Av).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 uuc(zuc(new Dv,Auc((new Ev).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},Cuc=function(a){return(a==null?0:Fv(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:{isValid:!0}},Iuc=function(a,b,c,d){var e=cqc(b);var f=Buc(b.result(),b.getDisplayNameWithOverrideApplied());var g=e.hovercardId;var k=e.label;var m=e.sublabel;b=e.photos;e=e.name;var r=d.description;d='<div peoplekit-id="'+Gv("bN97Pc")+'"><div class="'+Gv("peoplekitComponentsNameeditdialogImplDescription")+
'">';r?(d+=Hv(r)+" ",f='To edit this contact permanently, use <a href="'+(Gv(Iv(f))+'" target="_blank" class="'+Gv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f):(f='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+(Gv(Iv(f))+'" target="_blank" class="'+Gv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f);d+='</div><div peoplekit-id="'+Gv("PN08Xe")+'"></div></div>';
f=Jv(d);g=Kv(Lv(),'<div peoplekit-id="'+Gv("tJHJj")+'" class="'+Gv("peoplekitComponentsDialogImplAvatarHeader")+'" data-hovercard-id="'+Gv(g)+'" data-name="'+Gv(e)+'"><div class="'+Gv("peoplekitComponentsDialogImplHeaderRow")+'"><div class="'+Gv("peoplekitComponentsDialogImplLeft")+'" aria-hidden="true">');d=Jv('<div class="'+Gv("peoplekitComponentsDialogImplAvatar")+'"><div class="'+Gv("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+Gv("d6MZcd")+'"></div></div>');g=Kv(Mv(g,d),
'</div><div class="'+Gv("peoplekitComponentsDialogImplCenter")+'">');k=Jv('<div class="'+Gv("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+Gv("E0kCZc")+'" class="'+Gv("peoplekitComponentsDialogImplLabel")+" "+Gv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Duc(Nv(k))+"</div>"+(m?'<div class="'+Gv("peoplekitComponentsDialogImplSublabel")+" "+Gv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Duc(Nv(m))+"</div>":"")+"</div>");k=Kv(Mv(g,k),"</div></div></div>");
k=Ru(Arc,{content:f,header:k,confirmAction:!0,labelId:void 0});a.appendChild(k);a=Su(k,"Sx9Kwc");m=vrc(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=vrc(Su(k,"McfNlf"),{label:f});zrc(k,c.getTheme());xrc(a,c.getStyle());g.getRoot();a=new Euc(k,m,g);k=Su(a.getRoot(),"d6MZcd");Tu(k,b,36,36,c);c=Su(a.getRoot(),"PN08Xe");
b=Ru(Fuc,{label:"Name",initialValue:e||"",id:Uu(Guc)});c.appendChild(b);c=new Ov(b);return new Huc(a,c)},Juc=function(a,b,c,d,e,f,g,k,m,r){a={resultType:c.result().getResultType(),avatarSize:guc(f.getDensity()),resultListItemAvatarSize:Src(f.getDensity()),parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:g,chipCustomization:m,isRightToLeft:r,clientConfig:k};k=Jpc(k);return crc(Wu,k).create(a)},Kuc=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}}))},Nuc=function(a){return JSON.parse(a).map(function(b){var c=Luc(Pv(b.id));b.dn&&c.setDisplayName(b.dn);b.fdn&&Muc(c,!0);return c})},Ouc=function(a){return Muc(Luc(a.id()).setDisplayName(a.getDisplayNameOverride()),a.getForceDisplayNameOverride())},Quc=function(a,b,c,d,e,f,g,k,m,r){return new Puc(a,b,c,d,e,f,g,k,m,r)},Tuc=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=Ruc.height;if(!f){var g=Suc();f=g;if(a.style[g]===void 0){var k=hva()+pj(g);a.style[k]!==void 0&&(f=k)}Ruc.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var m=b.getSelection();m&&(m.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},Uuc=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 Is(c,e)});Tuc(a.join(", "),b)},Wuc=function(a,b,c,d,e,f,g,k,m,r,w){a=new Qv(a,b,c,d,e,f,g,k,m,r,w);return new Vuc(a,w)},Zuc=function(a,b,c,d,e,f,g,k,m,r,w){var x=new suc(a),D=new Xuc({getPrevKeyCode:function(){return Yu(a)?39:37},getNextKeyCode:function(){return Yu(a)?37:39},navigatePastBegin:m.navigatePastBegin,navigatePastEnd:m.navigatePastEnd});e=Wuc(b,c,
x,d,e,f,g,k,{chipClick:function(H,J){return D.onClick(H,new Rv(J))},chipContextMenu:function(H,J){D.onContextMenu(new Rv(J))},chipDrop:m.chipDrop||function(){},chipEditContactMethod:m.chipEditContactMethod||function(){}},r,w);D.attach(a,e.getNavigatable());return new Yuc(e,b,c,d,r,w)},$uc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Pg`"+a);}},bvc=function(a){a=
a.replace(/\\"/g,"%%").matchAll(avc);return[].concat(q(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},cvc=function(a,b){var c=bvc(a);c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b<=d.startIndex+d.length)return d;return{startIndex:0,length:a.length,value:a}},dvc=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},jvc=function(a,b,c,d,e,f,g,k,m){var r=new evc(c,
new Sv(c,d,k,m),f),w=Ru(fvc,{max_height:void 0});xrc(w,e.getStyle());a.appendChild(w);a=Su(w,"kE8AEc");var x=Ru(gvc,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});a.appendChild(x);a=Ru(hvc,{id:Uu(ivc),ariaLabel:"",helpText:e.helpText,shouldAutofocus:e.shouldAutofocus,height:huc(e.getDensity()),densityClass:$uc(e.getDensity())});var D=Su(a,"BbVjBd");x.appendChild(a);f=Zuc(x,c,r,d,g,e,e,f,{navigatePastEnd:function(){D.focus()},chipDrop:function(){D.focus()},
chipEditContactMethod:function(H){D.value=H;H=D.dispatchEvent;var J=jqc("input",D,"Event");H.call(D,J);D.focus()}},k,m);b=b(D);return new Tv(w,f,a,b,c,r,d,k,e,m)},nvc=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);e.internal.getClearcut().setComponentFlow(4);d.setAllowContactMethodEditing(Ri(e.internal,5));var g=Ru(kvc,{classes:"aU4VQc"});a.appendChild(g);Ri(e.internal,14,!0)&&d.setStyle(1);zrc(g,d.getTheme());dv({element:g,veid:64611,actions:["impression"],componentId:"peoplekitweb"});
brc(g,b);var k=Ktc(e,d.getEntryPoint()),m=new wv,r=Etc(c,m,d.getEntryPoint()),w=new duc(f.intelligence);a=(new lvc).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=jvc(g,function(x){return ytc(g,x,c,m,r,k,d,e,w,b)},m,b,d,e,w,a,k);f=Ttc(g,e.internal.getClearcut(),d.getEntryPoint());f.start(euc);return new mvc(g,a,m,r,f)},pvc=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new vv);return ovc(a,b,f,c,d,e)},ovc=function(a,b,c,d,e,
f){$tc({clientConfig:e,commonConfig:d,initializeIoC:Yqc});return nvc(a,b,c,d,e,f)},qvc=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Uv(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},tvc=function(a,b,c){if(Uv(a.id)||Uv(b.id)){var d=rvc.has(a.id.getType()),e=rvc.has(b.id.getType());if(d!==e)return d?-1:1;if(Uv(a.id)&&Uv(b.id))return svc(a,b,c,!1)}d=qvc(a,c);c=qvc(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},
svc=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?tvc(a,b,c):0},vvc=function(a){return a?uvc.get(a)||0:0},zvc=function(a){switch(a.getValueCase()){case 2:return Vv(a.getEmail().getValue()||"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=wvc(b.getOriginalValue()||""),b=wvc(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):wvc(b.getCanonicalValue()||
b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=jm(a,xvc,4,Wv);if(a.hasProfileId())return a=a.getProfileId()||"",new Xv(8,Js(a).toLowerCase(),a);switch(Mo(a,Yv)){case 2:return a=a.getEmail()||"",new Xv(6,Js(a).toLowerCase(),a);case 3:return yvc(a.getPhone()||"")}}return Zv},Dvc=function(a){return Ni(a,Avc,5,Oi()).map(function(b){switch(b.getIdCase()){case 1:return Bvc(b.getProfileId()||"");case 2:return Cvc(b.getContactId()||"");default:return null}}).filter(Boolean)},Evc=function(a,b){return Ji(a,
$v,3)&&X(a,$v,3).getIsPlaceholder()?3:aw(b,8)?1:0},Fvc=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Gvc=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Hvc=function(a){return!!a&&!!aw(a,4)},Jvc=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"+Ivc(a):""},Nvc=function(a){var b=void 0;if(X(a,$v,3)){var c;b=(c=b)!=null?c:new bw;cw(b,Kvc,X(a,$v,3))}if(X(a,Lvc,5)){var d;b=(d=b)!=null?d:new bw;cw(b,Mvc,X(a,Lvc,5))}return b},Qvc=function(a){var b=void 0;if(X(a,Ovc,9)){var c;b=(c=b)!=null?c:new bw;cw(b,Pvc,X(a,Ovc,9))}return b},Svc=function(a){var b=new dw,c=a?2:1;Rvc(b.setEventType(4),c).setToken(a);return b},Uvc=function(a,b){var c=new ew;c=(new dw).setLookupInfo(c);
fw(c.setEventType(6),9).setItemCount(a.length).setQueryScope(Tvc.get(b)||0);return c},Vvc=function(){var a=new dw;fw(a.setEventType(6),10);return a},Wvc=function(){var a=new dw;fw(a.setEventType(6),2);return a},Xvc=function(){var a=new dw;fw(a.setEventType(6),13);return a},Yvc=function(a,b){var c=new dw;fw(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(Tvc.get(b)||0);return c},Zvc=function(a){var b=new dw;fw(b.setEventType(6),5).setQueryScope(Tvc.get(a)||0);return b},$vc=function(a,b){switch(a){case 8:case 3:case 17:return(new gw).setProfileId(b);
case 1:case 6:return(new gw).setEmail(b);case 7:case 2:return(new gw).setPhone(b);case 13:case 14:return a=new gw,Ro(a,4,hw,b);case 4:case 9:return(new gw).setContactId(b);default:return null}},cwc=function(a){return((a=Ni(a,awc,2,Oi()).find(function(b){return iw(b,1)===1}))?bwc.get(iw(a,2)):0)||0},jw=function(a){return(a||"").trim()},gwc=function(a,b){if(b.hasAffinity()){var c=a.setFieldLoggingId;var d=b.getAffinity();d=nta(tm(d,1,void 0,kw,vc));c.call(a,Sba(jw(d)))}if(b.hasName()){var e=b.getName();
c=a.setName;d=(new dwc).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 ewc).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(fwc.get(b.getType())||0)))},iwc=function(a,b){if(b.hasProfileId())switch(Mo(b,Yv)){case 2:var c=jw(b.getEmail());return hwc(lw(a.id).setValue(jw(b.getProfileId())),
(new mw).setType(1).setValue(c));case 3:return c=jw(b.getPhone()),hwc(lw(a.id).setValue(jw(b.getProfileId())),(new mw).setType(2).setValue(c));default:return b=jw(b.getProfileId()),lw(a.id).setValue(b)}switch(Mo(b,Yv)){case 2:return b=jw(b.getEmail()),hwc(lw(a.id).setValue(b),(new mw).setType(1).setValue(b));case 3:return b=jw(b.getPhone()),hwc(lw(a.id).setValue(b),(new mw).setType(2).setValue(b));default:return b=jw(b.getProfileId()),lw(a.id).setValue(b)}},lwc=function(a,b){var c=lw(a.id).setIsMe(!!a.isMe);
a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&gwc(c,b);a.group&&((b=Ni(a.group,jwc,6,Oi()).find(function(d){return wr(d,1,kwc)!=null}))?c.setValue(jw(nw(b,1,kwc))):a.group.hasGroupId()&&c.setValue(jw(a.group.getGroupId())));a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},owc=function(a){return function c(){var d,e;return mwc(c,function(f){switch(f.nextAddress){case 1:$d(f,2),d=0;case 4:if(!(d<a)){f.jumpTo(2);break}e=nwc;return z(f,d,7);case 7:e(f.yieldResult);d++;
f.jumpTo(4);break;case 2:Zd(f),ae(f,0)}})}()},qwc=function(a){return new pwc(a)},twc=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=rwc.get(b)))return b}return(b=swc.get(a.getTargetType()))?b:Uv(a.getId())?8:0},vwc=function(a,b,c){var d=new ow,e=new pw;Zi(d,pw,2,e);e.setProvenance(b);b=new qw;Zi(d,qw,1,b);aj(b,9,c===1);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=twc(a)===8?8:a.getProfileId()?3:4;Vn(b,8,c);c=null;a.getTargetType()===
8&&(e=a.getOriginatingField())&&rwc.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Uv(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=twc(a);Vn(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);Kp(b,7)===8&&b.setGroupId(a.getId().getValue());return new uwc(a,d)},xwc=function(a){a=wwc.indexOf(a.provenance);return a<0?wwc.length:a},ywc=function(a){return a.containerIds&&
a.containerIds.some(function(b){return b.getType()===3})},zwc=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},Bwc=function(a,b){b.getUseOriginalDisplayValue()&&(a=new Map(Array.from(a,function(c){var d=l(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.getOriginalValue()!==d.getDisplayValue()&&d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.getOriginalValue(),f=d.getPrimaryTarget();d=mib(d,new Awc(f,e))}return[c,
d]})));return a},Ewc=function(a){return Ri(a,21)?new Cwc:Dwc},Fwc=function(a){return a!==0&&a!==12},Hwc=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&&Gwc(b,d.substring(c+1));a=a.substring(0,c+1)}if(a==="@")return b;Gwc(b,a);return b},Gwc=function(a,b){a.push(b);var c=b.length+1;Iwc.lastIndex=0;for(var d=Iwc.exec(b);d&&d.index<c;d=Iwc.exec(b))a.push(b.substring(Number(Iwc.lastIndex)))},rw=function(a){a=Jwc(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=Kwc[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(Lwc,"").toUpperCase().toLowerCase()},Nwc=function(a){a=Array.from(a).flatMap(function(f){return(f||
"").split(Mwc)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=rw(c.value);c=l(Hwc(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})},Owc=function(a){return a.substring(a.indexOf("@")+1)},Pwc=function(a){return a.substring(0,a.indexOf("@")+1)},Swc=function(a,b){a=a.match(Qwc);b=Vv(b);return a&&a.length&&(a=a[0]||"")&&
!b.equals(Vv(a.replace(Rwc,"")))?!0:!1},Twc=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)}}},Xwc=function(a,b,c,d){b=Uwc(a,b).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Vwc(e,f)});c=Uwc(a,c).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Vwc(e,f)});a=
Uwc(a,d).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Vwc(e,f)});return new Wwc(b,c,a)},Ywc=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}},Zwc=function(a){return a.reduce(function(b,c){var d=Ywc(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},$wc=function(a,b){b=b===void 0?new sw:b;var c=new Map;
a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=l(d.data.keys()),f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.data.get(f))}return{data:c,metadata:b}},bxc=function(a,b){return!a||a instanceof axc?a:new axc(a,b)},dxc=function(a){var b=new cxc,c=b.setQueryId(on(tw(a,3))).setSelectionId(on(tw(a,4))),d=on(tw(a,5));Kn(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},fxc=function(a){var b=new exc,c;if(a=(c=X(a,uw,18))==
null?void 0:c.getSessionState())c=dxc(a),Zi(b,cxc,2,c);return b},hxc=function(a){return gxc.get(a)||0},kxc=function(a,b){var c=ixc(jxc("PeopleStore").setLogSource(Ii(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(834323501).setEnableClearcut(a.getEnableClearcut()),[].concat(q(b.getExperiments().getExperimentIdsList()),q(vw?vw.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());
if(a=Ni(a,ww,5,Oi()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(Kp(a,4)),c.setEventSourceId(Kp(a,4));return c},mxc=function(a,b){return new lxc(a,b)},nxc=function(a){Ji(a,xw,12)?(a=X(a,xw,12),a=X(a,ww,2)):a=X(a,ww,10);return a||new ww},oxc=function(a){Ji(a,xw,12)?(a=X(a,xw,12),a=X(a,ww,3)):a=X(a,ww,10);return a||new ww},pxc=function(a){return a.filter(function(b){var c,d=(c=pv(b))==null?void 0:Ii(c,4),e;return((e=b.getInfo())==null?void 0:Ii(e,8))!==3||d!==2&&d!==1?!0:!1})},
rxc=function(a){return a.filter(function(b){var c;return(b=(c=b.getInfo())==null?void 0:c.getFieldType())&&qxc.has(b)?!1:!0})},sxc=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)},txc=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return En(a,3)+":"+En(a,4)+":"+En(a,5)+":"+a.getInstanceId()},uxc=function(a){return Ji(a,pw,2)?pv(a).getContext()||0:0},vxc=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=
a.next()){c=c.value;var d=c.getSessionState();d=d?En(d,3)+"-"+En(d,4)+"-"+En(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},yw=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(g){return!Ri(g,4)});if(d){d=l(a);for(var e=d.next();!e.done;e=d.next())aj(e.value,4,!0)}if(c)for(d=a.filter(function(g){return g&&!g.hasSessionState()}),d=l(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=vxc(a);c=[];a=l(a);for(d=a.next();!d.done;d=
a.next())if(d=d.value,e=d.find(function(g){return g&&g.hasSessionState()})){e=e.getSessionState();var f=new wxc;f.setSessionState(e);f.setEventType(b);$i(f,3,d);f.setEventSources(X(e,ww,10));c.push(f)}return c},xxc=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new zw},Bxc=function(a,b,c){var d=yxc(b.getTargetType(),b.getValue()),e=[],f=e.concat;var g=Vm(b,5,Oi());g=q(g.map(Bvc));var k=q(Vm(b,6,Oi()).map(Cvc));var m=Vm(b,13,
Oi());e=f.call(e,g,k,q(m.map(zxc)));Axc.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Vm(b,6,Oi()).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}},Cxc=function(a){return(a||"").trim()},Fxc=function(a){var b=a.resultData,
c=a.targetData,d=lw(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);xm(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(Cxc(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(Cxc(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();d.setName((new dwc).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&
(e=c.getPhoto(),d.setPhoto((new ewc).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(zn(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()||"");xm(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(g){return(new Aw).setAltText(g.getAltText()).setIconUrl(g.getIconUrl())}));
c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());Ji(c,Bw,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo(Dxc(a.getCertificateStatus(),nn(a.getCertificateExpirySec()),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));Ji(c,Cw,17)&&(c=c.getReachabilityInfo(),d.setReachabilityInfo(new Exc(c.getReachabilityStatus(),c.getClientData())));return d},Hxc=function(a){a.cacheConfigurators_.push(new Gxc);return a},Ixc=function(){var a=window.gapi;if(!a)return Promise.reject(Error("hh"));
if(a.client&&a.client.load)return Promise.resolve(a);kn("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){kn("gapi client has finished loading");b(a)},onerror:c})})},Jxc=function(a,b){var c={};return Hh("a",(c.href=b,c.target="_blank",c.rel="noopener noreferrer nofollow",c),a)},Mxc=function(){return p(Qu).getEnvironmentType()==="QA"?Kxc:Lxc},Pxc=function(){return p(Qu).getEnvironmentType()==="QA"?Nxc:Oxc},Sxc=function(){return p(Qu).getEnvironmentType()===
"QA"?Qxc:Rxc},Txc=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Uxc=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},Vxc=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=Vxc(this),Wxc="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");da.BigInt64Array&&(Wxc.push("BigInt64"),Wxc.push("BigUint64"));
var Yxc=function(a,b){if(b)for(var c=0;c<Wxc.length;c++)Xxc(Wxc[c]+"Array.prototype."+a,b)},Dw=function(a,b){b&&Xxc(a,b)},Xxc=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&&Uxc(c,a,{configurable:!0,writable:!0,value:b})},Zxc=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=Txc(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),$xc;if(typeof Object.setPrototypeOf=="function")$xc=Object.setPrototypeOf;else{var ayc;a:{var byc={a:!0},cyc={};try{cyc.__proto__=byc;ayc=cyc.a;break a}catch(a){}ayc=!1}$xc=ayc?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("b`"+a);return a}:null}
var Ew=$xc,Y=function(a,b){a.prototype=Txc(b.prototype);a.prototype.constructor=a;if(Ew)Ew(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},dyc=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},l=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:dyc(a)};
throw Error("c`"+String(a));},qj=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},q=function(a){return a instanceof Array?a:qj(l(a))},Gw=function(a){return Fw(a,a)},Fw=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},Hw=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},eyc=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)Hw(d,e)&&(a[e]=d[e])}return a};Dw("Object.assign",function(a){return a||eyc});var Iw=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};Iw.prototype.start_=function(){if(this.isRunning_)throw new TypeError("f");this.isRunning_=!0};Iw.prototype.next_=function(a){this.yieldResult=a};
Iw.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Iw.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var z=function(a,b,c){a.nextAddress=c;return{value:b}};Iw.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},Zj=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},fyc=function(a){this.context_=new Iw;this.program_=a};
fyc.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return gyc(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return hyc(this)};var iyc=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return gyc(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return hyc(a)};
fyc.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return gyc(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return hyc(this)};
var gyc=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),hyc(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return hyc(a)},hyc=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}},jyc=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return iyc(a,b)};this[Symbol.iterator]=function(){return this}},mwc=function(a,b){b=new jyc(new fyc(b));Ew&&a.prototype&&Ew(b,a.prototype);
return b},kyc=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 kyc(new jyc(new fyc(a)))};
Dw("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;Uxc(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});
Dw("Symbol.iterator",function(a){if(a)return a;a=Symbol("h");Uxc(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return lyc(dyc(this))}});return a});Dw("Symbol.asyncIterator",function(a){return a?a:Symbol("i")});Dw("Symbol.toStringTag",function(a){return a?a:Symbol("j")});
var lyc=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Oha=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))})},
ad=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b},nwc=function(a){return a};Dw("globalThis",function(a){return a||da});Dw("Reflect",function(a){return a?a:{}});Dw("Reflect.construct",function(){return Zxc});Dw("Reflect.setPrototypeOf",function(a){return a?a:Ew?function(b,c){try{return Ew(b,c),!0}catch(d){return!1}}:null});
Dw("Promise",function(a){function b(){this.batch_=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(g)};var d=da.setTimeout;b.prototype.asyncExecuteFunction=function(g){d(g,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var k=0;k<g.length;++k){var m=
g[k];g[k]=null;try{m()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};b.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var e=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{g(k.resolve,k.reject)}catch(m){k.reject(m)}};e.prototype.createResolveAndReject_=function(){function g(r){return function(w){m||(m=!0,r.call(k,w))}}var k=this,m=!1;return{resolve:g(this.resolveTo_),
reject:g(this.reject_)}};e.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("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(m){this.reject_(m);return}typeof k=="function"?this.settleSameAsThenable_(k,g):this.fulfill_(g)};e.prototype.reject_=
function(g){this.settle_(2,g)};e.prototype.fulfill_=function(g){this.settle_(1,g)};e.prototype.settle_=function(g,k){if(this.state_!=0)throw Error("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,m=da.dispatchEvent;if(typeof m==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof k==="function"?g=new k("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return m(g)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=
0;g<this.onSettledCallbacks_.length;++g)f.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(g){var k=this.createResolveAndReject_();g.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(g,k){var m=this.createResolveAndReject_();try{g.call(k,m.resolve,m.reject)}catch(r){m.reject(r)}};e.prototype.then=function(g,k){function m(D,H){return typeof D=="function"?function(J){try{r(D(J))}catch(O){w(O)}}:
H}var r,w,x=new e(function(D,H){r=D;w=H});this.callWhenSettled_(m(g,r),m(k,w));return x};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.callWhenSettled_=function(g,k){function m(){switch(r.state_){case 1:g(r.result_);break;case 2:k(r.result_);break;default:throw Error("n`"+r.state_);}}var r=this;this.onSettledCallbacks_==null?f.asyncExecute(m):this.onSettledCallbacks_.push(m);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(g){return new e(function(k,m){m(g)})};e.race=
function(g){return new e(function(k,m){for(var r=l(g),w=r.next();!w.done;w=r.next())c(w.value).callWhenSettled_(k,m)})};e.all=function(g){var k=l(g),m=k.next();return m.done?c([]):new e(function(r,w){function x(J){return function(O){D[J]=O;H--;H==0&&r(D)}}var D=[],H=0;do D.push(void 0),H++,c(m.value).callWhenSettled_(x(D.length-1),w),m=k.next();while(!m.done)})};return e});var Mw=function(a,b,c){if(a==null)throw new TypeError("o`"+c);if(b instanceof RegExp)throw new TypeError("p`"+c);return a+""};
Dw("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Mw(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}});Dw("Object.setPrototypeOf",function(a){return a||Ew});Dw("Symbol.dispose",function(a){return a?a:Symbol("q")});
var myc=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};Dw("Array.prototype.keys",function(a){return a?a:function(){return myc(this,function(b){return b})}});Dw("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
var nyc=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}};Dw("Array.prototype.find",function(a){return a?a:function(b,c){return nyc(this,b,c).v}});
Dw("WeakMap",function(a){function b(){}function c(m){var r=typeof m;return r==="object"&&m!==null||r==="function"}function d(m){if(!Hw(m,f)){var r=new b;Uxc(m,f,{value:r})}}function e(m){var r=Object[m];r&&(Object[m]=function(w){if(w instanceof b)return w;Object.isExtensible(w)&&d(w);return r(w)})}if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),r=Object.seal({}),w=new a([[m,2],[r,3]]);if(w.get(m)!=2||w.get(r)!=3)return!1;w.delete(m);w.set(r,4);return!w.has(m)&&w.get(r)==4}catch(x){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,k=function(m){this.id_=(g+=Math.random()+1).toString();if(m){m=l(m);for(var r;!(r=m.next()).done;)r=r.value,this.set(r[0],r[1])}};k.prototype.set=function(m,r){if(!c(m))throw Error("r");d(m);if(!Hw(m,f))throw Error("s`"+m);m[f][this.id_]=r;return this};k.prototype.get=function(m){return c(m)&&Hw(m,f)?m[f][this.id_]:void 0};k.prototype.has=function(m){return c(m)&&Hw(m,f)&&Hw(m[f],this.id_)};k.prototype.delete=
function(m){return c(m)&&Hw(m,f)&&Hw(m[f],this.id_)?delete m[f][this.id_]:!1};return k});
Dw("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),m=new a(l([[k,"s"]]));if(m.get(k)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var r=m.entries(),w=r.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=r.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!r.next().done?!1:!0}catch(x){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=l(k);for(var m;!(m=k.next()).done;)m=m.value,this.set(m[0],m[1])}};c.prototype.set=function(k,m){k=k===0?0:k;var r=d(this,k);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=m:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:m},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,m){for(var r=this.entries(),w;!(w=r.next()).done;)w=w.value,k.call(m,w[1],w[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,m){var r=m&&typeof m;r=="object"||r=="function"?b.has(m)?r=b.get(m):(r=""+ ++g,b.set(m,r)):r="p_"+m;var w=k[0][r];if(w&&Hw(k[0],r))for(k=0;k<w.length;k++){var x=w[k];if(m!==m&&x.key!==x.key||m===x.key)return{id:r,list:w,index:k,entry:x}}return{id:r,list:w,index:-1,entry:void 0}},e=function(k,
m){var r=k[1];return lyc(function(){if(r){for(;r.head!=k[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:m(r)};r=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},g=0;return c});
Dw("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(l([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
l(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=c===0?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(c){return this.map_.has(c)};b.prototype.entries=function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype.keys=
b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.map_.forEach(function(f){return c.call(d,f,f,e)})};return b});Dw("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Hw(b,d)&&c.push(b[d]);return c}});Dw("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
Dw("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}});Dw("String.prototype.includes",function(a){return a?a:function(b,c){return Mw(this,b,"includes").indexOf(b,c||0)!==-1}});Dw("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
Dw("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}});Dw("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Hw(b,d)&&c.push([d,b[d]]);return c}});
Dw("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});Dw("Number.EPSILON",function(){return 2.220446049250313E-16});Dw("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});Dw("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});Dw("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
Dw("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});Dw("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Mw(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}});Dw("Array.prototype.entries",function(a){return a?a:function(){return myc(this,function(b,c){return[b,c]})}});
Dw("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}});Dw("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});Dw("Array.prototype.values",function(a){return a?a:function(){return myc(this,function(b,c){return c})}});
Dw("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}});Yxc("fill",function(a){return a?a:Array.prototype.fill});
Dw("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}});
Dw("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)}});
Dw("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}});Dw("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)}});
Dw("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}});Dw("Array.prototype.findIndex",function(a){return a?a:function(b,c){return nyc(this,b,c).i}});Dw("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}});
Dw("String.prototype.repeat",function(a){return a?a:function(b){var c=Mw(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}});Dw("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;})})}});
Dw("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 oyc=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
Dw("Array.prototype.at",function(a){return a?a:oyc});Yxc("at",function(a){return a?a:oyc});Dw("String.prototype.at",function(a){return a?a:oyc});Dw("Number.parseInt",function(a){return a||parseInt});Dw("Reflect.isExtensible",function(a){return a?a:typeof Object.isExtensible=="function"?Object.isExtensible:function(){return!0}});Dw("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});Dw("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});
var pyc=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};Dw("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=pyc(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}});Dw("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=pyc(b,c);if(e)return e.get?e.get.call(d):e.value}});
Dw("String.prototype.codePointAt",function(a){return a?a:function(b){var c=Mw(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}}});
Dw("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 qyc=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};
Dw("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=Mw(this,null,"padStart");return d+qyc(c,b-d.length)}});Dw("Set.prototype.difference",function(a){return a?a:function(b){ryc(this);syc(b);var c=tyc(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}});
Dw("Set.prototype.intersection",function(a){return a?a:function(b){ryc(this);syc(b);var c=new Set,d=tyc(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 syc=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");},tyc=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},ryc=function(a){if(!(a instanceof Set))throw new TypeError("B");};
Dw("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Mw(this,null,"padStart");return qyc(c,b-d.length)+d}});
Dw("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)}});Dw("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});var uyc=uyc||{},ra=this||self,Nw=function(a,b){var c=jv("WIZ_global_data.oxN3nb");a=c&&c[a];return a!=null?a:b},Ow=ra._F_toggles_default_b||[],jv=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},Ica=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},Na=function(a){var b=Ica(a);return b=="array"||b=="object"&&typeof a.length=="number"},Oa=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},
Bba=function(a){return Object.prototype.hasOwnProperty.call(a,vyc)&&a[vyc]||(a[vyc]=++wyc)},vyc="closure_uid_"+(Math.random()*1E9>>>0),wyc=0,xyc=function(a,b,c){return a.call.apply(a.bind,arguments)},yyc=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)}},vj=function(a,b,c){vj=Function.prototype.bind&&
Function.prototype.bind.toString().indexOf("native code")!=-1?xyc:yyc;return vj.apply(null,arguments)},Ws=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)}},zyc=function(a){(0,eval)(a)},Pw=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},Qw=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 Rw=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)},Ayc=function(a){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata("design:type",a)};var Byc={agentId:"a2a:duckie_default",agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},Cyc={agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},Dyc={agentId:"a2a:duckie_default",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Big Bird",agentDescription:"The default Duckie you know and love, on a larger model.",iconName:"spark"},Sw={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"},Tw={agentId:"duckie_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Agentic Search",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},Uw={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"},
Eyc={agentId:"nexus_experimental_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Experimental Duckie with Nexus integration."},Fyc={agentId:"spanner_experimental_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Spanner",agentDescription:"Experimental Duckie with Spanner integration."},Gyc=[Byc,Cyc,Tw,{agentId:"nexus_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Duckie with Nexus integration."},Eyc,{agentId:"search_debug_dynamic",
modelId:"gemini_flash-2.5-x3",agentDisplayName:"Search Debug",agentDescription:"Duckie with Search Debug (go/search-applied-ai) integration."},Fyc,{agentId:"quil_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Quil",agentDescription:"Duckie with QuIL (go/quil) integration."},{agentId:"datanexus_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"DataNexus",agentDescription:"Duckie with DataNexus integration."},{agentId:"a2a:devintel",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Fieldglass Agent",
agentDescription:"Duckie with DevIntel integration."},{agentId:"a2a:datanexus_gdm",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"DataNexus GDM",agentDescription:"Duckie with DataNexus GDM integration."},{agentId:"a2a:xmanager",modelId:"gemini-for-google-2.5-flash",agentDisplayName:"XManager",agentDescription:"Duckie with XManager integration."},{agentId:"a2a:xborg",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"XBorg",agentDescription:"Duckie with XBorg integration."},{agentId:"a2a:buganizer_agent",
agentDisplayName:"Buganizer Agent",agentDescription:"Duckie with Buganizer integration."},{agentId:"a2a:triage_agent",agentDisplayName:"Triage Agent",agentDescription:"Duckie with Buganizer issue triage integration."},{agentId:"a2a:taskflow_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"TaskFlow Agent",agentDescription:"Duckie with TaskFlow integration."},{agentId:"a2a:mendel_insights_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Mendel Insights Agent",agentDescription:"Mendel Insights Agent powered by Duckie."}];var Hyc={agentId:"a2a:gpp",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"},Iyc={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=ca("addEventListener"),Jaa=ca("removeEventListener"),raa=ca(""),Jyc=typeof window!=="undefined",Kyc=Jyc?window:void 0,fa=Jyc&&Kyc||globalThis,Lyc=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,uaa=!("nw"in fa)&&typeof fa.process!=="undefined"&&fa.process.toString()==="[object process]",Daa=!uaa&&!Lyc&&!(!Jyc||!Kyc.HTMLElement),Eaa=typeof fa.process!==
"undefined"&&fa.process.toString()==="[object process]"&&!Lyc&&!(!Jyc||!Kyc.HTMLElement),haa={},Myc=ca("enable_beforeunload"),iaa=function(a){if(a=a||fa.event){var b=haa[a.type];b||(b=haa[a.type]=ca("ON_PROPERTY"+a.type));var c=this||a.target||fa;b=c[b];Daa&&c===Kyc&&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[Myc]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},ha=ca("originalInstance");var waa={useG:!0},la={},vaa={},yaa=new RegExp("^"+raa+"(\\w+)(true|false)$"),taa=ca("propagationStopped");var Haa=ca("zoneTask");Qw(pa,Error);pa.prototype.name="CustomError";var Nyc;Qw(Maa,pa);Maa.prototype.name="AssertionError";var Raa=void 0,Paa,Qaa,Oyc=typeof TextDecoder!=="undefined",Vaa,Uaa=typeof String.prototype.isWellFormed==="function",Taa=typeof TextEncoder!=="undefined";var Aa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Pyc=/&/g,Qyc=/</g,Ryc=/>/g,Syc=/"/g,Tyc=/'/g,Uyc=/\x00/g,Vyc=/[\x00&<>"']/;var Wyc=!!(Ow[0]>>17&1),Xyc=!!(Ow[0]&4096),Yyc=!!(Ow[0]>>18&1),Zyc=!!(Ow[0]&16),$yc=!!(Ow[0]&256),azc=!!(Ow[0]&32),bzc=!!(Ow[0]&1024);var czc=Nw(1,!0),bba=Wyc?Yyc:Nw(610401301,!1),QKb=Wyc?Zyc:Nw(1331761403,!1),cea=Wyc?Xyc||!$yc:Nw(748402147,!0),dzc=Wyc?Xyc||!azc:Nw(824648567,czc),sm=Wyc?bzc:Nw(824656860,!1);var Da,ezc=ra.navigator;Da=ezc?ezc.userAgentData||null:null;var uba=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)},fzc=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},gzc=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},hzc=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 izc=function(a){izc[" "](a);return a};izc[" "]=function(){};var Eqc=function(a,b){try{return izc(a[b]),!0}catch(c){}return!1};var jzc=dba(),gv=eba(),kzc=Ea("Edge"),oj=Ea("Gecko")&&!(Zaa(Ba(),"WebKit")&&!Ea("Edge"))&&!(Ea("Trident")||Ea("MSIE"))&&!Ea("Edge"),nj=Zaa(Ba(),"WebKit")&&!Ea("Edge"),lzc=nj&&Ea("Mobile"),yv=Ha(),mzc=oba(),nzc=(lba()?Da.platform==="Linux":Ea("Linux"))||pba(),ozc=mba(),pzc=nba(),qzc=Ea("iPad"),rzc=Ea("iPod"),xqc=Ga();Zaa(Ba(),"KaiOS");var szc;
a:{var tzc="",uzc=function(){var a=Ba();if(oj)return/rv:([^\);]+)(\)|;)/.exec(a);if(kzc)return/Edge\/([\d\.]+)/.exec(a);if(gv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(nj)return/WebKit\/(\S+)/.exec(a);if(jzc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();uzc&&(tzc=uzc?uzc[1]:"");if(gv){var vzc,wzc=ra.document;vzc=wzc?wzc.documentMode:void 0;if(vzc!=null&&vzc>parseFloat(tzc)){szc=String(vzc);break a}}szc=tzc}var xzc=szc;var yzc=fba(),zzc=nba()||Ea("iPod"),Azc=Ea("iPad"),Bzc=iba(),zqc=gba(),vqc=hba()&&!Ga();var Mba={},Vba=null,Czc=oj||nj,Oba=Czc||typeof ra.btoa=="function",Qba=Czc||!vqc&&typeof ra.atob=="function";var aca=typeof Uint8Array!=="undefined",Yba=!gv&&typeof btoa==="function",Zba=/[-_.]/g,Wba={"-":"+",_:"/",".":"="},ab={},Dzc=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");},ica=function(a){return a?new Za(a,ab):Ya()},Ya=function(){return Ezc||(Ezc=new Za(null,ab))},Tda=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Yba){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=Nba(b);a=a.value_=b}return a},ota=function(a){return new Uint8Array(ec(a)||
0)};Za.prototype.isEmpty=function(){return this.value_==null};Za.prototype.sizeBytes=function(){var a=ec(this);return a?a.length:0};
var JXa=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=ec(a)){var c=a.length;b=Oyc?Saa(a,0,c,b):Oaa(a,0,c,b)}else b="";return b},Fzc=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=
ec(a);b=ec(b);return bca(c,b)},ec=function(a){if(ab!==ab)throw Error("U");var b=a.value_;b=b==null||Pa(b)?b:typeof b==="string"?$ba(b):null;return b==null?b:a.value_=b},qda=function(a,b){if(typeof b==="string")b=ica(b);else if(b instanceof Uint8Array)b=new Za(b,ab);else if(!(b instanceof Za))return!1;return Fzc(a,b)},Ezc;var Sa=typeof Symbol==="function"&&typeof Symbol()==="symbol",Gzc=Qa("jas",void 0,!0),fda=Qa(void 0,"0di"),sea=Qa(void 0,"1oa"),oea=Qa(void 0,"0dg"),bc=Qa(void 0,Symbol()),Ida=Qa(void 0,"0ub"),Kda=Qa(void 0,"0ubs"),fta=Qa(void 0,"0ubsb"),eea=Qa(void 0,"0actk"),bb=Qa("m_m","messagePrototypeMarker",!0),Vda=Qa(void 0,"vps"),Fda=Qa();var dca={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},cca=Object.defineProperties,Ta=Sa?Gzc:"internalArrayState",oc,Hzc=[];Va(Hzc,7);oc=Object.freeze(Hzc);var cb={},eb={},Izc=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};Izc.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};Izc.prototype[Symbol.iterator]=function(){return this};var bn=Object.freeze({}),lua=Object.freeze({}),jb={};var Wda={};var sca=lb(function(a){return typeof a==="number"}),rca=lb(function(a){return typeof a==="string"}),uca=lb(function(a){return typeof a==="boolean"}),e6b=lb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),pca=lb(function(a){return Array.isArray(a)});var tca=typeof ra.BigInt==="function"&&typeof ra.BigInt(0)==="bigint";var Mb=lb(function(a){return tca?a>=Jzc&&a<=Kzc:a[0]==="-"?vca(a,Lzc):vca(a,Mzc)}),Lzc=Number.MIN_SAFE_INTEGER.toString(),Jzc=tca?BigInt(Number.MIN_SAFE_INTEGER):void 0,Mzc=Number.MAX_SAFE_INTEGER.toString(),Kzc=tca?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Nzc=typeof Uint8Array.prototype.slice==="function",nb=0,ob=0,Ozc;var Gca=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,jda=mb(0),Jca=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Bda={},Pzc=function(){try{var a=function(){return Zxc(Map,[],this.constructor)};Y(a,Map);izc(new a);return!1}catch(b){return!0}}(),Qzc=function(){this.map_=new Map};h=Qzc.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)};Qzc.prototype[Symbol.iterator]=function(){return this.entries()};
var Vw=function(){if(Pzc)return Object.setPrototypeOf(Qzc.prototype,Map.prototype),Object.defineProperties(Qzc.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Qzc;var a=function(){return Zxc(Map,[],this.constructor)};Y(a,Map);return a}(),$b=function(a,b,c,d){c=c===void 0?uda:c;d=d===void 0?uda:d;var e=Vw.call(this)||this;e.arrayState=a[Ta]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?vda:d;for(var f=0;f<a.length;f++){var g=a[f],k=c(g[0],!1,!0),m=g[1];b?m===void 0&&(m=
null):m=d(g[1],!1,!0,void 0,void 0,e.arrayState);Vw.prototype.set.call(e,k,m)}return e};Y($b,Vw);var Rzc=function(a){if(a.arrayState&2)throw Error("X");},Uda=function(a,b){return fca(Array.from(Vw.prototype.entries.call(a),b))};h=$b.prototype;h.clear=function(){Rzc(this);Vw.prototype.clear.call(this)};h.delete=function(a){Rzc(this);return Vw.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
h.entries=function(){if(this.valueCtor){var a=Vw.prototype.keys.call(this);a=new Izc(a,zda,this)}else a=Vw.prototype.entries.call(this);return a};h.values=function(){if(this.valueCtor){var a=Vw.prototype.keys.call(this);a=new Izc(a,$b.prototype.get,this)}else a=Vw.prototype.values.call(this);return a};h.forEach=function(a,b){this.valueCtor?Vw.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):Vw.prototype.forEach.call(this,a,b)};
h.set=function(a,b){Rzc(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(Vw.prototype.delete.call(this,a),this):Vw.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};h.has=function(a){return Vw.prototype.has.call(this,this.keyToApi(a,!1,!1))};
h.get=function(a){a=this.keyToApi(a,!1,!1);var b=Vw.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&&Vw.prototype.set.call(this,a,c),c):b}};var pda=function(a,b,c){return b instanceof $b?wda(a,b,c):yda(a,b,c)};$b.prototype[Symbol.iterator]=function(){return this.entries()};$b.prototype.toJSON=void 0;var Ada;var Oda=function(){},Mda=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Pda=function(a){var b=new Oda;Mda(a,function(c,d,e){b[d]=vb(e)});b.reviveUnknownFields=a.reviveUnknownFields;return b},Gda={reviveIntoImmutable:!0};var R4a=Dzc?structuredClone:function(a){return Qda(a,0,cc)},Nda;var Yda,Zda;var dc=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.isImmutable=b};var Szc=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=Szc.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=fea(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();Tzc.length<100&&Tzc.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){Uzc(this,this.cursor_+a)};
var Vzc=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;Uzc(a,g);if(!(k&128))return b(c>>>0,d>>>0);throw Error();},Uzc=function(a,b){a.cursor_=b;if(b>a.end_)throw Error();},Ww=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();Uzc(a,c);return e},Xw=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},Wzc=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 Uzc(a,c),!!(b&127)}throw Error();},Xzc=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};
Szc.prototype.readString=function(a,b){var c=Xzc(this,a),d=this.bytes_;return Oyc?Saa(d,c,a,b):Oaa(d,c,a,b)};Szc.prototype.readByteString=function(a){if(a==0)return Ya();var b=Xzc(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):Nzc?c.slice(b,a):new Uint8Array(c.subarray(b,a))}return hca(b)};var Tzc=[];var Yzc=function(a,b,c,d){if(Tzc.length){var e=Tzc.pop();e.init(a,b,c,d);a=e}else a=new Szc(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};Yzc.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var Xsa=function(a,b,c,d){if(Zzc.length){var e=Zzc.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new Yzc(a,b,c,d)};h=Yzc.prototype;h.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;Zzc.length<100&&Zzc.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 Ssa=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=Ww(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},Usa=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Usa(a):Wzc(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)Usa(a);else{var b=Ww(a.decoder_)>>>0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);
break;case 3:b=a.nextField_;do{if(!Ssa(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}Usa(a)}while(1);break;default:throw Error();}},$zc=function(a,b,c){var d=a.decoder_.getEnd(),e=Ww(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)};Yzc.prototype.readString=function(){return aAc(this)};
var aAc=function(a){var b=Ww(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};Yzc.prototype.readByteString=function(){var a=Ww(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var Zzc=[];var bAc=mb(0),kw={},tm=function(a,b,c,d,e){b=uc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c,e);if(b!==null||d&&a.noLegacyNull!==eb)return b},uc=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}},Ur=function(a,b,c,
d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nc(e,e[Ta]|0,b,c,d);return a},Ji=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wea(a,a[Ta]|0,b,c,d)!==void 0},cj=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wea(e,e[Ta]|0,b,Ti(a,d,c))!==void 0},Li=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xea(a,d,d[Ta]|0,b,c,3).length},Yw=function(a,b,c,d,e,f){Cc(a,b,c,
f,e,d,1);return a},Oi=function(a){return a===bn?2:4},io=function(a,b,c,d){a=tm(a,b,d,void 0,vc);return a==null?c===null?c:c===void 0?Ya():ica(c):a},Zw=function(a,b,c){return Ur(a,b,void 0,c)},$w=function(a,b){jc(a);var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vea(c,c[Ta]|0,b,0);return a},gp=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(d==null){var g=tea(e);if(uea(g,e,f,c)===b)g.set(c,0);else return a}else f=vea(e,f,c,b);nc(e,
f,b,d);return a},ax=function(a,b,c,d){var e=a[Ta]|0,f=kb(e);e=vea(a,e,c,b,f);nc(a,e,b,d,f)},Ti=function(a,b,c,d){return Mo(a,b,d)===c?c:-1},Mo=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uea(tea(a),a,void 0,b,c)},Ui=function(a,b,c,d,e){jc(a);a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var f=a[Ta]|0,g=uc(a,c,e);d=d===lua;b=hda(g,b,!d,f);if(!d||b)return b=Xb(b),g!==b&&(f=nc(a,f,c,b,e),kc(a,f)),b},cAc=function(a,b,c){var d=a[Ta]|0,e=kb(d),f=uc(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=bea(g,b);g!==f&&nc(a,d,c,g,e);return g},cpb=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wea(a,a[Ta]|0,b,c,d)||b[fda]||(b[fda]=gda(b))},dAc=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wea(a,a[Ta]|0,b,
c)},X=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=wea(e,f,b,c,d);if(b==null)return b;f=e[Ta]|0;if(!fb(a,f)){var g=Xb(b);g!==b&&(ic(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0),b=g,f=nc(e,f,c,b,d),kc(e,f))}return b},eAc=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xea(a,d,d[Ta]|0,b,c,1)},Ni=function(a,b,c,d,e){var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xea(a,
f,f[Ta]|0,b,c,d,e,!1,!0)},Zi=function(a,b,c,d,e){d=yea(d);Ur(a,c,d,e);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},mp=function(a,b,c,d){d=yea(d);gp(a,b,c,d);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},$i=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(c==null)return nc(e,f,b,void 0,d),a;for(var g=c===oc?7:c[Ta]|0,k=g,m=sc(g),r=m||Object.isFrozen(c),w=!0,x=!0,D=0;D<c.length;D++){var H=
c[D];m||(H=fb(H),w&&(w=!H),x&&(x=H))}m||(g=w?13:5,g=x?g&-4097:g|4096);r&&g===k||(c=vb(c),k=0,g=pc(g,f));g!==k&&Va(c,g);f=nc(e,f,b,c,d);2&g||!(4096&g||16&g)||kc(e,f);return a},bq=function(a,b,c,d,e,f){Cc(a,b,c,f,d,e);return a},bx=function(a,b,c,d,e){Cc(a,b,c,e,void 0,d,1,!0);return a},aq=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=xea(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 m=d[k];b.push(m);(m=fb(m))&&!c++&&
(b[Ta]&=-9);m||e++||Ua(b,4096)}else for(d=l(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},fAc=function(a,b,c){return sm?Nb(tm(a,b,c,void 0,Qb)):Nb(tm(a,b,c))},cx=function(a,b,c){return sm?Pb(tm(a,b,c,void 0,Qb)):Pb(tm(a,b,c),!0)},tw=function(a,b,c,d){return sm?tm(a,b,c,d,Qb):Qb(tm(a,b,c,d))},dx=function(a,b,c){return sm?tm(a,b,void 0,c,bda):bda(tm(a,b,void 0,c))},u6a=function(a,b,c){return rc(a,b,Nb,c,void 0,0)},ex=function(a,
b,c,d,e){return rc(a,b,Qb,c,e,1024,d)},jn=function(a,b,c){return rc(a,b,zea,1,void 0,512,c)},fx=function(a,b,c,d){return Fb(tm(a,b,c,d))},gx=function(a,b,c,d){return Tb(tm(a,b,c,d))},Kp=function(a,b,c,d){return Db(tm(a,b,c,d))},Ri=function(a,b,c,d){c=c===void 0?!1:c;var e;return(e=zb(tm(a,b,d)))!=null?e:c},Um=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=fx(a,b,d))!=null?e:c},Rp=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=fAc(a,b,d))!=null?e:c},gAc=function(a,b){var c=c===void 0?"0":c;var d;
return(d=Pb(tm(a,b)))!=null?d:c},En=function(a,b,c,d){c=c===void 0?bAc:c;var e;return(e=tw(a,b,d))!=null?e:c},hAc=function(a){var b=b===void 0?bAc:b;var c;return(c=dx(a,23))!=null?c:b},rm=function(a,b,c){c=c===void 0?0:c;var d;return(d=tm(a,b,void 0,void 0,xb))!=null?d:c},xi=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=gx(a,b,d))!=null?e:c},Ii=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Kp(a,b,d))!=null?e:c},In=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=cx(a,b,d))!=null?e:c},
Cn=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=cx(a,b,d))!=null?e:c},Wm=function(a,b,c,d,e){return rc(a,b,Fb,c,e,void 0,d)},hx=function(a,b,c){a=Wm(a,b,3,void 0,!0);hb(a,c);return a[c]},iAc=function(a,b,c){a=ex(a,b,3,void 0,!0);hb(a,c);return a[c]},Vm=function(a,b,c,d,e){return rc(a,b,Tb,c,e,void 0,d)},ix=function(a,b,c,d){a=Vm(a,b,3,d,!0);hb(a,c);return a[c]},Ln=function(a,b,c,d,e){return rc(a,b,Db,c,e,void 0,d)},jx=function(a,b,c){a=Ln(a,b,3,void 0,!0);hb(a,c);return a[c]},Oo=function(a,
b,c){return xi(a,Ti(a,c,b))},nw=function(a,b,c){return Ml(a,Ti(a,c,b))},jm=function(a,b,c,d,e){return X(a,b,Ti(a,d,c,e),e)},imb=function(a,b){b=Ti(a,dt,b);return cx(a,b)},wr=function(a,b,c){b=Ti(a,c,b);return gx(a,b)},jmb=function(a,b){b=Ti(a,dt,b);return tm(a,b,void 0,void 0,vc)},jAc=function(a,b){return zb(tm(a,b))},aw=function(a,b){return zb(tm(a,b,void 0,kw))},kx=function(a,b){return fx(a,b,void 0,kw)},lx=function(a,b){return tw(a,b,void 0,kw)},mx=function(a,b){return tm(a,b,void 0,kw,xb)},Ml=
function(a,b){return gx(a,b,void 0,kw)},iw=function(a,b){return Kp(a,b,void 0,kw)},aj=function(a,b,c){return Ur(a,b,c==null?c:yb(c))},op=function(a,b,c,d){return zc(a,b,c==null?c:yb(c),!1,d)},Tn=function(a,b,c){return Ur(a,b,c==null?c:Eb(c))},pn=function(a,b,c){return zc(a,b,c==null?c:Eb(c),0)},Kn=function(a,b,c,d,e){return Ur(a,b,Ib(c,d===void 0?0:d),e)},Xo=function(a,b,c){return zc(a,b,Ib(c,0),"0")},kAc=function(a,b,c){c=c==null?c:Zca(c);return Ur(a,b,c)},Yn=function(a,b,c,d,e){return Ur(a,b,Ib(c,
d===void 0?0:d),e)},nx=function(a,b,c){return Ur(a,b,c==null?c:Hca(c))},Fp=function(a,b,c){return zc(a,b,c==null?c:Hca(c),0)},UXa=function(a,b,c,d){gp(a,b,c,d==null?d:Hca(d))},yj=function(a,b,c,d){return Ur(a,b,eda(c),d)},Ym=function(a,b,c,d){return zc(a,b,eda(c),"",d)},Ro=function(a,b,c,d){return gp(a,b,c,eda(d))},dp=function(a,b,c){return zc(a,b,gb(c,!1,!0),Ya())},Vn=function(a,b,c,d){return Ur(a,b,Kca(c),d)},$m=function(a,b,c,d){return zc(a,b,Kca(c),0,d)},Er=function(a,b,c,d){return yc(a,b,c,Hb,
d)},ox=function(a,b,c,d,e){return Ac(a,b,Hb,c,d,Nb,e)},lAc=function(a,b,c){return Ac(a,b,Hb,void 0,c,Nb,void 0,1,!1,!0)},px=function(a,b,c){Bc(a,b,Hb,c,Nb)},Zm=function(a,b,c,d){return yc(a,b,c,Sb,d)},Qq=function(a,b,c){return Ac(a,b,Sb,c,void 0,Tb)},qx=function(a,b,c,d){return Ac(a,b,Sb,d,c,Tb,void 0,1)},rx=function(a,b,c){return yc(a,b,c,Cb)},Qi=function(a,b){return zb(tm(a,b))!=null},zn=function(a,b){return fx(a,b)!=null},Dn=function(a,b,c){return fAc(a,b,c)!=null},OYa=function(a,b){b=Ti(a,b,2);
return tm(a,b,void 0,void 0,xb)!=null},wm=function(a,b,c){return gx(a,b,c)!=null},xm=function(a,b,c){return Kp(a,b,c)!=null};var W=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,b,c)};W.prototype.toJSON=function(){return Xda(this)};W.prototype.serialize=function(a){return JSON.stringify(Xda(this,a))};var wta=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ga");return new a(gca(b))};
W.prototype.getExtension=function(a){Jda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);Hda(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Oi(),a.hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Oi(),a.hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.hasMessageId)};
var mAc=function(a,b){Jda(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);Hda(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){Jda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);Hda(this,a.fieldIndex);return a.ctor?Ji(this,a.ctor,a.fieldIndex,a.hasMessageId):mAc(this,a)!==void 0};
var iSa=function(a,b){return a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&oda(a,b)};W.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Ta]|0;return kea(this,a,b)?jea(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 Utc=function(a){return Xb(a)},cw=function(a,b,c){Eda(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},nAc=function(a){throw Error("ha`"+a.key_);},oAc=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=pAc(this);else{var c;b=(c=qAc(this))!=null?c:a}return b};var pAc=function(a){var b=qAc(a);b===null&&nAc(a);return b},qAc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw oAc(a,"string");};
Dc.prototype.bool=function(a){if(arguments.length==0){var b=rAc(this);b===null&&nAc(this)}else b=sAc(this,a);return b};var sAc=function(a,b){var c;return(c=rAc(a))!=null?c:b},rAc=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 oAc(a,"boolean");};
Dc.prototype.number=function(a){if(arguments.length==0){var b=tAc(this);b===null&&nAc(this)}else{var c;b=(c=tAc(this))!=null?c:a}return b};var tAc=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 oAc(a,"number");};Dc.prototype.toString=function(){return pAc(this)};
Dc.prototype.array=function(a){if(arguments.length==0){var b=uAc(this);b===null&&nAc(this);return b}b=uAc(this);return b==null?a:b};var wAc=function(){var a=Dea("mu7Lcf"),b=[],c=uAc(a);return c===null?vAc(a,b):c},uAc=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 vAc(a,b)},vAc=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&&nAc(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 oAc(this,"object");};if(typeof window==="undefined"||sAc(Dea("mXaIFf"),!0)){var sx=globalThis,xAc=sx[ca("forceDuplicateZoneCheck")]===!0;if(sx.Zone&&(xAc||typeof sx.Zone.__symbol__!=="function"))throw Error("ma");sx.Zone!=null||(sx.Zone=baa());var ma=sx.Zone;Eea();Fea();Gea();Faa();Kaa();Laa()};var Hea=Ec({"\u0275prov":Ec}),Kea=Ec({"\u0275inj":Ec});var Hc=null,Nea=!1,Pea=1,Pc=Symbol("oa"),tx={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 ux=Symbol("pa"),vx=Symbol("qa"),Oc=Symbol("ra"),Xea=Object.assign({},tx,{value:ux,dirty:!0,error:null,equal:Mea,kind:"computed",producerMustRecompute:function(a){return a.value===ux||a.value===vx},producerRecomputeValue:function(a){if(a.value===vx)throw Error("na");var b=a.value;a.value=vx;var c=Lc(a),d=!1;try{var e=a.computation();Ic(null);d=b!==ux&&b!==Oc&&e!==Oc&&a.equal(b,e)}catch(f){e=Oc,a.error=f}finally{Vea(a,c)}d?a.value=b:(a.value=e,a.version++)}});var yAc=Object.assign({},tx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var $ea=function(){throw Error();};var Zea=Object.assign({},tx,{equal:Mea,value:void 0,kind:"signal"});var bfa=Object.assign({},tx,{value:ux,dirty:!0,error:null,equal:Mea,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===ux||a.value===vx},producerRecomputeValue:function(a){if(a.value===vx)throw Error("na");var b=a.value;a.value=vx;var c=Lc(a);try{var d=a.source();var e=a.computation(d,b===ux||b===Oc?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=Oc,a.error=f}finally{Vea(a,c)}b!==ux&&e!==Oc&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},tx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},cleanupFn:function(){}});var ed=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}))};ed.prototype.toString=function(){return"InjectionToken "+this._desc};da.Object.defineProperties(ed.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});new ed("",{factory:function(){return!1}});new ed("",{factory:function(){return 4E3}});var Uc=function(a,b){b=Error.call(this,efa(a,b));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(Uc,Error);var bd=Ec({"\u0275cmp":Ec}),Pka=Ec({"\u0275dir":Ec}),ufa=Ec({"\u0275pipe":Ec}),zAc=Ec({"\u0275mod":Ec}),wfa=Ec({"\u0275fac":Ec}),Dga=Ec({__NG_ELEMENT_ID__:Ec}),AAc=Ec({__NG_ENV_ID__:Ec});var gfa=Ec({ngErrorCode:Ec}),hfa=Ec({ngErrorMessage:Ec});Ec({ngTokenPath:Ec});var jfa;var lfa=void 0;var mfa=Symbol("ta");var pfa=Ec({__forward_ref__:Ec});var Me=globalThis;var wx={},Vfa=function(a){this.injector=a};Vfa.prototype.retrieve=function(a,b){b=rfa(b)||0;try{return this.injector.get(a,b&8?null:wx,b)}catch(c){if(nfa(c))return c;throw c;}};var Ifa=new ed("");var BAc=new ed("",-1);var Hfa=new ed("");var Mfa=function(){};Mfa.prototype.get=function(a,b){b=b===void 0?wx:b;if(b===wx)throw a=ifa(-201),a.name="\u0275NotFound",a;return b};var md={},cd=[];var Jfa=Ec({provide:String,useValue:Ec});var wpa=new ed("");var Rfa={},CAc={},Lfa=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;Ufa(a,function(f){return DAc(e,f)});this.records.set(BAc,gd(void 0,this));d.has("environment")&&this.records.set($e,gd(void 0,this));a=this.records.get(wpa);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(Hfa,cd,{self:!0}))};Y(hd,$e);
h=hd.prototype;h.retrieve=function(a,b){b=rfa(b)||0;try{return this.get(a,wx,b)}catch(c){if(nfa(c))return c;throw c;}};h.destroy=function(){Tfa(this);this._destroyed=!0;var a=Ic(null);try{for(var b=l(this._ngOnDestroyHooks),c=b.next();!c.done;c=b.next())c.value.ngOnDestroy();var d=this._onDestroyHooks;this._onDestroyHooks=[];for(var e=l(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ic(a)}};
h.onDestroy=function(a){var b=this;Tfa(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?wx:b;Tfa(this);if(a.hasOwnProperty(AAc))return a[AAc](this);c=rfa(c);var d=Wc(this),e=Vc();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")&&Iea(a),k;if(k=g)if(g.providedIn){var m=Yc(g.providedIn);k=typeof m==="string"?m==="any"||this.scopes.has(m):this.injectorDefTypes.has(m)}else k=!1;k?f=gd(Pfa(a),Rfa):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var r=Ic(null);try{if(b.value===
CAc)throw Sc(a),ifa(-200);b.value===Rfa&&(b.value=CAc,b.value=b.factory(void 0,c));var w;if(w=typeof b.value==="object"&&b.value){var x=b.value;w=x!==null&&typeof x==="object"&&typeof x.ngOnDestroy==="function"}w&&this._ngOnDestroyHooks.add(b.value);var D=b.value;break a}finally{Ic(r)}D=void 0}return D}}var H=c&2?Nfa():this.parent;b=c&8&&b===wx?null:b;return H.get(a,b)}catch(O){var J=O[gfa];if(J===-200||J===-201)throw new Uc(J,null);throw O;}finally{Vc(e),Wc(d)}};
h.resolveInjectorInitializers=function(){var a=Ic(null),b=Wc(this),c=Vc();try{for(var d=this.get(Ifa,cd,{self:!0}),e=l(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{Wc(b),Vc(c),Ic(a)}};h.toString=function(){for(var a=[],b=l(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Sc(c.value));return"R3Injector["+a.join(", ")+"]"};
var DAc=function(a,b){b=Yc(b);var c=dd(b)?b:Yc(b&&b.provide),d=Sfa(b);if(!dd(b)&&b.multi===!0){var e=a.records.get(c);e||(e=gd(void 0,Rfa,!0),e.factory=function(){return sfa(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 Zfa=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var xx=function(){var a=function(){return Yfa};a.ngInherit=!0;return a}();var EAc=[],Dd=function(a,b,c){b=b===void 0?null:b;for(var d=0;d<EAc.length;d++)(0,EAc[d])(a,b,c)};var ud=pga(null),We=null,iga=!1,Re=!0;var Sga=function(a,b){var c=Ye;this.factory=a;this.name=null;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var Bga=!0,Ega=0,Fd={},Gd=function(a,b){this._tNode=a;this._lView=b};Gd.prototype.get=function(a,b,c){return Oga(this._tNode,this._lView,a,rfa(c),b)};var yx=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return Lga(b.attributeName)}};yx.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};var FAc=function(){var a=new ed("");a.__NG_ELEMENT_ID__=function(b){var c=wd();if(c===null)throw new Uc(204,!1);if(c.type&2)return c.value;if(b&8)return null;throw new Uc(204,!1);};return a}();var GAc=tfa(Vga("Inject",function(a){return{token:a}}),-1),HAc=tfa(Vga("Optional"),8);tfa(Vga("Self"),2);var IAc=tfa(Vga("SkipSelf"),4);tfa(Vga("Host"),1);Ec({provide:String,useValue:Ec});var Ae=function(){},$g=function(a){if(Array.isArray(a))return Xga({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return Xga({name:c},a.parent,a.providers,c)},JAc=new Mfa;Ae.\u0275prov=Fc({token:Ae,providedIn:"any",factory:function(){return Zc(BAc)}});Ae.__NG_ELEMENT_ID__=-1;var KAc=function(){};var zx=function(){},jza=function(){};var bf=function(){},epa=new ed("",{factory:function(){return!0}});new ed("",{factory:function(){return!1}});var fpa=new ed("");/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");var bha=void 0;var LAc=new ed("",{factory:function(){return"ng"}}),xpa=new ed(""),MAc=new ed("",{providedIn:"platform",factory:function(){return"unknown"}}),mi=new ed(""),NAc=new ed("",{factory:function(){var a,b;return((a=cha().body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),OAc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};new ed("",{factory:function(){return OAc}});new ed("",{factory:function(){return{}}});new ed("");var Qja=new ed("",{factory:function(){return!1}});new ed("");new ed("");new ed("");new ed("",{factory:function(){return new Map}});var PAc=new ed("");new ed("");var dha=new Map,fja=0;var QAc=function(){},RAc=function(){};var Jd=function(a){this.nativeElement=a};Jd.__NG_ELEMENT_ID__=function(){return Kd(wd(),t())};new ed("",{factory:function(){return!0}});var af=function(){},fi=function(){this.destroyNode=null};fi.__NG_ELEMENT_ID__=function(){var a=t(),b=pd(wd().index,a);return(jd(b)?b:a)[11]};var SAc={};var Jka=function(a,b){this.injector=a;this.parentInjector=b};Jka.prototype.get=function(a,b,c){var d=this.injector.get(a,SAc,c);return d!==SAc||b===SAc?d:this.parentInjector.get(a,b,c)};var hha=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,iha=/(<|>)/g;var Md={};var Uh=new ed("");var Ee=function(){};Ee.__NG_ELEMENT_ID__=qha;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;dga(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 TAc=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(TAc,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=l(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 TAc?f.errors:[f]}var e=this._teardowns;if(e)for(this._teardowns=null,b=l(e),c=b.next();!c.done;c=b.next()){c=c.value;try{Qd(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof TAc?d=[].concat(q(d),q(f.errors)):d.push(f)}}if(d)throw new TAc(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)&&rha(b,a)};h.remove=function(a){var b=this._teardowns;b&&rha(b,a);a instanceof Rd&&a._removeParent(this)};var UAc=new Rd;UAc.closed=!0;Rd.EMPTY=UAc;var tha=function(){setTimeout.apply(null,q(ad.apply(0,arguments)))};var Ax=function(a){Rd.call(this);this.isStopped=!1;this.destination=a instanceof Ax?a:new VAc(!a||Qd(a)?{next:a!=null?a:void 0}:a);sha(a)&&a.add(this)};Y(Ax,Rd);Ax.EMPTY=Rd.EMPTY;Ax.create=function(a,b,c){return new he(a,b,c)};h=Ax.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 VAc=function(a){this.partialObserver=a};VAc.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){uha(c)}};VAc.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){uha(c)}else uha(a)};
VAc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){uha(b)}};var he=function(a,b,c){Ax.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 VAc(d)};Y(he,Ax);he.EMPTY=Ax.EMPTY;he.create=Ax.create;var Cha=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 Ax||a&&Qd(a.next)&&Qd(a.error)&&Qd(a.complete)&&sha(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=wha(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[Cha]=function(){return this};Vd.prototype.pipe=function(){var a=ad.apply(0,arguments);return a.length?vha(a)(this):this};Vd.create=function(a){return new Vd(a)};var WAc=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(WAc,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 Bx(this,this);b.operator=a;return b};h._throwIfClosed=function(){if(this.closed)throw new WAc;};h.next=function(a){this._throwIfClosed();if(!this.isStopped)for(var b=l(this.observers.slice()),c=b.next();!c.done;c=b.next())c.value.next(a)};
h.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};h.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};h.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};h._trySubscribe=function(a){this._throwIfClosed();return 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 rha(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 Bx(a,b)};var Bx=function(a,b){sf.call(this);this.destination=a;this.source=b};Y(Bx,sf);Bx.create=sf.create;Bx.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};Bx.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
Bx.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};Bx.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:Rd.EMPTY};var Wj=function(a){sf.call(this);this._value=a};Y(Wj,sf);Wj.create=sf.create;Wj.prototype._subscribe=function(a){var b=sf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};Wj.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};Wj.prototype.next=function(a){sf.prototype.next.call(this,this._value=a)};da.Object.defineProperties(Wj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var ue=new Vd(function(a){return a.complete()});var Aha=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Gha=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 Rha(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 Fla=new tf("C");var XAc={now:function(){return(XAc.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?XAc: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));YAc(this);sf.prototype.next.call(this,a)};wf.prototype._subscribe=function(a){this._throwIfClosed();YAc(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 YAc=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 $Ac=function(a,b){b=b===void 0?ZAc:b;this.schedulerActionCtor=a;this.now=b};$Ac.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var ZAc=XAc.now;var Sha=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(Sha,Error);var ke=function(a,b,c,d,e){Ax.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,Ax);ke.EMPTY=Ax.EMPTY;ke.create=Ax.create;ke.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);Ax.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 aBc(this).subscribe(a)};var aBc=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=aBc(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 Tha()(this)};var Wha=Array.isArray;var Yha=Array.isArray,bBc=Object,Zha=bBc.getPrototypeOf,$ha=bBc.prototype,aia=bBc.keys;var eia=function(a,b,c){Ax.call(this,a);this._next=b;this.shouldComplete=c};Y(eia,Ax);eia.EMPTY=Ax.EMPTY;eia.create=Ax.create;eia.prototype._complete=function(){this.shouldComplete()?Ax.prototype._complete.call(this):this.unsubscribe()};var cBc=function(){return requestAnimationFrame.apply(null,q(ad.apply(0,arguments)))},dBc=function(){cancelAnimationFrame.apply(null,q(ad.apply(0,arguments)))};var iia=["addListener","removeListener"],hia=["addEventListener","removeEventListener"],kia=["on","off"];var Cx=function(){Rd.call(this)};Y(Cx,Rd);Cx.EMPTY=Rd.EMPTY;Cx.prototype.schedule=function(){return this};var eBc=function(a,b){return setInterval.apply(null,[a,b].concat(q(ad.apply(2,arguments))))};var Dx=function(a,b){Rd.call(this);this.scheduler=a;this.work=b;this.pending=!1};Y(Dx,Cx);Dx.EMPTY=Cx.EMPTY;h=Dx.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 eBc(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;rha(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;Cx.prototype.unsubscribe.call(this)}};var Ex=function(a,b){b=b===void 0?ZAc:b;$Ac.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Y(Ex,$Ac);Ex.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 Ex(Dx);var Fx=new Vd(Sd);var oia=Array.isArray;var tia=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(tia,Error);var fBc=function(a,b){Dx.call(this,a,b);this.scheduler=a;this.work=b};Y(fBc,Dx);fBc.EMPTY=Dx.EMPTY;fBc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return Dx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=cBc(function(){return a.flush(void 0)}))};
fBc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return Dx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(dBc(b),a.scheduled=void 0)};var gBc=function(){Ex.apply(this,arguments)};Y(gBc,Ex);gBc.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 hBc=new gBc(fBc);var iBc=1,jBc,uia={},kBc=function(a){var b=iBc++;uia[b]=!0;jBc||(jBc=Promise.resolve());jBc.then(function(){return via(b)&&a()});return b};var lBc=function(){return kBc.apply(null,q(ad.apply(0,arguments)))};var mBc=function(a,b){Dx.call(this,a,b);this.scheduler=a;this.work=b};Y(mBc,Dx);mBc.EMPTY=Dx.EMPTY;mBc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return Dx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=lBc(a.flush.bind(a,void 0)))};
mBc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return Dx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(via(b),a.scheduled=void 0)};var nBc=function(){Ex.apply(this,arguments)};Y(nBc,Ex);nBc.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 Lr=new nBc(mBc);var Gx=function(a,b){Dx.call(this,a,b);this.scheduler=a;this.work=b};Y(Gx,Dx);Gx.EMPTY=Dx.EMPTY;Gx.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return Dx.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Gx.prototype.execute=function(a,b){return b>0||this.closed?Dx.prototype.execute.call(this,a,b):this._execute(a,b)};
Gx.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?Dx.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var oBc=function(){Ex.apply(this,arguments)};Y(oBc,Ex);var Uha=new oBc(Gx);var Wg=function(){this.taskId=0;this.pendingTasks=new Set;this.destroyed=!1;this.pendingTask=new Wj(!1)};Wg.prototype.add=function(){this.hasPendingTasks||this.destroyed||this.pendingTask.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Wg.prototype.has=function(a){return this.pendingTasks.has(a)};Wg.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)};
Wg.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks&&this.pendingTask.next(!1);this.destroyed=!0;this.pendingTask.unsubscribe()};da.Object.defineProperties(Wg.prototype,{hasPendingTasks:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?!1:this.pendingTask.value}},hasPendingTasksObservable:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?new Vd(function(a){a.next(!1);a.complete()}):this.pendingTask}}});
Wg.\u0275prov=Fc({token:Wg,providedIn:"root",factory:function(){return new Wg}});var gj=function(a){a=a===void 0?!1:a;sf.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(jfa!==void 0||lfa!=null){var b;this.destroyRef=(b=p(Ee,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=p(Wg,{optional:!0}))!=null?c:void 0}};Y(gj,sf);gj.create=sf.create;gj.prototype.emit=function(a){var b=Ic(null);try{sf.prototype.next.call(this,a)}finally{Ic(b)}};
gj.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=pBc(this,b),d&&(d=pBc(this,d)),c&&(c=pBc(this,c)));d=sf.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof Rd&&a.add(d);return d};
var pBc=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 Cia=0,Tg=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new gj(!1);this.onMicrotaskEmpty=new gj(!1);this.onStable=new gj(!1);this.onError=new gj(!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 Uc(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;Fia(this)},Yza=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},qBc=function(){if(Yza())throw new Uc(909,!1);};Tg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Tg.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,rBc,wia,wia);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};Tg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Tg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var rBc={},sBc=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new gj;this.onMicrotaskEmpty=new gj;this.onStable=new gj;this.onError=new gj};sBc.prototype.run=function(a,b,c){return a.apply(b,c)};sBc.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};sBc.prototype.runOutsideAngular=function(a){return a()};sBc.prototype.runTask=function(a,b,c){return a.apply(b,c)};var Hx=function(){this._console=console};Hx.prototype.handleError=function(a){this._console.error("ERROR",a)};var Te=new ed("",{factory:function(){var a=p(Tg),b=p($e),c;return function(d){a.runOutsideAngular(function(){b.destroyed&&!c?setTimeout(function(){throw d;}):(c!=null||(c=b.get(Hx)),c.handleError(d))})}}}),tBc={provide:Ifa,useValue:function(){p(Hx,{optional:!0})},multi:!0};
new ed("",{factory:function(){var a=p(Uh).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 Uia=new Set;var De=new ed("");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 uBc=[0,1,2,3],Ce=function(){this.ngZone=p(Tg);this.scheduler=p(bf);this.errorHandler=p(Hx,{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=l(uBc),c=b.next(),d={};!c.done;d={phase:void 0},c=b.next()){d.phase=c.value;c=l(this.sequences);for(var e=c.next(),f={};!e.done;f={sequence:void 0},e=c.next())if(f.sequence=e.value,!f.sequence.erroredOrDestroyed&&f.sequence.hooks[d.phase])try{f.sequence.pipelinedValue=this.ngZone.runOutsideAngular(function(g,k){return function(){return vBc(function(){return(0,g.sequence.hooks[k.phase])(g.sequence.pipelinedValue)},
g.sequence.snapshot)}}(f,d))}catch(g){f.sequence.erroredOrDestroyed=!0,e=void 0,(e=this.errorHandler)==null||e.handleError(g)}}this.executing=!1;b=l(this.sequences);for(d=b.next();!d.done;d=b.next())d=d.value,d.afterRun(),d.once&&(this.sequences.delete(d),d.destroy());b=l(this.deferredRegistrations);for(d=b.next();!d.done;d=b.next())this.sequences.add(d.value);this.deferredRegistrations.size>0&&this.scheduler.notify(7);this.deferredRegistrations.clear();a&&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);rd(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 vBc=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 Iia=function(a,b){this.view=a;this.node=b};Iia.__NG_ELEMENT_ID__=Jia;var Kia=new Set;var Lia=new ed("",{factory:function(){return{queue:new Set,isScheduled:!1,scheduler:null}}});var cja;var Yia=Xia,Zia;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 wBc=function(){Je.apply(this,arguments)};Y(wBc,Je);wBc.prototype.getTypeName=function(){return"HTML"};var xBc=function(){Je.apply(this,arguments)};Y(xBc,Je);xBc.prototype.getTypeName=function(){return"URL"};
var yBc=function(){Je.apply(this,arguments)};Y(yBc,Je);yBc.prototype.getTypeName=function(){return"ResourceURL"};var kja;var oja=function(a){this.inertDocumentHelper=a};oja.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(mja(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 nja=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
nja.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=mja(a);return b};var qja=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var zBc=Ne("area,br,col,hr,img,wbr"),ABc=Ne("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),BBc=Ne("rp,rt"),CBc=sja(BBc,ABc),DBc=sja(ABc,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")),EBc=sja(BBc,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")),
Aja=sja(zBc,DBc,EBc,CBc),Cja=Ne("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),FBc=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"),
GBc=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"),
Bja=sja(Cja,FBc,GBc),Dja=Ne("script,style,template"),yja=function(){this.buf=[]};yja.prototype.endElement=function(a){a=tja(a).toLowerCase();Aja.hasOwnProperty(a)&&!zBc.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var uja=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vja=/([^#-~ |!])/g,xja;var HBc={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 Fja;var Oka=Symbol("Fa");new ed("");var yka=[],zka=Object.assign({},tx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){rd(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),Aka=Object.assign({},tx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=td(a.lView);a&&a[1].type===2;)a=td(a);a&&aga(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var Sg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};h=Sg.prototype;h.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(kd(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(Fka(a,c),yfa(b,c))}this._attachedToViewContainer=!1}Tia(this._lView[1],this._lView)};h.onDestroy=function(a){dga(this._lView,a)};
h.markForCheck=function(){pha(this._cdRefInjectingView||this._lView,4)};h.detach=function(){this._lView[2]&=-129};h.reattach=function(){cga(this._lView);this._lView[2]|=128};h.detectChanges=function(){this._lView[2]|=1024;wka(this._lView)};
da.Object.defineProperties(Sg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return ska(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 Lka=function(){};Lka.\u0275prov=Fc({token:Lka,providedIn:"root",factory:function(){return null}});var IBc=function(a){this.ngModule=a};Y(IBc,KAc);var JBc=function(a,b){return new dh(b[bd]||null,a.ngModule)},dh=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(aha).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Y(dh,RAc);
dh.prototype.create=function(a,b,c,d,e,f){Dd(22);var g=Ic(null);try{var k=this.componentDef,m=Rka(c,k,f,e),r=Kka(k,d||this.ngModule,a),w=Mka(r),x=w.rendererFactory.createRenderer(null,k),D=c?Rja(x,c,k.encapsulation,r):Nka(k,x),H=(f==null?void 0:f.some(Ska))||(e==null?void 0:e.some(function(R){return typeof R!=="function"&&R.bindings.some(Ska)})),J=gja(null,m,null,512|hja(k),null,null,w,x,r,null,null);J[27]=D;oga(J);a=null;try{var O=qka(27,J,2,"#host",function(){return m.directiveRegistry},0);kha(x,
D,O);Id(D,J);Oja(m,J,O);gka(m,O,J);rka(m,O);b!==void 0&&Tka(O,this.ngContentSelectors,b);a=pd(O.index,J);J[8]=a[8];ika(m,J,null)}catch(R){throw a!==null&&dha.delete(a[19]),dha.delete(J[19]),R;}finally{Dd(23),rga()}return new Ix(this.componentType,J,!!H)}finally{Ic(g)}};
da.Object.defineProperties(dh.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=Hka(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=Ika(this.componentDef.outputs));return this.cachedOutputs}}});
var Ix=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=pd(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new Sg(b,void 0);this.componentType=a};Y(Ix,QAc);
Ix.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=pd(c.index,d);pha(a,1)}};Ix.prototype.destroy=function(){this.hostView.destroy()};Ix.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
da.Object.defineProperties(Ix.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Gd(this._tNode,this._rootLView)}}});var Jx=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new IBc(this);var e=(a[zAc]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=Wga(a,b,[{provide:zx,useValue:this},{provide:KAc,useValue:this.componentFactoryResolver}].concat(q(c)),Sc(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Y(Jx,zx);
Jx.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};Jx.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};Jx.prototype.onDestroy=function(a){this.destroyCbs.push(a)};da.Object.defineProperties(Jx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var kza=function(a){this.moduleType=a};Y(kza,jza);kza.prototype.create=function(a){return new Jx(this.moduleType,a,[])};var Uka=function(a){this.componentFactoryResolver=new IBc(this);this.instance=null;var b=new hd([].concat(q(a.providers),[{provide:zx,useValue:this},{provide:KAc,useValue:this.componentFactoryResolver}]),a.parent||Nfa(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Y(Uka,zx);Uka.prototype.destroy=function(){this.injector.destroy()};
Uka.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var Xka=function(a){this._injector=a;this.cachedInjectors=new Map};Xka.prototype.ngOnDestroy=function(){try{for(var a=l(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;c!==null&&c.destroy()}}finally{this.cachedInjectors.clear()}};Xka.\u0275prov=Fc({token:Xka,providedIn:"environment",factory:function(){return new Xka(Zc($e))}});var dla=new ed(""),Xg=function(){var a=this;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){a.resolve=c;a.reject=d});var b;this.appInits=(b=p(dla,{optional:!0}))!=null?b:[];this.injector=p(Ae)},lpa=function(a){if(!a.initialized){for(var b=[],c=l(a.appInits),d=c.next(),e={};!d.done;e={initResult:void 0},d=c.next())e.initResult=id(a.injector,d.value),bla(e.initResult)?b.push(e.initResult):cla(e.initResult)&&(d=new Promise(function(f){return function(g,k){f.initResult.subscribe({complete:g,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});b.length===0&&(a.done=!0,a.resolve());a.initialized=!0}};Xg.\u0275fac=function(a){return new (a||Xg)};Xg.\u0275prov=Fc({token:Xg,factory:Xg.\u0275fac,providedIn:"root"});var Kx=function(){};Kx.prototype.log=function(a){console.log(a)};Kx.prototype.warn=function(a){console.warn(a)};Kx.\u0275fac=function(a){return new (a||Kx)};Kx.\u0275prov=Fc({token:Kx,factory:Kx.\u0275fac,providedIn:"platform"});var hla=function(){};hla.\u0275prov=Fc({token:hla,providedIn:"root",factory:function(){return new KBc}});var KBc=function(){this.dirtyEffectCount=0;this.queues=new Map};h=KBc.prototype;h.add=function(a){this.enqueue(a);this.schedule(a)};h.schedule=function(a){a.dirty&&this.dirtyEffectCount++};h.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),a.dirty&&this.dirtyEffectCount--)};
h.enqueue=function(a){var b=a.zone;this.queues.has(b)||this.queues.set(b,new Set);b=this.queues.get(b);b.has(a)||b.add(a)};h.flush=function(){for(var a=this;this.dirtyEffectCount>0;){for(var b=!1,c=l(this.queues),d=c.next(),e={};!d.done;e={queue$jscomp$4:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.queue$jscomp$4=f;d===null?b||(b=LBc(this,e.queue$jscomp$4)):b||(b=d.run(function(g){return function(){return LBc(a,g.queue$jscomp$4)}}(e)))}b||(this.dirtyEffectCount=0)}};
var LBc=function(a,b){var c=!1;b=l(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.dirty&&(a.dirtyEffectCount--,c=!0,d.run());return c};var ila=function(a){this[Pc]=a};ila.prototype.destroy=function(){this[Pc].destroy()};
var MBc=Object.assign({},yAc,{cleanupFns:void 0,zone:null,onDestroyFn:wia,run:function(){var a=jga(!1);try{if(this.dirty=!1,!(this.version>0)||Qea(this)){this.version++;var b=Lc(this);try{this.cleanup(),this.fn()}finally{Vea(this,b)}}}finally{jga(a)}},cleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length){a=Ic(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Ic(a)}}}}),lla=Object.assign({},MBc,{consumerMarkedDirty:function(){this.scheduler.schedule(this);
this.notifier.notify(12)},destroy:function(){Wea(this);this.onDestroyFn();this.cleanup();this.scheduler.remove(this)}}),jla=Object.assign({},MBc,{consumerMarkedDirty:function(){this.view[2]|=8192;rd(this.view);this.notifier.notify(13)},destroy:function(){Wea(this);this.onDestroyFn();this.cleanup();var a;(a=this.view[23])==null||a.delete(this)}});var NBc=new ed(""),OBc=new ed(""),Lx=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this._taskTrackingZone=null;if(jfa!==void 0||lfa!=null){var e;this._destroyRef=(e=p(Ee,{optional:!0}))!=null?e:void 0}PBc||(PBc=c,QBc(b));this._watchAngularEvents();a.run(function(){d._taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
Lx.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(){qBc();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})}),d;(d=this._destroyRef)==null||d.onDestroy(function(){b.unsubscribe();c.unsubscribe()})};Lx.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Lx.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=RBc(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var RBc=function(a){return a._taskTrackingZone?a._taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};h=Lx.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[]};Lx.\u0275fac=function(a){return new (a||Lx)(Zc(Tg),Zc(Mx),Zc(OBc))};Lx.\u0275prov=Fc({token:Lx,factory:Lx.\u0275fac});var Mx=function(){this._applications=new Map};
Mx.prototype.registerApplication=function(a,b){this._applications.set(a,b)};Mx.prototype.unregisterApplication=function(a){this._applications.delete(a)};Mx.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=PBc)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};Mx.\u0275fac=function(a){return new (a||Mx)};Mx.\u0275prov=Fc({token:Mx,factory:Mx.\u0275fac,providedIn:"platform"});var PBc;var Cla=function(){ke.apply(this,arguments);this.activeGroups=0;this.teardownAttempted=!1};Y(Cla,ke);Cla.EMPTY=ke.EMPTY;Cla.create=ke.create;Cla.prototype.unsubscribe=function(){this.teardownAttempted=!0;this.activeGroups===0&&ke.prototype.unsubscribe.call(this)};var Rla={leading:!0,trailing:!1};var SBc=new ed(""),Yg=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=p(Te);this.afterRenderManager=p(Be);this.zonelessEnabled=p(epa);this.rootEffectScheduler=p(hla);this.dirtyFlags=0;this.tracingSnapshot=null;this.autoDetectTestViews=new Set;this.afterTick=new sf;this.componentTypes=[];this.components=[];this.internalPendingTask=p(Wg);this._injector=p($e);this._rendererFactory=null;this.tickImpl=function(){if(a._runningTick)throw new Uc(101,
!1);var b=Ic(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 m=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var r=l(a.allViews),w=r.next();!w.done;w=r.next()){var x=w.value._lView;if(m||bga(x))wka(x,m&&!a.zonelessEnabled?
0:1),k=!0}a.dirtyFlags&=-5;TBc(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());TBc(a)}Dd(15)}}finally{a._runningTick=!1;var D;(D=a.tracingSnapshot)==null||D.dispose();a.tracingSnapshot=null;Ic(b);a.afterTick.next();Dd(13)}};p(De,{optional:!0})};
Yg.prototype.whenStable=function(){var a=this,b;return(new Promise(function(c){b=a.isStable.subscribe({next:function(d){d&&c()}})})).finally(function(){b.unsubscribe()})};Yg.prototype.bootstrap=function(a,b){return UBc(this,a,b)};
var UBc=function(a,b,c){var d=d===void 0?JAc:d;return a._injector.get(Tg).run(function(){Dd(10);var e=b instanceof RAc;if(!a._injector.get(Xg).done)throw new Uc(405,"");var f;e?f=b:f=JBc(a._injector.get(KAc),b);a.componentTypes.push(f.componentType);e=f.isBoundToModule?void 0:a._injector.get(zx);var g=f.create(d,[],c||f.selector,e),k=g.location.nativeElement,m=g.injector.get(NBc,null);m==null||m.registerApplication(k);g.onDestroy(function(){a.detachView(g.hostView);Vla(a.components,g);m==null||m.unregisterApplication(k)});
a._loadComponent(g);Dd(11,g);return g})};Yg.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};Yg.prototype._tick=function(){Dd(12);this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};
var TBc=function(a){a.allViews.some(function(b){return bga(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},VBc=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Uc(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||Dka(c,b._lView);cga(b._lView)};h=Yg.prototype;h.detachView=function(a){Vla(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Ria(c,a._lView);Qia(a._lView[1],a._lView)};
h._loadComponent=function(a){VBc(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(SBc,[]).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 Vla(b._destroyListeners,a)}};h.destroy=function(){if(this._destroyed)throw new Uc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
da.Object.defineProperties(Yg.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(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}}});Yg.\u0275fac=function(a){return new (a||Yg)};Yg.\u0275prov=Fc({token:Yg,factory:Yg.\u0275fac,providedIn:"root"});var WBc=new Map;new ed("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new ed("");var Nx=function(){this.internalPendingTasks=p(Wg);this.scheduler=p(bf);this.errorHandler=p(Te)};Nx.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};Nx.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};Nx.\u0275prov=Fc({token:Nx,providedIn:"root",factory:function(){return new Nx}});var hg=function(){};hg.__NG_ELEMENT_ID__=oma;var Hf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Y(Hf,hg);Hf.__NG_ELEMENT_ID__=hg.__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=XBc(a,b||{},e,null);YBc(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 dh(a[bd]||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);YBc(this,d.hostView,b,Ff(this._hostTNode,null));return d};h.insert=function(a,b){return YBc(this,a,b,!0)};
var YBc=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;Eka(a,e,c,d);if(b._appRef)throw new Uc(902,!1);b._attachedToViewContainer=!0;d=pma(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=Fka(this._lContainer,a);b&&(yfa(pma(this._lContainer),a),Tia(b[1],b))};h.detach=function(a){a=this._adjustIndex(a,-1);var b=Fka(this._lContainer,a);return b&&yfa(pma(this._lContainer),a)!=null?new Sg(b):null};h._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
da.Object.defineProperties(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=Iga(this._hostTNode,this._hostLView);if(a!==-1){var b=zga(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 qma=rma;var sma=vma;var Hma=Symbol("Ka");var Qma=Ec({disabled:Ec}),Xma=Ec({max:Ec}),Zma=Ec({maxLength:Ec}),Yma=Ec({min:Ec}),$ma=Ec({minLength:Ec}),Sma=Ec({name:Ec}),Uma=Ec({readonly:Ec}),Vma=Ec({required:Ec}),Nma=Ec({controlValue:Ec}),Pma={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"},Oma=Object.keys(Pma);var ZBc=function(){};ZBc.prototype.destroy=function(){};ZBc.prototype.updateValue=function(){};var bna=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)};ZBc.prototype.move=function(a,b){this.attach(b,this.detach(a))};var cna=function(){this.kvMap=new Map;this._vMap=void 0};h=cna.prototype;h.has=function(a){return this.kvMap.has(a)};
h.delete=function(a){if(!this.has(a))return!1;var b=this.kvMap.get(a);this._vMap!==void 0&&this._vMap.has(b)?(this.kvMap.set(a,this._vMap.get(b)),this._vMap.delete(b)):this.kvMap.delete(a);return!0};h.get=function(a){return this.kvMap.get(a)};h.set=function(a,b){if(this.kvMap.has(a)){a=this.kvMap.get(a);this._vMap===void 0&&(this._vMap=new Map);for(var c=this._vMap;c.has(a);)a=c.get(a);c.set(a,b)}else this.kvMap.set(a,b)};
h.forEach=function(a){for(var b=l(this.kvMap),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a(d,c);if(this._vMap!==void 0)for(var e=this._vMap;e.has(d);)d=e.get(d),a(d,c)}};var $Bc=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};da.Object.defineProperties($Bc.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var hna=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},ina=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Y(ina,ZBc);h=ina.prototype;h.at=function(a){return Cka(this.lContainer,a)[8].$implicit};
h.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);Eka(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(Lia);if(b.detachedLeaveAnimationFns){for(var d=l(b.detachedLeaveAnimationFns),e=d.next();!e.done;e=d.next())c.queue.delete(e.value);b.detachedLeaveAnimationFns=void 0}Uia.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 Fka(this.lContainer,a)};h.create=function(a,b){a=Wla(this.hostLView,this.templateTNode,new $Bc(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};
h.destroy=function(a){Tia(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};h.updateValue=function(a,b){Cka(this.lContainer,a)[8].$implicit=b};h.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};da.Object.defineProperties(ina.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var kna=function(a,b,c,d){Re=!0;return b[11].createElement(d,ud.currentNamespace)};var lna=function(a,b){Re=!0;return b[11].createComment(jha(""))};var nna=["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 ona={};var yna=["zero","one","two","few","many"];var xna="en-US";var wna={marker:"element"},vna={marker:"ICU"};var rna=0,pna=0,tna=function(a,b,c){Re=!0;a:{a=a[11];switch(c){case Node.COMMENT_NODE:b=a.createComment(jha(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 Cna=/\ufffd(\d+):?\d*\ufffd/gi,Lna=/\ufffd(\d+)\ufffd/,Ina=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ena=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Nna=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Mna=/\uE500/g;var Pna={};var aCc,ig=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[aCc]=Tna};h=ig.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 mg=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},hoa=function(a,b){a._onDirty=b};ig.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};ig.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};da.Object.defineProperties(ig.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new sf}}});
aCc=Symbol.iterator;var gg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};gg.prototype.createEmbeddedView=function(a,b){return XBc(this,a,b)};var XBc=function(a,b,c,d){a=Wla(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new Sg(a)};da.Object.defineProperties(gg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});
gg.__NG_ELEMENT_ID__=Vna;var Zna=function(a){this.queryList=a;this.matches=null};Zna.prototype.clone=function(){return new Zna(this.queryList)};Zna.prototype.setDirty=function(){this.queryList.setDirty()};var Yna=function(a){this.queries=a=a===void 0?[]:a};Yna.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 Yna(c)}return null};
Yna.prototype.detachView=function(a){hka(this,a)};var hka=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},boa=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=coa(a):this.predicate=a},doa=function(a){this.queries=a=a===void 0?[]:a};h=doa.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 doa(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(doa.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var lg=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};
lg.prototype.elementStart=function(a,b){if(bCc(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}cCc(this,a,b,f);cCc(this,a,b,Qga(b,a,e,!1,!1))}else c===gg?b.type&4&&cCc(this,a,b,-1):cCc(this,a,b,Qga(b,a,c,!1,!1))}};lg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
lg.prototype.template=function(a,b){this.elementStart(a,b)};lg.prototype.embeddedTView=function(a,b){return bCc(this,a)?(this.crossesNgTemplate=!0,dCc(this,-a.index,b),new lg(this.metadata)):null};
var bCc=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},cCc=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===Jd||e===hg||e===gg&&c.type&4?dCc(a,c.index,-2):(b=Qga(c,b,e,!1,!1),b!==null&&dCc(a,c.index,b)):dCc(a,c.index,d)}},dCc=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var tg=0,ug=0,vg=0,moa=0,ooa=0;var Ox=function(){};Ox.\u0275fac=function(a){return new (a||Ox)(Zc(Yg))};Ox.\u0275mod=cf({type:Ox});Ox.\u0275inj=Gc({});new ed("",{providedIn:"platform",factory:function(){return null}});new ed("",{providedIn:"platform",factory:function(){return null}});new ed("",{providedIn:"platform",factory:function(){return null}});var Uoa=Symbol("Ma"),Voa=Object.assign({},Zea,{transformFn:void 0,applyValueToInputSignal:function(a,b){Qc(a,b)}});var Xoa=function(){var a=this;this.destroyed=!1;this.listeners=null;this.errorHandler=p(Hx,{optional:!0});this.destroyRef=p(Ee);this.destroyRef.onDestroy(function(){a.destroyed=!0;a.listeners=null})};Xoa.prototype.subscribe=function(a){var b=this;if(this.destroyed)throw new Uc(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)}}}};
Xoa.prototype.emit=function(a){if(this.destroyed)console.warn(efa(953,!1));else if(this.listeners!==null){var b=Ic(null);try{for(var c=l(this.listeners),d=c.next();!d.done;d=c.next()){var e=d.value;try{e(a)}catch(g){var f=void 0;(f=this.errorHandler)==null||f.handleError(g)}}}finally{Ic(b)}}};Qg.required=function(a){return Woa(Uoa,a)};Zoa.required=function(){return Yoa(Uoa)};Rg.required=function(){return goa(!0,!0)};apa.required=function(){return goa(!0,!0)};var Px=function(){};Px.__NG_ELEMENT_ID__=bpa;var eCc=function(){};eCc.prototype.supports=function(a){return mha(a)};eCc.prototype.create=function(a){return new Qx(a)};var fCc=function(a,b){return b},Qx=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||fCc};
Qx.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};var gCc=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<cpa(a,d,e)?c:a,g=cpa(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,f.previousIndex==null)d++;else{e||(e=[]);var m=g-d,r=k-d;if(m!=r){for(var w=0;w<m;w++){var x=w<e.length?e[w]:e[w]=0,D=x+w;r<=D&&D<m&&(e[w]=x+1)}e[f.previousIndex]=r-m}}g!==k&&b(f,g,k)}};
Qx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};Qx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};var hCc=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};h=Qx.prototype;h.diff=function(a){a==null&&(a=[]);if(!mha(a))throw new Uc(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;nha(a,function(m){g=b._trackByFn(k,m);c!==null&&Object.is(c.trackById,g)?(d&&(c=b._verifyReinsertion(c,m,g,k)),Object.is(c.item,m)||b._addIdentityChange(c,
m)):(c=b._mismatch(c,m,g,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
h._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;a!==null;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;a!==null;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
h._mismatch=function(a,b,c,d){if(a===null)var e=this._itTail;else e=a._prev,this._remove(a);a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=this._linkedRecords===null?null:this._linkedRecords.get(c,d),a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new iCc(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 Rx);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 Rx);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(Qx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var iCc=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},jCc=function(){this._tail=this._head=null};jCc.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)};
jCc.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};jCc.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 Rx=function(){this.map=new Map};Rx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new jCc,this.map.set(b,c));c.add(a)};
Rx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};Rx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};Rx.prototype.clear=function(){this.map.clear()};da.Object.defineProperties(Rx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var kCc=function(){};kCc.prototype.supports=function(a){return a instanceof Map||lha(a)};kCc.prototype.create=function(){return new lCc};var lCc=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};lCc.prototype.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};var mCc=function(a,b){for(a=a._changesHead;a!==null;a=a._nextChanged)b(a)};
h=lCc.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||lha(a)))throw new Uc(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 nCc(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(lCc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var nCc=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var Sx=function(a){this.factories=a};Sx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Uc(901,!1);};Sx.\u0275prov=Fc({token:Sx,providedIn:"root",factory:function(){return new Sx([new eCc])}});var Tx=function(a){this.factories=a};Tx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Uc(901,!1);};Tx.\u0275prov=Fc({token:Tx,providedIn:"root",factory:function(){return new Tx([new kCc])}});var Ux=function(){var a=this;this.applicationErrorHandler=p(Te);this.appRef=p(Yg);this.taskService=p(Wg);this.ngZone=p(Tg);this.zonelessEnabled=p(epa);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(fpa,{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()}))};
Ux.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?yia:xia;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()})})}}};
Ux.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;yia(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};Ux.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};Ux.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))};Ux.\u0275fac=function(a){return new (a||Ux)};Ux.\u0275prov=Fc({token:Ux,factory:Ux.\u0275fac,providedIn:"root"});var Ug=function(){this.zone=p(Tg);this.changeDetectionScheduler=p(bf);this.applicationRef=p(Yg);this.applicationErrorHandler=p(Te)};Ug.prototype.initialize=function(){var a=this;this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:function(){a.changeDetectionScheduler.runningTick||a.zone.run(function(){try{a.applicationRef.dirtyFlags|=1,a.applicationRef._tick()}catch(b){a.applicationErrorHandler(b)}})}}))};
Ug.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};Ug.\u0275fac=function(a){return new (a||Ug)};Ug.\u0275prov=Fc({token:Ug,factory:Ug.\u0275fac,providedIn:"root"});var hpa=new ed("",{factory:function(){return!1}}),Vg=function(){this.subscription=new Rd;this.initialized=!1;this.zone=p(Tg);this.pendingTasks=p(Wg)};
Vg.prototype.initialize=function(){var a=this;if(!this.initialized){this.initialized=!0;var b=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(b=this.pendingTasks.add());this.zone.runOutsideAngular(function(){a.subscription.add(a.zone.onStable.subscribe(function(){qBc();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(!Yza())throw new Uc(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};Vg.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};Vg.\u0275fac=function(a){return new (a||Vg)};Vg.\u0275prov=Fc({token:Vg,factory:Vg.\u0275fac,providedIn:"root"});var mpa=new ed("",{factory:function(){return p(mpa,{optional:!0,skipSelf:!0})||(typeof uyc!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new ed("",{factory:function(){return"USD"}});new ed("");new ed("");var jpa=new ed("");var npa=new ed(""),opa;var Vx=function(){};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275prov=Fc({token:Vx,factory:Vx.\u0275fac,providedIn:"root"});new ed("");var Zg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},pCc=function(){var a=oCc(),b=Wx,c={applicationProviders:[ipa()]};c=c===void 0?[]:c;var d=Ula({},c);opa=qpa;Promise.resolve(new kza(b)).then(function(e){var f,g=[[{provide:bf,useExisting:Ux},{provide:Tg,useClass:sBc},{provide:epa,useValue:!0}]].concat(q([]),q((f=d==null?void 0:d.applicationProviders)!=null?f:[]),[tBc],q([]));e=new Jx(e.moduleType,a.injector,g,!1);opa=qpa;return ppa({moduleRef:e,allPlatformModules:a._modules,
platformInjector:a.injector})})};Zg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};Zg.prototype.destroy=function(){if(this._destroyed)throw new Uc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(jpa,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};
da.Object.defineProperties(Zg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});Zg.\u0275fac=function(a){return new (a||Zg)(Zc(Ae))};Zg.\u0275prov=Fc({token:Zg,factory:Zg.\u0275fac,providedIn:"platform"});var tpa=null;var ypa=function(a){return a};var qCc=function(a){var b=this;this.isError=ah(function(){return b.status()==="error"});this.isLoading=ah(function(){return b.status()==="loading"||b.status()==="reloading"});this.isValueDefined=ah(function(){return b.isError()?!1:b.value()!==void 0});this.value=a;this.value.set=this.set.bind(this);this.value.update=this.update.bind(this);this.value.asReadonly=foa};qCc.prototype.update=function(a){this.set(a(Rc(this.value)))};qCc.prototype.hasValue=function(){return this.isValueDefined()};
qCc.prototype.asReadonly=function(){return this};
var Xx=function(a,b,c,d,e){qCc.call(this,ah(function(){var g,k,m=(k=(g=f.state()).stream)==null?void 0:k.call(g);if(!m||f.state().status==="loading"&&f.error())return c;if(m.error!==void 0)throw new rCc(f.error());return m.value},{equal:d}));var f=this;this.loaderFn=b;this.equal=d;this.resolvePendingTask=void 0;this.destroyed=!1;this.status=ah(function(){return Bpa(f.state())});this.error=ah(function(){var g,k,m=(k=(g=f.state()).stream)==null?void 0:k.call(g);return m&&m.error!==void 0?m.error:void 0});
this.extRequest=Apa({source:a,computation:function(g){return{request:g,reload:0}}});this.state=Apa({source:this.extRequest,computation:function(g,k){var m=g.request===void 0?"idle":"loading";return k?{extRequest:g,status:m,previousStatus:Bpa(k.value),stream:k.value.extRequest.request===g.request?k.value.stream:void 0}:{extRequest:g,status:m,previousStatus:"idle",stream:void 0}}});this.effectRef=gf(this.loadEffect.bind(this),{injector:e,manualCleanup:!0});this.pendingTasks=e.get(Nx);this.unregisterOnDestroy=
e.get(Ee).onDestroy(function(){return f.destroy()})};Y(Xx,qCc);Xx.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:pg({value:a})});sCc(this)}};
Xx.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};Xx.prototype.destroy=function(){this.destroyed=!0;this.unregisterOnDestroy();this.effectRef.destroy();sCc(this);this.state.set({extRequest:{request:void 0,reload:0},status:"idle",previousStatus:"idle",stream:void 0})};
Xx.prototype.loadEffect=function(){var a=this,b,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:b=a.extRequest();c=Rc(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!=="loading")return x.return();sCc(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:m=x.yieldResult;if(k.aborted||
Rc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"resolved",stream:m});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:pg({error:w instanceof Error?w:new tCc(w)})});x.jumpTo(3)}})};
var sCc=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},rCc=function(a){a=Error.call(this,a.message,{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(rCc,Error);var tCc=function(a){a=Error.call(this,String(a),{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(tCc,Error);var uCc=Symbol("Na"),vCc=new Set,wCc=Object.assign({},Zea,{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:uCc,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!==uCc&&
!Qea(this))return this.signal;try{for(var b,c=l((b=this.cleanup)!=null?b:vCc),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=Lc(this);try{var g=this.userFn.apply(null,b)}finally{Vea(this,a)}this.value!==uCc&&this.equal(this.value,g)||(this.value=g,this.version++);return this.signal}}),Cpa=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=l(uBc);d=a.next();for(c={};!d.done;c={node$jscomp$135:void 0,$jscomp$logical$assign$tmp367619693$0:void 0},d=a.next())d=d.value,e=b[d],e!==void 0&&(c.node$jscomp$135=Object.create(wCc),c.node$jscomp$135.sequence=this,c.node$jscomp$135.phase=d,c.node$jscomp$135.userFn=e,c.node$jscomp$135.dirty=!0,c.node$jscomp$135.signal=function(g){return function(){Kc(g.node$jscomp$135);return g.node$jscomp$135.value}}(c),c.node$jscomp$135.signal[Pc]=
c.node$jscomp$135,c.$jscomp$logical$assign$tmp367619693$0=void 0,c.node$jscomp$135.registerCleanupFn=function(g){return function(k){var m;return((m=(g.$jscomp$logical$assign$tmp367619693$0=g.node$jscomp$135).cleanup)!=null?m:g.$jscomp$logical$assign$tmp367619693$0.cleanup=new Set).add(k)}}(c),this.nodes[d]=c.node$jscomp$135,this.hooks[d]=function(g){return function(k){return g.node$jscomp$135.phaseFn(k)}}(c))};Y(Cpa,Fe);
Cpa.prototype.afterRun=function(){Fe.prototype.afterRun.call(this);this.lastPhase=null};Cpa.prototype.destroy=function(){Fe.prototype.destroy.call(this);for(var a=l(this.nodes),b=a.next();!b.done;b=a.next())if(b=b.value)try{for(var c=void 0,d=l((c=b.cleanup)!=null?c:vCc),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{Wea(b)}};var xCc=vpa(null,"core",[]);var yCc=/\s+/,zCc=[],Yx=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=zCc;this.stateMap=new Map};Yx.prototype.ngDoCheck=function(){for(var a=l(this.initialClasses),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);a=this.rawClass;if(Array.isArray(a)||a instanceof Set)for(a=l(a),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);else if(a!=null){b=l(Object.keys(a));for(var c=b.next();!c.done;c=b.next())c=c.value,this._updateState(c,!!a[c])}this._applyStateDiff()};
Yx.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})};Yx.prototype._applyStateDiff=function(){for(var a=l(this.stateMap),b=a.next();!b.done;b=a.next()){var c=b.value;b=c[0];c=c[1];c.changed?(this._toggleClass(b,c.enabled),c.changed=!1):c.touched||(c.enabled&&this._toggleClass(b,!1),this.stateMap.delete(b));c.touched=!1}};
Yx.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(yCc).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};da.Object.defineProperties(Yx.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(yCc):zCc}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(yCc):a}}});
Yx.\u0275fac=function(a){return new (a||Yx)(Ye(Jd),Ye(fi))};Yx.\u0275dir=df({type:Yx,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var ACc=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};da.Object.defineProperties(ACc.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 ey=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};ey.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)};
ey.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;gCc(a,function(g,k,m){g.previousIndex==null?c.createEmbeddedView(b._template,new ACc(g.item,b._ngForOf,-1,-1),m===null?void 0:m):m==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,m),k.context.$implicit=g.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}hCc(a,function(g){c.get(g.currentIndex).context.$implicit=g.item})};
da.Object.defineProperties(ey.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)}}});ey.\u0275fac=function(a){return new (a||ey)(Ye(hg),Ye(gg),Ye(Sx))};
ey.\u0275dir=df({type:ey,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var fy=function(a,b){this._viewContainer=a;this._context=new BCc;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
fy.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(fy.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){Gpa(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Gpa(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});fy.\u0275fac=function(a){return new (a||fy)(Ye(hg),Ye(gg))};
fy.\u0275dir=df({type:fy,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var BCc=function(){this.ngIf=this.$implicit=null};var CCc=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};CCc.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};CCc.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var gy=function(){this._defaultViews=[];this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};gy.prototype._addCase=function(){return this._caseCount++};gy.prototype._addDefault=function(a){this._defaultViews.push(a)};
gy.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};
gy.prototype._updateDefaultCases=function(a){if(this._defaultViews.length>0&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=l(this._defaultViews),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};da.Object.defineProperties(gy.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;this._caseCount===0&&this._updateDefaultCases(!0)}}});gy.\u0275fac=function(a){return new (a||gy)};
gy.\u0275dir=df({type:gy,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var hy=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new CCc(a,b)};hy.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};hy.\u0275fac=function(a){return new (a||hy)(Ye(hg),Ye(gg),Ye(gy,9))};hy.\u0275dir=df({type:hy,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var iy=function(a,b,c){c._addDefault(new CCc(a,b))};iy.\u0275fac=function(a){return new (a||iy)(Ye(hg),Ye(gg),Ye(gy,9))};iy.\u0275dir=df({type:iy,selectors:[["","ngSwitchDefault",""]]});var jy=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};jy.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};jy.prototype._setStyle=function(a,b){var c=l(a.split("."));a=c.next().value;c=c.next().value;var d=a.indexOf("-")===-1?void 0:2;b!=null?this._renderer.setStyle(this._ngEl.nativeElement,a,c?""+b+c:b,d):this._renderer.removeStyle(this._ngEl.nativeElement,a,d)};
jy.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)});mCc(a,function(c){return b._setStyle(c.key,c.currentValue)})};da.Object.defineProperties(jy.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});jy.\u0275fac=function(a){return new (a||jy)(Ye(Jd),Ye(Tx),Ye(fi))};
jy.\u0275dir=df({type:jy,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var ky=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};ky.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};
ky.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};ky.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)}})};ky.\u0275fac=function(a){return new (a||ky)(Ye(hg))};
ky.\u0275dir=df({type:ky,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[xx]});var DCc=function(){};DCc.prototype.createSubscription=function(a,b,c){return Rc(function(){return a.subscribe({next:b,error:c})})};DCc.prototype.dispose=function(a){Rc(function(){return a.unsubscribe()})};var ECc=function(){};ECc.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}}};ECc.prototype.dispose=function(a){a.unsubscribe()};
var FCc=new ECc,GCc=new DCc,ly=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=p(Te);this._ref=a};h=ly.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(bla(a))return FCc;if(cla(a))return GCc;throw gh();};h._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};h._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};ly.\u0275fac=function(a){return new (a||ly)(Ye(Px,16))};ly.\u0275pipe=ef({name:"async",type:ly,pure:!1});var my=function(){};my.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw gh();return a.toLowerCase()};my.\u0275fac=function(a){return new (a||my)};my.\u0275pipe=ef({name:"lowercase",type:my,pure:!0});
var HCc=/(?:[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,ny=
function(){};ny.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw gh();return a.replace(HCc,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};ny.\u0275fac=function(a){return new (a||ny)};ny.\u0275pipe=ef({name:"titlecase",type:ny,pure:!0});var fqa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,aqa={},Spa=/((?:[^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]*)/,Vpa={};var ICc=new ed(""),JCc=new ed(""),oy=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};oy.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,g=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,m,r,w=(r=(m=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?m:this.defaultTimezone)!=null?r:void 0;return Zpa(a,g,d||this.locale,w)}catch(x){throw gh();}};
oy.\u0275fac=function(a){return new (a||oy)(Ye(mpa,16),Ye(ICc,24),Ye(JCc,24))};oy.\u0275pipe=ef({name:"date",type:oy,pure:!0});var py=function(){};py.prototype.transform=function(a){return JSON.stringify(a,null,2)};py.\u0275fac=function(a){return new (a||py)};py.\u0275pipe=ef({name:"json",type:py,pure:!1});var qy=function(a){this.differs=a;this.keyValues=[];this.compareFn=hqa};qy.prototype.transform=function(a,b){var c=this;b=b===void 0?hqa: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};
qy.\u0275fac=function(a){return new (a||qy)(Ye(Tx,16))};qy.\u0275pipe=ef({name:"keyvalue",type:qy,pure:!1});var kqa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var ry=function(a){this._locale=a};
ry.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 Uc(2309,!1);var d=a}else d=Number(a);a=d;var e=Zf(c)[14][0],f=fh(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var g=e.split(";"),k=g[0],m=g[1],r=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],w=r[0],x=r[1]||"";d.posPre=w.substring(0,w.indexOf("#"));for(e=0;e<x.length;e++){var D=x.charAt(e);D==="0"?d.minFrac=d.maxFrac=e+1:D==="#"?d.maxFrac=e+1:d.posSuf+=D}var H=w.split(",");d.gSize=H[1]?H[1].length:0;d.lgSize=H[2]||H[1]?(H[2]||H[1]).length:0;if(m){var J=k.length-d.posPre.length-d.posSuf.length,O=m.indexOf("#");d.negPre=m.substring(0,O).replace(/'/g,"");d.negSuf=m.slice(O+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return nqa(a,d,c,b)}catch(R){throw gh();}};
ry.\u0275fac=function(a){return new (a||ry)(Ye(mpa,16))};ry.\u0275pipe=ef({name:"number",type:ry,pure:!0});var sy=function(){};sy.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw gh();return a.slice(b,c)};sy.\u0275fac=function(a){return new (a||sy)};sy.\u0275pipe=ef({name:"slice",type:sy,pure:!1});var ty=function(){};ty.\u0275fac=function(a){return new (a||ty)};ty.\u0275mod=cf({type:ty});ty.\u0275inj=Gc({});var KCc=function(a){return a.src};new ed("",{factory:function(){return KCc}});new ed("");new ed("",{factory:function(){return new Set}});var Rl=null,LCc=function(){};var uy=function(){};uy.prototype.historyGo=function(){throw Error("na");};uy.\u0275fac=function(a){return new (a||uy)};uy.\u0275prov=Fc({token:uy,factory:function(){return p(vy)},providedIn:"platform"});var MCc=new ed(""),vy=function(){this._doc=p(Uh);this._location=window.location;this._history=window.history};Y(vy,uy);vy.prototype.onPopState=function(a){var b=NCc(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var OCc=function(a,b){var c=NCc(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};h=vy.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(vy.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}}});vy.\u0275fac=function(a){return new (a||vy)};vy.\u0275prov=Fc({token:vy,factory:function(){return new vy},providedIn:"platform"});var wy=function(){};wy.prototype.historyGo=function(){throw Error("na");};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275prov=Fc({token:wy,factory:function(){return p(xy)},providedIn:"root"});var PCc=new ed(""),xy=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:Rl.getBaseHref())!=null?d:(c=p(Uh).location)==null?void 0:c.origin)!=null?e:""};Y(xy,wy);h=xy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),OCc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};h.prepareExternalUrl=function(a){return oqa(this._baseHref,a)};h.path=function(a){var b=this._platformLocation.pathname+lh(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+lh(d)))};
h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+lh(d)))};h.forward=function(){this._platformLocation.forward()};h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};xy.\u0275fac=function(a){return new (a||xy)(Zc(uy),Zc(PCc,8))};xy.\u0275prov=Fc({token:xy,factory:xy.\u0275fac,providedIn:"root"});var yy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Y(yy,wy);h=yy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),OCc(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=oqa(this._baseHref,a);return a.length>0?"#"+a:a};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+lh(d))||this._platformLocation.pathname)};h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+lh(d))||this._platformLocation.pathname)};h.forward=function(){this._platformLocation.forward()};
h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};yy.\u0275fac=function(a){return new (a||yy)(Zc(uy),Zc(PCc,8))};yy.\u0275prov=Fc({token:yy,factory:yy.\u0275fac});var ki=function(a){var b=this;this._subject=new sf;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=qqa(pqa(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=ki.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=ki.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(ki,c)};h.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
h.go=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+lh(b)),c)};h.replaceState=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+lh(b)),c)};h.forward=function(){this._locationStrategy.forward()};h.back=function(){this._locationStrategy.back()};
h.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};h._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};h.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};ki.stripTrailingSlash=pqa;ki.\u0275fac=function(a){return new (a||ki)(Zc(wy))};ki.\u0275prov=Fc({token:ki,factory:function(){return new ki(Zc(wy))},providedIn:"root"});var QCc=function(){};QCc.\u0275prov=Fc({token:QCc,providedIn:"root",factory:function(){return new RCc}});var RCc=function(){var a=p(Uh),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},SCc=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};RCc.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};RCc.prototype.scrollToPosition=function(a,b){this.window.scrollTo(Object.assign({},b,{left:a[0],top:a[1]}))};var TCc=function(){};var zy=function(){this.supportsDOMEvents=!0};Y(zy,LCc);var UCc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};zy.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};zy.prototype.remove=function(a){a.remove()};zy.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var NCc=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
zy.prototype.getBaseHref=function(){var a=(VCc=VCc||document.head.querySelector("base"))?VCc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var VCc=null;var WCc=function(){},QBc=function(a){Me.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Uc(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)})})};WCc.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 Ay=function(){};Ay.prototype.build=function(){return new XMLHttpRequest};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275prov=Fc({token:Ay,factory:Ay.\u0275fac});var XCc=function(a){this._doc=a};var By=function(a){this._doc=a};Y(By,XCc);By.prototype.supports=function(){return!0};By.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};By.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};By.\u0275fac=function(a){return new (a||By)(Zc(Uh))};By.\u0275prov=Fc({token:By,factory:By.\u0275fac});var YCc=new ed(""),Cy=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 By)}).slice().reverse();(a=a.find(function(d){return d instanceof By}))&&this._plugins.push(a)};Cy.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};
Cy.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 Uc(5101,!1);this._eventNameToPlugin.set(a,b);return b};Cy.\u0275fac=function(a){return new (a||Cy)(Zc(YCc),Zc(Tg))};Cy.\u0275prov=Fc({token:Cy,factory:Cy.\u0275fac});var Dy=function(a,b,c){this.doc=a;this.appId=b;this.nonce=c;this.inline=new Map;this.external=new Map;this.hosts=new Set;c=this.inline;var d=this.external,e,f=(e=a.head)==null?void 0:e.querySelectorAll('style[ng-app-id="'+b+'"],link[ng-app-id="'+b+'"]');if(f)for(b=l(f),e=b.next();!e.done;e=b.next())e=e.value,e.removeAttribute("ng-app-id"),e instanceof HTMLLinkElement?d.set(e.href.slice(e.href.lastIndexOf("/")+1),{usage:0,elements:[e]}):e.textContent&&c.set(e.textContent,{usage:0,elements:[e]});this.hosts.add(a.head)},
$Cc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())ZCc(a,d.value,a.inline,sqa);c==null||c.forEach(function(e){return ZCc(a,e,a.external,tqa)})},bDc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())aDc(d.value,a.inline);c==null||c.forEach(function(e){return aDc(e,a.external)})},ZCc=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))})})},aDc=function(a,b){var c=b.get(a);c&&(c.usage--,
c.usage<=0&&(rqa(c.elements),b.delete(a)))};Dy.prototype.ngOnDestroy=function(){for(var a=l([].concat(q(this.inline),q(this.external))),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b=b.next().value.elements,rqa(b);this.hosts.clear()};Dy.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);return a.appendChild(b)};Dy.\u0275fac=function(a){return new (a||Dy)(Zc(Uh),Zc(LAc),Zc(NAc,8),Zc(MAc))};Dy.\u0275prov=Fc({token:Dy,factory:Dy.\u0275fac});var cDc={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"},uqa=/%COMP%/g,dDc=new ed("",{factory:function(){return!0}}),Fy=function(a,b,c,d,e,f,g,k){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=f;this.nonce=g===void 0?null:g;this.tracingService=k===void 0?
null:k;this.rendererByCompId=new Map;this.platformIsServer=!1;this.defaultRenderer=new Ey(a,e,f,this.platformIsServer,this.tracingService)};
Fy.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,g=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,m=this.platformIsServer,r=this.tracingService;switch(b.encapsulation){case 0:d=new eDc(f,g,b,this.appId,k,d,e,m,r);break;case 3:b=new fDc(f,a,b,d,e,this.nonce,m,r,g);break a;case 4:b=new fDc(f,a,b,d,e,this.nonce,m,r);break a;default:d=new Gy(f,g,b,k,d,e,m,r)}c.set(b.id,
d)}b=d}b instanceof eDc?($Cc(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof Gy&&$Cc(b.sharedStylesHost,b.styles,b.styleUrls);return b};Fy.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};Fy.\u0275fac=function(a){return new (a||Fy)(Zc(Cy),Zc(Dy),Zc(LAc),Zc(dDc),Zc(Uh),Zc(Tg),Zc(NAc),Zc(De,8))};Fy.\u0275prov=Fc({token:Fy,factory:Fy.\u0275fac});
var Ey=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=Ey.prototype;h.destroy=function(){};h.createElement=function(a,b){return b?this.doc.createElementNS(cDc[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 Uc(-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=cDc[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};h.removeAttribute=function(a,b,c){if(c){var d=cDc[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=NCc(this.doc,a),!a))throw new Uc(5102,!1);c=gDc(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 gDc=function(a){return function(b){if(b==="__ngUnwrap__")return a;a(b)===!1&&b.preventDefault()}},fDc=function(a,b,c,d,e,f,g,k,m){Ey.call(this,a,d,e,g,k);this.hostEl=b;this.sharedStylesHost=m;this.shadowRoot=b.attachShadow({mode:"open"});if(this.sharedStylesHost){a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);e=l(a.inline);for(g=e.next();!g.done;g=e.next())g=l(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,sqa(k,a.doc)));e=l(a.external);for(g=e.next();!g.done;g=
e.next())g=l(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,tqa(k,a.doc)))}a=c.styles;a=vqa(c.id,a);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,e=document.createElement("style"),f&&e.setAttribute("nonce",f),e.textContent=b,this.shadowRoot.appendChild(e);var r;if(a=(r=c.getExternalStyles)==null?void 0:r.call(c))for(c=l(a),r=c.next();!r.done;r=c.next())r=tqa(r.value,d),f&&r.setAttribute("nonce",f),this.shadowRoot.appendChild(r)};Y(fDc,Ey);
var hDc=function(a,b){return b===a.hostEl?a.shadowRoot:b};h=fDc.prototype;h.appendChild=function(a,b){return Ey.prototype.appendChild.call(this,hDc(this,a),b)};h.insertBefore=function(a,b,c){return Ey.prototype.insertBefore.call(this,hDc(this,a),b,c)};h.removeChild=function(a,b){return Ey.prototype.removeChild.call(this,null,b)};h.parentNode=function(a){return hDc(this,Ey.prototype.parentNode.call(this,hDc(this,a)))};h.destroy=function(){this.sharedStylesHost&&this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var Gy=function(a,b,c,d,e,f,g,k,m){Ey.call(this,a,e,f,g,k);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;a=c.styles;this.styles=m?vqa(m,a):a;var r;this.styleUrls=(r=c.getExternalStyles)==null?void 0:r.call(c,m)};Y(Gy,Ey);Gy.prototype.destroy=function(){this.removeStylesOnCompDestroy&&Uia.size===0&&bDc(this.sharedStylesHost,this.styles,this.styleUrls)};
var eDc=function(a,b,c,d,e,f,g,k,m){d=d+"-"+c.id;Gy.call(this,a,b,c,e,f,g,k,m,d);this.contentAttr="_ngcontent-%COMP%".replace(uqa,d);this.hostAttr="_nghost-%COMP%".replace(uqa,d)};Y(eDc,Gy);eDc.prototype.createElement=function(a,b){a=Gy.prototype.createElement.call(this,a,b);Gy.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var iDc=["alt","control","meta","shift"],jDc={"\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"},kDc={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},Hy=function(a){this._doc=a};Y(Hy,XCc);Hy.prototype.supports=function(a){return lDc(a)!=null};
Hy.prototype.addEventListener=function(a,b,c,d){var e=lDc(b),f=mDc(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return UCc(a,e.domEventName,f,d)})};
var lDc=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=nDc(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");iDc.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},oDc=function(a,b){var c=jDc[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");iDc.forEach(function(e){e!==c&&(0,kDc[e])(a)&&(d+=e+".")});d+=c;return d===b},mDc=function(a,b,c){return function(d){oDc(d,a)&&c.runGuarded(function(){return b(d)})}},nDc=function(a){return a==="esc"?"escape":a};Hy.\u0275fac=function(a){return new (a||Hy)(Zc(Uh))};Hy.\u0275prov=Fc({token:Hy,factory:Hy.\u0275fac});var oCc=vpa(xCc,"browser",[{provide:MAc,useValue:"browser"},{provide:xpa,useValue:function(){var a=new zy;Rl!=null||(Rl=a)},multi:!0},{provide:Uh,useFactory:function(){return bha=document}}]);new ed("");
var pDc=[{provide:OBc,useClass:WCc},{provide:NBc,useClass:Lx},{provide:Lx,useClass:Lx}],qDc=[{provide:wpa,useValue:"root"},{provide:Hx,useFactory:function(){return new Hx}},{provide:YCc,useClass:By,multi:!0},{provide:YCc,useClass:Hy,multi:!0},Fy,Dy,Cy,{provide:af,useExisting:Fy},{provide:TCc,useClass:Ay},[]],Iy=function(){};Iy.\u0275fac=function(a){return new (a||Iy)};Iy.\u0275mod=cf({type:Iy});Iy.\u0275inj=Gc({providers:[].concat(q(qDc),q(pDc)),imports:[ty,Ox]});var Jy=function(a){this._doc=a};Jy.prototype.getTitle=function(){return this._doc.title};Jy.prototype.setTitle=function(a){this._doc.title=a||""};Jy.\u0275fac=function(a){return new (a||Jy)(Zc(Uh))};Jy.\u0275prov=Fc({token:Jy,factory:Jy.\u0275fac,providedIn:"root"});new ed("");new ed("");var nh=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?typeof a==="string"?this.lazyInit=function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");d>0&&rDc(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){rDc(b,d,c)})):this.lazyInit=function(){b.headers=new Map;Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;sDc(b,c,d)})}:this.headers=
new Map};h=nh.prototype;h.has=function(a){this.init();return this.headers.has(a.toLowerCase())};h.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};h.keys=function(){this.init();return Array.from(this.normalizedNames.values())};h.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};h.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
h.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var tDc=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};nh.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof nh?uDc(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return vDc(a,b)}),this.lazyUpdate=null))};
var uDc=function(a,b){b.init();Array.from(b.headers.keys()).forEach(function(c){a.headers.set(c,b.headers.get(c));a.normalizedNames.set(c,b.normalizedNames.get(c))})};nh.prototype.clone=function(a){var b=new nh;b.lazyInit=this.lazyInit&&this.lazyInit instanceof nh?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var vDc=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;tDc(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)}},rDc=function(a,
b,c){var d=b.toLowerCase();tDc(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},sDc=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);tDc(a,b,d)};nh.prototype.forEach=function(a){var b=this;this.init();Array.from(this.normalizedNames.keys()).forEach(function(c){return a(b.normalizedNames.get(c),b.headers.get(c))})};var wDc=function(){this.map=new Map};h=wDc.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 xDc=function(){},xqa=/%(\d[a-f0-9])/gi,yqa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},oh=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new xDc;if(a.fromString){if(a.fromObject)throw new Uc(2805,!1);this.map=wqa(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(Aqa):[""+d];b.map.set(c,d)})):this.map=null};h=oh.prototype;
h.has=function(a){this.init();return this.map.has(a)};h.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};h.getAll=function(a){this.init();return this.map.get(a)||null};h.keys=function(){this.init();return Array.from(this.map.keys())};h.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};h.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
h.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=zqa(b);return a.map.get(b).map(function(d){return c+"="+zqa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};h.clone=function(a){var b=new oh({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
h.init=function(){var a=this;this.map===null&&(this.map=new Map);this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=(b.op==="a"?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(b.value!==void 0){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);d!==-1&&c.splice(d,1);c.length>0?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var ph=function(a,b,c,d){this.url=b;this.body=null;this.keepalive=this.withCredentials=this.reportProgress=!1;this.responseType="json";this.method=a.toUpperCase();a:switch(this.method){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":a=!1;break a;default:a=!0}if(a||d)this.body=c!==void 0?c:null,c=d;if(c){this.reportProgress=!!c.reportProgress;this.withCredentials=!!c.withCredentials;this.keepalive=!!c.keepalive;c.responseType&&(this.responseType=c.responseType);c.headers&&(this.headers=
c.headers);c.context&&(this.context=c.context);c.params&&(this.params=c.params);c.priority&&(this.priority=c.priority);c.cache&&(this.cache=c.cache);c.credentials&&(this.credentials=c.credentials);if(typeof c.timeout==="number"){if(c.timeout<1||!Number.isInteger(c.timeout))throw new Uc(2822,"");this.timeout=c.timeout}c.mode&&(this.mode=c.mode);c.redirect&&(this.redirect=c.redirect);c.integrity&&(this.integrity=c.integrity);c.referrer&&(this.referrer=c.referrer);c.referrerPolicy&&(this.referrerPolicy=
c.referrerPolicy);this.transferCache=c.transferCache}this.headers!=null||(this.headers=new nh);this.context!=null||(this.context=new wDc);this.params?(c=this.params.toString(),c.length===0?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(d===-1?"?":d<b.length-1?"&":"")+c)):(this.params=new oh,this.urlWithParams=b)},yDc=function(a){return a.body===null?null:typeof a.body==="string"||Bqa(a.body)||Cqa(a.body)||Dqa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof URLSearchParams?
a.body:a.body instanceof oh?a.body.toString():typeof a.body==="object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
ph.prototype.clone=function(a){a=a===void 0?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e,f=(e=a.keepalive)!=null?e:this.keepalive;e=a.priority||this.priority;var g=a.cache||this.cache,k=a.mode||this.mode,m=a.redirect||this.redirect,r=a.credentials||this.credentials,w=a.referrer||this.referrer,x=a.integrity||this.integrity,D=a.referrerPolicy||this.referrerPolicy,H,J=(H=a.transferCache)!=null?H:this.transferCache,O;H=(O=a.timeout)!=null?O:this.timeout;O=a.body!==
void 0?a.body:this.body;var R,V=(R=a.withCredentials)!=null?R:this.withCredentials,ba;R=(ba=a.reportProgress)!=null?ba:this.reportProgress;ba=a.headers||this.headers;var oa=a.params||this.params,ta,ka=(ta=a.context)!=null?ta:this.context;a.setHeaders!==void 0&&(ba=Object.keys(a.setHeaders).reduce(function(Ca,ja){return Ca.set(ja,a.setHeaders[ja])},ba));a.setParams&&(oa=Object.keys(a.setParams).reduce(function(Ca,ja){return Ca.set(ja,a.setParams[ja])},oa));return new ph(b,c,O,{params:oa,headers:ba,
context:ka,reportProgress:R,responseType:d,withCredentials:V,transferCache:J,keepalive:f,cache:g,priority:e,timeout:H,mode:k,redirect:m,credentials:r,referrer:w,integrity:x,referrerPolicy:D})};var Ky=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new nh;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.redirected=a.redirected;this.responseType=a.responseType;this.ok=this.status>=200&&this.status<300},zDc=function(a){a=a===void 0?{}:a;Ky.call(this,a);this.type=2};Y(zDc,Ky);
zDc.prototype.clone=function(a){a=a===void 0?{}:a;return new zDc({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 Ly=function(a){a=a===void 0?{}:a;Ky.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Y(Ly,Ky);
Ly.prototype.clone=function(a){a=a===void 0?{}:a;var b,c;return new Ly({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 ADc=function(a){Ky.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(ADc,Ky);var BDc=new ed("");var CDc=new ed(""),DDc=new ed("",{factory:function(){return[]}}),EDc=new ed(""),FDc=new ed("",{providedIn:"root",factory:function(){return!0}});var GDc=/^\)\]\}',?\n/,My=function(a){this.xhrFactory=a;this.tracingService=p(De,{optional:!0})},HDc=function(a,b){var c;return((c=a.tracingService)==null?0:c.propagate)?a.tracingService.propagate(b):b};
My.prototype.handle=function(a){var b=this;if(a.method==="JSONP")throw new Uc(-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||Dqa(a.body)?null:Cqa(a.body)?
a.body.type||null:Bqa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof oh?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;f!==null&&e.setRequestHeader("Content-Type",f)}a.timeout&&(e.timeout=a.timeout);a.responseType&&(f=a.responseType.toLowerCase(),e.responseType=f!=="json"?f:"text");var g=yDc(a),k=null,m=function(){if(k!==null)return k;var O=e.statusText||"OK",R=new nh(e.getAllResponseHeaders());
return k=new zDc({headers:R,status:e.status,statusText:O,url:e.responseURL||a.url})},r=HDc(b,function(){var O=m(),R=O.headers,V=O.status,ba=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 ta=V>=200&&V<300;if(a.responseType==="json"&&typeof oa==="string"){var ka=oa;oa=oa.replace(GDc,"");try{oa=oa!==""?JSON.parse(oa):null}catch(Ca){oa=ka,ta&&(ta=!1,oa={error:Ca,text:oa})}}ta?(d.next(new Ly({body:oa,headers:R,status:V,statusText:ba,
url:O||void 0})),d.complete()):d.error(new ADc({error:oa,headers:R,status:V,statusText:ba,url:O||void 0}))}),w=HDc(b,function(O){var R=m().url;O=new ADc({error:O,status:e.status||0,statusText:e.statusText||"Unknown Error",url:R||void 0});d.error(O)}),x=w;a.timeout&&(x=HDc(b,function(){var O=m().url;O=new ADc({error:new DOMException("Request timed out","TimeoutError"),status:e.status||0,statusText:e.statusText||"Request timeout",url:O||void 0});d.error(O)}));var D=!1,H=HDc(b,function(O){D||(d.next(m()),
D=!0);var R={type:3,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);a.responseType==="text"&&e.responseText&&(R.partialText=e.responseText);d.next(R)}),J=HDc(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()}})}))};My.\u0275fac=function(a){return new (a||My)(Zc(TCc))};My.\u0275prov=Fc({token:My,factory:My.\u0275fac,providedIn:"root"});var Ny=function(){};Ny.\u0275fac=function(a){return new (a||Ny)};Ny.\u0275prov=Fc({token:Ny,factory:function(a){var b=null;return b=a?new (a||Ny):Zc(My)},providedIn:"root"});var Oy=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=p(Nx);this.contributeToStability=p(FDc)};
Oy.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(q(this.injector.get(DDc)),q(this.injector.get(EDc,[]))))).reduceRight(function(d,e){return Gqa(d,e,b.injector)},Eqa));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)})};Oy.\u0275fac=function(a){return new (a||Oy)(Zc(Ny),Zc($e))};
Oy.\u0275prov=Fc({token:Oy,factory:Oy.\u0275fac,providedIn:"root"});var Py=function(){};Py.\u0275fac=function(a){return new (a||Py)};Py.\u0275prov=Fc({token:Py,factory:function(a){var b=null;return b=a?new (a||Py):Zc(Oy)},providedIn:"root"});var Qy=function(a){this.handler=a};h=Qy.prototype;
h.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof ph)b=a;else{var e=void 0;e=c.headers instanceof nh?c.headers:new nh(c.headers);var f=void 0;c.params&&(f=c.params instanceof oh?c.params:new oh({fromObject:c.params}));b=new ph(a,b,c.body!==void 0?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials,transferCache:c.transferCache,keepalive:c.keepalive,priority:c.priority,cache:c.cache,
mode:c.mode,redirect:c.redirect,credentials:c.credentials,referrer:c.referrer,referrerPolicy:c.referrerPolicy,integrity:c.integrity,timeout:c.timeout})}e=ee(b).pipe(qla(function(g){return d.handler.handle(g)}));if(a instanceof ph||c.observe==="events")return e;a=e.pipe(we(function(g){return g instanceof Ly}));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 Uc(2806,!1);return g.body}));
case "blob":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof Blob))throw new Uc(2807,!1);return g.body}));case "text":return a.pipe(A(function(g){if(g.body!==null&&typeof g.body!=="string")throw new Uc(2808,!1);return g.body}));default:return a.pipe(A(function(g){return g.body}))}case "response":return a;default:throw new Uc(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,Sqa(c,b))};h.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,Sqa(c,b))};Qy.\u0275fac=function(a){return new (a||Qy)(Zc(Py))};Qy.\u0275prov=Fc({token:Qy,factory:Qy.\u0275fac,providedIn:"root"});var Tqa=new ed("",{factory:function(){return!0}}),IDc=new ed("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),Uqa=new ed("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),Ry=function(){this.cookieName=p(IDc);this.doc=p(Uh);this.lastCookieString="";this.lastToken=null};
Ry.prototype.getToken=function(){var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=l(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=l(e==-1?[d,""]:[d.slice(0,e),d.slice(e+1)]);d=e.next().value;e=e.next().value;if(d.trim()===b){b=decodeURIComponent(e);break a}}b=null}this.lastToken=b;this.lastCookieString=a}return this.lastToken};Ry.\u0275fac=function(a){return new (a||Ry)};
Ry.\u0275prov=Fc({token:Ry,factory:Ry.\u0275fac,providedIn:"root"});var mh=function(){};mh.\u0275fac=function(a){return new (a||mh)};mh.\u0275prov=Fc({token:mh,factory:function(a){var b=null;return b=a?new (a||mh):Zc(Ry)},providedIn:"root"});var JDc=new ed("");var Sy=function(){};Sy.\u0275fac=function(a){return new (a||Sy)};Sy.\u0275mod=cf({type:Sy});
Sy.\u0275inj=Gc({providers:[function(){for(var a=[Qy,Oy,{provide:Py,useExisting:Oy},{provide:Ny,useFactory:function(){var d;return(d=p(BDc,{optional:!0}))!=null?d:p(My)}},{provide:DDc,useValue:Vqa,multi:!0}],b=l(ad.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:JDc,useFactory:function(){var a=null;return function(b,c){if(a===null){var d;a=((d=p(CDc,{optional:!0}))!=null?d:[]).reduceRight(Fqa,
Eqa)}d=p(Nx);return p(FDc)?(d=d.add(),a(b,c).pipe(qf(d))):a(b,c)}}},{provide:DDc,useExisting:JDc,multi:!0}]})]});var KDc=Xqa("json");KDc.arrayBuffer=Xqa("arraybuffer");KDc.blob=Xqa("blob");KDc.text=Xqa("text");
var Wqa=function(a,b,c,d,e){Xx.call(this,b,function(g){var k=g.params;var m=g.abortSignal;var r=function(){return H.unsubscribe()};m.addEventListener("abort",r);var w=pg.apply(null,[{value:void 0}].concat(q([]))),x;g=new Promise(function(J){return x=J});var D=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{D({value:d?d(J.body):J.body})}catch(O){D({error:O instanceof
Error?O:new tCc(O)})}break;case 3:f._progress.set(J)}},error:function(J){J instanceof ADc&&(f._headers.set(J.headers),f._statusCode.set(J.status));D({error:J});m.removeEventListener("abort",r)},complete:function(){x&&D({error:new Uc(991,!1)});m.removeEventListener("abort",r)}});return g},c,e,a);var f=this;this._headers=Apa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._progress=Apa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._statusCode=Apa.apply(null,
q([{source:this.extRequest,computation:function(){}}]));this.headers=ah.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(Qy)};Y(Wqa,Xx);Wqa.prototype.set=function(a){Xx.prototype.set.call(this,a);this._headers.set(void 0);this._progress.set(void 0);this._statusCode.set(void 0)};new ed("");new ed("");var Ty=function(){};Ty.\u0275fac=function(a){return new (a||Ty)};Ty.\u0275prov=Fc({token:Ty,factory:function(a){var b=null;return b=a?new (a||Ty):Zc(Uy)},providedIn:"root"});var Uy=function(a){this._doc=a};Y(Uy,Ty);
Uy.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return Le(b,"HTML")?Ke(b):Eja(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 Uc(5200,!1);case 4:return Le(b,"URL")?Ke(b):rja(String(b));case 5:if(Le(b,"ResourceURL"))return Ke(b);throw new Uc(5201,!1);default:throw new Uc(5202,!1);}};Uy.prototype.bypassSecurityTrustHtml=function(a){return new wBc(a)};Uy.prototype.bypassSecurityTrustUrl=function(a){return new xBc(a)};
Uy.prototype.bypassSecurityTrustResourceUrl=function(a){return new yBc(a)};Uy.\u0275fac=function(a){return new (a||Uy)(Zc(Uh))};Uy.\u0275prov=Fc({token:Uy,factory:Uy.\u0275fac,providedIn:"root"});var wsa=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};wsa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var LDc=Gw([""]),MDc=Fw(["\x00"],["\\0"]),NDc=Fw(["\n"],["\\n"]),ODc=Fw(["\x00"],["\\u0000"]),PDc=Gw([""]),QDc=Fw(["\x00"],["\\0"]),RDc=Fw(["\n"],["\\n"]),SDc=Fw(["\x00"],["\\u0000"]);Zqa(function(a){return a(LDc)})||Zqa(function(a){return a(MDc)})||Zqa(function(a){return a(NDc)})||Zqa(function(a){return a(ODc)});Yqa(PDc)&&Yqa(QDc)&&Yqa(RDc)&&Yqa(SDc);var TDc=globalThis.trustedTypes,$qa=TDc,bra;var qh=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};qh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var Cj=new qh(TDc?TDc.emptyHTML:"");var vh=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};vh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var yh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};yh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var ira=new yh("about:invalid#zClosurez");var era=function(a){this.isValid=a},gra=[fra("data"),fra("http"),fra("https"),fra("mailto"),fra("ftp"),new era(function(a){return/^[^:]*([/?#]|$)/.test(a)})],jra=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var GFa=function(a){this.privateDoNotAccessOrElseWrappedScript=a};GFa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var lra=/^[a-z][a-z\d-]*$/i,mra="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),pra="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),qra=["action","formaction","href"];var Vy=function(a){this.decorated=new Uy(a)};Y(Vy,Ty);Vy.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof vh||Ah(b)||b instanceof qh){if(UDc(b,a))return this.decorated.sanitize(a,VDc(this,b));throw Error("Oa`"+HBc[a]+"`"+b);}return this.decorated.sanitize(a,b)};Vy.prototype.bypassSecurityTrustHtml=function(){throw Error("Pa");};Vy.prototype.bypassSecurityTrustUrl=function(){throw Error("Pa");};Vy.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Pa");};
var VDc=function(a,b){if(b!=null){if(b instanceof qh)return a.decorated.bypassSecurityTrustHtml(String(b));if(Ah(b))return a.decorated.bypassSecurityTrustUrl(dra(b));if(b instanceof vh)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},UDc=function(a,b){switch(b){case 1:return a instanceof qh;case 4:return Ah(a)||a instanceof vh;case 5:return a instanceof vh;case 3:return!1;default:return!1}};Vy.\u0275fac=function(a){return new (a||Vy)(Zc(Uh))};Vy.\u0275prov=Fc({token:Vy,factory:Vy.\u0275fac});var WDc=[{provide:Lka,useExisting:Ty},{provide:Ty,useClass:Vy}],Wy=function(){};Wy.\u0275fac=function(a){return new (a||Wy)};Wy.\u0275mod=cf({type:Wy});Wy.\u0275inj=Gc({providers:WDc,imports:[Iy]});var tra;var XDc=function(a,b,c){this.url=a;this.svgText=b;this.options=c},Xy=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},YDc=function(a,b){return a._fontCssClassesByAlias.get(b)||b};
Xy.prototype.setDefaultFontSetClass=function(){this._defaultFontSetClass=ad.apply(0,arguments)};var ZDc=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):fe(Error("Qa`"+d))};h=Xy.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(vra("<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(vra("<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 vra(g)}),qf(function(){return b._inProgressUrlFetches.delete(f)}),Nla());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 XDc(d.url,null,d.options):new XDc(d,null)}};Xy.\u0275fac=function(a){return new (a||Xy)(Zc(Qy,8),Zc(Ty),Zc(Uh,8),Zc(Hx))};Xy.\u0275prov=Fc({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var $Dc=new ed("MAT_ICON_DEFAULT_OPTIONS"),aEc=new ed("mat-icon-location",{providedIn:"root",factory:function(){var a=p(Uh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}}),bEc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),cEc=bEc.map(function(a){return"["+a+"]"}).join(", "),dEc=/^url\(['"]?#(.*?)['"]?\)$/,Yy=function(){this._elementRef=p(Jd);this._iconRegistry=p(Xy);this._location=p(aEc);this._errorHandler=
p(Hx);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=Rd.EMPTY;var a=p(new yx("aria-hidden"),{optional:!0}),b=p($Dc,{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=Yy.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?YDc(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(cEc),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++)bEc.forEach(function(d){return function(e){var f=b[d.i$jscomp$422],g=f.getAttribute(e);if(g=g?g.match(dEc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:g[1]})}}}(a))};
h._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=l(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=ZDc(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(Yy.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())}}});Yy.\u0275fac=function(a){return new (a||Yy)};
Yy.\u0275cmp=C({type:Yy,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),zg(b.color?"mat-"+b.color:""),yg("mat-icon-inline",b.inline)("mat-icon-no-color",b.color!=="primary"&&b.color!=="accent"&&b.color!=="warn"))},inputs:{color:"color",
inline:[2,"inline","inline",bh],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 eEc=new ed("cdk-dir-doc",{providedIn:"root",factory:function(){return p(Uh)}});var fEc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,ei=function(){this.valueSignal=pg.apply(null,["ltr"].concat(q([])));this.change=new gj;var a=p(eEc,{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)?fEc.test(navigator.language)?
"rtl":"ltr":e==="rtl"?"rtl":"ltr";d.call(c,b)}};ei.prototype.ngOnDestroy=function(){this.change.complete()};da.Object.defineProperties(ei.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.valueSignal()}}});ei.\u0275fac=function(a){return new (a||ei)};ei.\u0275prov=Fc({token:ei,factory:ei.\u0275fac,providedIn:"root"});var Zy=function(){};Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275mod=cf({type:Zy});Zy.\u0275inj=Gc({});var $y=function(){};$y.\u0275fac=function(a){return new (a||$y)};$y.\u0275mod=cf({type:$y});$y.\u0275inj=Gc({imports:[Zy]});var yra,zra="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 Bra;var Fra,Dra;var Hra;var gEc;try{gEc=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){gEc=!1}
var Yh=function(){this.EDGE=(this.isBrowser=(this._platformId=p(MAc))?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&&!gEc)&&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};Yh.\u0275fac=function(a){return new (a||Yh)};Yh.\u0275prov=Fc({token:Yh,factory:Yh.\u0275fac,providedIn:"root"});var hEc=new ed("cdk-input-modality-detector-options"),iEc={ignoreKeys:[18,17,224,91,16]},jEc={passive:!0,capture:!0},az=function(){var a=this;this._platform=p(Yh);this._mostRecentTarget=null;this._modality=new Wj(null);this._lastTouchMs=0;this._onKeydown=function(f){var g,k;((g=a._options)==null?0:(k=g.ignoreKeys)==null?0:k.some(function(m){return m===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=Mh(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(wra(f)?
"keyboard":"mouse"),a._mostRecentTarget=Mh(f))};this._onTouchstart=function(f){xra(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=Mh(f))};var b=p(Tg),c=p(Uh),d=p(hEc,{optional:!0});this._options=Object.assign({},iEc,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,jEc),e.listen(c,"mousedown",a._onMousedown,jEc),e.listen(c,"touchstart",a._onTouchstart,jEc)]})}};az.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};da.Object.defineProperties(az.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});az.\u0275fac=function(a){return new (a||az)};az.\u0275prov=Fc({token:az,factory:az.\u0275fac,providedIn:"root"});var kEc=new ed("cdk-focus-monitor-default-options"),lEc=Kh({passive:!0,capture:!0}),bz=function(){var a=this;this._ngZone=p(Tg);this._platform=p(Yh);this._inputModalityDetector=p(az);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(Uh);this._stopInputModalityDetector=new sf;this._rootNodeFocusAndBlurListener=function(c){for(var d=Mh(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=p(kEc,{optional:!0}))==null?void 0:b.detectionMode)||0};
bz.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=Qh(a);if(!this._platform.isBrowser||a.nodeType!==1)return ee();var c=Ira(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};bz.prototype.stopMonitoring=function(a){a=Qh(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};
var cz=function(a,b,c,d){b=Qh(b);b===a._document.activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=l(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),typeof b.focus==="function"&&b.focus(d))};h=bz.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=Mh(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,lEc);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,lEc)});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,lEc),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lEc),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};bz.\u0275fac=function(a){return new (a||bz)};bz.\u0275prov=Fc({token:bz,factory:bz.\u0275fac,providedIn:"root"});
var dz=function(){this._elementRef=p(Jd);this._focusMonitor=p(bz);this._focusOrigin=null;this.cdkFocusChange=new gj};dz.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)})};dz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
da.Object.defineProperties(dz.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});dz.\u0275fac=function(a){return new (a||dz)};dz.\u0275dir=df({type:dz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var ez=function(){this._platform=p(Yh)};ez.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};ez.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var mEc=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&&(Lra(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=Lra(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};
ez.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")||Kra(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275prov=Fc({token:ez,factory:ez.\u0275fac,providedIn:"root"});var nEc=new WeakMap,bi=function(){this._injector=p(Ae);this._environmentInjector=p($e)};bi.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(Yg),c=nEc.get(b);c||(c={loaders:new Set,refs:[]},nEc.set(b,c),b.onDestroy(function(){var d;(d=nEc.get(b))==null||d.refs.forEach(function(e){return e.destroy()});nEc.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(Epa(a,{environmentInjector:this._environmentInjector})))};bi.\u0275fac=function(a){return new (a||bi)};
bi.\u0275prov=Fc({token:bi,factory:bi.\u0275fac,providedIn:"root"});var fz=function(){};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275cmp=C({type:fz,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 iz=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 oEc(g)};this.endAnchorListener=function(){return gz(g)};this._enabled=!0;(e===void 0?0:e)||hz(this)};
iz.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 hz=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))},pEc=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})},
qEc=function(a){new Promise(function(b){a._executeOnStable(function(){return b(gz(a))})})};iz.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)};
iz.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 gz(this,a)};var gz=function(a,b){(a=a._getRegionBoundary("start"))&&a.focus(b);return!!a},oEc=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};h=iz.prototype;h.hasAttached=function(){return this._hasAttached};
h._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&mEc(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)&&mEc(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 rEc=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
iz.prototype._executeOnStable=function(a){this._injector?Ge(a,{injector:this._injector}):setTimeout(a)};da.Object.defineProperties(iz.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 jz=function(){this._checker=p(ez);this._ngZone=p(Tg);this._document=p(Uh);this._injector=p(Ae);p(bi).load(fz)};
jz.prototype.create=function(a,b){return new iz(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};jz.\u0275fac=function(a){return new (a||jz)};jz.\u0275prov=Fc({token:jz,factory:jz.\u0275fac,providedIn:"root"});var kz=function(){this._elementRef=p(Jd);this._focusTrapFactory=p(jz);this._previouslyFocusedElement=null;p(Yh).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};h=kz.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||hz(a);this.autoCapture&&this._captureFocus()};h.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&hz(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=Lh();var a;(a=this.focusTrap)==null||pEc(a)};da.Object.defineProperties(kz.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)}}});
kz.\u0275fac=function(a){return new (a||kz)};kz.\u0275dir=df({type:kz,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",bh],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",bh]},exportAs:["cdkTrapFocus"],features:[xx]});var sEc=new Set,lz,oi=function(){this._platform=p(Yh);this._nonce=p(NAc,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Mra};oi.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!sEc.has(a))try{lz||(lz=document.createElement("style"),b&&lz.setAttribute("nonce",b),lz.setAttribute("type","text/css"),document.head.appendChild(lz)),lz.sheet&&(lz.sheet.insertRule("@media "+a+" {body{ }}",0),sEc.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
oi.\u0275fac=function(a){return new (a||oi)};oi.\u0275prov=Fc({token:oi,factory:oi.\u0275fac,providedIn:"root"});var mz=function(){this._mediaMatcher=p(oi);this._zone=p(Tg);this._queries=new Map;this._destroySubject=new sf};mz.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
mz.prototype.observe=function(a){var b=this;a=Nra(Nh(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}))};
mz.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};mz.\u0275fac=function(a){return new (a||mz)};
mz.\u0275prov=Fc({token:mz,factory:mz.\u0275fac,providedIn:"root"});var nz=function(){var a=this;this._platform=p(Yh);this._document=p(Uh);this._breakpointSubscription=p(mz).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},tEc=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};nz.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
nz.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=tEc(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")}};
nz.\u0275fac=function(a){return new (a||nz)};nz.\u0275prov=Fc({token:nz,factory:nz.\u0275fac,providedIn:"root"});var uEc=new ed("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),vEc=new ed("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var oz=function(){};oz.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};oz.\u0275fac=function(a){return new (a||oz)};oz.\u0275prov=Fc({token:oz,factory:oz.\u0275fac,providedIn:"root"});var pz=function(){this._mutationObserverFactory=p(oz);this._observedElements=new Map;this._ngZone=p(Tg)};h=pz.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=Qh(a);return new Vd(function(d){var e=b._observeElement(c).pipe(A(function(f){return f.filter(function(g){return!Ora(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)}};pz.\u0275fac=function(a){return new (a||pz)};pz.\u0275prov=Fc({token:pz,factory:pz.\u0275fac,providedIn:"root"});
var qz=function(){this._contentObserver=p(pz);this._elementRef=p(Jd);this.event=new gj;this._disabled=!1;this._currentSubscription=null};qz.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};qz.prototype.ngOnDestroy=function(){this._unsubscribe()};qz.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)};
qz.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};da.Object.defineProperties(qz.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=Rh(a);this._subscribe()}}});qz.\u0275fac=function(a){return new (a||qz)};
qz.\u0275dir=df({type:qz,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",bh],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var rz=function(){};rz.\u0275fac=function(a){return new (a||rz)};rz.\u0275mod=cf({type:rz});rz.\u0275inj=Gc({providers:[oz]});var wEc=0,sz=function(){this._ngZone=p(Tg);this._defaultOptions=p(vEc,{optional:!0});this._document=p(Uh);this._liveElement=p(uEc,{optional:!0})||this._createLiveElement()};h=sz.prototype;
h.announce=function(a){var b=ad.apply(1,arguments),c=this,d=this._defaultOptions;if(b.length===1&&typeof b[0]==="number")var e=b[0];else{b=l(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");e==null&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(g){return c._currentResolve=g}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){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-"+wEc++;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)}};sz.\u0275fac=function(a){return new (a||sz)};sz.\u0275prov=Fc({token:sz,factory:sz.\u0275fac,providedIn:"root"});var tz=function(){p(nz)._applyBodyHighContrastModeCssClasses()};tz.\u0275fac=function(a){return new (a||tz)};tz.\u0275mod=cf({type:tz});tz.\u0275inj=Gc({imports:[rz]});var Sra=0,uz=function(){this._platform=p(Yh);this._document=p(Uh);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+Sra++;p(bi).load(fz);this._id=p(LAc)+"-"+Sra++},vz=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=Rra(c,d);typeof c!=="string"?(Tra(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)}},wz=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
Rra(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=uz.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");Tra(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(Rra(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=Pra(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);Qra(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--;Sh(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};h._isElementDescribedByMessage=function(a,b){a=Pra(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};uz.\u0275fac=function(a){return new (a||uz)};uz.\u0275prov=Fc({token:uz,factory:uz.\u0275fac,providedIn:"root"});var xz=function(a,b,c,d,e,f,g,k){iz.call(this,a,b,c,d,g.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Y(xz,iz);xz.prototype.destroy=function(){this._focusTrapManager.deregister(this);iz.prototype.destroy.call(this)};xz.prototype._enable=function(){this._inertStrategy.preventFocus(this);rEc(this,!0)};xz.prototype._disable=function(){this._inertStrategy.allowFocus(this);rEc(this,!1)};
da.Object.defineProperties(xz.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 xEc=function(){this._listener=null};xEc.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)})};xEc.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
xEc.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)&&gz(a)})};var yEc=new ed("FOCUS_TRAP_INERT_STRATEGY");var yz=function(){this._focusTrapStack=[]};yz.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()};yz.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())};yz.\u0275fac=function(a){return new (a||yz)};yz.\u0275prov=Fc({token:yz,factory:yz.\u0275fac,providedIn:"root"});var zz=function(){this._checker=p(ez);this._ngZone=p(Tg);this._focusTrapManager=p(yz);this._document=p(Uh);this._injector=p(Ae);this._inertStrategy=p(yEc,{optional:!0})||new xEc};zz.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new xz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};zz.\u0275fac=function(a){return new (a||zz)};zz.\u0275prov=Fc({token:zz,factory:zz.\u0275fac,providedIn:"root"});var zEc={},di=function(){this._appId=p(LAc)};di.prototype.getId=function(a,b){b=b===void 0?!1:b;this._appId!=="ng"&&(a+=this._appId);zEc.hasOwnProperty(a)||(zEc[a]=0);return a+(b?di._infix+"-":"")+zEc[a]++};di._infix="a"+Math.floor(Math.random()*1E5).toString();di.\u0275fac=function(a){return new (a||di)};di.\u0275prov=Fc({token:di,factory:di.\u0275fac,providedIn:"root"});var AEc=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=AEc.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,m=void 0;if(((g=(f=b)._skipPredicateFn)==null||!g.call(f,e))&&((m=(k=e).getLabel)==null?void 0:m.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var Az=function(a,b){var c=this;this._items=a;this._activeItemIndex=pg.apply(null,[-1].concat(q([])));this._activeItem=pg.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 ig?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}]))))};Az.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var Bz=function(a){a._wrap=!0;return a},Cz=function(a,b){a._vertical=b===void 0?!0:b;return a},Dz=function(a,b){a._horizontal=b;return a},BEc=function(a){a._allowedModifierKeys=["shiftKey"];return a},CEc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new AEc(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},Ez=function(a){a._homeAndEnd=!0;return a},DEc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};Az.prototype.setActiveItem=function(a){var b=this._activeItem();Fz(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex())};
Az.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){EEc(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||Jh(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};Az.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var EEc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};Az.prototype.setNextItemActive=function(){this._activeItemIndex()<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
Az.prototype.setPreviousItemActive=function(){this._activeItemIndex()<0&&this._wrap?EEc(this):this._setActiveItemByDelta(-1)};var Fz=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=Az.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 ig?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(Az.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex()}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var Gz=function(){Az.apply(this,arguments)};Y(Gz,Az);Gz.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Az.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var Hz=function(){Az.apply(this,arguments);this._origin="program"};Y(Hz,Az);var FEc=function(a,b){a._origin=b;return a};Hz.prototype.setActiveItem=function(a){Az.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var GEc=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 ig?(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=GEc.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 Iz(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(){Iz(this,this._findNextAvailableItemIndex(-1))};h._focusLastItem=function(){Iz(this,this._findPreviousAvailableItemIndex(this._items.length))};h._focusNextItem=function(){Iz(this,this._findNextAvailableItemIndex(this._activeItemIndex))};h._focusPreviousItem=function(){Iz(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var Iz=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=GEc.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 AEc(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){Iz(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)&&Iz(this,a)}};
h._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?Ura(this._activeItem.getChildren()).pipe(nf(1)).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&Iz(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?Ura(a.getChildren()):ee(this._items.filter(function(b){return b.getParent()===null}))).pipe(nf(1)).subscribe(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};h._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new ed("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new GEc(a,b)}}});var Jz=function(){this._attachedOverlays=[];this._document=p(Uh)};Jz.prototype.ngOnDestroy=function(){this.detach()};Jz.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};Jz.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};Jz.\u0275fac=function(a){return new (a||Jz)};Jz.\u0275prov=Fc({token:Jz,factory:Jz.\u0275fac,providedIn:"root"});var ji=function(){Jz.apply(this,arguments);var a=this;this._ngZone=p(Tg);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(ji,Jz);
ji.prototype.add=function(a){var b=this;Jz.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};ji.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);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 li=function(){Jz.apply(this,arguments);var a=this;this._platform=p(Yh);this._ngZone=p(Tg);this._renderer=p(af).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=Mh(b)};this._clickListener=function(b){var c=Mh(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(Vra(k.overlayElement,c)||Vra(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(m){return function(){return m.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Y(li,Jz);
li.prototype.add=function(a){var b=this;Jz.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}};li.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}};li.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(li)))(b||li)}}();li.\u0275prov=Fc({token:li,factory:li.\u0275fac,providedIn:"root"});var ci=function(){};ci.\u0275fac=function(a){return new (a||ci)};
ci.\u0275cmp=C({type:ci,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"],encapsulation:2,
changeDetection:0});var Zh=function(){this._platform=p(Yh);this._document=p(Uh);this._styleLoader=p(bi)};Zh.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var gsa=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
Zh.prototype._createContainer=function(){if(this._platform.isBrowser||Jra())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");Jra()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
Zh.prototype._loadStyles=function(){this._styleLoader.load(ci)};Zh.\u0275fac=function(a){return new (a||Zh)};Zh.\u0275prov=Fc({token:Zh,factory:Zh.\u0275fac,providedIn:"root"});var HEc=new ed("VIRTUAL_SCROLL_STRATEGY");var IEc=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};IEc.prototype.attach=function(a){this._viewport=a;this._updateTotalContentSize();this._updateRenderedRange()};IEc.prototype.detach=function(){this._scrolledIndexChange.complete();this._viewport=null};
IEc.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())}};
IEc.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)))));JEc(this._viewport,a);KEc(this._viewport,Math.round(this._itemSize*a.start));this._scrolledIndexChange.next(Math.floor(e))}};
var Kz=function(){this._itemSize=20;this._minBufferPx=100;this._maxBufferPx=200;this._scrollStrategy=new IEc(this.itemSize,this.minBufferPx,this.maxBufferPx)};Kz.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(Kz.prototype,{itemSize:{configurable:!0,enumerable:!0,get:function(){return this._itemSize},set:function(a){this._itemSize=Rh(a)}},minBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._minBufferPx},set:function(a){this._minBufferPx=Rh(a)}},maxBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._maxBufferPx},set:function(a){this._maxBufferPx=Rh(a)}}});Kz.\u0275fac=function(a){return new (a||Kz)};
Kz.\u0275dir=df({type:Kz,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Ig([{provide:HEc,useFactory:function(a){return a._scrollStrategy},deps:[Xc(function(){return Kz})]}]),xx]});var Vh=function(){this._ngZone=p(Tg);this._platform=p(Yh);this._renderer=p(af).createRenderer(null,null);this._scrolled=new sf;this._scrolledCount=0;this.scrollContainers=new Map};Vh.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};Vh.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
Vh.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()};Vh.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 LEc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
Vh.prototype._scrollableContainsElement=function(a,b){b=Qh(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};Vh.\u0275fac=function(a){return new (a||Vh)};Vh.\u0275prov=Fc({token:Vh,factory:Vh.\u0275fac,providedIn:"root"});var Lz=function(){this.elementRef=p(Jd);this.scrollDispatcher=p(Vh);this.ngZone=p(Tg);this.dir=p(ei,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new sf;this._renderer=p(fi);this._elementScrolled=new sf};h=Lz.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&&Gra()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),Gra()==2?a.left=a.right:Gra()==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;Era()?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&&Gra()==2?a=="left"?b.scrollWidth-b.clientWidth-b.scrollLeft:b.scrollLeft:c&&Gra()==1?a=="left"?b.scrollLeft+b.scrollWidth-b.clientWidth:-b.scrollLeft:a=="left"?b.scrollLeft:b.scrollWidth-b.clientWidth-b.scrollLeft};
Lz.\u0275fac=function(a){return new (a||Lz)};Lz.\u0275dir=df({type:Lz,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var MEc=function(){};var NEc=function(a){this._data=a};Y(NEc,MEc);NEc.prototype.connect=function(){return ye(this._data)?this._data:ee(this._data)};NEc.prototype.disconnect=function(){};var OEc=new ed("_ViewRepeater");var PEc=function(){};PEc.prototype.applyChanges=function(a,b,c,d,e){gCc(a,function(f,g,k){if(f.previousIndex==null){var m=c(f,g,k);m=b.createEmbeddedView(m.templateRef,m.context,m.index);g=1}else k==null?(b.remove(g),g=3):(m=b.get(g),b.move(m,k),g=2);if(e){var r;e({context:(r=m)==null?void 0:r.context,operation:g,record:f})}})};PEc.prototype.detach=function(){};var QEc=function(){this.viewCacheSize=20;this._viewCache=[]};h=QEc.prototype;h.applyChanges=function(a,b,c,d,e){var f=this;gCc(a,function(g,k,m){var r;if(g.previousIndex==null)var w=(r=f._insertView(function(){return c(g,k,m)},m,b,d(g)))?1:0;else m==null?(f._detachAndCacheView(k,b),w=3):(r=f._moveView(k,m,b,d(g)),w=2);if(e){var x;e({context:(x=r)==null?void 0:x.context,operation:w,record:g})}})};
h.detach=function(){for(var a=l(this._viewCache),b=a.next();!b.done;b=a.next())b.value.destroy();this._viewCache=[]};h._insertView=function(a,b,c,d){if(b=this._insertViewFromCache(b,c))b.context.$implicit=d;else return a=a(),c.createEmbeddedView(a.templateRef,a.context,a.index)};h._detachAndCacheView=function(a,b){a=b.detach(a);this._maybeCacheView(a,b)};h._moveView=function(a,b,c,d){a=c.get(a);c.move(a,b);a.context.$implicit=d;return a};
h._maybeCacheView=function(a,b){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(a);else{var c=b.indexOf(a);c===-1?a.destroy():b.remove(c)}};h._insertViewFromCache=function(a,b){var c=this._viewCache.pop();c&&b.insert(c,a);return c||null};var Mz=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=Mz.prototype;
h.select=function(){var a=this;ad.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.deselect=function(){var a=this;ad.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
h.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};h.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};h.isEmpty=function(){return this._selection.size===0};h.hasValue=function(){return!this.isEmpty()};h.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
h._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};h._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
h._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};h._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};h._verifyValueAssignment=function(){};h._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
h._getConcreteValue=function(a,b){if(this.compareWith){var c;b=(c=b)!=null?c:this._selection;b=l(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c}return a};da.Object.defineProperties(Mz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var Nz=function(){this._listeners=[]};Nz.prototype.notify=function(a,b){for(var c=l(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};Nz.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};Nz.prototype.ngOnDestroy=function(){this._listeners=[]};Nz.\u0275fac=function(a){return new (a||Nz)};Nz.\u0275prov=Fc({token:Nz,factory:Nz.\u0275fac,providedIn:"root"});var Th=function(){var a=this;this._platform=p(Yh);this._change=new sf;this._document=p(Uh);var b=p(Tg),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=Th.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}};Th.\u0275fac=function(a){return new (a||Th)};Th.\u0275prov=Fc({token:Th,factory:Th.\u0275fac,providedIn:"root"});var REc=new ed("VIRTUAL_SCROLLABLE"),Oz=function(){Lz.call(this)};Y(Oz,Lz);Oz.\u0275fac=function(a){return new (a||Oz)};Oz.\u0275dir=df({type:Oz,features:[Gf]});var SEc=["contentWrapper"],TEc=typeof requestAnimationFrame!=="undefined"?hBc:Lr,Pz=function(){Lz.call(this);var a=this;this.elementRef=p(Jd);this._changeDetectorRef=p(Px);this._scrollStrategy=p(HEc,{optional:!0});this.scrollable=p(REc,{optional:!0});this._platform=p(Yh);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=pg.apply(null,[""].concat(q([])));this._totalContentHeight=pg.apply(null,[""].concat(q([])));this._renderedRange={start:0,end:0};this._renderedContentOffset=this._viewportSize=this._dataLength=0;this._renderedContentOffsetNeedsRewrite=!1;this._changeDetectionNeeded=pg.apply(null,[!1].concat(q([])));this._runAfterChangeDetection=[];this._viewportChanges=Rd.EMPTY;this._injector=p(Ae);this._isDestroyed=
!1;this._viewportChanges=p(Th).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(Yg).injector}])));p(Ee).onDestroy(function(){return void b.destroy()})};Y(Pz,Oz);Pz.\u0275dir=Oz.\u0275dir;h=Pz.prototype;
h.ngOnInit=function(){var a=this;this._platform.isBrowser&&(this.scrollable===this&&Oz.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,TEc),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;Oz.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 JEc=function(a,b){Xra(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(){}))},KEc=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;KEc(a,a._renderedContentOffset)}}))};
Pz.prototype.measureScrollOffset=function(a){var b=this;return Math.max(0,(this.scrollable==this?function(c){return Oz.prototype.measureScrollOffset.call(b,c)}:function(c){return b.scrollable.measureScrollOffset(c)})(a!=null?a:this.orientation==="horizontal"?"start":"top")-UEc(this))};var UEc=function(a){var b=a.orientation==="horizontal"?"left":"top";var c=a.scrollable.elementRef.nativeElement.getBoundingClientRect()[b];return a.elementRef.nativeElement.getBoundingClientRect()[b]-c};
Pz.prototype._measureViewportSize=function(){var a=this.scrollable.elementRef.nativeElement;this._viewportSize=this.orientation==="horizontal"?a.clientWidth:a.clientHeight};Pz.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)})})})};
Pz.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=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c()},{injector:a._injector})})};
Pz.prototype._calculateSpacerSize=function(){this._totalContentHeight.set(this.orientation==="horizontal"?"":this._totalContentSize+"px");this._totalContentWidth.set(this.orientation==="horizontal"?this._totalContentSize+"px":"")};da.Object.defineProperties(Pz.prototype,{orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation!==a&&(this._orientation=a,this._calculateSpacerSize())}}});Pz.\u0275fac=function(a){return new (a||Pz)};
Pz.\u0275cmp=C({type:Pz,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(a,b){a&1&&jg(SEc,7);if(a&2){var c;ng(c=og())&&(b._contentWrapper=c.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(a,b){a&2&&yg("cdk-virtual-scroll-orientation-horizontal",b.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",b.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",bh]},outputs:{scrolledIndexChange:"scrolledIndexChange"},
features:[Ig([{provide:Lz,useFactory:function(){return p(REc,{optional:!0})||p(Pz)}}]),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&&(eg(),Tf(0,"div",1,0),fg(2),Uf(),Vf(3,"div",2));a&2&&(B(3),xg("width",b._totalContentWidth())("height",b._totalContentHeight()))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"],
encapsulation:2,changeDetection:0});var Qz=function(){var a=this;this._viewContainerRef=p(hg);this._template=p(gg);this._differs=p(Sx);this._viewRepeater=p(OEc);this._viewport=p(Pz,{skipSelf:!0});this.viewChange=new sf;this._dataSourceChanges=new sf;this.dataStream=this._dataSourceChanges.pipe(zf(null),vf(),Af(function(c){var d=l(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(Tg);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=Qz.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});hCc(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(Qz.prototype,{cdkVirtualForOf:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForOf},set:function(a){this._cdkVirtualForOf=a;Wra(a)?this._dataSourceChanges.next(a):this._dataSourceChanges.next(new NEc(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=Rh(a)}}});Qz.\u0275fac=function(a){return new (a||Qz)};
Qz.\u0275dir=df({type:Qz,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Ig([{provide:OEc,useClass:QEc}])]});var Rz=function(){};Rz.\u0275fac=function(a){return new (a||Rz)};Rz.\u0275mod=cf({type:Rz});Rz.\u0275inj=Gc({});var Sz=function(){};Sz.\u0275fac=function(a){return new (a||Sz)};Sz.\u0275mod=cf({type:Sz});Sz.\u0275inj=Gc({imports:[Zy,Rz,Zy,Rz]});var VEc=Era(),Yra=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};Yra.prototype.attach=function(){};
Yra.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=Ph(-this._previousScrollPosition.left);a.style.top=Ph(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
Yra.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");VEc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);VEc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
Yra.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 WEc=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()})}};WEc.prototype.attach=function(a){this._overlayRef=a};
WEc.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)}};WEc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};WEc.prototype.detach=function(){this.disable();this._overlayRef=null};var XEc=function(){};XEc.prototype.enable=function(){};XEc.prototype.disable=function(){};XEc.prototype.attach=function(){};var bsa=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};bsa.prototype.attach=function(a){this._overlayRef=a};
bsa.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;$ra(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
bsa.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};bsa.prototype.detach=function(){this.disable();this._overlayRef=null};var Tz=function(){var a=this;this._injector=p(Ae);this.noop=function(){return new XEc};this.close=function(b){var c=a._injector;return new WEc(c.get(Vh),c.get(Tg),c.get(Th),b)};this.block=function(){return Zra(a._injector)};this.reposition=function(b){return Wh(a._injector,b)}};Tz.\u0275fac=function(a){return new (a||Tz)};Tz.\u0275prov=Fc({token:Tz,factory:Tz.\u0275fac,providedIn:"root"});var gi=function(a){this.scrollStrategy=new XEc;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c]!==void 0&&(this[c]=a[c])}};var YEc=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)};
YEc.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 hi=function(a,b,c,d,e,f,g,k,m,r,w,x){r=r===void 0?!1:r;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=g;this._location=k;this._outsideClickDispatcher=m;this._animationsDisabled=r;this._injector=w;this._renderer=x;this._backdropClick=new 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=hi.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()){ZEc(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 $Ec=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};hi.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
hi.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};hi.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};hi.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var aFc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};h=hi.prototype;h._updateElementDirection=function(){this._host.setAttribute("dir",aFc(this))};
h._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Ph(this._config.width);a.height=Ph(this._config.height);a.minWidth=Ph(this._config.minWidth);a.minHeight=Ph(this._config.minHeight);a.maxWidth=Ph(this._config.maxWidth);a.maxHeight=Ph(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)if(c instanceof Element)c.after(this._host);else{if(c.type==="parent"){var d;(d=c.element)==null||d.appendChild(this._host)}}else{var e;(e=this._previousHostParent)==null||e.appendChild(this._host)}}if(this._config.usePopover)try{this._host.showPopover()}catch(f){}};
h._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new YEc(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 ZEc=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=hi.prototype;h._toggleClasses=function(a,b,c){b=Nh(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(hi.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var bFc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var csa=/([A-Za-z%]+)$/,Xh=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)};Xh.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()})};
Xh.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)cFc(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=gsa(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,g=l(this._preferredPositions),k=g.next();!k.done;k=g.next()){k=k.value;var m=this._getOriginPoint(a,d,k),r=this._getOverlayPoint(m,b,k),w=this._getOverlayFit(r,b,c,k);if(w.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,m);return}if(this._canFitWithFlexibleDimensions(w,r,c))e.push({position:k,origin:m,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(m,k)});else if(!f||f.overlayFit.visibleArea<w.visibleArea)f={overlayFit:w,
overlayPoint:r,originPoint:m,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=l(e);for(c=e.next();!c.done;c=e.next())c=c.value,d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1),d>b&&(b=d,a=c);this._isPushed=!1;this._applyPosition(a.position,a.origin)}else this._canPush&&(this._isPushed=!0),this._applyPosition(f.position,f.originPoint)}};Xh.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
Xh.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ai(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 cFc=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=gsa(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},dFc=function(a,b){a._scrollables=b;return a},Uz=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},Vz=function(a,b){a._viewportMargin=b;return a},Wz=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},eFc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},fFc=function(a,b){a._canPush=b===void 0?!0:b;return a},gFc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};Xh.prototype.setOrigin=function(a){this._origin=a;return this};var hFc=function(a,b){a._transformOriginSelector=b;return a},iFc=function(a,b){a._popoverLocation=b;return a};h=Xh.prototype;
h.getPopoverInsertionPoint=function(){if(this._popoverLocation==="global")return null;var a=null;this._popoverLocation==="inline"?this._origin instanceof Jd?a=this._origin.nativeElement:this._origin instanceof Element&&(a=this._origin):a=this._popoverLocation.element;return this._popoverLocation==="inline"?a:a?{type:"parent",element:a}:null};
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=esa(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=dsa(this._overlayRef.getConfig().minHeight);var e=dsa(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=esa(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 bFc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};h._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a=a.overlayX==="center"?"center":this._isRtl()?a.overlayX==="start"?"right":"left":a.overlayX==="start"?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
h._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if(b.overlayY==="top"){var e=a.y;var f=c.height-e+this._getViewportMarginBottom()}else if(b.overlayY==="bottom"){var g=c.height-a.y+this._getViewportMarginTop()+this._getViewportMarginBottom();f=c.height-g+this._getViewportMarginTop()}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=e*2;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k=b.overlayX==="start"&&!d||
b.overlayX==="end"&&d;if(b.overlayX==="end"&&!d||b.overlayX==="start"&&d){var m=c.width-a.x+this._getViewportMarginStart()+this._getViewportMarginEnd();b=a.x-this._getViewportMarginStart()}else if(k){var r=a.x;b=c.right-a.x-this._getViewportMarginEnd()}else r=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=r*2,r=a.x-r,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(r=a.x-c/2);return{top:e,left:r,bottom:g,right:m,width:b,height:f}};
h._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right="auto",c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.width=Ph(a.width);c.height=Ph(a.height);
c.top=Ph(a.top)||"auto";c.bottom=Ph(a.bottom)||"auto";c.left=Ph(a.left)||"auto";c.right=Ph(a.right)||"auto";c.alignItems=b.overlayX==="center"?"center":b.overlayX==="end"?"flex-end":"flex-start";c.justifyContent=b.overlayY==="center"?"center":b.overlayY==="bottom"?"flex-end":"flex-start";d&&(c.maxHeight=Ph(d));e&&(c.maxWidth=Ph(e))}this._lastBoundingBoxSize=a;ai(this._boundingBox.style,c)};
h._resetBoundingBoxStyles=function(){ai(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};h._resetOverlayElementStyles=function(){ai(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();ai(c,this._getExactOverlayY(b,a,g));ai(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=Ph(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Ph(f.maxWidth):e&&(c.maxWidth=""));ai(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=Ph(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=Ph(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:asa(a,c),isOriginOutsideView:$ra(a,c),isOverlayClipped:asa(b,c),isOverlayOutsideView:$ra(b,c)}};h._subtractOverflows=function(a){return ad.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 aFc(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&&Nh(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(Xh.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var Xz=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};h=Xz.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 Yz=function(a){a.left("");a._xPosition="center";return a},jFc=function(a){a.top("");a._alignItems="center";return a};
Xz.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=(d==="100%"||d==="100vw")&&(!f||f==="100%"||f==="100vw");e=(e==="100%"||e==="100vh")&&(!c||c==="100%"||c==="100vh");f=this._xPosition;c=this._xOffset;var g=this._overlayRef.getConfig().direction==="rtl",k="",m="",r="";if(d)r="flex-start";else if(f==="center")r=
"center",g?m=c:k=c;else if(g)if(f==="left"||f==="end")r="flex-end",k=c;else{if(f==="right"||f==="start")r="flex-start",m=c}else if(f==="left"||f==="start")r="flex-start",k=c;else if(f==="right"||f==="end")r="flex-end",m=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":m;b.justifyContent=r;b.alignItems=e?"flex-start":this._alignItems}};
Xz.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 Zz=function(){this._injector=p(Ae)};Zz.prototype.global=function(){return new Xz};var $z=function(a,b){return $h(a._injector,b)};Zz.\u0275fac=function(a){return new (a||Zz)};Zz.\u0275prov=Fc({token:Zz,factory:Zz.\u0275fac,providedIn:"root"});var bA=function(){};bA.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};bA.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};da.Object.defineProperties(bA.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var cA=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Y(cA,bA);
var dA=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Y(dA,bA);dA.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return bA.prototype.attach.call(this,a)};dA.prototype.detach=function(){this.context=void 0;return bA.prototype.detach.call(this)};da.Object.defineProperties(dA.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var eA=function(){this._isDisposed=!1};h=eA.prototype;
h.hasAttached=function(){return!!this._attachedPortal};h.attach=function(a){if(a instanceof cA)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof dA)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 ii=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Y(ii,eA);
ii.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(zx,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||JAc;c=b.get($e,e.injector);d=Epa(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});VBc(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};
ii.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};ii.prototype.dispose=function(){eA.prototype.dispose.call(this);this.outletElement.remove()};ii.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var fA=function(){var a=p(gg),b=p(hg);dA.call(this,a,b)};Y(fA,dA);fA.\u0275fac=function(a){return new (a||fA)};fA.\u0275dir=df({type:fA,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Gf]});var gA=function(){this._isDisposed=!1;this._moduleRef=p(zx,{optional:!0});this._document=p(Uh);this._viewContainerRef=p(hg);this._isInitialized=!1;this.attached=new gj};Y(gA,eA);h=gA.prototype;h.ngOnInit=function(){this._isInitialized=!0};
h.ngOnDestroy=function(){eA.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]);eA.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});eA.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(gA.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&eA.prototype.detach.call(this),a&&eA.prototype.attach.call(this,a),this._attachedPortal=a||null}}});gA.\u0275fac=function(a){return new (a||gA)};
gA.\u0275dir=df({type:gA,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Gf]});var hA=function(){};hA.\u0275fac=function(a){return new (a||hA)};hA.\u0275mod=cf({type:hA});hA.\u0275inj=Gc({});var fsa=new ed("OVERLAY_DEFAULT_CONFIG"),iA=function(){this.scrollStrategies=p(Tz);this._positionBuilder=p(Zz);this._injector=p(Ae)};iA.prototype.create=function(a){return ni(this._injector,a)};iA.prototype.position=function(){return this._positionBuilder};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275prov=Fc({token:iA,factory:iA.\u0275fac,providedIn:"root"});var kFc=[{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"}],lFc=new ed("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a)}}}),jA=function(){this.elementRef=p(Jd)};jA.\u0275fac=function(a){return new (a||jA)};
jA.\u0275dir=df({type:jA,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var mFc=new ed("cdk-connected-overlay-default-config"),kA=function(){this._dir=p(ei,{optional:!0});this._injector=p(Ae);this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=Rd.EMPTY;this._scrollStrategyFactory=p(lFc);this._ngZone=p(Tg);this.viewportMargin=0;this.matchWidth=this.disposeOnNavigation=this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.backdropClick=new gj;this.positionChange=
new gj;this.attach=new gj;this.detach=new gj;this.overlayKeydown=new gj;this.overlayOutsideClick=new gj;var a=p(gg),b=p(hg),c=p(mFc,{optional:!0}),d;this.usePopover=((d=p(fsa,{optional:!0}))==null?void 0:d.usePopover)===!1?null:"global";this._templatePortal=new dA(a,b);this.scrollStrategy=this._scrollStrategyFactory();c&&this._assignConfig(c)};h=kA.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?nFc(this):oFc(this))};
h._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=kFc);var b=this._overlayRef=ni(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||Jh(c)||(c.preventDefault(),oFc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=Mh(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
h._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new gi({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 iFc(hFc(gFc(Vz(eFc(fFc(Wz(Uz(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector),this.usePopover===null?"global":this.usePopover)};
h._createPositionStrategy=function(){var a=$h(this._injector,this._getOrigin());this._updatePositionStrategy(a);return a};h._getOrigin=function(){return this.origin instanceof jA?this.origin.elementRef:this.origin};h._getOriginElement=function(){return this.origin instanceof jA?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 nFc=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(Qla(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},oFc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
kA.prototype._assignConfig=function(a){var b;this.origin=(b=a.origin)!=null?b:this.origin;var c;this.positions=(c=a.positions)!=null?c:this.positions;var d;this.positionStrategy=(d=a.positionStrategy)!=null?d:this.positionStrategy;var e;this.offsetX=(e=a.offsetX)!=null?e:this.offsetX;var f;this.offsetY=(f=a.offsetY)!=null?f:this.offsetY;var g;this.width=(g=a.width)!=null?g:this.width;var k;this.height=(k=a.height)!=null?k:this.height;var m;this.minWidth=(m=a.minWidth)!=null?m:this.minWidth;var r;
this.minHeight=(r=a.minHeight)!=null?r:this.minHeight;var w;this.backdropClass=(w=a.backdropClass)!=null?w:this.backdropClass;var x;this.panelClass=(x=a.panelClass)!=null?x:this.panelClass;var D;this.viewportMargin=(D=a.viewportMargin)!=null?D:this.viewportMargin;var H;this.scrollStrategy=(H=a.scrollStrategy)!=null?H:this.scrollStrategy;var J;this.disableClose=(J=a.disableClose)!=null?J:this.disableClose;var O;this.transformOriginSelector=(O=a.transformOriginSelector)!=null?O:this.transformOriginSelector;
var R;this.hasBackdrop=(R=a.hasBackdrop)!=null?R:this.hasBackdrop;var V;this.lockPosition=(V=a.lockPosition)!=null?V:this.lockPosition;var ba;this.flexibleDimensions=(ba=a.flexibleDimensions)!=null?ba:this.flexibleDimensions;var oa;this.growAfterOpen=(oa=a.growAfterOpen)!=null?oa:this.growAfterOpen;var ta;this.push=(ta=a.push)!=null?ta:this.push;var ka;this.disposeOnNavigation=(ka=a.disposeOnNavigation)!=null?ka:this.disposeOnNavigation;var Ca;this.usePopover=(Ca=a.usePopover)!=null?Ca:this.usePopover;
var ja;this.matchWidth=(ja=a.matchWidth)!=null?ja:this.matchWidth};
da.Object.defineProperties(kA.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"}}});kA.\u0275fac=function(a){return new (a||kA)};
kA.\u0275dir=df({type:kA,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight",
"height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],
transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",bh],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",bh],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",bh],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",bh],push:[2,"cdkConnectedOverlayPush","push",bh],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
bh],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",bh],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[xx]});var lA=function(){};lA.\u0275fac=function(a){return new (a||lA)};lA.\u0275mod=cf({type:lA});lA.\u0275inj=Gc({providers:[iA],imports:[Zy,hA,Sz,Sz]});var hsa=new ed("MATERIAL_ANIMATIONS"),isa=null;var pFc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};pFc.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 ed("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return p(mpa)}});var mA=function(){this.localeChanges=this._localeChanges=new sf};mA.prototype.setTime=function(){throw Error("Ya");};mA.prototype.getHours=function(){throw Error("Ya");};mA.prototype.getMinutes=function(){throw Error("Ya");};mA.prototype.getSeconds=function(){throw Error("Ya");};var nA=function(a,b){return qFc(b)&&a.isValid(b)?b:null},oA=function(a,b){return b==null||qFc(b)&&a.isValid(b)?b:a.invalid()};
mA.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var pA=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};mA.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!pA(this,a,b):c==d}return a==b};var rFc=function(a,b,c,d){return c&&pA(a,b,c)<0?c:d&&pA(a,b,d)>0?d:b};var qA=new ed("mat-date-formats");var rA=function(){};rA.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};rA.\u0275fac=function(a){return new (a||rA)};rA.\u0275prov=Fc({token:rA,factory:rA.\u0275fac,providedIn:"root"});var sA=function(){};sA.\u0275fac=function(a){return new (a||sA)};
sA.\u0275cmp=C({type:sA,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 tA=function(){};tA.\u0275fac=function(a){return new (a||tA)};
tA.\u0275cmp=C({type:tA,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-form-field--align-end",b.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:["mat-internal-form-field",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 sFc=new ed("MAT_OPTION_PARENT_COMPONENT");var tFc=new ed("MatOptgroup");var uFc=Kh({passive:!0,capture:!0}),wFc=function(a,b,c,d){var e=vFc,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,uFc)}))};var xFc=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 yFc={enterDuration:225,exitDuration:150},zFc=Kh({passive:!0,capture:!0}),AFc=["mousedown","touchstart"],BFc=["mouseup","mouseleave","touchend","touchcancel"],CFc=function(){};CFc.\u0275fac=function(a){return new (a||CFc)};
CFc.\u0275cmp=C({type:CFc,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 DFc=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=Qh(c));e&&e.get(bi).load(CFc)},EFc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},yFc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var g=d.radius||ksa(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
m=document.createElement("div");m.classList.add("mat-ripple-element");m.style.left=b-g+"px";m.style.top=c-g+"px";m.style.height=g*2+"px";m.style.width=g*2+"px";d.color!=null&&(m.style.backgroundColor=d.color);m.style.transitionDuration=k+"ms";a._containerElement.appendChild(m);g=window.getComputedStyle(m);c=g.transitionDuration;e=g.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var r=new xFc(a,m,d,e);m.style.transform="scale3d(1, 1, 1)";r.state=0;d.persistent||(a._mostRecentTransientRipple=
r);var w=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var x=function(){w&&(w.fallbackTimer=null);clearTimeout(H);a._finishRippleTransition(r)},D=function(){return a._destroyRipple(r)},H=setTimeout(D,k+100);m.addEventListener("transitionend",x);m.addEventListener("transitioncancel",D);w={onTransitionEnd:x,onTransitionCancel:D,fallbackTimer:H}});a._activeRipples.set(r,w);!e&&k||a._finishRippleTransition(r);return r},FFc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},yFc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};DFc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||FFc(a._renderer,a)})};
var GFc=function(a,b){var c=Qh(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,AFc.forEach(function(d){wFc(a._ngZone,d,c,a)}))};h=DFc.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(){BFc.forEach(function(c){b._triggerElement.addEventListener(c,b,zFc)})}),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||FFc(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=wra(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,EFc(this,a.clientX,a.clientY,this._target.rippleConfig))};h._onTouchStart=function(a){if(!this._target.rippleDisabled&&!xra(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)EFc(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&&FFc(a._renderer,a)}))};h._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
h._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(AFc.forEach(function(c){var d=vFc,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,uFc)))}}),this._pointerUpEventsRegistered&&(BFc.forEach(function(c){return b.removeEventListener(c,a,zFc)}),this._pointerUpEventsRegistered=!1))};
var vFc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=Mh(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 uA=new ed("mat-ripple-global-options"),vA=function(){this._elementRef=p(Jd);this._animationsDisabled=pi();this.radius=0;this._isInitialized=this._disabled=!1;var a=p(Tg),b=p(Yh),c=p(uA,{optional:!0}),d=p(Ae);this._globalOptions=c||{};this._rippleRenderer=new DFc(this,a,this._elementRef,b,d)};h=vA.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&&GFc(this._rippleRenderer,this.trigger)};h.launch=function(a,b,c){return typeof a==="number"?EFc(this._rippleRenderer,a,b===void 0?0:b,Object.assign({},this.rippleConfig,c)):EFc(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
da.Object.defineProperties(vA.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}}});vA.\u0275fac=function(a){return new (a||vA)};
vA.\u0275dir=df({type:vA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-ripple-unbounded",b.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]});var wA=function(){this._animationsDisabled=pi();this.state="unchecked";this.disabled=!1;this.appearance="full"};wA.\u0275fac=function(a){return new (a||wA)};
wA.\u0275cmp=C({type:wA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&yg("mat-pseudo-checkbox-indeterminate",b.state==="indeterminate")("mat-pseudo-checkbox-checked",b.state==="checked")("mat-pseudo-checkbox-disabled",b.disabled)("mat-pseudo-checkbox-minimal",b.appearance==="minimal")("mat-pseudo-checkbox-full",b.appearance==="full")("_mat-animation-noopable",b._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},
decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],
encapsulation:2,changeDetection:0});var HFc=["text"],IFc=[[["mat-icon"]],"*"],JFc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},xA=function(){this._element=p(Jd);this._changeDetectorRef=p(Px);this._parent=p(sFc,{optional:!0});this.group=p(tFc,{optional:!0});this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=p(di).getId("mat-option-");this._disabled=pg.apply(null,[!1].concat(q([])));this.onSelectionChange=new gj;this._stateChanges=new sf;var a=p(bi);a.load(sA);a.load(fz);this._signalDisableRipple=
!!this._parent&&ff(this._parent.disableRipple)};h=xA.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||Jh(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 JFc(this,a===void 0?!1:a))};
da.Object.defineProperties(xA.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()}}});xA.\u0275fac=function(a){return new (a||xA)};
xA.\u0275cmp=C({type:xA,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&jg(HFc,7);if(a&2){var c;ng(c=og())&&(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&&(Sf("id",b.id),Kf("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),yg("mdc-list-item--selected",b.selected)("mat-mdc-option-multiple",
b.multiple)("mat-mdc-option-active",b.active)("mdc-list-item--disabled",b.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",bh]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:["mat-icon","*"],decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",
3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,b){a&1&&(eg(IFc),F(0,lsa,1,2,"mat-pseudo-checkbox",1),fg(1),K(2,"span",2,0),fg(4,1),L(),F(5,msa,1,1,"mat-pseudo-checkbox",3),F(6,nsa,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:[wA,vA],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 yA=function(){};yA.\u0275fac=function(a){return new (a||yA)};yA.\u0275mod=cf({type:yA});yA.\u0275inj=Gc({imports:[Zy]});var zA=function(){};zA.\u0275fac=function(a){return new (a||zA)};zA.\u0275mod=cf({type:zA});zA.\u0275inj=Gc({imports:[Zy]});var AA=function(){};AA.\u0275fac=function(a){return new (a||AA)};AA.\u0275mod=cf({type:AA});AA.\u0275inj=Gc({imports:[yA,zA,xA,Zy]});var KFc={capture:!0},LFc=["focus","mousedown","mouseenter","touchstart"],BA=function(){var a=this;this._document=p(Uh);this._animationsDisabled=pi();this._globalRippleOptions=p(uA,{optional:!0});this._platform=p(Yh);this._ngZone=p(Tg);this._injector=p(Ae);this._hosts=new Map;this._onInteraction=function(c){c=Mh(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 LFc.map(function(c){return b.listen(a._document,c,a._onInteraction,KFc)})})};BA.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=l(a);for(var b=a.next();!b.done;b=a.next())MFc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var NFc=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","")};
BA.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,GFc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
BA.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:yFc.enterDuration,g,k;d=this._animationsDisabled?0:(k=c==null?void 0:(g=c.animation)==null?void 0:
g.exitDuration)!=null?k:yFc.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 DFc(g,this._ngZone,b,this._platform,this._injector);(k=!g.rippleDisabled)&&GFc(b,a);this._hosts.set(a,{target:g,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var MFc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};BA.\u0275fac=function(a){return new (a||BA)};BA.\u0275prov=Fc({token:BA,factory:BA.\u0275fac,providedIn:"root"});var OFc=["tooltip"],PFc=new ed("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a,{scrollThrottle:20})}}}),QFc=new ed("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),RFc=Kh({passive:!0}),DA=function(){this._elementRef=p(Jd);this._ngZone=p(Tg);this._platform=p(Yh);this._ariaDescriber=p(uz);this._focusMonitor=p(bz);this._dir=p(ei);this._injector=p(Ae);this._viewContainerRef=
p(hg);this._animationsDisabled=pi();this._defaultOptions=p(QFc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=CA;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=DA.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=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,RFc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;wz(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 cA(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=LEc(this._injector.get(Vh),this._elementRef);c=this._cssClassPrefix+"-tooltip-panel";a=iFc(dFc(Vz(Wz(hFc($h(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=ni(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[].concat(q(this._overlayPanelClass),[c]):c,scrollStrategy:this._injector.get(PFc)(),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&&!Jh(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();Uz(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=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,RFc)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(Uh).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,wz(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||Ge({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&vz(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
da.Object.defineProperties(DA.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=Oh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=Oh(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=Rh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Rh(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)}}});
DA.\u0275fac=function(a){return new (a||DA)};
DA.\u0275dir=df({type:DA,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-mdc-tooltip-disabled",b.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],
message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});var CA=function(){this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._isMultiline=!1;this._animationsDisabled=pi();this._isVisible=this._closeOnInteraction=!1;this._onHide=new sf;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};h=CA.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))};CA.\u0275fac=function(a){return new (a||CA)};
CA.\u0275cmp=C({type:CA,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&jg(OFc,7);if(a&2){var c;ng(c=og())&&(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&&(yg("mdc-tooltip--multiline",b._isMultiline),I("ngClass",b.tooltipClass),B(3),Ag(b.message))},dependencies:[Yx],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 EA=function(){};EA.\u0275fac=function(a){return new (a||EA)};EA.\u0275mod=cf({type:EA});EA.\u0275inj=Gc({imports:[tz,lA,Zy,Rz]});var SFc={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"},ssa=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+SFc[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};Y(ssa,Error);var TFc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var WFc=function(a){var b=jv("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=UFc(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,VFc[c])c=VFc[c];else{c=String(c);if(!VFc[c]){var f=/function\s+([^\(]+)/m.exec(c);VFc[c]=f?f[1]:"[Anonymous]"}c=VFc[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}},UFc=function(a,b){b||(b={});b[XFc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[XFc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=UFc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[XFc(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+=UFc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},XFc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},VFc={};var FA=function(){this.label=Qg.required.apply(Qg,q([]));this.linkUrl=Qg.required.apply(Qg,q([]));this.iconUrl=Qg.apply(null,q([]));this.tooltip=Qg.apply(null,q([]));this.showRemoveButton=Qg.apply(null,q([]));this.removeContextSource=Pg()};FA.prototype.openLink=function(){var a=this.linkUrl();a&&qi(window,hra(a.startsWith("http://")||a.startsWith("https://")?a:"http://"+a),"_blank")};FA.\u0275fac=function(a){return new (a||FA)};
FA.\u0275cmp=C({type:FA,selectors:[["link-chip"]],inputs:{label:[1,"label"],linkUrl:[1,"linkUrl"],iconUrl:[1,"iconUrl"],tooltip:[1,"tooltip"],showRemoveButton:[1,"showRemoveButton"]},outputs:{removeContextSource:"removeContextSource"},features:[Ig([{provide:QFc,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,ysa,1,1,"img",3),K(4,"span",4),Q(5),L()()(),F(6,zsa,3,0,"button",5),L());a&2&&(yg("link-chip-with-remove-button",b.showRemoveButton()),B(),I("matTooltip",b.tooltip()),B(2),G(b.iconUrl()?3:-1),
B(2),Ag(b.label()),B(),G(b.showRemoveButton()?6:-1))},dependencies:[ty,EA,DA,$y,Yy],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 GA=function(){};GA.\u0275fac=function(a){return new (a||GA)};GA.\u0275prov=Fc({token:GA,factory:GA.\u0275fac,providedIn:"root"});var YFc=new ed("Location",{factory:function(){var a;return Object.assign({},window.location,{ancestorOrigins:(a=window.location.ancestorOrigins)!=null?a:[]})},providedIn:"root"}),ZFc=new ed("Referrer",{factory:function(){return window.document.referrer},providedIn:"root"}),$Fc=/^https?:\/\/[^\s,]+$/,aGc=/^go\/([^\s()<>]+)/,bGc=/^https:\/\/moma.corp.google.com.*/,cGc=new ed("DUCKIE_CLIENT",{providedIn:"root",factory:function(){return 1}});var dGc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},fGc=function(a){if(!a)return eGc||(eGc=new dGc(0,0));if(!/^\d+$/.test(a))return null;Dca(a);return new dGc(nb,ob)},eGc,gGc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},iGc=function(a){if(!a)return hGc||(hGc=new gGc(0,0));if(!/^-?\d+$/.test(a))return null;Dca(a);return new gGc(nb,ob)},hGc;var HA=function(){this.buffer_=[]};HA.prototype.length=function(){return this.buffer_.length};HA.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};HA.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)};HA.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var jGc=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},kGc=function(a,b){if(b>=0)jGc(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};h=HA.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){wca(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=Ozc||(Ozc=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){kGc(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 rta=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new HA},ui=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},Esa=function(a,b){IA(a,b,2);b=a.encoder_.end();ui(a,b);b.push(a.totalLength_);return b},Fsa=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_++},sta=function(a){ui(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},IA=function(a,b,c){jGc(a.encoder_,b*8+c)};h=rta.prototype;h.writeInt32=function(a,b){b!=null&&b!=null&&(IA(this,a,0),kGc(this.encoder_,b))};
h.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":iGc(b)}if(b!=null)switch(IA(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 gGc(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=iGc(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};h.writeUint32=function(){};h.writeUint64=function(){};
h.writeDouble=function(a,b){b!=null&&(IA(this,a,1),this.encoder_.writeDouble(b))};h.writeBool=function(a,b){b!=null&&(IA(this,a,0),this.encoder_.writeBool(b))};h.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),IA(this,a,0),kGc(this.encoder_,b))};h.writeBytes=function(a,b){b!=null&&ita(this,a,fea(b,!0).buffer)};var ita=function(a,b,c){IA(a,b,2);jGc(a.encoder_,c.length);ui(a,a.encoder_.end());ui(a,c)};rta.prototype.writeSplitFixed64=function(a,b){IA(this,a,1);this.encoder_.writeSplitFixed64(b)};
rta.prototype.writeSplitVarint64=function(a,b){IA(this,a,0);this.encoder_.writeSplitVarint64(b)};var Bsa=si(),lGc=si(),mGc=si(),nGc=si(),oGc=si(),pGc=si();var ti=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=ac(Bsa);this.$$isMsg=!!a&&c===a||!1},Jsa=Csa(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;$zc(a,cAc(b,d,c),e);return!0},Gsa),Lsa=Csa(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;$zc(a,cAc(b,d,c),e);return!0},Gsa),Ysa=Symbol(),Osa=Symbol(),Rsa=Symbol(),cta=Symbol(),Vsa=Symbol(),Hsa,Isa;var qGc=vi(mta,function(a,b,c){if(b!=null){if(b instanceof W){var d=b.serializeBinaryFnForAnyProto_;d?a.writeBytes(c,d(b)):ub(fta,3);return}if(Array.isArray(b)){ub(fta,3);return}}lta(a,b,c)},pGc),rGc=vi(function(a,b,c,d){if(a.nextWireType_!==1)return!1;var e=a.decoder_;a=Xw(e);var f=Xw(e);e=(f>>31)*2+1;var g=f>>>20&2047;a=4294967296*(f&1048575)+a;ax(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))},si()),sGc=
vi(function(a,b,c){if(dzc)return a.nextWireType_!==0?a=!1:(wi(b,c,Vzc(a.decoder_,Bca)),a=!0),a;if(a.nextWireType_!==0)return!1;wi(b,c,Vzc(a.decoder_,zca));return!0},gta,oGc),tGc=vi(function(a,b,c,d){if(dzc)return a.nextWireType_!==0?a=!1:(ax(b,c,d,Vzc(a.decoder_,Bca)),a=!0),a;if(a.nextWireType_!==0)return!1;ax(b,c,d,Vzc(a.decoder_,zca));return!0},gta,oGc),JA=vi(function(a,b,c){if(a.nextWireType_!==0)return!1;wi(b,c,Ww(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Fb(b))},nGc),uGc;
uGc=new ti(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=rea(b,b[Ta]|0,c);if(a.nextWireType_==2)for(c=Ww(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(Ww(a.decoder_));else b.push(Ww(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&&(IA(e,f,0),kGc(e.encoder_,g))},nGc);
var vGc=vi(function(a,b,c){if(dzc){if(a.nextWireType_!==1)b=!1;else{var d=a.decoder_;a=Xw(d);d=Xw(d);wi(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=Xw(d);d=Xw(d);wi(b,c,rb(a,d));return!0},function(a,b,c){b=dda(b);if(b!=null){switch(typeof b){case "string":fGc(b)}IA(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new dGc(Number(c&BigInt(4294967295)),
Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=fGc(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},si()),wGc=vi(function(a,b,c){if(a.nextWireType_!==5)return!1;wi(b,c,Xw(a.decoder_));return!0},function(a,b,c){b=Mca(b);b!=null&&(IA(a,c,5),a.encoder_.writeUint32(b))},si()),KA=vi(function(a,b,c){if(a.nextWireType_!==0)return!1;wi(b,c,Wzc(a.decoder_));return!0},hta,lGc),xGc=vi(function(a,b,c,d){if(a.nextWireType_!==0)return!1;ax(b,c,d,Wzc(a.decoder_));return!0},hta,lGc),
yGc=vi(function(a,b,c){if(a.nextWireType_!==2)return!1;a=aAc(a);wi(b,c,a===""?void 0:a);return!0},jta,mGc),LA=vi(function(a,b,c){if(a.nextWireType_!==2)return!1;wi(b,c,aAc(a));return!0},jta,mGc),zGc=vi(function(a,b,c,d){if(a.nextWireType_!==2)return!1;ax(b,c,d,aAc(a));return!0},jta,mGc),AGc,BGc=void 0;BGc=BGc===void 0?Bsa:BGc;
AGc=new ti(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=bea(void 0,d);rea(b,b[Ta]|0,c).push(d);$zc(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)kta(a,b[f],c,d,e);a=b[Ta]|0;a&1||Va(b,a|1)}},BGc);
var CGc=Csa(function(a,b,c,d,e,f){if(a.nextWireType_!==2)return!1;var g=b[Ta]|0;vea(b,g,f,c,kb(g));b=cAc(b,d,c);$zc(a,b,e);return!0},kta),DGc=vi(function(a,b,c){if(a.nextWireType_!==2)return!1;wi(b,c,a.readByteString());return!0},lta,pGc),EGc=vi(function(a,b,c,d){if(a.nextWireType_!==2)return!1;ax(b,c,d,a.readByteString());return!0},lta,pGc),FGc=vi(function(a,b,c){if(a.nextWireType_!==0)return!1;wi(b,c,Ww(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Fb(b))},si());var MA=function(a,b,c){this.fieldIndex=a;this.ctor=c;this.isRepeated=0;this.getExtensionFn=X;this.setExtensionFn=Zi;this.defaultValue=void 0;this.hasMessageId=b.messageId!=null?jb:void 0};MA.prototype.register=function(){izc(this)};var NA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NA,W);NA.prototype.getValuesList=function(a){return Ni(this,OA,1,Oi(a))};NA.prototype.setValuesList=function(a){return $i(this,1,a)};NA.prototype.setValues=function(a,b){Yw(this,1,OA,a,b)};var OA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OA,W);h=OA.prototype;h.getValueCase=function(){return Mo(this,PA)};h.getName=function(){return xi(this,1)};
h.setName=function(a){return yj(this,1,a)};h.hasName=function(){return wm(this,1)};h.getNameOrUndefined=function(){return gx(this,1)};h.getDescription=function(){return xi(this,2)};h.setDescription=function(a){return yj(this,2,a)};h.hasDescription=function(){return wm(this,2)};h.getStringValue=function(){return Oo(this,4,PA)};h.setStringValue=function(a){return Ro(this,4,PA,a)};h.hasStringValue=function(){return wr(this,4,PA)!=null};var PA=[3,4];var HGc=[0,AGc,function(){return GGc}],GGc=[0,PA,LA,-1,CGc,function(){return HGc},zGc];var IGc=tta(HGc);var QA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QA,W);QA.prototype.addPreamble=function(a){Qq(this,6,a)};var RA=function(){this.overrideOptions=new QA;this.overrideParentUrl="";this.isDarkMode$=new Wj(!1);this.overrideAppProvidedContext=new NA;this.overrideIsFirstTurnFromMoma=!0;this.overrideOnboardingExamplesList$=new Wj(void 0);this.debugDisplayOptions$=new Wj({showResponseMetadata:!1});this.overrideDisclaimer=this.overrideAgentMessageDisplayName=void 0};h=RA.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)};RA.\u0275fac=function(a){return new (a||RA)};RA.\u0275prov=Fc({token:RA,factory:RA.\u0275fac,providedIn:"root"});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 SA=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)};SA.prototype.getName=function(){return this.name};var TA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TA,W);TA.prototype.getSessionId=function(){return xi(this,1)};TA.prototype.setSessionId=function(a){return yj(this,1,a)};TA.prototype.hasSessionId=function(){return wm(this,1)};var MGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MGc,W);var NGc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",TA,MGc,function(a){return a.serialize()},yi(MGc));var OGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OGc,W);h=OGc.prototype;h.getAgentId=function(){return xi(this,1)};h.setAgentId=function(a){return yj(this,1,a)};h.hasAgentId=function(){return wm(this,1)};h.getAgentVersion=function(){return xi(this,2)};h.setAgentVersion=function(a){yj(this,2,a)};h.hasAgentVersion=function(){return wm(this,2)};var UA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UA,W);var VA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VA,W);VA.prototype.getKindCase=function(){return Mo(this,WA)};VA.prototype.getStringValue=function(){return Oo(this,3,WA)};VA.prototype.setStringValue=function(a){return Ro(this,3,WA,a)};VA.prototype.hasStringValue=function(){return wr(this,3,WA)!=null};
var XA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XA,W);XA.prototype.getValuesList=function(a){return Ni(this,VA,1,Oi(a))};XA.prototype.setValuesList=function(a){return $i(this,1,a)};XA.prototype.setValues=function(a,b){Yw(this,1,VA,a,b)};var WA=[1,2,3,4,5,6];var YA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YA,W);h=YA.prototype;h.getAgentId=function(){return xi(this,1)};h.setAgentId=function(a){return yj(this,1,a)};h.hasAgentId=function(){return wm(this,1)};h.getModelId=function(){return xi(this,2)};h.setModelId=function(a){return yj(this,2,a)};h.setSystemInstruction=function(a){yj(this,3,a)};var ej=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ej,W);h=ej.prototype;h.getSeconds=function(){return En(this,1)};h.getSeconds_asString=function(){return In(this,1)};h.setSeconds=function(a){return Xo(this,1,a)};h.getNanos=function(){return Um(this,2)};h.setNanos=function(a){return pn(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 rUa=function(a){return(new ej).fromMillis(a.getTime())};var PGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PGc,W);h=PGc.prototype;h.getName=function(){return xi(this,1)};h.setName=function(a){return yj(this,1,a)};h.hasName=function(){return wm(this,1)};h.getNameOrUndefined=function(){return gx(this,1)};h.getArgs=function(){return X(this,UA,2)};h.getId=function(){return xi(this,3)};h.setId=function(a){return yj(this,3,a)};var QGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QGc,W);h=QGc.prototype;h.getDataCase=function(){return Mo(this,ZA)};h.clearData=function(){return $w(this,ZA)};h.getText=function(){return Oo(this,2,ZA)};h.setText=function(a){return Ro(this,2,ZA,a)};h.hasText=function(){return wr(this,2,ZA)!=null};h.getFunctionCall=function(){return jm(this,PGc,3,ZA)};h.hasFunctionCall=function(){return cj(this,PGc,3,ZA)};h.getThought=function(){return Ri(this,5)};
var ZA=[2,3,4];var $A=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($A,W);h=$A.prototype;h.getPartsList=function(){return Ni(this,QGc,1,Oi())};h.addParts=function(a){return bq(this,1,QGc,a)};h.getRole=function(){return Ii(this,2)};h.setRole=function(a){return Vn(this,2,a)};h.getAuthor=function(){return xi(this,3)};h.setAuthor=function(a){yj(this,3,a)};h.hasAuthor=function(){return wm(this,3)};h.getMetadata=function(){return X(this,UA,4)};
h.getMutableMetadata=function(){return Ui(this,UA,4)};h.setMetadata=function(a){Zi(this,UA,4,a)};h.hasMetadata=function(){return Ji(this,UA,4)};var Pi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pi,W);var RGc=function(a,b){return $i(a,9,b)};var aB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aB,W);h=aB.prototype;h.getFeedbackId=function(){return xi(this,1)};h.setFeedbackId=function(a){return yj(this,1,a)};h.getFeedbackType=function(){return Ii(this,2)};h.setFeedbackType=function(a){return Vn(this,2,a)};h.hasFeedbackType=function(){return xm(this,2)};h.getFeedbackReason=function(){return xi(this,3)};h.setFeedbackReason=function(a){return yj(this,3,a)};h.hasFeedbackReason=function(){return wm(this,3)};
h.getFeedbackLabelsList=function(){return Vm(this,4,Oi())};h.setFeedbackLabelsList=function(a){return Zm(this,4,a)};h.addAllFeedbackLabels=function(a){Bc(this,4,Sb,a,Tb)};h.getCreationTimestamp=function(){return X(this,ej,5)};h.setCreationTimestamp=function(a){return Zi(this,ej,5,a)};h.getIsDeleted=function(){return Ri(this,6)};h.setIsDeleted=function(a){aj(this,6,a)};h.getMessageId=function(){return xi(this,7)};h.setMessageId=function(a){return yj(this,7,a)};
h.hasMessageId=function(){return wm(this,7)};h.getSessionId=function(){return xi(this,8)};h.setSessionId=function(a){return yj(this,8,a)};h.hasSessionId=function(){return wm(this,8)};h.getHelpfulness=function(){return Ii(this,9)};h.setHelpfulness=function(a){return Vn(this,9,a)};var bB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bB,W);bB.prototype.getPrompt=function(){return xi(this,1)};bB.prototype.getLabel=function(){return xi(this,2)};bB.prototype.setLabel=function(a){return yj(this,2,a)};bB.prototype.hasLabel=function(){return wm(this,2)};var OMa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OMa,W);h=OMa.prototype;h.getStartTime=function(){return X(this,ej,1)};h.setStartTime=function(a){Zi(this,ej,1,a)};h.getEndTime=function(){return X(this,ej,2)};h.setEndTime=function(a){Zi(this,ej,2,a)};h.hasEndTime=function(){return Ji(this,ej,2)};h.getValue=function(){return rm(this,3)};h.setValue=function(a){return nx(this,3,a)};h.hasValue=function(){return tm(this,3,void 0,void 0,xb)!=null};var NMa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NMa,W);var PMa=[1];var SGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SGc,W);SGc.prototype.getLabel=function(){return xi(this,1)};SGc.prototype.setLabel=function(a){return yj(this,1,a)};SGc.prototype.hasLabel=function(){return wm(this,1)};var TGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TGc,W);TGc.prototype.getTitle=function(){return xi(this,1)};TGc.prototype.setTitle=function(a){return yj(this,1,a)};var mua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mua,W);mua.prototype.getButton=function(){return jm(this,bB,1,UGc)};mua.prototype.getChart=function(){return jm(this,TGc,6,UGc)};var UGc=[1,2,3,4,5,6];var JPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JPa,W);h=JPa.prototype;h.getTitle=function(){return xi(this,1)};h.setTitle=function(a){return yj(this,1,a)};h.getUrl=function(){return xi(this,2)};h.setUrl=function(a){return yj(this,2,a)};h.hasUrl=function(){return wm(this,2)};var VGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VGc,W);var WGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WGc,W);h=WGc.prototype;h.getTitle=function(){return xi(this,1)};h.setTitle=function(a){return yj(this,1,a)};h.getUrl=function(){return xi(this,2)};h.setUrl=function(a){return yj(this,2,a)};h.hasUrl=function(){return wm(this,2)};h.getIconUrl=function(){return xi(this,3)};h.setIconUrl=function(a){return yj(this,3,a)};h.getLastModificationTime=function(){return X(this,ej,4)};
h.getIsPrivateDocument=function(){return Ri(this,7)};h.setIsPrivateDocument=function(a){return aj(this,7,a)};var WWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WWa,W);var zm=function(a){return Ni(a,WGc,1,Oi())};var XGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XGc,W);XGc.prototype.setReferrerUrl=function(a){return yj(this,2,a)};var rua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rua,W);rua.prototype.setReferrerUrl=function(a){return yj(this,1,a)};var sua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sua,W);h=sua.prototype;h.getUrl=function(){return xi(this,1)};h.setUrl=function(a){return yj(this,1,a)};h.hasUrl=function(){return wm(this,1)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return yj(this,2,a)};h.getTagsList=function(a){return Vm(this,3,Oi(a))};h.getTags=function(a){return ix(this,3,a)};var Mi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mi,W);var ym=function(a){return jm(a,WWa,6,dj)},dj=[3,4,5,6,7];var YGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YGc,W);var ZGc=[0,sGc,wGc,-1];var yPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yPa,W);var DPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DPa,W);var cB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cB,W);var vm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vm,W);var S2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S2a,W);S2a.prototype.getValue=function(){return En(this,1)};S2a.prototype.setValue=function(a){return Xo(this,1,a)};var er=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(er,W);h=er.prototype;h.getTypeName=function(){return xi(this,1).split("/").pop()};h.pack=function(a,b,c){c=c===void 0?"type.googleapis.com/":c;c.substr(-1)!=="/"&&(c+="/");Ym(this,1,c+b);return dp(this,2,a)};h.getValue=function(){var a=tm(this,2);if(Array.isArray(a)||a instanceof W)throw Error("ab");return io(this,2)};
h.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=Ur(this,2,Qda(a,0,cc));else if(typeof a==="string"||a instanceof Za||Pa(a))a=dp(this,2,a);else throw Error("fa`"+a);return a};h.unpack=function(a,b){return pta(this,void 0,a,b)};var dr=function(a,b,c){return pta(a,b,void 0,c)},$Gc=uta(er);var om=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(om,W);h=om.prototype;h.getYear=function(){return Um(this,1)};h.setYear=function(a){return pn(this,1,a)};h.getMonth=function(){return Um(this,2)};h.setMonth=function(a){return pn(this,2,a)};h.getDay=function(){return Um(this,3)};var Rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rq,W);var R2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(R2a,W);R2a.prototype.getValue=function(){return Um(this,1)};R2a.prototype.setValue=function(a){return pn(this,1,a)};var U2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U2a,W);U2a.prototype.getValue=function(){return Ri(this,1)};U2a.prototype.setValue=function(a){return op(this,1,a)};var tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tn,W);h=tn.prototype;h.getSeconds=function(){return En(this,1)};h.getSeconds_asString=function(){return In(this,1)};h.setSeconds=function(a){return Xo(this,1,a)};h.getNanos=function(){return Um(this,2)};h.setNanos=function(a){return pn(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 Br=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Br,W);h=Br.prototype;h.getHours=function(){return Um(this,1)};h.setHours=function(a){return pn(this,1,a)};h.getMinutes=function(){return Um(this,2)};h.setMinutes=function(a){return pn(this,2,a)};h.getSeconds=function(){return Um(this,3)};h.setSeconds=function(a){return pn(this,3,a)};h.getNanos=function(){return Um(this,4)};h.setNanos=function(a){return pn(this,4,a)};var $Ua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Ua,W);var T2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T2a,W);T2a.prototype.getValue=function(){return xi(this,1)};T2a.prototype.setValue=function(a){return Ym(this,1,a)};var mPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mPa,W);var aHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aHc,W);aHc.prototype.getAltText=function(){return Ml(this,2)};aHc.prototype.setAltText=function(a){return yj(this,2,a)};var um=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(um,W);um.prototype.getIcon=function(){return X(this,aHc,3)};um.prototype.setIcon=function(a){return Zi(this,aHc,3,a)};um.prototype.getLastModificationTime=function(){return X(this,ej,4)};var rPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rPa,W);var bHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bHc,W);h=bHc.prototype;h.getCode=function(){return Um(this,1)};h.setCode=function(a){return Tn(this,1,a)};h.getCodeOrUndefined=function(){return fx(this,1)};h.getMessage=function(){return xi(this,3)};h.setMessage=function(a){return yj(this,3,a)};var FPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FPa,W);var BPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BPa,W);var TPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,59)};Y(TPa,W);h=TPa.prototype;h.getGoogleSearchQuery=function(){return xi(this,1)};h.hasGoogleSearchQuery=function(){return wm(this,1)};h.getTimestamp=function(){return X(this,ej,18)};h.setTimestamp=function(a){return Zi(this,ej,18,a)};h.hasTimestamp=function(){return Ji(this,ej,18)};var cHc=[0,ZGc,sGc];var dHc=[0,yGc,qGc];var SPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SPa,W);var RPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RPa,W);var UPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UPa,W);UPa.prototype.getGoogleSearchQuery=function(){return rm(this,14)};UPa.prototype.hasGoogleSearchQuery=function(){return tm(this,14,void 0,void 0,xb)!=null};var kua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kua,W);h=kua.prototype;h.getModelId=function(){return xi(this,1)};h.setModelId=function(a){return yj(this,1,a)};h.getModelOverrideOptions=function(){return X(this,QA,6)};h.setModelOverrideOptions=function(a){Zi(this,QA,6,a)};h.getCreationTimestamp=function(){return X(this,ej,9)};h.setCreationTimestamp=function(a){return Zi(this,ej,9,a)};h.getConversationAgentModelId=function(){return xi(this,13)};
h.setConversationAgentModelId=function(a){yj(this,13,a)};h.hasConversationAgentModelId=function(){return wm(this,13)};h.getConversationAgentId=function(){return xi(this,14)};h.setConversationAgentId=function(a){return yj(this,14,a)};h.hasConversationAgentId=function(){return wm(this,14)};var Ki=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ki,W);var eHc=function(a,b){return yj(a,2,b)};h=Ki.prototype;h.getSourceLinkList=function(){return Vm(this,3,Oi())};h.setSourceLinkList=function(a){return Zm(this,3,a)};h.addAllSourceLink=function(a){Bc(this,3,Sb,a,Tb)};h.getCreationTimestamp=function(){return X(this,ej,4)};h.setCreationTimestamp=function(a){return Zi(this,ej,4,a)};var Vi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vi,W);h=Vi.prototype;h.getType=function(){return Ii(this,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getUrl=function(){return xi(this,2)};h.setUrl=function(a){return yj(this,2,a)};h.hasUrl=function(){return wm(this,2)};var bj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bj,W);bj.prototype.getUrl=function(){return Oo(this,1,Si)};bj.prototype.setUrl=function(a){return Ro(this,1,Si,a)};bj.prototype.hasUrl=function(){return wr(this,1,Si)!=null};var fHc=function(a){return jm(a,Vi,2,Si)},pua=function(a,b){return mp(a,2,Si,b)},Si=[1,2,3];var Xi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xi,W);h=Xi.prototype;h.getMessageId=function(){return xi(this,1)};h.setMessageId=function(a){return yj(this,1,a)};h.hasMessageId=function(){return wm(this,1)};h.getSessionId=function(){return xi(this,2)};h.setSessionId=function(a){return yj(this,2,a)};h.hasSessionId=function(){return wm(this,2)};h.getText=function(){return xi(this,3)};h.setText=function(a){return yj(this,3,a)};
h.hasText=function(){return wm(this,3)};h.getUserProvidedContextList=function(){return Ni(this,bj,24,Oi())};h.setUserProvidedContextList=function(a){$i(this,24,a)};h.addAllUserProvidedContext=function(a){aq(this,24,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,24)};h.getAppProvidedContext=function(){return X(this,NA,23)};h.setAppProvidedContext=function(a){Zi(this,NA,23,a)};h.hasAppProvidedContext=function(){return Ji(this,NA,23)};h.getModelId=function(){return xi(this,4)};
h.setModelId=function(a){return yj(this,4,a)};var nua=function(a,b){return Vn(a,5,b)};h=Xi.prototype;h.getCreationTimestamp=function(){return X(this,ej,6)};h.setCreationTimestamp=function(a){return Zi(this,ej,6,a)};h.getClient=function(){return Ii(this,7)};h.setClient=function(a){return Vn(this,7,a)};h.hasClient=function(){return xm(this,7)};h.getFeedback=function(){return X(this,aB,9)};h.setFeedback=function(a){return Zi(this,aB,9,a)};h.hasFeedback=function(){return Ji(this,aB,9)};
var oua=function(a,b){aj(a,20,b)};var dB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dB,W);h=dB.prototype;h.getPrivacyMode=function(){return Ii(this,1)};h.setPrivacyMode=function(a){return Vn(this,1,a)};h.hasPrivacyMode=function(){return xm(this,1)};h.getMessagesList=function(){return Ni(this,Xi,2,Oi())};h.setMessagesList=function(a){return $i(this,2,a)};var eB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eB,W);h=eB.prototype;h.getSessionId=function(){return xi(this,1)};h.setSessionId=function(a){return yj(this,1,a)};h.hasSessionId=function(){return wm(this,1)};h.getModelId=function(){return xi(this,2)};h.setModelId=function(a){return yj(this,2,a)};h.getText=function(){return xi(this,3)};h.setText=function(a){return yj(this,3,a)};h.hasText=function(){return wm(this,3)};
h.getDisallowRestrictedContent=function(){return Ri(this,13)};h.setDisallowRestrictedContent=function(a){return aj(this,13,a)};h.hasDisallowRestrictedContent=function(){return Qi(this,13)};h.getConversationHistory=function(){return X(this,dB,11)};h.setConversationHistory=function(a){return Zi(this,dB,11,a)};h.hasConversationHistory=function(){return Ji(this,dB,11)};h.getDuckieClient=function(){return Ii(this,5)};h.setDuckieClient=function(a){return Vn(this,5,a)};
h.getModelOverrideOptions=function(){return X(this,QA,7)};h.setModelOverrideOptions=function(a){Zi(this,QA,7,a)};h.getUserProvidedContextList=function(){return Ni(this,bj,14,Oi())};h.setUserProvidedContextList=function(a){$i(this,14,a)};h.addAllUserProvidedContext=function(a){aq(this,14,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,14)};h.getAppProvidedContext=function(){return X(this,NA,16)};h.setAppProvidedContext=function(a){Zi(this,NA,16,a)};
h.hasAppProvidedContext=function(){return Ji(this,NA,16)};h.getConversationAgent=function(){return X(this,YA,15)};h.setConversationAgent=function(a){return Zi(this,YA,15,a)};h.hasConversationAgent=function(){return Ji(this,YA,15)};var gHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gHc,W);h=gHc.prototype;h.getResponse=function(){return X(this,Xi,1)};h.getMutableResponse=function(){return Ui(this,Xi,1)};h.hasResponse=function(){return Ji(this,Xi,1)};h.getConversationHistory=function(){return X(this,dB,5)};h.setConversationHistory=function(a){return Zi(this,dB,5,a)};h.hasConversationHistory=function(){return Ji(this,dB,5)};h.getQuery=function(){return X(this,Xi,2)};
h.setQuery=function(a){return Zi(this,Xi,2,a)};h.clearQuery=function(){Zw(this,2)};h.hasQuery=function(){return Ji(this,Xi,2)};h.getUserProvidedContextList=function(){return Ni(this,bj,6,Oi())};h.setUserProvidedContextList=function(a){$i(this,6,a)};h.addAllUserProvidedContext=function(a){aq(this,6,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,6)};var hHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",eB,gHc,function(a){return a.serialize()},yi(gHc));var fB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fB,W);fB.prototype.getSessionId=function(){return xi(this,1)};fB.prototype.setSessionId=function(a){return yj(this,1,a)};fB.prototype.hasSessionId=function(){return wm(this,1)};var iHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iHc,W);h=iHc.prototype;h.getSessionId=function(){return xi(this,1)};h.setSessionId=function(a){return yj(this,1,a)};h.hasSessionId=function(){return wm(this,1)};h.getMessagesList=function(){return Ni(this,Xi,2,Oi())};h.setMessagesList=function(a){return $i(this,2,a)};h.getConversationAgentModelId=function(){return xi(this,13)};h.setConversationAgentModelId=function(a){yj(this,13,a)};
h.hasConversationAgentModelId=function(){return wm(this,13)};h.getConversationAgentId=function(){return xi(this,14)};h.setConversationAgentId=function(a){return yj(this,14,a)};h.hasConversationAgentId=function(){return wm(this,14)};h.getModelId=function(){return xi(this,3)};h.setModelId=function(a){return yj(this,3,a)};h.getAgentId=function(){return xi(this,10)};h.setAgentId=function(a){return yj(this,10,a)};h.hasAgentId=function(){return wm(this,10)};h.getAgentVersion=function(){return xi(this,11)};
h.setAgentVersion=function(a){yj(this,11,a)};h.hasAgentVersion=function(){return wm(this,11)};h.getTitle=function(){return xi(this,5)};h.setTitle=function(a){return yj(this,5,a)};h.getSessionState=function(){return Ii(this,6)};h.setSessionState=function(a){return Vn(this,6,a)};h.hasSessionState=function(){return xm(this,6)};h.getPrivacyMode=function(){return Ii(this,9)};h.setPrivacyMode=function(a){return Vn(this,9,a)};h.hasPrivacyMode=function(){return xm(this,9)};
h.getCreationTimestamp=function(){return X(this,ej,7)};h.setCreationTimestamp=function(a){return Zi(this,ej,7,a)};h.getUserProvidedContextList=function(){return Ni(this,bj,12,Oi())};h.setUserProvidedContextList=function(a){$i(this,12,a)};h.addAllUserProvidedContext=function(a){aq(this,12,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,12)};h.getHelpfulness=function(){return Ii(this,15)};h.setHelpfulness=function(a){return Vn(this,15,a)};var jHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jHc,W);jHc.prototype.getSession=function(){return X(this,iHc,1)};var kHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",fB,jHc,function(a){return a.serialize()},yi(jHc));var lHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lHc,W);h=lHc.prototype;h.getAgentId=function(){return xi(this,3)};h.setAgentId=function(a){return yj(this,3,a)};h.hasAgentId=function(){return wm(this,3)};h.getAgentVersion=function(){return xi(this,4)};h.setAgentVersion=function(a){yj(this,4,a)};h.hasAgentVersion=function(){return wm(this,4)};h.getConversationAgentId=function(){return xi(this,5)};h.setConversationAgentId=function(a){return yj(this,5,a)};
h.hasConversationAgentId=function(){return wm(this,5)};h.getConversationAgentModelId=function(){return xi(this,6)};h.setConversationAgentModelId=function(a){yj(this,6,a)};h.hasConversationAgentModelId=function(){return wm(this,6)};var mHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mHc,W);h=mHc.prototype;h.getSessionId=function(){return xi(this,1)};h.setSessionId=function(a){return yj(this,1,a)};h.hasSessionId=function(){return wm(this,1)};h.getConversationAgentModelId=function(){return xi(this,11)};h.setConversationAgentModelId=function(a){yj(this,11,a)};h.hasConversationAgentModelId=function(){return wm(this,11)};h.getConversationAgentId=function(){return xi(this,12)};
h.setConversationAgentId=function(a){return yj(this,12,a)};h.hasConversationAgentId=function(){return wm(this,12)};h.getAgentId=function(){return xi(this,9)};h.setAgentId=function(a){return yj(this,9,a)};h.hasAgentId=function(){return wm(this,9)};h.getAgentVersion=function(){return xi(this,10)};h.setAgentVersion=function(a){yj(this,10,a)};h.hasAgentVersion=function(){return wm(this,10)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return yj(this,2,a)};
h.getClient=function(){return Ii(this,3)};h.setClient=function(a){return Vn(this,3,a)};h.hasClient=function(){return xm(this,3)};h.getSessionState=function(){return Ii(this,4)};h.setSessionState=function(a){return Vn(this,4,a)};h.hasSessionState=function(){return xm(this,4)};h.getPrivacyMode=function(){return Ii(this,5)};h.setPrivacyMode=function(a){return Vn(this,5,a)};h.hasPrivacyMode=function(){return xm(this,5)};var nHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nHc,W);var oHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",lHc,nHc,function(a){return a.serialize()},yi(nHc));var pHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pHc,W);var qHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qHc,W);h=qHc.prototype;h.getClient=function(){return Ii(this,1)};h.setClient=function(a){return Vn(this,1,a)};h.hasClient=function(){return xm(this,1)};h.getTimestamp=function(){return X(this,ej,2)};h.setTimestamp=function(a){return Zi(this,ej,2,a)};h.hasTimestamp=function(){return Ji(this,ej,2)};var gB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gB,W);gB.prototype.getDisallowRestrictedContent=function(){return Ri(this,4)};gB.prototype.setDisallowRestrictedContent=function(a){return aj(this,4,a)};gB.prototype.hasDisallowRestrictedContent=function(){return Qi(this,4)};gB.prototype.getDuckieModelPreferences=function(a){return jx(this,5,a)};var hB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hB,W);hB.prototype.getUserState=function(){return X(this,gB,1)};hB.prototype.setUserState=function(a){return Zi(this,gB,1,a)};var rHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",pHc,hB,function(a){return a.serialize()},yi(hB));var iB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iB,W);h=iB.prototype;h.getMessageId=function(){return xi(this,1)};h.setMessageId=function(a){return yj(this,1,a)};h.hasMessageId=function(){return wm(this,1)};h.getSessionId=function(){return xi(this,2)};h.setSessionId=function(a){return yj(this,2,a)};h.hasSessionId=function(){return wm(this,2)};h.getFeedbackType=function(){return Ii(this,3)};h.setFeedbackType=function(a){return Vn(this,3,a)};
h.hasFeedbackType=function(){return xm(this,3)};h.getFeedbackLabelsList=function(){return Vm(this,4,Oi())};h.setFeedbackLabelsList=function(a){return Zm(this,4,a)};h.addAllFeedbackLabels=function(a){Bc(this,4,Sb,a,Tb)};h.getFeedbackReason=function(){return xi(this,5)};h.setFeedbackReason=function(a){return yj(this,5,a)};h.hasFeedbackReason=function(){return wm(this,5)};var sHc=function(a,b){return Vn(a,6,b)};var tHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tHc,W);tHc.prototype.getFeedbackId=function(){return xi(this,1)};tHc.prototype.setFeedbackId=function(a){return yj(this,1,a)};var uHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",iB,tHc,function(a){return a.serialize()},yi(tHc));var vHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vHc,W);h=vHc.prototype;h.getMessageId=function(){return xi(this,1)};h.setMessageId=function(a){return yj(this,1,a)};h.hasMessageId=function(){return wm(this,1)};h.getSessionId=function(){return xi(this,2)};h.setSessionId=function(a){return yj(this,2,a)};h.hasSessionId=function(){return wm(this,2)};h.getText=function(){return xi(this,3)};h.setText=function(a){return yj(this,3,a)};
h.hasText=function(){return wm(this,3)};h.getSourceLinkList=function(){return Vm(this,4,Oi())};h.setSourceLinkList=function(a){return Zm(this,4,a)};h.addAllSourceLink=function(a){Bc(this,4,Sb,a,Tb)};var wHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wHc,W);var xHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",vHc,wHc,function(a){return a.serialize()},yi(wHc));var iua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iua,W);h=iua.prototype;h.getSessionId=function(){return xi(this,1)};h.setSessionId=function(a){return yj(this,1,a)};h.hasSessionId=function(){return wm(this,1)};h.getText=function(){return xi(this,2)};h.setText=function(a){return yj(this,2,a)};h.hasText=function(){return wm(this,2)};h.getDisallowRestrictedContent=function(){return Ri(this,3)};h.setDisallowRestrictedContent=function(a){return aj(this,3,a)};
h.hasDisallowRestrictedContent=function(){return Qi(this,3)};h.getConversationHistory=function(){return X(this,dB,4)};h.setConversationHistory=function(a){return Zi(this,dB,4,a)};h.hasConversationHistory=function(){return Ji(this,dB,4)};h.getDuckieClient=function(){return Ii(this,5)};h.setDuckieClient=function(a){return Vn(this,5,a)};h.getUserProvidedContextList=function(){return Ni(this,bj,6,Oi())};h.setUserProvidedContextList=function(a){$i(this,6,a)};
h.addAllUserProvidedContext=function(a){aq(this,6,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,6)};h.getAppProvidedContext=function(){return X(this,NA,7)};h.setAppProvidedContext=function(a){Zi(this,NA,7,a)};h.hasAppProvidedContext=function(){return Ji(this,NA,7)};h.getConversationAgent=function(){return X(this,YA,8)};h.setConversationAgent=function(a){return Zi(this,YA,8,a)};h.hasConversationAgent=function(){return Ji(this,YA,8)};var yHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yHc,W);h=yHc.prototype;h.getResponse=function(){return X(this,Xi,1)};h.getMutableResponse=function(){return Ui(this,Xi,1)};h.hasResponse=function(){return Ji(this,Xi,1)};h.getConversationHistory=function(){return X(this,dB,2)};h.setConversationHistory=function(a){return Zi(this,dB,2,a)};h.hasConversationHistory=function(){return Ji(this,dB,2)};h.getUserProvidedContextList=function(){return Ni(this,bj,3,Oi())};
h.setUserProvidedContextList=function(a){$i(this,3,a)};h.addAllUserProvidedContext=function(a){aq(this,3,bj,a)};h.getUserProvidedContextCount=function(){return Li(this,bj,3)};var zHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",iua,yHc,function(a){return a.serialize()},yi(yHc));var jB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jB,W);h=jB.prototype;h.getSessionId=function(){return xi(this,1)};h.setSessionId=function(a){return yj(this,1,a)};h.hasSessionId=function(){return wm(this,1)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return yj(this,2,a)};h.getSessionState=function(){return Ii(this,3)};h.setSessionState=function(a){return Vn(this,3,a)};h.hasSessionState=function(){return xm(this,3)};var AHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AHc,W);AHc.prototype.getSession=function(){return X(this,iHc,1)};var BHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",jB,AHc,function(a){return a.serialize()},yi(AHc));var kB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kB,W);kB.prototype.getUserState=function(){return X(this,gB,1)};kB.prototype.setUserState=function(a){return Zi(this,gB,1,a)};var CHc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CHc,W);CHc.prototype.getUserState=function(){return X(this,gB,1)};CHc.prototype.setUserState=function(a){return Zi(this,gB,1,a)};var DHc=new SA("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",kB,CHc,function(a){return a.serialize()},yi(CHc));var EHc=new Set(["SAPISIDHASH","APISIDHASH"]);var lB=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(lB,Error);lB.prototype.toString=function(){var a="RpcError("+(zta(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var mB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mB,W);mB.prototype.getCode=function(){return Um(this,1)};mB.prototype.setCode=function(a){return pn(this,1,a)};mB.prototype.getMessage=function(){return xi(this,2)};mB.prototype.setMessage=function(a){return Ym(this,2,a)};var FHc=yi(mB);var GHc=[],HHc=[],IHc=!1,JHc=function(a){GHc[GHc.length]=a;if(IHc)for(var b=0;b<HHc.length;b++)a(vj(HHc[b].wrap,HHc[b]))};var Fi=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};Fi.prototype.disposed_=!1;Fi.prototype.isDisposed=function(){return this.disposed_};Fi.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};Fi.prototype[Symbol.dispose]=function(){this.dispose()};var St=function(a,b){b=Ws(zi,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};Fi.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Ss=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};Ss.prototype.stopPropagation=function(){this.propagationStopped_=!0};Ss.prototype.preventDefault=function(){this.defaultPrevented=!0};var KHc=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 nB=function(a,b){Ss.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)};Qw(nB,Ss);
nB.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=nj||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
nj||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=yv?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&&nB.superClass_.preventDefault.call(this)};nB.prototype.stopPropagation=function(){nB.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};nB.prototype.preventDefault=function(){nB.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var LHc="closure_listenable_"+(Math.random()*1E6|0),oB=function(a){return!(!a||!a[LHc])};var Ata=0;var MHc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var Nta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Di.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=NHc(a,b,d,e);g>-1?(b=a[g],c||(b.callOnce=!1)):(b=new Bta(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};Di.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=NHc(e,b,c,d);return b>-1?(MHc(e[b]),wba(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var OHc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=La(a.listeners[c],b);d&&(MHc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};Di.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,MHc(d[e]);delete this.listeners[c];this.typeCount_--}return b};
Di.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=NHc(a,b,c,d));return e>-1?a[e]:null};Di.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Dta(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 NHc=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 PHc="closure_lm_"+(Math.random()*1E6|0),QHc={},RHc=0,uj=function(a,b,c,d,e){if(d&&d.once)return pB(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)uj(a,b[f],c,d,e);return null}c=SHc(c);return oB(a)?a.listen(b,c,Oa(d)?!!d.capture:!!d,e):THc(a,b,c,!1,d,e)},THc=function(a,b,c,d,e,f){if(!b)throw Error("fb");var g=Oa(e)?!!e.capture:!!e,k=UHc(a);k||(a[PHc]=k=new Di(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=VHc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)KHc||(e=g),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(WHc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("gb");RHc++;return c},VHc=function(){var a=XHc,b=function(c){return a.call(b.src,b.listener,c)};return b},pB=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)pB(a,b[f],c,d,e);return null}c=SHc(c);return oB(a)?a.listenOnce(b,c,Oa(d)?!!d.capture:!!d,e):THc(a,b,c,!0,d,e)},qB=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)qB(a,b[f],c,d,e);else d=Oa(d)?!!d.capture:!!d,c=SHc(c),oB(a)?a.unlisten(b,c,d,e):a&&(a=UHc(a))&&(b=a.getListener(b,c,d,e))&&rB(b)},rB=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(oB(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(WHc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);RHc--;(c=UHc(b))?(OHc(c,a),c.typeCount_==0&&(c.src=null,b[PHc]=null)):MHc(a);
return!0},WHc=function(a){return a in QHc?QHc[a]:QHc[a]="on"+a},XHc=function(a,b){if(a.removed)a=!0;else{b=new nB(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&rB(a);a=c.call(d,b)}return a},UHc=function(a){a=a[PHc];return a instanceof Di?a:null},YHc="__closure_events_fn_"+(Math.random()*1E9>>>0),SHc=function(a){if(typeof a==="function")return a;a[YHc]||(a[YHc]=function(b){return a.handleEvent(b)});return a[YHc]};JHc(function(a){XHc=a(XHc)});var ZHc=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 sB=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var sj=function(){Fi.call(this);this.eventTargetListeners_=new Di(this);this.actualEventTarget_=this;this.parentEventTarget_=null};Qw(sj,Fi);sj.prototype[LHc]=!0;h=sj.prototype;h.getParentEventTarget=function(){return this.parentEventTarget_};h.setParentEventTarget=function(a){this.parentEventTarget_=a};h.addEventListener=function(a,b,c,d){uj(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){qB(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 Ss(a,c);else if(a instanceof Ss)a.target=a.target||c;else{var e=a;a=new Ss(d,c);Ota(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(){sj.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 OHc(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 $Hc=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("hb`"+a);};Pta.prototype.serialize=function(a){var b=[];aIc(this,a,b);return b.join("")};
var aIc=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],aIc(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),bIc(d,c),c.push(":"),aIc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":bIc(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("ib`"+typeof b);}}},cIc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},dIc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,bIc=function(a,b){b.push('"',a.replace(dIc,
function(c){var d=cIc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),cIc[c]=d);return d}),'"')};var eIc,fIc=function(){};Qw(fIc,Qta);fIc.prototype.createInstance=function(){return new XMLHttpRequest};eIc=new fIc;var gIc=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")},hIc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},B$a=function(a){return!/[^0-9]/.test(a)},Ei=function(a){return encodeURIComponent(String(a))},eu=function(a){Vyc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Pyc,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(Qyc,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(Ryc,"&gt;")),a.indexOf('"')!=
-1&&(a=a.replace(Syc,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(Tyc,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(Uyc,"&#0;")));return a},iIc=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},Ypc=function(a,b,c){return a.replace(new RegExp(hs(b),"g"),c.replace(/\$/g,"$$$$"))},hs=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},jIc=String.prototype.repeat?
function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},tB=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+jIc("0",Math.max(0,b-c))+a},hu=function(a){return a==null?"":String(a)},GDb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},xJa=Math.random()*2147483648|0,Km=function(a){var b=
Number(a);return b==0&&ya(a)?NaN:b},Suc=function(){return"height".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})},Rpc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},pj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Gm=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},kIc=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 lIc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),$ta=/#|$/;var Rs=function(a){sj.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};Qw(Rs,sj);
var mIc=/^https?$/i,nIc=["POST","PUT"],oIc=[],ypb=function(a,b,c,d,e,f,g){var k=new Rs;oIc.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=Rs.prototype;h.cleanupSend_=function(){this.dispose();La(oIc,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("jb`"+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=sB(vj(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){this.error_(5,g);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,
d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=l(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("kb`"+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=ra.FormData&&a instanceof ra.FormData;!Ka(nIc,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=l(c);for(d=b.next();!d.done;d=b.next())c=l(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,
c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(g){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(g){}try{this.timeoutId_&&(clearTimeout(this.timeoutId_),
this.timeoutId_=null),this.timeoutInterval_>0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(g){this.error_(5,g)}};h.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():eIc.createInstance()};h.timeout_=function(){typeof uyc!="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;pIc(this);qIc(this)};var pIc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};Rs.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"),qIc(this))};
Rs.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),qIc(this,!0));Rs.superClass_.disposeInternal.call(this)};Rs.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)rIc(this);else this.onReadyStateChangeEntryPoint_()};Rs.prototype.onReadyStateChangeEntryPoint_=function(){rIc(this)};
var rIc=function(a){if(a.active_&&typeof uyc!="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()+"]";pIc(a)}}finally{qIc(a)}}},qIc=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=Rs.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(lIc)[1]||null,!a&&ra.self&&ra.self.location&&(a=ra.self.location.protocol.slice(0,-1)),a=!mIc.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=$Hc(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=kIc(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 Cta(a,function(g){return g.join(", ")})};var eua=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};Rs.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
Rs.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};JHc(function(a){Rs.prototype.onReadyStateChangeEntryPoint_=a(Rs.prototype.onReadyStateChangeEntryPoint_)});var tIc=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&&sIc(this)},AIc=function(a,b){var c=new uIc;uj(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("lb");d=atob(d)}try{var e=
a.grpcResponseDeserializeFn(d)}catch(k){vIc(a,bua(new lB(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=yta(a.xhr.getStatus());wIc(a,xIc(a));d===0?yIc(a,e):vIc(a,bua(new lB(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr.getResponseText();e=xIc(a);if(d){var f=zIc(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;wIc(a,e);vIc(a,bua(new lB(d,g,f),c))}})},sIc=function(a){a.xhrNodeReadableStream.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn(c)}catch(e){vIc(a,new lB(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&yIc(a,d)}if("2"in b)for(b=zIc(a,b["2"]),c=0;c<a.onStatusCallbacks.length;c++)a.onStatusCallbacks[c](b)});a.xhrNodeReadableStream.on("end",function(){wIc(a,xIc(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=yta(c);break;default:d=14}wIc(a,xIc(a));b=ZHc(b)+", error: "+a.xhr.getLastError();c!==-1&&(b+=", http status code: "+c);vIc(a,new lB(d,b))}})},xIc=function(a){var b={},c=a.xhr.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
zIc=function(a,b){var c=2,d={};try{var e=FHc(b);c=e.getCode();var f=e.getMessage();Ni(e,er,3,Oi()).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}};
tIc.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 BIc=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
tIc.prototype.removeListener=function(a,b){a==="data"?BIc(this.onDataCallbacks,b):a==="metadata"?BIc(this.onMetadataCallbacks,b):a==="status"?BIc(this.onStatusCallbacks,b):a==="end"?BIc(this.onEndCallbacks,b):a==="error"&&BIc(this.onErrorCallbacks,b);return this};tIc.prototype.cancel=function(){this.xhr.abort()};
var yIc=function(a,b){for(var c=0;c<a.onDataCallbacks.length;c++)a.onDataCallbacks[c](b)},wIc=function(a,b){for(var c=0;c<a.onMetadataCallbacks.length;c++)a.onMetadataCallbacks[c](b)},vIc=function(a,b){for(var c=0;c<a.onErrorCallbacks.length;c++)a.onErrorCallbacks[c](b)},uIc=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(uIc,Error);var CIc=function(a){return function(){return a}},uB=function(){},DIc=function(a){return a},vB=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)}},EIc=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()}},FIc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ra.setTimeout(c,1E3),a.apply(void 0,
arguments))}};var wB=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};Qw(wB,Qta);wB.prototype.createInstance=function(){var a=new xB(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};wB.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};wB.prototype.setCacheMode=function(a){this.cacheMode_=a};
var xB=function(a,b){sj.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};
Qw(xB,sj);xB.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("mb");this.method_=a;this.url_=b;this.readyState=1;GIc(this)};
xB.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("nb");if(this.abortController_.signal.aborted)throw this.abort(),Error("ob");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))};
xB.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,HIc(this));this.readyState=0};
xB.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,GIc(this)),this.inProgress_&&(this.readyState=3,GIc(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("pb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;IIc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var IIc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
xB.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?HIc(this):GIc(this);this.readyState==3&&IIc(this)}};xB.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,HIc(this))};
xB.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,HIc(this))};xB.prototype.handleSendFailure_=function(){this.inProgress_&&HIc(this)};var HIc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;GIc(a)};h=xB.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 GIc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(xB.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var JIc=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 Eta(a)},KIc=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}}},LIc=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=KIc(a),e=JIc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var ht=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof ht?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,yB(this,a.scheme_),this.userInfo_=a.userInfo_,zB(this,a.getDomain()),AB(this,a.port_),this.setPath(a.getPath()),MIc(this,a.queryData_.clone()),NIc(this,a.fragment_)):a&&(c=String(a).match(lIc))?(this.ignoreCase_=!!b,yB(this,c[1]||"",!0),this.userInfo_=BB(c[2]||""),zB(this,c[3]||"",!0),AB(this,c[4]),this.setPath(c[5]||
"",!0),MIc(this,c[6]||"",!0),NIc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new CB(null,this.ignoreCase_))};
ht.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(OIc(b,PIc,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(OIc(b,PIc,!0),"@"),a.push(Ei(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(OIc(c,c.charAt(0)=="/"?QIc:RIc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",OIc(c,SIc));return a.join("")};
ht.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?yB(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.domain_;c?zB(b,a.getDomain()):c=a.port_!=null;var d=a.getPath();if(c)AB(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?MIc(b,a.queryData_.clone()):c=!!a.fragment_;c&&NIc(b,a.fragment_);return b};ht.prototype.clone=function(){return new ht(this)};var yB=function(a,b,c){a.scheme_=c?BB(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};ht.prototype.getDomain=function(){return this.domain_};
var zB=function(a,b,c){a.domain_=c?BB(b,!0):b;return a},AB=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("qb`"+b);a.port_=b}else a.port_=null;return a};ht.prototype.getPath=function(){return this.path_};ht.prototype.setPath=function(a,b){this.path_=b?BB(a,!0):a;return this};ht.prototype.hasPath=function(){return!!this.path_};ht.prototype.hasQuery=function(){return this.queryData_.toString()!==""};
var MIc=function(a,b,c){b instanceof CB?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=OIc(b,TIc)),a.queryData_=new CB(b,a.ignoreCase_));return a};ht.prototype.setQuery=function(a){return MIc(this,a)};ht.prototype.getQuery=function(){return this.queryData_.toString()};var Wt=function(a,b,c){a.queryData_.set(b,c);return a},Vt=function(a,b){return a.queryData_.get(b)},NIc=function(a,b,c){a.fragment_=c?BB(b):b;return a},UIc=function(a){Wt(a,"zx",GDb());return a};
ht.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};ht.prototype.isReadOnly=function(){return!1};ht.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var Ut=function(a,b){return a instanceof ht?a.clone():new ht(a,b)},VIc=function(a,b,c,d,e){var f=new ht(null);a&&yB(f,a);b&&(f.userInfo_=b);c&&zB(f,c);d&&AB(f,d);e&&f.setPath(e);return f},BB=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},OIc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,WIc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},WIc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
PIc=/[#\/\?@]/g,RIc=/[#\?:]/g,QIc=/[#\?]/g,TIc=/[#\?@]/g,SIc=/#/g,CB=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},DB=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Sta(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=CB.prototype;h.getCount=function(){DB(this);return this.count_};
h.add=function(a,b){DB(this);this.encodedQuery_=null;a=EB(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){DB(this);a=EB(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(){DB(this);return this.count_==0};h.containsKey=function(a){DB(this);a=EB(this,a);return this.keyMap_.has(a)};
h.forEach=function(a,b){DB(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.getKeys=function(){DB(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){DB(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(EB(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){DB(this);this.encodedQuery_=null;a=EB(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(EB(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=Ei(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+Ei(d[f]));a.push(g)}}return this.encodedQuery_=a.join("&")};
h.clone=function(){var a=new CB;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var EB=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};CB.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(DB(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};
CB.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)LIc(arguments[b],function(c,d){this.add(d,c)},this)};var XIc=function(a){var b="";Ai(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},YIc=function(a,b,c){if(Ita(c))return a;c=XIc(c);if(typeof a==="string")return Zta(a,Ei(b),c);Wt(a,b,c);return a};Qw(Gi,Fi);var ZIc=[];Gi.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(ZIc[0]=b.toString()),b=ZIc);for(var e=0;e<b.length;e++){var f=uj(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};Gi.prototype.listenOnce=function(a,b,c,d){return $Ic(this,a,b,c,d)};var $Ic=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)$Ic(a,b,c[g],d,e,f);else{b=pB(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
Gi.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=SHc(c),d=!!d,b=oB(a)?a.getListener(b,c,d,e):a?(a=UHc(a))?a.getListener(b,c,d,e):null:null,b&&(rB(b),delete this.keys_[b.key]);return this};Gi.prototype.removeAll=function(){Ai(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&rB(a)},this);this.keys_={}};
Gi.prototype.disposeInternal=function(){Gi.superClass_.disposeInternal.call(this);this.removeAll()};Gi.prototype.handleEvent=function(){throw Error("sb");};cua.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("tb`"+this.streamPos_+"`"+b+"`"+a);};cua.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=Tba(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};Hi.prototype.getErrorMessage=function(){return this.errorMessage_};Hi.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_);};Hi.prototype.acceptsBinaryInput=function(){return!0};
Hi.prototype.parse=function(a){function b(m){m&128&&f.error_(g,k,"invalid tag");(m&7)!=2&&f.error_(g,k,"invalid wire type");f.tag_=m>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(g,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(m){f.countLengthBytes_++;f.countLengthBytes_==5&&m&240&&f.error_(g,k,"message length too long");f.length_|=(m&127)<<(f.countLengthBytes_-1)*7;m&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),f.length_==0&&e())}function d(m){f.messageBuffer_[f.countMessageBytes_++]=m;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var m={};m[f.tag_]=f.messageBuffer_;f.result_.push(m)}f.state_=0}for(var f=this,g=a instanceof Array?a:new Uint8Array(a),k=0;k<g.length;){switch(f.state_){case 3:f.error_(g,k,"stream already broken");break;case 0:b(g[k]);break;case 1:c(g[k]);break;case 2:d(g[k]);break;default:throw Error("ub`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var gua=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new cua;this.pbParser_=new Hi};gua.prototype.getErrorMessage=function(){return this.errorMessage_};gua.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};gua.prototype.acceptsBinaryInput=function(){return!1};
gua.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 FB=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};h=dua.prototype;h.getErrorMessage=function(){return this.errorMessage_};h.done=function(){return this.streamState_===2};h.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};h.acceptsBinaryInput=function(){return!1};
h.parse=function(a){function b(){for(;x<a.length;)if(FB(a[x]))x++,f.pos_++;else break;return x<m}function c(){for(var H;;){H=a[x++];if(!H)break;f.pos_++;switch(f.state_){case 0:H==="{"?f.state_=2:H==="["?f.state_=4:FB(H)||f.error_(a,x);continue;case 7:case 2:if(FB(H))continue;if(f.state_===7)g.push(8);else if(H==="}"){e("{}");f.state_=d();continue}else g.push(3);H==='"'?f.state_=6:f.error_(a,x);continue;case 8:case 3:if(FB(H))continue;H===":"?(f.state_===3&&(g.push(3),f.depth_++),f.state_=1):H===
"}"?(f.depth_--,e(),f.state_=d()):H===","?(f.state_===3&&g.push(3),f.state_=7):f.error_(a,x);continue;case 4:case 1:if(FB(H))continue;if(f.state_===4)if(f.depth_++,f.state_=1,H==="]"){f.depth_--;if(f.depth_===0){f.state_=5;return}e("[]");f.state_=d();continue}else g.push(5);H==='"'?f.state_=6:H==="{"?f.state_=2:H==="["?f.state_=4:H==="t"?f.state_=9:H==="f"?f.state_=12:H==="n"?f.state_=16:H!=="-"&&("0123456789".indexOf(H)!==-1?f.state_=20:f.error_(a,x));continue;case 5:if(H===",")g.push(5),f.state_=
1,f.depth_===1&&(w=x);else if(H==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(FB(H))continue;else f.error_(a,x);continue;case 6:var J=x;a:for(;;){for(;f.unicodeCount_>0;)if(H=a[x++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,!H)break a;if(H==='"'&&!f.slashed_){f.state_=d();break}if(H==="\\"&&!f.slashed_&&(f.slashed_=!0,H=a[x++],!H))break;if(f.slashed_)if(f.slashed_=!1,H==="u"&&(f.unicodeCount_=1),H=a[x++])continue;else break;k.lastIndex=x;H=k.exec(a);if(!H){x=a.length+
1;break}x=H.index+1;H=a[H.index];if(!H)break}f.pos_+=x-J;continue;case 9:if(!H)continue;H==="r"?f.state_=10:f.error_(a,x);continue;case 10:if(!H)continue;H==="u"?f.state_=11:f.error_(a,x);continue;case 11:if(!H)continue;H==="e"?f.state_=d():f.error_(a,x);continue;case 12:if(!H)continue;H==="a"?f.state_=13:f.error_(a,x);continue;case 13:if(!H)continue;H==="l"?f.state_=14:f.error_(a,x);continue;case 14:if(!H)continue;H==="s"?f.state_=15:f.error_(a,x);continue;case 15:if(!H)continue;H==="e"?f.state_=
d():f.error_(a,x);continue;case 16:if(!H)continue;H==="u"?f.state_=17:f.error_(a,x);continue;case 17:if(!H)continue;H==="l"?f.state_=18:f.error_(a,x);continue;case 18:if(!H)continue;H==="l"?f.state_=d():f.error_(a,x);continue;case 19:H==="."?f.state_=20:f.error_(a,x);continue;case 20:if("0123456789.eE+-".indexOf(H)!==-1)continue;else x--,f.pos_--,f.state_=d();continue;default:f.error_(a,x)}}}function d(){var H=g.pop();return H!=null?H:1}function e(H){f.depth_>1||(H||(H=w===-1?f.buffer_+a.substring(r,
x):a.substring(w,x)),f.deliverMessageAsRawString_?f.result_.push(H):f.result_.push(JSON.parse(H)),w=x)}for(var f=this,g=f.stack_,k=f.stringInputPattern_,m=a.length,r=0,w=-1,x=0;x<m;)switch(f.streamState_){case 3:return f.error_(a,x),null;case 2:return b()&&f.error_(a,x),null;case 0:if(b()){var D=a[x++];f.pos_++;if(D==="["){f.streamState_=1;r=x;f.state_=4;continue}else f.error_(a,x)}return null;case 1:return c(),f.depth_===0&&f.state_==5?(f.streamState_=2,f.buffer_=a.substring(x)):f.buffer_=w===-1?
f.buffer_+a.substring(r):a.substring(w),f.result_.length>0?(D=f.result_,f.result_=[],D):null}return null};var fua=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};fua.prototype.getErrorMessage=function(){return this.errorMessage_};fua.prototype.acceptsBinaryInput=function(){return!1};
fua.prototype.parse=function(a){function b(m){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+g+". Error: "+m+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new dua({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(m){if(m)for(var r=0;r<m.length;r++){var w={};w[1]=m[r];f.result_.push(w)}}function e(m){if(m){(f.statusParsed_||m.length>1)&&b("extra status: "+m);f.statusParsed_=!0;var r={};r[2]=m[0];f.result_.push(r)}}for(var f=
this,g=0;g<a.length;){var k;if(k=f.state_!==2){a:{for(;g<a.length;){if(!FB(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 aJc=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 Gi(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};aJc.prototype.getXhr=function(){return this.xhr_};
var GB=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},bJc=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};aJc.prototype.getStatus=function(){return this.status_};
aJc.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?GB(this,7):c==7?GB(this,8):d||GB(this,3)),this.parser_||(this.parser_=hua(this.xhr_),
this.parser_==null&&GB(this,5)),this.status_>2)bJc(this);else{if(a.length>this.pos_){var g=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<g;k++){var m=this.parser_.parse(Array.from(a[k]));m&&(c=c.concat(m))}else{m="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("vb");this.textDecoder_=new TextDecoder}for(k=0;k<g;k++)m+=this.textDecoder_.decode(a[k],{stream:b==4&&k==g-1});c=this.parser_.parse(m)}a.splice(0,g);c&&this.dataHandler_(c)}catch(w){GB(this,
5);bJc(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){GB(this,5);bJc(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?GB(this,2):GB(this,4),bJc(this)):GB(this,1)}}}catch(w){GB(this,6),bJc(this)}};var cJc=function(a){a=this.xhrReader_=a;var b=vj(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=vj(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};h=cJc.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&&dJc(this,a,b);(b=this.callbackOnceMap_.data)&&dJc(this,a,b);this.callbackOnceMap_.data=[]};
var dJc=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$896:void 0},e++)d.message$jscomp$896=b[e],c.forEach(function(f){return function(g){try{g(f.message$jscomp$896)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};cJc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:eJc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:eJc(this,"error");break;case 8:eJc(this,"close");break;case 2:eJc(this,"end")}};
var eJc=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]=[]};cJc.prototype.handleError_=function(){};var fJc=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||jv("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||jv("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},iJc=function(a,b,c,d,e,f){f=f===void 0?{}:f;var g=b.substring(0,b.length-e.name.length),k,m=(k=f)==null?void 0:k.signal;return gJc(function(r){return new Promise(function(w,
x){if(m==null?0:m.aborted){var D=new lB(1,"Aborted");D.cause=m.reason;x(D)}else{var H={},J=hJc(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))});m&&m.addEventListener("abort",function(){J.cancel();var O=new lB(1,"Aborted");O.cause=m.reason;x(O)})}})},a.unaryInterceptors).call(a,LGc(e,c,d)).then(function(r){return r.responseMessage})},HB=function(a,b,c,d,e,f){f=f===void 0?{}:f;return iJc(a,b,c,d,
e,f)};fJc.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return jJc(function(g){var k=g.methodDescriptor,m=g.getMetadata(),r=kJc(e,!1);m=lJc(e,m,r,f+k.getName());var w=mJc(r,k.responseDeserializeFn,!0);g=k.requestSerializeFn(g.requestMessage);r.send(m,"POST",g);return w},this.streamInterceptors).call(this,LGc(d,b,c))};
var hJc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=kJc(a,!0);a=lJc(a,e,f,c+d.getName());c=mJc(f,d.responseDeserializeFn,!1);AIc(c,e["X-Goog-Encode-Response-If-Executable"]==="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},kJc=function(a,b){b=a.chunkedServerStreaming&&!b;return a.workerScope||b?new Rs(new wB({worker:a.workerScope,streamBinaryChunks:b})):new Rs},lJc=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&&EHc.has(e.split(" ")[0])||a.withCredentials)c.withCredentials_=!0;if(a.suppressCorsPreflight)d=YIc(d,"$httpHeaders",b);else for(a=l(Object.keys(b)),e=a.next();!e.done;e=a.next())e=e.value,c.headers.set(e,b[e]);return d},mJc=function(a,b,c){if(c){c=new aJc(a);var d=new cJc(c)}return new tIc({xhr:a,nodeReadableStream:d},b)},jJc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)},gJc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,
c)}},a)};var nJc=function(a,b){b=b||{};b.format="jspb";this.client_=new fJc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};h=nJc.prototype;h.generateAnswers=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",a,{},hHc)};h.streamGenerateAnswers=function(a){return this.client_.serverStreaming(this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",a,{},zHc)};
h.getSessionSummaries=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",a,{},oHc)};h.getSession=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",a,{},kHc)};h.updateSession=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",a,{},BHc)};
h.deleteSession=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",a,{},NGc)};h.provideFeedback=function(a,b){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",a,b||{},uHc)};h.provideRewrite=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",a,{},xHc)};
h.getUserState=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",a,{},rHc)};h.updateUserState=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",a,{},DHc)};var IB=function(a,b){this.duckieBackendServicePromiseClientFactory=a;this.experimentsService=b;this.client=a.create(xta())};h=IB.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)})};IB.\u0275fac=function(a){return new (a||IB)(Zc(JB),Zc(GA))};
IB.\u0275prov=Fc({token:IB,factory:IB.\u0275fac,providedIn:"root"});var JB=function(){};JB.prototype.create=function(a){return new nJc(a,{withCredentials:!0,suppressCorsPreflight:!0})};JB.\u0275fac=function(a){return new (a||JB)};JB.\u0275prov=Fc({token:JB,factory:JB.\u0275fac,providedIn:"root"});var oJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oJc,W);oJc.prototype.getLabel=function(){return xi(this,1)};oJc.prototype.setLabel=function(a){return Ym(this,1,a)};oJc.prototype.getPrompt=function(){return xi(this,2)};var pJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pJc,W);pJc.prototype.getTitle=function(){return xi(this,1)};pJc.prototype.setTitle=function(a){return Ym(this,1,a)};var KB=function(){this.hasParentIntegratorValue=!1;this.overridesService=p(RA);this.duckieService=p(IB);this.duckieClient=p(cGc)};KB.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};KB.prototype.addPreamble=function(a){this.overridesService.addPreamble(a)};KB.prototype.setAppProvidedContext=function(a){this.overridesService.setAppProvidedContext(a)};
KB.prototype.setOnboardingExamplesList=function(a){var b=[];a=Ni(a,pJc,1,Oi());a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.getTitle();var e=eAc(d,oJc,2);if(c&&e.length){d=[];e=l(e);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.getLabel();g=g.getPrompt();f!==void 0&&g!==void 0&&d.push({label:f,prompt:g})}c={title:c,examples:d}}else c=null;c!==null&&b.push(c)}this.overridesService.setOnboardingExamplesList(b)};
var qJc=function(a){var b=document.getElementById("ask-duckie-input");b.value=a;b.dispatchEvent(new Event("input",{bubbles:!0}))};KB.\u0275fac=function(a){return new (a||KB)};KB.\u0275prov=Fc({token:KB,factory:KB.\u0275fac,providedIn:"root"});var LB=function(){this.experimentsService=p(GA);this.communicationService=p(KB);this.availableConversationAgentsInternal=new Wj([]);this.currentConversationAgentInternal=new Wj(this.experimentsService.a2aDefaultAgentEnabled?Byc:Cyc);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(Sw);this.duckieConversationAgentEnabled&&a.push(Tw);this.availableConversationAgentsInternal.next(a)},MB=function(a){return a.currentConversationAgentInternal.getValue()},rJc=function(a){return MB(a).modelId===Tw.modelId||MB(a).modelId===Eyc.modelId||MB(a).modelId===Fyc.modelId};LB.\u0275fac=function(a){return new (a||LB)};
LB.\u0275prov=Fc({token:LB,factory:LB.\u0275fac,providedIn:"root"});var sJc={ONBOARDING:1,THREAD:2,1:"ONBOARDING",2:"THREAD"},NB=function(){this.state$=new Wj({params:{},queryParams:{},activeView:1});this.events$=new sf;this.activeView$=this.state$.pipe(A(function(a){return a.activeView}),pf())},tJc=function(a){return a.filter(function(b){return typeof b==="string"}).join("")};NB.\u0275fac=function(a){return new (a||NB)};NB.\u0275prov=Fc({token:NB,factory:NB.\u0275fac,providedIn:"root"});var uJc=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 vJc=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 OB=function(){this._isDisposed=!1;this._elementRef=p(Jd);this._focusTrapFactory=p(jz);this._interactivityChecker=p(ez);this._ngZone=p(Tg);this._focusMonitor=p(bz);this._renderer=p(fi);this._changeDetectorRef=p(Px);this._injector=p(Ae);this._platform=p(Yh);this._document=p(Uh);this._focusTrapped=new sf;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._isDestroyed=!1;this._config=p(vJc,{optional:!0})||new vJc;this._config.ariaLabelledBy&&
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Y(OB,eA);h=OB.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=Lh();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(cz(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=Lh();return a===b||a.contains(b)};h._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Lh()))};OB.\u0275fac=function(a){return new (a||OB)};
OB.\u0275cmp=C({type:OB,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&jg(gA,7);if(a&2){var c;ng(c=og())&&(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,Aua,0,0,"ng-template",0)},dependencies:[gA],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var wJc=new ed("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Zra(a)}}}),xJc=new ed("DialogData"),yJc=new ed("DefaultDialogConfig");var zJc=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||Jh(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=zJc.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 PB=function(){this._injector=p(Ae);this._defaultOptions=p(yJc,{optional:!0});this._parentDialog=p(PB,{optional:!0,skipSelf:!0});this._overlayContainer=p(Zh);this._idGenerator=p(di);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new sf;this._afterOpenedAtThisLevel=new sf;this._ariaHiddenElements=new Map;this._scrollStrategy=p(wJc)};h=PB.prototype;
h.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new vJc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=ni(this._injector,d);var e=new zJc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;if(!this.openDialogs.length){var f=gsa(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(){Cua(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;Cua(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});Cua(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
h._getOverlayConfig=function(a){var b=new gi({positionStrategy:a.positionStrategy||jFc(Yz(new Xz)),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:vJc,useValue:c},{provide:zJc,useValue:b},{provide:hi,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=OB;c=new cA(d,c.viewContainerRef,$g({parent:e||this._injector,providers:b}));return a.attach(c).instance};
h._attachDialogContent=function(a,b,c,d){if(a instanceof gg){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 dA(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new cA(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:xJc,useValue:a.data},{provide:zJc,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(ei,null,{optional:!0})||e.push({provide:ei,useValue:Bua(a.direction)});return $g({parent:f||d,providers:e})};
h._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
h._hideNonDialogContentFromAssistiveTechnology=function(a){if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;c>-1;c--){var d=b[c];d===a||d.nodeName==="SCRIPT"||d.nodeName==="STYLE"||d.hasAttribute("aria-live")||d.hasAttribute("popover")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
da.Object.defineProperties(PB.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}}});PB.\u0275fac=function(a){return new (a||PB)};PB.\u0275prov=Fc({token:PB,factory:PB.\u0275fac,providedIn:"root"});var QB=function(){};QB.\u0275fac=function(a){return new (a||QB)};QB.\u0275mod=cf({type:QB});QB.\u0275inj=Gc({providers:[PB],imports:[lA,hA,tz,hA]});var RB=function(){OB.apply(this,arguments);var a=this;this._animationStateChanged=new gj;this._animationsEnabled=!pi();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=Eua(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=Eua(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(RB,OB);h=RB.prototype;h._contentAttached=function(){OB.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(){OB.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
h.attachComponentPortal=function(a){a=OB.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};RB.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RB)))(b||RB)}}();
RB.\u0275cmp=C({type:RB,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Sf("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),yg("_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,Dua,0,0,"ng-template",2),L()())},dependencies:[gA],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 SB=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&&!Jh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
SB.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();ZEc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},d.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()};
SB.prototype.afterOpened=function(){return this._afterOpened};var TB=function(a){return a._ref.closed};h=SB.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):Yz(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):jFc(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 UB=new ed("MatMdcDialogData"),AJc=new ed("mat-mdc-dialog-default-options"),BJc=new ed("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Zra(a)}}}),VB=function(){this._defaultOptions=p(AJc,{optional:!0});this._scrollStrategy=p(BJc);this._parentDialog=p(VB,{optional:!0,skipSelf:!0});this._idGenerator=p(di);this._injector=p(Ae);this._dialog=p(PB);this._animationsDisabled=pi();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new sf;this._afterOpenedAtThisLevel=new sf;this.dialogConfigClass=uJc;this._dialogRefConstructor=SB;this._dialogContainerType=RB;this._dialogDataToken=UB};h=VB.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 uJc,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:jFc(Yz(new Xz)),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:vJc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(g,k,m){d=new c._dialogRefConstructor(g,b,m);var r;d.updatePosition((r=b)==null?void 0:r.position);return[{provide:c._dialogContainerType,useValue:m},{provide:c._dialogDataToken,useValue:k.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentRef=a.componentRef;
d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);TB(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(VB.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}}});VB.\u0275fac=function(a){return new (a||VB)};VB.\u0275prov=Fc({token:VB,factory:VB.\u0275fac,providedIn:"root"});var WB=function(){this.dialogRef=p(SB,{optional:!0});this._elementRef=p(Jd);this._dialog=p(VB);this.type="button"};WB.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Fua(this._elementRef,this._dialog.openDialogs))};WB.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
WB.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};WB.\u0275fac=function(a){return new (a||WB)};
WB.\u0275dir=df({type:WB,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:[xx]});
var XB=function(){this._dialogRef=p(SB,{optional:!0});this._elementRef=p(Jd);this._dialog=p(VB)};XB.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Fua(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};XB.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};XB.\u0275fac=function(a){return new (a||XB)};XB.\u0275dir=df({type:XB});
var YB=function(){XB.apply(this,arguments);this.id=p(di).getId("mat-mdc-dialog-title-")};Y(YB,XB);YB.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};YB.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};YB.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YB)))(b||YB)}}();
YB.\u0275dir=df({type:YB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Sf("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Gf]});var ZB=function(){};ZB.\u0275fac=function(a){return new (a||ZB)};
ZB.\u0275dir=df({type:ZB,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=Yla,c.hostDirectives=d?a.map($la):[a]):d?c.hostDirectives.unshift.apply(c.hostDirectives,q(a.map($la))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([Lz])]});var $B=function(){XB.apply(this,arguments)};
Y($B,XB);$B.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};$B.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};$B.\u0275fac=function(){var a;return function(b){return(a||(a=Hd($B)))(b||$B)}}();
$B.\u0275dir=df({type:$B,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(a,b){a&2&&yg("mat-mdc-dialog-actions-align-start",b.align==="start")("mat-mdc-dialog-actions-align-center",b.align==="center")("mat-mdc-dialog-actions-align-end",b.align==="end")},inputs:{align:"align"},features:[Gf]});var aC=function(){};aC.\u0275fac=function(a){return new (a||aC)};aC.\u0275mod=cf({type:aC});aC.\u0275inj=Gc({providers:[VB],imports:[QB,lA,hA,Zy]});var CJc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],DJc=function(){};DJc.\u0275fac=function(a){return new (a||DJc)};DJc.\u0275dir=df({type:DJc,selectors:[["xap-dialog-layout-subtitle"]]});var bC=function(){this.el=p(Jd);this.cdRef=p(Px);this.ngZone=p(Tg);this.destroyRef=p(Ee);this.internalScrollable=!1;this.internalScrollPosition="bottom"};
bC.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){EJc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});FJc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};
var EJc=function(a){if(!window.ResizeObserver)return ee(GJc(a.el.nativeElement));var b;return lia(function(c){b=new ResizeObserver(function(){c(GJc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(pf(),fj(a.destroyRef))},FJc=function(a){return re(a.el.nativeElement,"scroll").pipe(wua(),A(function(){return a.getScrollPosition(a.el.nativeElement)}),pf(),fj(a.destroyRef))},GJc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
bC.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};da.Object.defineProperties(bC.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});bC.\u0275fac=function(a){return new (a||bC)};
bC.\u0275dir=df({type:bC,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&yg("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke",b.scrollPosition!=="bottom")("xap-dialog-layout-top-scroll-stroke",b.scrollPosition!=="top")}});var eC=function(){};eC.\u0275fac=function(a){return new (a||eC)};
eC.\u0275cmp=C({type:eC,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&kg(c,DJc,4);if(a&2){var d;ng(d=og())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&yg("xap-dialog-layout-bordered-header",b.subtitle)},ngContentSelectors:["xap-dialog-layout-title","xap-dialog-layout-subtitle","xap-dialog-layout-content","xap-dialog-layout-actions"],decls:5,vars:0,consts:[[1,"xap-dialog-header-container"]],template:function(a){a&1&&(eg(CJc),
Tf(0,"header",0),fg(1),fg(2,1),Uf(),fg(3,2),fg(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 Wl=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=Wl.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(),HJc(this));this._started=!0};var HJc=function(a){queueMicrotask(function(){return a._onFinish()})};h=Wl.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 tIa=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=tIa.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 IJc=ij({opacity:0}),JJc=ij({opacity:1}),KJc=Gua("dialogContainer",[jj("void, hidden",IJc),jj("visible",JJc),kj("void => *, * => visible",hj("200ms cubic-bezier(0.0,0.0,0.2,1)",JJc)),kj("* => void, * => hidden",hj("200ms cubic-bezier(0.4,0.0,0.2,1)",IJc))]);var LJc=new ed("XAP_IDCO"),fC=function(){eA.apply(this,arguments);this.portalOutlet=Rg.required(gA);this.animationState="hidden";this.options=p(LJc);this.changeDetector=p(Px)};Y(fC,eA);fC.prototype.ngAfterViewInit=function(){};fC.prototype.attachComponentPortal=function(a){return this.portalOutlet().attachComponentPortal(a)};fC.prototype.attachTemplatePortal=function(a){return this.portalOutlet().attachTemplatePortal(a)};var MJc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
fC.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(fC)))(b||fC)}}();
fC.\u0275cmp=C({type:fC,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&qg(b.portalOutlet,gA);a&2&&rg()},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(jna("@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,Hua,1,0,"ng-template",0),L())},dependencies:[tz,hA,gA],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:[KJc]},changeDetection:0});var NJc=[{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}],OJc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},gC=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=OJc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new gj;this.opened=new gj;this.closed=new gj;this.destroyed=new wf;this.openStatusChange=new Wj(!1);this.openings=this.openStatusChange.pipe(we(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=p(Tg);this.overlay=p(iA);this.elementRef=p(Jd);this.viewContainerRef=p(hg);this.document=p(Uh);this.focusTrapFactory=
p(zz);this.ariaDescriber=p(uz);this.injector=p(Ae);PJc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);QJc(this,this.elementRef.nativeElement)};gC.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||vz(this.ariaDescriber,a,this.triggerDescription)};
gC.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var PJc=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()}})})},QJc=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=gC.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=RJc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);MJc(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)||(MJc(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),hz(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};h.focusInitialElement=function(){this.focusTrap&&pEc(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 Uz($z(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var SJc=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()}},RJc=function(a){var b=$g({parent:a.injector,providers:[{provide:LJc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new cA(fC,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(NJc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&$Ec(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
da.Object.defineProperties(gC.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof gg?new dA(a,this.viewContainerRef):new cA(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=Oh(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}}}});gC.\u0275fac=function(a){return new (a||gC)};
gC.\u0275dir=df({type:gC,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 hC=function(){gC.call(this);this.hasBackdrop=Qg.apply(null,[!0].concat(q([{alias:"xapInlineDialogClickHasBackdrop",transform:bh}])));this.renderer=p(fi);this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(hC,gC);h=hC.prototype;h.ngOnInit=function(){gC.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}),Sla(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 gi(Object.assign({},this.overlayDimensions,{positionStrategy:gC.prototype.createPositionStrategy.call(this,a),scrollStrategy:SJc(this),hasBackdrop:this.hasBackdrop(),backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};hC.\u0275fac=function(a){return new (a||hC)};
hC.\u0275dir=df({type:hC,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 TJc=new ed("GM2_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var UJc=new ed("MAT_BUTTON_CONFIG"),iC=function(){this._elementRef=p(Jd);this._ngZone=p(Tg);this._animationsDisabled=pi();this._config=p(UJc,{optional:!0});this._focusMonitor=p(bz);this._renderer=p(fi);this._rippleLoader=p(BA);this._disabled=this._disableRipple=this._isFab=!1;p(bi).load(sA);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||NFc(f,a,{className:"mat-mdc-button-ripple"})};h=iC.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||MFc(b,this._elementRef.nativeElement)};
h.focus=function(a,b){(a=a===void 0?"program":a)?cz(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(iC.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}}});iC.\u0275fac=function(a){return new (a||iC)};
iC.\u0275dir=df({type:iC,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()),zg(b.color?"mat-"+b.color:""),yg("mat-mdc-button-disabled",b.disabled)("mat-mdc-button-disabled-interactive",b.disabledInteractive)("mat-unthemed",!b.color)("_mat-animation-noopable",b._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",bh],disabled:[2,
"disabled","disabled",bh],ariaDisabled:[2,"aria-disabled","ariaDisabled",bh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh],tabIndex:[2,"tabIndex","tabIndex",Iua],_tabindex:[2,"tabindex","_tabindex",Iua]}});var VJc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],WJc=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"]]]),jC=function(){iC.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)&&XJc(this,a)};Y(jC,iC);jC.\u0275dir=iC.\u0275dir;
var XJc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?WJc.get(a._appearance):null,e=WJc.get(b);d&&c.remove.apply(c,q(d));c.add.apply(c,q(e));a._appearance=b}};da.Object.defineProperties(jC.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;XJc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});jC.\u0275fac=function(a){return new (a||jC)};
jC.\u0275cmp=C({type:jC,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&&(eg(VJc),Vf(0,"span",0),fg(1),Tf(2,"span",1),fg(3,1),Uf(),fg(4,2),Vf(5,"span",2)(6,"span",3));a&2&&yg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}@media(hover: none){.mat-mdc-button-base:hover>span.mat-mdc-button-persistent-ripple::before{opacity:0}}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}@media(hover: hover){.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var YJc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],$Jc=new ed("mat-mdc-fab-default-options",{providedIn:"root",factory:function(){return ZJc}}),ZJc={color:"accent"},kC=function(){iC.call(this);this._options=p($Jc,{optional:!0});this._isFab=!0;this._options=this._options||ZJc;this.color=
this._options.color||ZJc.color};Y(kC,iC);kC.\u0275dir=iC.\u0275dir;kC.\u0275fac=function(a){return new (a||kC)};
kC.\u0275cmp=C({type:kC,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(a,b){a&2&&yg("mdc-fab--extended",b.extended)("mat-mdc-extended-fab",b.extended)},inputs:{extended:[2,"extended","extended",bh]},exportAs:["matButton","matAnchor"],features:[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&&(eg(YJc),Vf(0,"span",0),fg(1),Tf(2,"span",1),fg(3,1),Uf(),fg(4,2),Vf(5,"span",2)(6,"span",3));a&2&&yg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}@media(hover: hover){.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],
encapsulation:2,changeDetection:0});var lC=function(){iC.call(this);NFc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Y(lC,iC);lC.\u0275dir=iC.\u0275dir;lC.\u0275fac=function(a){return new (a||lC)};
lC.\u0275cmp=C({type:lC,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&&(eg(),Vf(0,"span",0),
fg(1),Vf(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 mC=function(){};mC.\u0275fac=function(a){return new (a||mC)};mC.\u0275mod=cf({type:mC});mC.\u0275inj=Gc({imports:[yA,Zy]});var nC=function(a,b){this.elementRef=a;this.options=b;if(b.disableGmatStyle)throw Error("wb");};nC.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};nC.\u0275fac=function(a){return new (a||nC)(Ye(Jd),Ye(TJc))};
nC.\u0275dir=df({type:nC,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 oC=function(a,b){this.options=a;this.button=b;this.appearance="outline";this.loweredInternal=!1;if(a.disableGmatStyle)throw Error("wb");};oC.prototype.ngOnInit=function(){};da.Object.defineProperties(oC.prototype,{lowered:{configurable:!0,enumerable:!0,get:function(){return this.loweredInternal},set:function(a){this.loweredInternal=Oh(a)}}});oC.\u0275fac=function(a){return new (a||oC)(Ye(TJc),Ye(kC,10))};
oC.\u0275dir=df({type:oC,selectors:[["button","matFab",""],["a","matFab",""],["button","mat-fab",""],["a","mat-fab",""],["button","matMiniFab",""],["a","matMiniFab",""],["button","mat-mini-fab",""],["a","mat-mini-fab",""]],hostAttrs:[1,"gmat-mdc-button"],hostVars:8,hostBindings:function(a,b){a&2&&yg("gmat-mdc-fab-fill",b.appearance=="fill")("gmat-mdc-fab-outline",b.appearance=="outline")("gmat-mdc-fab-branded",b.appearance=="branded")("gmat-mdc-fab-lowered",b.lowered)},inputs:{appearance:"appearance",
lowered:"lowered"},standalone:!1});var pC=function(){};pC.\u0275fac=function(a){return new (a||pC)};pC.\u0275mod=cf({type:pC});pC.\u0275inj=Gc({providers:[{provide:$Jc,useValue:{color:"primary"}}],imports:[mC]});var qC=new ed("MatSnackBarData"),aKc=function(){this.politeness="polite";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var bKc=function(){};bKc.\u0275fac=function(a){return new (a||bKc)};bKc.\u0275dir=df({type:bKc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var cKc=function(){};cKc.\u0275fac=function(a){return new (a||cKc)};cKc.\u0275dir=df({type:cKc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var dKc=function(){};dKc.\u0275fac=function(a){return new (a||dKc)};
dKc.\u0275dir=df({type:dKc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var rC=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=rC.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 sC=function(){this.snackBarRef=p(rC);this.data=p(qC)};sC.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(sC.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});sC.\u0275fac=function(a){return new (a||sC)};
sC.\u0275cmp=C({type:sC,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,Jua,3,1,"div",1));a&2&&(B(),S(" ",b.data.message,"\n"),B(),G(b.hasAction?2:-1))},dependencies:[jC,bKc,cKc,dKc],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 eKc=["label"],tC=function(){this._isDisposed=!1;this._ngZone=p(Tg);this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._platform=p(Yh);this._animationsDisabled=pi();this.snackBarConfig=p(aKc);this._document=p(Uh);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(di).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(tC,eA);h=tC.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)})};tC.\u0275fac=function(a){return new (a||tC)};
tC.\u0275cmp=C({type:tC,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(jg(gA,7),jg(eKc,7));if(a&2){var c;ng(c=og())&&(b._portalOutlet=c.first);ng(c=og())&&(b._label=c.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(a,b){a&1&&N("animationend",function(c){return b.onAnimationEnd(c.animationName)})("animationcancel",function(c){return b.onAnimationEnd(c.animationName)});a&2&&yg("mat-snack-bar-container-enter",b._animationState===
"visible")("mat-snack-bar-container-exit",b._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!b._animationsDisabled)},features:[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,Kua,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:[gA],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 fKc=new ed("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new aKc}}),uC=function(){this._live=p(sz);this._injector=p(Ae);this._breakpointObserver=p(mz);this._parentSnackBar=p(uC,{optional:!0,skipSelf:!0});this._defaultConfig=p(fKc);this._animationsDisabled=pi();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=sC;this.snackBarContainerComponent=tC;this.handsetCssClass="mat-mdc-snack-bar-handset"};h=uC.prototype;
h.openFromComponent=function(a,b){return this._attach(a,b)};h.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
h._attachSnackBarContainer=function(a,b){var c=$g({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:aKc,useValue:b}]});a=a.attach(new cA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new aKc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new rC(b,e);if(a instanceof gg)f.instance=b.attachTemplatePortal(new dA(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new cA(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 gi;b.direction=a.direction;var c=new Xz,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"):Yz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return ni(this._injector,b)};
h._createInjector=function(a,b){return $g({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:rC,useValue:b},{provide:qC,useValue:a.data}]})};da.Object.defineProperties(uC.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}}});
uC.\u0275fac=function(a){return new (a||uC)};uC.\u0275prov=Fc({token:uC,factory:uC.\u0275fac,providedIn:"root"});var vC=function(){};vC.\u0275fac=function(a){return new (a||vC)};vC.\u0275mod=cf({type:vC});vC.\u0275inj=Gc({providers:[uC],imports:[lA,hA,mC,sC,Zy]});var wC=function(){this.snackBarRef=p(rC);this.data=p(qC);this.message=this.data.message||"An error occurred. Please try again.";this.error=this.data.error.message};wC.prototype.dismiss=function(){this.snackBarRef.dismiss()};wC.\u0275fac=function(a){return new (a||wC)};
wC.\u0275cmp=C({type:wC,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,Lua,4,1,"ng-template",null,0,Og)}a&2&&(a=sg(10),B(2),Ag(b.message),B(),I("xapInlineDialogClick",a))},dependencies:[ty,pC,nC,jC,lC,vC,hC,Yy,eC,bC],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 xC=function(){this.currentModelIdInternal=new Wj("");this.currentModelId$=this.currentModelIdInternal.pipe(xf({bufferSize:1,refCount:!0}))};xC.\u0275fac=function(a){return new (a||xC)};xC.\u0275prov=Fc({token:xC,factory:xC.\u0275fac,providedIn:"root"});var gKc={PRIVACY_MODE_UNSET:0,COMPLIANCE_ONLY:1,CONTENT_PRIVATE:2};var yC=function(a){this.duckieService=a;this.currentErrorType$=new Wj(0);this.showTosDialog$=new Wj(!1);this.showGeneralAnnouncementBanner$=new Wj(!1);this.showErrorScreen$=new Wj(!1);this.allowPersonalResults$=new Wj(!0);this.userStateLoaded$=new Wj(!1);this.isEnforcedPrivateMode$=new Wj(!0);this.duckieClient=p(cGc);hKc(this)},iKc=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=
rUa(new Date),g=Zi(c,ej,2,g);d=g;e=(new kB).setUserState(d);Yd(f,3);return z(f,a.duckieService.updateUserState(e),5);case 5:a.showGeneralAnnouncementBanner$.next(!1);Zj(f,0);break;case 3:be(f),a.showErrorScreen$.next(!0),ce(f)}})},jKc=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 kB).setUserState(e),Yd(g,3),z(g,a.duckieService.updateUserState(f),
5);case 5:a.allowPersonalResults$.next(b);Zj(g,0);break;case 3:be(g),ce(g)}})},hKc=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:Ii(c,3))===2);var e=rUa(new Date(2025,1,11)),f,g=b==null?void 0:(f=b.getUserState())==null?void 0:X(f,ej,2);(!g||g<e)&&a.showGeneralAnnouncementBanner$.next(!0);var k;((k=b.getUserState())==null?0:k.getDisallowRestrictedContent())&&a.allowPersonalResults$.next(!1);
a.showErrorScreen$.getValue()||kKc(a,b)||a.showTosDialog$.next(!0);a.userStateLoaded$.next(!0);ce(d)})};
yC.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 pHc),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 hB);((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 hB)})};
var lKc=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=Ln(c,5,Oi());b=d}return b})},mKc=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 hB,f=(e=d.getUserState())==null?void 0:rx(e,5,b),g=(new kB).setUserState(f),Yd(k,3),z(k,a.duckieService.updateUserState(g),5);case 5:Zj(k,0);break;case 3:be(k),a.showErrorScreen$.next(!0),
ce(k)}})},kKc=function(a,b){var c;return(b=b==null?void 0:(c=b.getUserState())==null?void 0:Ni(c,qHc,1,Oi()))?b.some(function(d){return d.getClient()===a.duckieClient&&Ii(d,3)===3}):!1};yC.\u0275fac=function(a){return new (a||yC)(Zc(IB))};yC.\u0275prov=Fc({token:yC,factory:yC.\u0275fac,providedIn:"root"});var nKc={SESSION_STATE_UNSPECIFIED:0,SESSION_STATE_ACTIVE:1,SESSION_STATE_PINNED:2,SESSION_STATE_ARCHIVED:3,SESSION_STATE_DEPRECATED:4};var zC=function(){var a=this;this.duckieService=p(IB);this.routingService=p(NB);this.userStateService=p(yC);this.conversationAgentsService=p(LB);this.communicationService=p(KB);this.duckieClient=p(cGc);this.sessionSummariesInternal=new Wj([]);this.sessionSummaries$=this.sessionSummariesInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isLoadingSessionSummariesInternal=new Wj(!1);this.isLoadingSessionSummaries$=this.isLoadingSessionSummariesInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isIncognitoMode$=
new Wj(!1);this.userStateService.userStateLoaded$.subscribe(function(b){a.isIncognitoMode$=a.userStateService.isEnforcedPrivateMode$;b&&oKc(a)})},oKc=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 lHc;f=rx(f,1,[a.duckieClient]);f=Ac(f,2,Cb,1,void 0,Db);c=Ac(f,2,Cb,2,void 0,Db);a.communicationService.hasParentIntegratorValue&&MB(a.conversationAgentsService).agentId!=="duckie_on_goose"&&
c.setConversationAgentId(MB(a.conversationAgentsService).agentId).setConversationAgentModelId(MB(a.conversationAgentsService).modelId);return z(e,a.duckieService.getSessionSummaries(c),3)}e.nextAddress!=2&&(d=e.yieldResult)&&(b=Ni(d,mHc,1,Oi()).map(Mua).sort(a.summarySortFunction));a.sessionSummariesInternal.next(b);a.isLoadingSessionSummariesInternal.next(!1);return e.return(b)})},qKc=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=pKc(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)})},rKc=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)})},sKc=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=zC.prototype;
h.toggleSessionPinnedState=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=a.sessionId,d=a.sessionState===2?1:2,e=(new jB).setSessionId(c).setSessionState(d),z(m,b.duckieService.updateSession(e),2);f=m.yieldResult;if(!f)return m.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g.sort(b.summarySortFunction);b.sessionSummariesInternal.next(g);ce(m)})};
h.toggleSessionArchivedState=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=a.sessionId,d=a.sessionState===3?1:3,e=(new jB).setSessionId(c).setSessionState(d),z(m,b.duckieService.updateSession(e),2);f=m.yieldResult;if(!f)return m.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g=g.filter(b.filterOutArchivedSessions);b.sessionSummariesInternal.next(g);ce(m)})};
h.deleteSession=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=a.sessionId,d=(new TA).setSessionId(c),z(f,b.duckieService.deleteSession(d),2);if(f.nextAddress!=3)return b.routingService.state$.value.params.id===c?z(f,tKc(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 pKc=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}};zC.\u0275fac=function(a){return new (a||zC)};
zC.\u0275prov=Fc({token:zC,factory:zC.\u0275fac,providedIn:"root"});var uKc=/(?:^|\b)(?:https?:\/\/)?(?:cr|critique|cl)(?:\.corp\.google\.com)?(?:\/cl)?\/([0-9]+)/gi,vKc=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"),wKc=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"),xKc=new RegExp(/(?:^|\b)(?:https?:\/\/)?(g3doc(?:\.corp\.google\.com)?(?:\/[\S]+)*\/(?:[\S]+\.md))(?:[\?;#][\S]*[A-Za-z0-9]+)?/,"gi"),yKc=/(?:^|\b)(?:https?:\/\/)?(?:b|buganizer)(?:\.corp\.google\.com)?\/(?:issues\/)?([0-9]+)/gi,zKc=/(?:^|\b)(?:https?:\/\/)?(?:screen|screenshot)(?:\.corp\.google\.com)?(?:\.googleplex\.com)?\/([0-9A-Za-z]+)/gi,AKc=/(?:^|\b)(?:https?:\/\/)?(?:yaqs)(?:\.corp\.google\.com)?\/eng\/q\/([0-9]+)/gi,BKc=/(?:^|\b)(?:https?:\/\/)?(?:docs|drive)(?:\.google\.com)?\/(?:(?:(?:document|spreadsheets|presentation|file)\/d\/)|(?:(?:corp\/drive\/)?folders\/))[0-9A-Za-z-_]+[^\s)]*/gi,
CKc=/(?:^|\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,DKc=/(?:^|\b)(?:https?:\/\/)?go\/([^\s,)]*[^\s,."')?!;:\[\]{}\n])/gi,EKc=/(?:^|\b)((https?:\/\/)?(?:([\w-]+)-)?review\.(?:googlesource\.com|git\.corp\.google\.com)\/c\/.+?\/\+\/([0-9]+))/gi,FKc={chromium:"crrev","googleplex-android":"ag"},GKc=/(?:^|\b)(?:https?:\/\/)?(?:eldar)(?:\.corp\.google\.com)?\/(?:assessments\/)?([0-9]+(?:\/(?:revisions|drafts)\/[0-9]+)?)/gi,
HKc=/([^/;\s]+)\/?(?:;|\\s|$)/,IKc=/\/\d{3,}/,JKc=/([^/\\]+\.md)/,KKc=/(?:(?:\/d\/)|(?:folders\/))([A-Za-z0-9_-]+?)(?:[\/?#]|$)/i,LKc=/go\/[^\s),)]+/i,AC=function(){this.experimentsService=p(GA);this.userContextServiceErrorInternal$=new Wj(null);this.userContextServiceError$=this.userContextServiceErrorInternal$.pipe(xf({bufferSize:1,refCount:!0}));this.suggestedUserProvidedContextContentInternal$=new Wj([]);this.suggestedUserProvidedContextContent$=this.suggestedUserProvidedContextContentInternal$.pipe(xf({bufferSize:1,
refCount:!0}));this.ignoredSuggestedUserProvidedContextSources=[]},MKc=function(a,b){a.suggestedUserProvidedContextContentInternal$.next(a.suggestedUserProvidedContextContentInternal$.value.filter(function(c){c.fullUrl===b&&a.ignoredSuggestedUserProvidedContextSources.push(c);return c.fullUrl!==b}))},NKc=function(a){a.suggestedUserProvidedContextContentInternal$.next([]);a.ignoredSuggestedUserProvidedContextSources=[]},OKc=function(a){return a?FKc[a]||a:"gerrit"},QKc=function(a,b,c){var d=[],e=[];
[].concat(q(b.matchAll(uKc))).forEach(function(R){var V,ba=(V=R[0])==null?void 0:V.match(IKc);ba&&e.push({label:c?"cl"+ba[0]:ba[0].substring(1),index:R.index,imgSrc:Nua(),imgAlt:"Critique logo",source:1,fullUrl:R[0]})});var f=[];[].concat(q(b.matchAll(a.experimentsService.userProvidedContextGobEnabled?wKc:vKc))).forEach(function(R){var V=R[0].slice(-1)==="."?R[0].slice(0,-1):R[0],ba=R[R.length-1],oa=ba.slice(-1)==="."?ba.slice(0,-1):ba;c&&(oa="cs/"+(V==null?void 0:V.match(HKc))[1]);ba=f.push;for(var ta=
oa.length,ka=l([";","?"]),Ca=ka.next();!Ca.done;Ca=ka.next())Ca=oa.indexOf(Ca.value),Ca!==-1&&Ca<ta&&(ta=Ca);ba.call(f,{label:oa.substring(0,ta),index:R.index,imgSrc:Oua(),imgAlt:BC(3),source:3,fullUrl:V})});var g=[];[].concat(q(b.matchAll(xKc))).forEach(function(R){var V,ba=(V=R[1])==null?void 0:V.match(JKc);V=R[1];g.push({label:c&&ba?"g3doc/"+ba[0]:V,index:R.index,imgSrc:Pua(),imgAlt:BC(2),source:2,fullUrl:R[0]})});var k=[];[].concat(q(b.matchAll(yKc))).forEach(function(R){k.push({label:c?"b/"+
R[1]:R[1],index:R.index,imgSrc:Qua(),imgAlt:BC(4),source:4,fullUrl:R[0]})});var m=[];a.experimentsService.screenshotLinkFollowingEnabled&&[].concat(q(b.matchAll(zKc))).forEach(function(R){m.push({label:c?"screen/"+R[1]:R[1],index:R.index,imgSrc:Rua(),imgAlt:BC(5),source:5,fullUrl:R[0]})});var r=[];a.experimentsService.userProvidedContextYaqsEnabled&&[].concat(q(b.matchAll(AKc))).forEach(function(R){r.push({label:c?"yaqs/"+R[1]:R[0],index:R.index,imgSrc:Sua(),imgAlt:BC(7),source:7,fullUrl:R[0]})});
var w=[];a.experimentsService.userProvidedContextDriveEnabled&&[].concat(q(b.matchAll(BKc))).forEach(function(R){var V=R[0].match(KKc),ba=PKc(R[0]);w.push({label:c&&V&&V.length>1?ba.prefix+V[1].slice(-5):R[0],index:R.index,imgSrc:ba.logoSource,imgAlt:BC(6),source:6,fullUrl:R[0]})});var x=[];a.experimentsService.userProvidedContextIrmEnabled&&[].concat(q(b.matchAll(CKc))).forEach(function(R){x.push({label:c?"irm/"+R[1]:R[0],index:R.index,imgSrc:"https://www.gstatic.com/uif/product_icons/irm.svg",imgAlt:BC(8),
source:8,fullUrl:R[0]})});var D=[];a.experimentsService.userProvidedContextGoLinkEnabled&&[].concat(q(b.matchAll(DKc))).forEach(function(R){var V,ba=(V=R[0])==null?void 0:V.match(LKc);D.push({label:c&&ba?ba[0]:R[0],index:R.index,imgSrc:Tua(),imgAlt:BC(9),source:9,fullUrl:R[0]})});var H=[];a.experimentsService.userProvidedContextGerritEnabled&&[].concat(q(b.matchAll(EKc))).forEach(function(R){var V=R[1],ba=OKc(R[3]),oa=R[4];H.push({label:c?ba+"/"+oa:V,index:R.index,imgSrc:Uua(),imgAlt:BC(10),source:10,
fullUrl:V})});var J=[];a.experimentsService.userProvidedContextEldarEnabled&&[].concat(q(b.matchAll(GKc))).forEach(function(R){J.push({label:c?"eldar/"+R[1]:R[0],index:R.index,imgSrc:Vua(),imgAlt:BC(12),source:12,fullUrl:R[0]})});b=[].concat(q(e),q(f),q(g),q(k),q(m),q(r),q(w),q(x),q(D),q(H),q(J)).filter(function(R){return!a.ignoredSuggestedUserProvidedContextSources.some(function(V){return V.fullUrl===R.fullUrl})});if(b.length>20)a.userContextServiceErrorInternal$.next("Warning: link following is disabled because the maximum number of links (20) has been exceeded");
else{a.userContextServiceErrorInternal$.next(null);b.sort(function(R,V){return R.index-V.index});b=l(b);for(var O=b.next();!O.done;O=b.next())O=O.value,d.push({imgSrc:O.imgSrc,imgAlt:O.imgAlt,label:O.label,source:O.source,fullUrl:O.fullUrl})}return d},PKc=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/..."}},TKc=function(a){var b=[],c=[];a.messages.forEach(function(e){var f;(f=e.userProvidedContext)==null||f.forEach(function(g){var k=g.getType(),m=g.getUrl();g=xi(g,3);c.findIndex(function(r){return r.source===k&&r.url===m})===-1&&c.push({label:RKc(k,
m),imgSrc:SKc(k,m),imgAlt:BC(k),source:k,url:m,fullUrl:g})})});a=l(c);for(var d=a.next();!d.done;d=a.next())d=d.value,b.push({imgSrc:d.imgSrc,imgAlt:d.imgAlt,label:d.label,source:d.source,fullUrl:d.fullUrl});return b},RKc=function(a,b){switch(a){case 1:return"cl/"+b;case 2:var c=b.match(JKc);return"g3doc/"+(c?c[0]:b);case 3:return c=b.match(HKc),"cs/"+(c?c[0]:b);case 4:return"b/"+b;case 5:return"screen/"+b;case 9:return(c=b.match(LKc))?c[0]:"go/"+b;case 6:return a=(a=b.match(KKc))?(c=a[1])==null?
void 0:c.slice(-5):b.slice(-5),PKc(b).prefix+a;case 10:return c=b.match(new RegExp(EKc.source,"i")),console.log("gerritMatch reconstructed",c),c?OKc(c[3])+"/"+c[4]:b;case 12:return"eldar/"+b;default:return b}},SKc=function(a,b){switch(a){case 1:return Nua();case 2:return Pua();case 3:return Oua();case 4:return Qua();case 5:return Rua();case 7:return Sua();case 9:return Tua();case 6:return PKc(b).logoSource;case 10:return Uua();case 12:return Vua();default:return""}},BC=function(a){switch(a){case 1:return"Critique logo";
case 2:return"G3Doc logo";case 3:return"CodeSearch logo";case 4:return"Buganizer logo";case 5:return"SnipIt Screenshot logo";case 7:return"YAQS logo";case 9:return"Go Link logo";case 6:return"Drive logo";case 8:return"IRM logo";case 10:return"Gerrit logo";case 12:return"Eldar logo";default:return""}};AC.\u0275fac=function(a){return new (a||AC)};AC.\u0275prov=Fc({token:AC,factory:AC.\u0275fac,providedIn:"root"});var UKc=function(a){this.eventID=a;this.interactionMetadataHandlers=[];this.testCodeList=[];this.parentEventId=void 0};h=UKc.prototype;h.getID=function(){return this.eventID};h.addInteractionMetadataHandler=function(a){this.interactionMetadataHandlers.push(a)};h.populateInteractionMetadata=function(a){if(this.interactionMetadataHandlers.length>0)for(var b=l(this.interactionMetadataHandlers),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.setTestCodeList=function(a){this.testCodeList=Array.from(a)};
h.getTestCodeList=function(){return this.testCodeList};h.setParentEventId=function(a){this.parentEventId=a};h.getParentEventId=function(){return this.parentEventId};var VKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VKc,W);VKc.prototype.getUrl=function(){return xi(this,1)};VKc.prototype.setUrl=function(a){return yj(this,1,a)};VKc.prototype.hasUrl=function(){return wm(this,1)};var CC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CC,W);CC.prototype.getIsPrivateDocument=function(){return Ri(this,2)};CC.prototype.setIsPrivateDocument=function(a){return aj(this,2,a)};var WKc=function(a){var b=new CC;return $i(b,7,a)};var mm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mm,W);h=mm.prototype;h.getMessageId=function(){return xi(this,1)};h.setMessageId=function(a){return yj(this,1,a)};h.hasMessageId=function(){return wm(this,1)};h.getSessionId=function(){return xi(this,2)};h.setSessionId=function(a){return yj(this,2,a)};h.hasSessionId=function(){return wm(this,2)};var XKc=function(a,b){return Zi(a,CC,3,b)};var YKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YKc,W);var lm=function(a){var b=new YKc;return Zi(b,mm,1,a)};var DC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(DC,W);var ZKc=new MA(259,DC,YKc);var EC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EC,W);EC.prototype.setVeIndex=function(a){Tn(this,1,a)};var $Kc=function(a,b){Tn(a,2,b)};EC.prototype.setElementIndex=function(a){Tn(this,5,a)};EC.prototype.getResultIndex=function(){return Um(this,6,-1)};EC.prototype.setResultIndex=function(a){Tn(this,6,a)};var aLc=[0,JA,-1,2,JA,-4,KA,JA,vGc,cHc,JA,[0,uGc,JA],JA];var FC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FC,W);FC.prototype.setVed=function(a){return Ro(this,5,bLc,a)};var cLc=[1,3,4],bLc=[2,5];var GC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,233)};Y(GC,W);GC.prototype.setUiType=function(a){return Tn(this,1,a)};GC.prototype.setElementIndex=function(a){Tn(this,3,a)};var dLc=function(a,b){yc(a,4,b,Eb)};GC.prototype.getResultIndex=function(){return Um(this,7)};GC.prototype.setResultIndex=function(a){Tn(this,7,a)};GC.prototype.setVisible=function(a){return Vn(this,6,a)};var HC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,17)};Y(HC,W);h=HC.prototype;h.setVed=function(a){return yj(this,11,a)};h.setUiType=function(a){return Tn(this,1,a)};h.setVeIndex=function(a){Tn(this,2,a)};h.getResultIndex=function(){return Um(this,7,-1)};h.setResultIndex=function(a){Tn(this,7,a)};h.setElementIndex=function(a){Tn(this,8,a)};var eLc=function(a,b){$i(a,14,b)},fLc=uta(HC);var gLc=function(a){UKc.call(this,a)};Y(gLc,UKc);var hLc=function(a,b){a.addInteractionMetadataHandler(function(c){if(fLc(c)){var d=cw(new DC,ZKc,b);Zi(c,DC,15,d)}})};try{var iLc,jLc,kLc=(jLc=(iLc=window)==null?void 0:iLc.top)!=null?jLc:ra;kLc.U3bHHf!=null||(kLc.U3bHHf=0);kLc.U3bHHf++}catch(a){ra.U3bHHf!=null||(ra.U3bHHf=0),ra.U3bHHf++};lj.prototype.clone=function(){return new lj(this.x,this.y)};lj.prototype.equals=function(a){return a instanceof lj&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Aqc=function(a,b){return new lj(a.x-b.x,a.y-b.y)};h=lj.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 lj?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};h.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};h=mj.prototype;h.clone=function(){return new mj(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 nLc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===lLc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=mLc};nLc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var mLc={},lLc={};var tj=function(a){return a?new IC($u(a)):Nyc||(Nyc=new IC)},JC=function(a,b){return(b||document).getElementsByTagName(String(a))},KC=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},pLc=function(a,b){Ai(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:oLc.hasOwnProperty(d)?a.setAttribute(oLc[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,
c):a[d]=c})},oLc={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"},LC=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new mj(a.clientWidth,a.clientHeight)},qLc=function(a){return a.scrollingElement?a.scrollingElement:nj||a.compatMode!="CSS1Compat"?a.body||a.documentElement:
a.documentElement},Zu=function(a){return a?a.defaultView:window},sLc=function(a,b,c){return rLc(document,arguments)},rLc=function(a,b){var c=b[1],d=ot(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):pLc(d,c));b.length>2&&tLc(a,d,b,2);return d},tLc=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)}}},ot=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},uLc=function(a,b){tLc($u(a),a,arguments,1)},MC=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},NC=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},vLc=function(a){return Oa(a)&&a.nodeType==1},$ua=function(a){return a.parentElement||
null},DDb=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},$u=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},wLc=function(a){return a.contentDocument||a.contentWindow.document},xLc=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 MC(a),a.appendChild($u(a).createTextNode(String(b)))},yLc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},zLc={IMG:" ",BR:"\n"},ALc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},CLc=function(a){var b=[];BLc(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},BLc=function(a,b,c){if(!(a.nodeName in
yLc))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 zLc)b.push(zLc[a.nodeName]);else for(a=a.firstChild;a;)BLc(a,b,c),a=a.nextSibling},ELc=function(a){return DLc(a,function(b){return typeof b.className==="string"&&Ka(b.className.split(/\s+/),"ace-tooltip-close-button")})},DLc=function(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},Wpc=function(){var a=Zu();return a.devicePixelRatio!==void 0?a.devicePixelRatio:
a.matchMedia?FLc(3)||FLc(2)||FLc(1.5)||FLc(1)||.75:1},FLc=function(a){return Zu().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},IC=function(a){this.document_=a||ra.document||document};h=IC.prototype;h.getDomHelper=tj;h.getElement=function(a){var b=this.document_;return typeof a==="string"?b.getElementById(a):a};h.$=IC.prototype.getElement;h.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
h.getElementsByTagNameAndClass=function(a,b,c){return KC(this.document_,a,b,c)};h.$$=IC.prototype.getElementsByTagNameAndClass;h.setProperties=pLc;h.getViewportSize=function(a){return LC(a||this.getWindow())};h.createDom=function(a,b,c){return rLc(this.document_,arguments)};h.createElement=function(a){return ot(this.document_,a)};h.createTextNode=function(a){return this.document_.createTextNode(String(a))};h.getWindow=function(){return this.document_.defaultView};
var GLc=function(a){var b=a.document_;a=qLc(b);b=b.defaultView;return new lj((b==null?void 0:b.pageXOffset)||a.scrollLeft,(b==null?void 0:b.pageYOffset)||a.scrollTop)};h=IC.prototype;h.appendChild=function(a,b){a.appendChild(b)};h.append=uLc;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=NC;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=$ua;h.contains=DDb;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")||ALc(a)):a.hasAttribute("tabindex")&&ALc(a)};var HLc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};HLc.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};HLc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};JHc(function(){});var ILc=function(){this.workTail_=this.workHead_=null};ILc.prototype.add=function(a,b){var c=Xua.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};ILc.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 Xua=new HLc(function(){return new JLc},function(a){return a.reset()}),JLc=function(){this.next=this.scope=this.fn=null};
JLc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};JLc.prototype.reset=function(){this.next=this.scope=this.fn=null};var KLc,Yua=!1,Wua=new ILc,OC=function(a,b){KLc||LLc();Yua||(KLc(),Yua=!0);Wua.add(a,b)},LLc=function(){var a=Promise.resolve(void 0);KLc=function(){a.then(Zua)}};var MLc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var QC=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=uB)try{var b=this;a.call(void 0,function(c){PC(b,2,c)},function(c){PC(b,3,c)})}catch(c){PC(this,3,c)}},NLc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};NLc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var OLc=new HLc(function(){return new NLc},function(a){a.reset()}),PLc=function(a,b,c){var d=OLc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},QLc=function(a){if(a instanceof QC)return a;var b=new QC(uB);PC(b,2,a);return b},RLc=function(a){return new QC(function(b,c){c(a)})},TLc=function(a,b,c){SLc(a,b,c,null)||OC(Ws(b,a))},ULc=function(a){return new QC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r,w){d--;e[r]=w;d==0&&b(e)},g=function(r){c(r)},k,m=0;m<a.length;m++)k=a[m],
TLc(k,Ws(f,m),g);else b(e)})},VLc=function(a){return new QC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r){b(r)},g=function(r,w){d--;e[r]=w;d==0&&c(e)},k,m=0;m<a.length;m++)k=a[m],TLc(k,f,Ws(g,m));else b(void 0)})},XLc=function(){var a,b,c=new QC(function(d,e){a=d;b=e});return new WLc(c,a,b)};QC.prototype.then=function(a,b,c){return YLc(this,sB(typeof a==="function"?a:null),sB(typeof b==="function"?b:null),c)};QC.prototype.$goog_Thenable=!0;
var $Lc=function(a,b,c,d){ZLc(a,PLc(b||uB,c||null,d))};QC.prototype.finally=function(a){var b=this;a=sB(a);return new QC(function(c,d){$Lc(b,function(e){a();c(e)},function(e){a();d(e)})})};QC.prototype.thenCatch=function(a,b){return YLc(this,null,sB(a),b)};QC.prototype.catch=QC.prototype.thenCatch;QC.prototype.cancel=function(a){if(this.state_==0){var b=new aMc(a);OC(function(){bMc(this,b)},this)}};
var bMc=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?bMc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):cMc(c),dMc(c,e,3,b)))}a.parent_=null}else PC(a,3,b)},ZLc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||eMc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},YLc=function(a,b,c,d){var e=PLc(null,null,null);e.child=new QC(function(f,g){e.onFulfilled=b?function(k){try{var m=b.call(d,k);f(m)}catch(r){g(r)}}:f;e.onRejected=c?function(k){try{var m=c.call(d,k);m===void 0&&k instanceof aMc?g(k):f(m)}catch(r){g(r)}}:g});e.child.parent_=a;ZLc(a,e);return e.child};QC.prototype.unblockAndFulfill_=function(a){this.state_=0;PC(this,2,a)};QC.prototype.unblockAndReject_=function(a){this.state_=0;PC(this,3,a)};
var PC=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("xb")),a.state_=1,SLc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,eMc(a),b!=3||c instanceof aMc||fMc(a,c)))},SLc=function(a,b,c,d){if(a instanceof QC)return $Lc(a,b,c,d),!0;if(MLc(a))return a.then(b,c,d),!0;if(Oa(a))try{var e=a.then;if(typeof e==="function")return gMc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},gMc=function(a,b,c,d,e){var f=!1,g=function(m){f||(f=!0,c.call(e,m))},
k=function(m){f||(f=!0,d.call(e,m))};try{b.call(a,g,k)}catch(m){k(m)}},eMc=function(a){a.executing_||(a.executing_=!0,OC(a.executeCallbacks_,a))},cMc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};QC.prototype.executeCallbacks_=function(){for(var a;a=cMc(this);)dMc(this,a,this.state_,this.result_);this.executing_=!1};
var dMc=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,hMc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):hMc(b,c,d)}catch(e){iMc.call(null,e)}OLc.put(b)},hMc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},fMc=function(a,b){a.hadUnhandledRejection_=!0;OC(function(){a.hadUnhandledRejection_&&iMc.call(null,b)})},iMc=sa,aMc=function(a){pa.call(this,
a);this.reportErrorToServer=!1};Qw(aMc,pa);aMc.prototype.name="cancel";var WLc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var jMc=1;var kMc=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 lMc=function(){},mMc=[[],[]],nMc=0,oMc=new Set,pMc=null,qMc=0,rMc=0,sMc=0,tMc=0,uMc=0,vMc=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=lMc};h=vMc.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 wMc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var wMc=function(a,b){var c=uMc++,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=nMc,!a.runInCurrentFrameIfPossible||tMc==0||a.measure&&tMc!=1||(g=(g+1)%2),mMc[g].push(f));return xMc(a.window)}},yMc=function(a,b){var c={};
tMc=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)}}}tMc=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)}}qMc>0&&b>1&&(a=b-qMc,a<500&&(jMc++,a>100&&rMc++,sMc<a&&(sMc=a)));qMc=oMc.size&&b>1?b:0},xMc=function(a){if(!oMc.has(a)){oMc.size||
(pMc=new kMc);oMc.add(a);var b=pMc.resolve;a.requestAnimationFrame(function(c){oMc.clear();var d=mMc[nMc];nMc=(nMc+1)%2;try{yMc(d,c)}finally{tMc=0,d.length=0}b()})}return pMc.promise};var zMc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var RC=function(){};RC.prototype.impressionEvent=function(){return[]};RC.prototype.interactionEvent=function(){return[]};RC.prototype.visibilityEvent=function(){return[]};RC.prototype.semanticEvent=function(){return[]};var SC=function(){if(!AMc){var a=AMc=new YGc,b=Date.now()*1E3+Math.floor(Math.random()*1E3);Kn(a,1,b);Ur(AMc,2,Lca());Ur(AMc,3,Lca());BMc=0}a=new cB;a=Zi(a,YGc,1,AMc);b=++BMc;return Kn(a,2,b)},BMc=0,AMc=void 0;var CMc=function(a){this.userAction=a};for(var DMc={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"}},cva=gva(DMc),EMc=new Map,FMc=l(Object.keys(DMc)),GMc=FMc.next();!GMc.done;GMc=FMc.next()){var HMc=GMc.value;EMc.set(DMc[HMc].xid,DMc[HMc].string)}
var eva=gva({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 IMc=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},KMc=function(a,b){return JMc(a,b).filter(function(c){return TC(this.visualElementProvider,c)!=null},a)},OMc=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=TC(c,b[f]);LMc(g)||(e.parent$jscomp$91=void 0,bva(b[f],function(k){return function(m){m=TC(c,m);return m!=null?(k.parent$jscomp$91=m,!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,[]),MMc=1):(d=new Map,a.unshift(d),MMc=0),NMc(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},PMc=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return TC(c,d)})},JMc=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},MMc=0;var UC=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};UC.prototype.getID=function(){return this.visualElementID};var QMc=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};h=UC.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 RMc=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};UC.prototype.addInteractionMetadataHandler=function(a){this.interactionMetadataHandler_=a};
UC.prototype.populateInteractionMetadata=function(a){this.interactionMetadataHandler_&&this.interactionMetadataHandler_(a)};UC.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?dva(a):a};UC.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?fva(a):a};UC.prototype.isMutable=UC.prototype.isMutable;var SMc=qta(EC,aLc),TMc=tta(aLc);var VC=function(a,b){this.el_=a;this.veTag_=b;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};VC.prototype.getTag=function(){return this.veTag_};VC.prototype.getElement=function(){return this.el_};var LMc=function(a){return a.impressionEventID!==void 0},NMc=function(a){var b=MMc++;a.traversalOrder_=b};VC.prototype.setParent=function(a){this.parent_=a};VC.prototype.getParent=function(){return this.parent_};
var UMc=function(a){if(LMc(a)){var b=new EC;b.setVeIndex(a.traversalOrder_);$Kc(b,a.getTag().getID());Zi(b,cB,13,a.impressionEventID);a=TMc(b);return"0"+Nba(a,4)}};var VMc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},TC=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=WMc(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new VC(b,d);c&&c.getTag().retain_cached_impression_&&LMc(c)&&(a.impressionEventID=c.impressionEventID);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||c.charAt(0)!="0"&&c.charAt(0)!="2")var e=null;else{c=c.substring(1);try{var f=SMc(c);e=X(f,cB,13)}catch(g){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},WMc=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=kIc(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,m=f[g].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!EMc.has(m))throw Error("Bb`"+m);k.tracks_.add(m)}else k.tracks_.add(k.maybeXidEventLabel_(m))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(g));break;case a.maybeXidPartLabel_("tc"):f=g.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(g);break;case a.maybeXidPartLabel_("mutable"):g=="true"?d.mutable_=!0:g=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};VMc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?fva(a):a};
VMc.prototype.setComponentID=function(a){this.componentID_=a};VMc.prototype.getComponentID=function(){return this.componentID_};var XMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XMc,W);XMc.prototype.setElementIndex=function(a){Tn(this,2,a)};XMc.prototype.setUserAction=function(a){return Vn(this,4,a)};var WC=function(a,b){sj.call(this);this.interval_=a||1;this.timerObject_=b||ra;this.boundTick_=vj(this.tick_,this);this.last_=Date.now()};Qw(WC,sj);h=WC.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(){WC.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Zs=function(a,b,c){if(typeof a==="function")c&&(a=vj(a,c));else if(a&&typeof a.handleEvent=="function")a=vj(a.handleEvent,a);else throw Error("Cb");return Number(b)>2147483647?-1:ra.setTimeout(a,b||0)},YMc=function(){var a=null;return(new QC(function(b,c){a=Zs(function(){b(void 0)},5E3);a==-1&&c(Error("Db"))})).thenCatch(function(b){ra.clearTimeout(a);throw b;})};var ZMc=function(a,b,c){Fi.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(ZMc,Fi);h=ZMc.prototype;h.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:$Mc(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,$Mc(this))};h.disposeInternal=function(){Fi.prototype.disposeInternal.call(this);this.stop()};var $Mc=function(a){a.timer_=Zs(function(){a.timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,$Mc(a))},a.interval_);var b=a.args_;a.args_=null;a.listener_.apply(null,b)};var aNc=function(a,b){Ss.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Y(aNc,Ss);var kva=new WeakMap,jva=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")};Qw(lva,sj);h=lva.prototype;h.getBrowserEventType_=rj(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((hva()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});h.getHiddenPropertyName_=rj(function(){return iva("hidden",this.domHelper_.document_)});h.getVisibilityStatePropertyName_=rj(function(){return iva("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 aNc(this.isHidden(),a);this.dispatchEvent(a)};h.disposeInternal=function(){rB(this.eventKey_);lva.superClass_.disposeInternal.call(this)};h=wj.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new wj(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof wj?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 lj?(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};xj.prototype.clone=function(){return new xj(this.left,this.top,this.width,this.height)};var Dqc=function(a){return new xj(a.left,a.top,a.right-a.left,a.bottom-a.top)};xj.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 bNc=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 xj(c,e,d-c,a-e)}return null};h=xj.prototype;
h.difference=function(a){var b=bNc(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 xj(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);k<f&&(b.push(new xj(this.left,k,this.width,f-k)),d=k-c);a.left>this.left&&b.push(new xj(this.left,c,a.left-this.left,d));g<e&&b.push(new xj(g,c,e-g,d));a=b}else a=[this.clone()];return a};
h.contains=function(a){return a instanceof lj?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 mj(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 lj?(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 XC=function(a,b,c,d,e,f,g){var k=d===void 0?{}:d;var m=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;Gi.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 cNc;this.visualElementProvider_=
new VMc(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new lva;this.logImpressionsTask_=(new vMc(this)).measure(m?function(){return m().then(r.handleImpressions_.bind(r))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new ZMc(this.logImpressionsTask_,500,this);this.traverser_=g||new IMc(this.visualElementProvider_,
k);this.eventBuilder instanceof RC&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Y(XC,Gi);XC.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};var YC=function(a,b,c,d){a.eventToActionMap_[b]=c;a.eventToTracksLabelMap_[b]=a.maybeXidEventLabel_(d||b)};
XC.prototype.logEvent=function(a,b,c){var d=this.eventToActionMap_[a];d&&(a=dNc(this,a,b))&&(this.eventHandler_?eNc(this,a,new CMc(d),c):(c=this.getAncestry_(a.getElement()),fNc(this,d,a,c)))};
XC.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 VC(ot(document,"syntheticElement"),b);else{f=new VC(c,b);var g=this.visualElementProvider_;bva(c,function(k){if(!vLc(k))return!1;k=TC(g,k);return k!=null?(f.setParent(k),!0):!1},!1)}if(this.eventHandler_)return eNc(this,f,new CMc(e)),!0;a=[];c&&(a=this.getAncestry_(c));fNc(this,e,f,a);return!0};
var gNc=function(a,b){a.domHelper_=new IC;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)};XC.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var fNc=function(a,b,c,d){var e=hNc(d),f=a.getIndex(c);var g=(new XMc).setUserAction(b);var k=c.getTag().getID();g=Tn(g,1,k);e=yc(g,3,e,Eb);f!=null&&e.setElementIndex(f);f=new zMc;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=iNc(new ZC,e.serialize()).setTestCodeList(f.testCodes);a.transport&&a.transport.dispatch(c);if(b!=null)for(b=new CMc(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};XC.prototype.log=function(a){this.transport&&this.transport.dispatch(a)};
XC.prototype.addInteractionEventListener=function(a){this.listeners_.push(a)};XC.prototype.removeInteractionEventListener=function(a){La(this.listeners_,a)};var jNc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};XC.prototype.getIndex=function(a){return a.getTag().getIndex()};var hNc=function(a){return a.map(function(b){return b.getTag().getID()})};
XC.prototype.getMetadata=function(a,b){var c=new GC;RMc(a.getTag(),c);for(a=0;a<b.length;++a)RMc(b[a].getTag(),c);return c};var dNc=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];bva(c,function(g){if(!vLc(g))return!1;g=TC(e,g);var k;if(k=g!=null)if(k=g.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!EMc.has(f))throw Error("Bb`"+f);k=k.tracks_.has(f)}else k=QMc(k,f);return k?(d=g,!0):!1},!0);return d};h=XC.prototype;
h.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;bva(a,function(d){if(!vLc(d))return!1;d=TC(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=KMc(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new xj(0,0,c.width,c.height);var d=OMc(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]),yj(d[e],28,this.zwiebackId_),this.transport&&this.transport.dispatch(d[e])}b=PMc(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_&&yj(b[c],28,this.zwiebackId_),this.transport&&this.transport.dispatch(b[c]);jNc(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();d=new xj(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=TC(this.visualElementProvider_,f))&&QMc(f.getTag(),"impression")&&c.push(f)}b=SC();for(d=0;d<c.length;d++)e=c[d],LMc(e)||(f=this.getAncestry_(e.getElement()),fNc(this,void 0,e,f),jNc(this),e.impressionEventID=b)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=bNc(b,new xj(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};h.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?dva(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_&&yj(a[b],28,this.zwiebackId_),this.transport&&this.transport.dispatch(a[b])}};
var eNc=function(a,b,c,d){d&&b.getTag().addInteractionMetadataHandler(function(e){Zi(e,DC,15,d)});b=a.eventHandler_.interactionEvent(b,c);for(c=0;c<b.length;++c)a.metadataHandler_.addEventMetadata(b[c]),a.zwiebackId_&&yj(b[c],28,a.zwiebackId_),a.transport&&a.transport.dispatch(b[c])};
XC.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 $C=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($C,W);var aD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,7)};Y(aD,W);aD.prototype.setTarget=function(a){Zi(this,FC,1,a)};aD.prototype.getType=function(){return Ii(this,2)};aD.prototype.setType=function(a){return Vn(this,2,a)};aD.prototype.hasType=function(){return xm(this,2)};var kNc=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;Kn(a,4,b)};var lNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lNc,W);var bD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bD,W);bD.prototype.getParentEventId=function(){return X(this,cB,3)};bD.prototype.setParentEventId=function(a){Zi(this,cB,3,a)};bD.prototype.setRequestContext=function(a){Zi(this,HC,4,a)};var nNc=function(a,b){this.userAction=a;this.visualElementID=b;mNc++},mNc=0;var cNc=function(){this.xidTagComponents_=!1};cNc.prototype.createNewTag=function(a){return new UC(a,this.xidTagComponents_)};cNc.prototype.addEventMetadata=function(){};var cD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cD,W);var oNc=function(a,b){$i(a,1,b)};cD.prototype.addPath=function(a,b){return bq(this,1,GC,a,b)};cD.prototype.setPath=function(a,b){return Yw(this,1,GC,a,b)};var pNc=new MA(100,aD,cD);var dD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dD,W);var eD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eD,W);eD.prototype.getTimestamp=function(){return X(this,dD,1)};eD.prototype.setTimestamp=function(a){return Zi(this,dD,1,a)};eD.prototype.hasTimestamp=function(){return Ji(this,dD,1)};var qNc=new MA(126,DC,eD);var rNc=new MA(618,GC,eD);var sNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,2)};Y(sNc,W);var tNc=new MA(273,GC,sNc);h=mva.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=uNc(this,a);return this.buff_[a]};h.set=function(a,b){a=uNc(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 uNc=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 vNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vNc,W);var wNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wNc,W);h=wNc.prototype;h.getKey=function(){return xi(this,1)};h.hasKey=function(){return wm(this,1)};h.getValue=function(){return xi(this,2)};h.getValue_legacyNullable=function(){return Ml(this,2)};h.setValue=function(a){return yj(this,2,a)};h.hasValue=function(){return wm(this,2)};var xNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xNc,W);var yNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yNc,W);var fD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(fD,W);var ZC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,36)};Y(ZC,W);h=ZC.prototype;h.getTag=function(){return xi(this,2)};h.getComponentId=function(){return xi(this,26)};h.setComponentId=function(a){return yj(this,26,a)};h.hasComponentId=function(){return wm(this,26)};h.addValue=function(){return bq(this,3,wNc)};h.setValue=function(a,b){return Yw(this,3,wNc,a,b)};var iNc=function(a,b){return yj(a,8,b)};ZC.prototype.getExperimentIds=function(){return X(this,vNc,16)};
ZC.prototype.setExperimentIds=function(a){Zi(this,vNc,16,a)};ZC.prototype.clearExperimentIds=function(){return Zw(this,16)};var gD=function(a,b){yj(a,24,b)};ZC.prototype.getTestCodeList=function(){return Wm(this,20,Oi())};ZC.prototype.setTestCodeList=function(a){return yc(this,20,a,Eb)};ZC.prototype.getComplianceData=function(){return X(this,fD,33)};ZC.prototype.setComplianceData=function(a){Zi(this,fD,33,a)};var tv=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 mva};Y(tv,RC);h=tv.prototype;h.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)LMc(a[e].keys().next().value)?d.push(a[e]):c.push(a[e]);a=zNc(this,c,b);b=this.enableBatching_?ANc(this,d,b):BNc(this,d,b);return a.concat(b)};
h.interactionEvent=function(a,b){var c=new bD,d=SC();Zi(c,cB,1,d);d=new HC;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().getID()).setVeIndex(a.traversalOrder_);eLc(Tn(d,3,b.userAction),this.getAncestry_(a));a.getTag().populateInteractionMetadata(d);this.setTimestamp(d);var e=new $C;Zi(e,cB,1,a.impressionEventID);c.setParentEventId(a.impressionEventID);c.setRequestContext(d);Zi(c,$C,9,e);this.recentInteractions_.add(new nNc(b.userAction,a.getTag().getID()));a=new ZC;gD(a,c.serialize());
return[a]};
h.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],g=f.getElement(),k=f.rootImpressionEventID,m=d.get(k);m=m?m:[];var r=new cD;this.enableAncestryLoggingForGrafts_&&oNc(r,this.getAncestry_(f));if(f.neverShown||QMc(f.getTag(),"vis"))if(g=this.isVisible_(g,b),f.hidden&&g){g=new aD;g.setType(1);var w=CNc(f);g.setTarget(w);kNc(g);this.enableAncestryLoggingForGrafts_&&cw(g,pNc,r);m.push(g);f.hidden=!1;f.neverShown=!1}else f.hidden||g||(g=new aD,g.setType(2),w=CNc(f),
g.setTarget(w),kNc(g),this.enableAncestryLoggingForGrafts_&&cw(g,pNc,r),m.push(g),f.hidden=!0);d.set(k,m)}a=l(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new lNc,$i(e,1,f),f=new bD,k=SC(),m=new $C,Zi(m,cB,1,b),Zi(f,cB,1,k),f.setParentEventId(b),Zi(f,lNc,7,e),Zi(f,$C,9,m),b=new ZC,gD(b,f.serialize()),c.push(b));return c};
h.semanticEvent=function(a){var b=new HC,c=b.setUiType(a.getID());Tn(c,3,1);a.populateInteractionMetadata(b);this.setTimestamp(b);var d=SC();c=new bD;Zi(c,cB,1,d);(d=a.getParentEventId())&&c.setParentEventId(d);var e=new $C;Zi(e,cB,1,d);c.setRequestContext(b);Zi(c,$C,9,e);this.recentInteractions_.add(new nNc(1,a.getID()));b=new ZC;b.setTestCodeList(a.getTestCodeList());gD(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=bNc(b,new xj(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var zNc=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 bD;e.testCodes$jscomp$2=[];e.impressionEventID=SC();Zi(e.clientVeProto$jscomp$7,cB,1,e.impressionEventID);var g=new $C;Zi(g,cB,1,e.impressionEventID);Zi(e.clientVeProto$jscomp$7,$C,9,g);if(g=aua(window.location.href,"ved"))g=(new HC).setVed(g),e.clientVeProto$jscomp$7.setRequestContext(g);b[f].forEach(function(k){return function(m,
r){r.impressionEventID=k.impressionEventID;r.rootImpressionEventID=k.impressionEventID;var w=this.getVisualElementLiteProto_(r);m.length&&dLc(w,m);m=r.getElement();this.isVisible_(m,c)?(r.neverShown=!1,r.hidden=!1):w.setVisible(1);DNc(this,r)&&r.traversalOrder_!==void 0&&(m.setAttribute("data-hveid",Number(r.traversalOrder_)),Ni(k.clientVeProto$jscomp$7,GC,2,Oi()).length===0&&UMc(r)&&(m.setAttribute("decode-data-ved","1"),m.setAttribute("data-ved",UMc(r)+"")));this.setTimestamp(w);bq(k.clientVeProto$jscomp$7,
2,GC,w);k.testCodes$jscomp$2=k.testCodes$jscomp$2.concat(r.getTag().testCodes_)}}(e),a);g=new ZC;gD(g,e.clientVeProto$jscomp$7.serialize());g.setTestCodeList(e.testCodes$jscomp$2);d.push(g)}return d},ANc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var g=b[f],k=g.keys().next().value.rootImpressionEventID,m=e.get(k)||[];m.push(g);e.set(k,m)}e.forEach(function(r,w){var x=0,D=[],H=new bD,J=[],O=SC();Zi(H,cB,1,O);H.setParentEventId(w);var R=new $C;Zi(R,cB,1,w);Zi(H,$C,9,R);for(R=0;R<
r.length;R++)for(var V=r[R],ba=V.keys(),oa=ba.next().value,ta=V.get(oa),ka={},Ca=0;Ca<ta.length;ka={startingOffset:void 0,cloneTreeRootIndex:void 0},++Ca){var ja=oa;ka.cloneTreeRootIndex=0;ka.startingOffset=ta[Ca];var ua=V.size;Ca!=ta.length-1&&(ua=ta[Ca+1]);for(var xa=ka.startingOffset;xa<ua;++xa){var Ra=ba.next().value;xa==ka.startingOffset&&(ja=Ra,ka.cloneTreeRootIndex=x);Ra.impressionEventID=O;Ra.rootImpressionEventID=w;Ra.traversalOrder_=x;var $a=V.get(Ra),pb=this.getVisualElementLiteProto_(Ra);
$a.length&&dLc(pb,$a.map(function(Yb){return function(lc){return lc-Yb.startingOffset+Yb.cloneTreeRootIndex}}(ka)));$a=Ra.getElement();this.isVisible_($a,c)?(Ra.neverShown=!1,Ra.hidden=!1):pb.setVisible(1);this.setTimestamp(pb);bq(H,2,GC,pb);J=J.concat(Ra.getTag().testCodes_);x++}ka=new aD;ka.setType(3);ua=CNc(oa);ka.setTarget(ua);ua=new FC;xa=new EC;Ra=new cD;xa.setVeIndex(ja.traversalOrder_);$Kc(xa,ja.getTag().getID());mp(ua,2,bLc,xa);Zi(ka,FC,3,ua);this.enableAncestryLoggingForGrafts_&&(oNc(Ra,
this.getAncestry_(ja)),cw(ka,pNc,Ra));D.push(ka)}D.length&&(r=new lNc,$i(r,1,D),Zi(H,lNc,7,r));D=new ZC;gD(D,H.serialize());D.setTestCodeList(J);d.push(D)},a);return d},BNc=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],g=f.keys(),k=g.next().value,m=f.get(k),r={},w=0;w<m.length;r={startingOffset$jscomp$1:void 0},++w){r.startingOffset$jscomp$1=m[w];var x=f.size;w!=m.length-1&&(x=m[w+1]);var D=new bD,H=[],J=SC(),O=new $C;Zi(O,cB,1,k.impressionEventID);Zi(D,cB,1,J);D.setParentEventId(k.impressionEventID);
Vn(D,5,3);Zi(D,$C,9,O);O=new HC;k.serverVed_?O.setVed(k.serverVed_):O.setUiType(k.getTag().getID()).setVeIndex(k.traversalOrder_);eLc(O,a.getAncestry_(k));D.setRequestContext(O);for(O=r.startingOffset$jscomp$1;O<x;++O){var R=g.next().value;R.impressionEventID=J;R.rootImpressionEventID=k.rootImpressionEventID;R.traversalOrder_!=void 0&&(R.traversalOrder_-=r.startingOffset$jscomp$1);var V=f.get(R),ba=a.getVisualElementLiteProto_(R);V.length&&dLc(ba,V.map(function(oa){return function(ta){return ta-oa.startingOffset$jscomp$1}}(r)));
V=R.getElement();a.isVisible_(V,c)?(R.neverShown=!1,R.hidden=!1):ba.setVisible(1);DNc(a,R)&&R.traversalOrder_!==void 0&&(V.setAttribute("data-hveid",Number(R.traversalOrder_)),Ni(D,GC,2,Oi()).length===0&&UMc(R)&&(V.setAttribute("decode-data-ved","1"),V.setAttribute("data-ved",UMc(R)+"")));a.setTimestamp(ba);bq(D,2,GC,ba);H=H.concat(R.getTag().testCodes_)}r=new ZC;gD(r,D.serialize());r.setTestCodeList(H);d.push(r)}return d};
tv.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};tv.prototype.getVisualElementLiteProto_=function(a){var b=(new GC).setUiType(a.getTag().getID());Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());RMc(a.getTag(),b);DNc(this,a)&&(a=new sNc,aj(a,1,!0),cw(b,tNc,a));return b};
var CNc=function(a){var b=new FC;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new EC;mp(b,3,cLc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);$Kc(c,a.getTag().getID());mp(b,2,bLc,c)}return b};
tv.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof HC&&(!X(a,DC,15)||!X(a,DC,15).getExtension(qNc))){var c=new eD,d=new dD,e=X(a,DC,15);e||(e=new DC);Yn(d,1,b);c.setTimestamp(d);cw(e,qNc,c);Zi(a,DC,15,e)}a instanceof GC&&(c=new eD,d=new dD,Yn(d,1,b),c.setTimestamp(d),cw(a,rNc,c))};var DNc=function(a,b){return a.enableAttentionLogging_?QMc(b.getTag(),"hover")||QMc(b.getTag(),"attention"):!1};var ENc=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 GNc=function(a,b,c){var d=String(ra.location.href);return d&&a&&b?[b,FNc(ENc(d),a,c||null)].join(" "):null},FNc=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)}),HNc(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=HNc(e.join(" "));a=[c,a];g.length==0||a.push(g.join(""));return a.join("_")},HNc=function(a){var b=
nva();b.update(a);return b.digestString().toLowerCase()};h=ova.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 INc(this).keys};h.getValues=function(){return INc(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=INc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};h.getParts_=function(){return(this.document_.cookie||"").split(";")};var INc=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 JNc=function(a,b,c,d){(a=ra[a])||typeof document==="undefined"||(a=(new ova).get(b));return a?GNc(a,c,d):null},Zrc=function(a){var b=ENc(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 ova,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 ova,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?GNc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=JNc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=JNc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var KNc=function(){this.minSize=1024},LNc=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))}})};KNc.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var hD=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};hD.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};hD.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
hD.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};hD.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 MNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MNc,W);MNc.prototype.getTransmissionType=function(){return Ii(this,1)};MNc.prototype.setTransmissionType=function(a){return Vn(this,1,a)};var sva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sva,W);sva.prototype.getVersion=function(){return xi(this,2)};sva.prototype.setVersion=function(a){return yj(this,2,a)};sva.prototype.getVersionOrUndefined=function(){return gx(this,2)};var iD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iD,W);var rva=function(a){$i(tva,1,a)};iD.prototype.setPlatform=function(a){yj(this,3,a)};iD.prototype.setModel=function(a){return yj(this,6,a)};var NNc=yi(iD);var jD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jD,W);jD.prototype.getLocale=function(){return xi(this,5)};jD.prototype.setLocale=function(a){yj(this,5,a)};jD.prototype.setBuildLabel=function(a){yj(this,7,a)};var pva=["platform","platformVersion","architecture","model","uaFullVersion"],tva=new iD,qva=null;var kD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kD,W);kD.prototype.getClientType=function(){return Ii(this,1)};kD.prototype.setClientType=function(){return Vn(this,1,1)};kD.prototype.getMutableJsClientInfo=function(){return Ui(this,jD,11)};var ONc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,19)};Y(ONc,W);h=ONc.prototype;h.getMutableClientInfo=function(){return Ui(this,kD,1)};h.setClientInfo=function(a){Zi(this,kD,1,a)};h.getLogSource=function(){return Ii(this,2,-1)};h.setLogSource=function(a){return Vn(this,2,a)};h.getComplianceData=function(){return X(this,fD,18)};h.setComplianceData=function(a){Zi(this,fD,18,a)};var PNc=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 ONc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new kD)};h=PNc.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,iD,9)||Zi(a,iD,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,kD,1);a||(a=new kD,this.setClientInfo(a));return a};var QNc=function(a){var b=b===void 0?pva:b;var c=a.isServiceWorkerScope?void 0:Zu();c?uva(c,b).then(function(d){a.uach=NNc(d!=null?d:"[]");d=a.getMutableJsClientInfo();Zi(d,iD,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};PNc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=X(a,jD,11);b||(b=new jD,Zi(a,jD,11,b));return b};
PNc.prototype.getComplianceData=function(a){var b=new xNc;a=Tn(b,13,a);b=new yNc;a=Zi(b,xNc,2,a);b=new fD;a=Zi(b,yNc,1,a);return Vn(a,2,9)};
PNc.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 MNc).setTransmissionType(this.transmissionType);k=aj(k,2,this.isFinal);c=Tn(k,3,c>0?c:void 0);c=Tn(c,4,e>0?e:void 0);c=Tn(c,5,f>0?f:void 0);c=lea(c);Zi(g,MNc,10,c)}g=this.logRequest.clone();c=Date.now().toString();g=Yn(g,4,c);a=$i(g,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));
b&&Kn(a,14,b);return a};vva.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};vva.prototype.getValue=function(){return this.currValue_};var lD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lD,W);lD.prototype.getId=function(a){return ix(this,1,a)};lD.prototype.setId=function(a){return qx(this,1,a)};var mD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,8)};Y(mD,W);mD.prototype.getExperiments=function(){return X(this,lD,2)};mD.prototype.setExperiments=function(a){return Zi(this,lD,2,a)};mD.prototype.hasExperiments=function(){return Ji(this,lD,2)};var RNc=yi(mD);var SNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SNc,W);var TNc=new MA(175237375,mD,SNc);var nD=function(a){Fi.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 PNc(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&&!!Zu()&&!!Zu().navigator&&Zu().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(UNc())).searchParams&&!!(new URL(UNc())).searchParams.set;var c=(new kD).setClientType();this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new vva(1E4);a=VNc(this,a.backgroundJobDeferrer);this.flushTimer=new hD(this.flushBackoff.getValue(),
a);this.backupTimer=new hD(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){WNc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){WNc(b);var d;(d=b.metalogService)==null||d.flush()}))};Y(nD,Fi);var VNc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
h=nD.prototype;h.disposeInternal=function(){WNc(this);this.flushTimer.stop();this.backupTimer.stop();Fi.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=UNc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,Zu().location.origin)).toString()}};
h.dispatch=function(a){if(a instanceof ZC)this.log(a);else try{var b=iNc(new ZC,a.serialize());this.log(b)}catch(c){oD(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 vNc);var b=this.experimentIds;a=[].concat(q(a));yc(b,2,a,Aea)};
h.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new vNc);var b=this.experimentIds;a=a.serialize();yj(b,4,a)}else this.experimentIds&&Zw(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;XNc(this,a)};h.getLogSource=function(){return this.logSource};
var XNc=function(a,b){a.flushBackoff=new vva(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},oD=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
nD.prototype.log=function(a){oD(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=Kn(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(Pb(tm(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";Yn(b,1,c)}Dn(b,15)||Kn(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());oD(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,oD(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};nD.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
nD.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),YNc(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=LNc(d));var m=this.createRequestParams(d,g),r=function(D){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(D){var H=null;try{var J=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));H=RNc(J)}catch(O){}H&&(D=Number(En(H,1,mb("-1"))),D>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+D),H=mAc(H,TNc))&&(H=Um(H,1,-1),H!==-1&&(c.clientSpecifiedFlushInterval||XNc(c,H)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},w=function(D,H){var J=Ni(f,ZC,3,Oi());
var O=Number(En(f,14)),R=c.flushBackoff;R.currBaseValue_=Math.min(3E5,R.currBaseValue_*2);R.currValue_=Math.min(3E5,R.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*R.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());D===401&&g&&(c.lastFailedAuth=g);O&&(c.numLogsDroppedSinceLastFlush+=O);H===void 0&&(H=500<=D&&D<600||D===401||D===0);H&&(c.pendingEvents=J.concat(c.pendingEvents),c.maybeStartFlushTimer());oD(c,7,1);b&&b("net-send-failed",D);++c.numRetriesSinceLastSuccessfulFlush},
x=function(){c.network&&c.network.send(m,r,w)};k?k.then(function(D){oD(c,5,e);m.requestHeaders["Content-Encoding"]="gzip";m.requestHeaders["Content-Type"]="application/binary";m.body=D;m.bodyType=2;x()},function(){oD(c,6,e);x()}):x()}}}};
nD.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 WNc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),YNc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),ZNc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},YNc=function(a){$Nc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=Zu().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
ZNc=function(a){$Nc(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=c.serialize();for(var f=[],g=0,k=0;k<c.length;k++){var m=c.charCodeAt(k);m>255&&(f[g++]=m&255,m>>=8);f[g++]=m}c=Nba(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},$Nc=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()}},UNc=function(){return"https://play.google.com/log?format=json&hasfast=true"};nD.prototype.setBufferSize=function(a){this.bufferSize=a};var aOc=function(){this.abortSupported=typeof AbortController!=="undefined"};
aOc.prototype.send=function(a,b,c){var d=this,e,f,g,k,m,r,w,x,D,H;return y(function(J){switch(J.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,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){(m=c)==
null||m(k.status);J.jumpTo(3);break}if((r=b)==null){J.jumpTo(7);break}return z(J,k.text(),8);case 8:r(J.yieldResult);case 7:case 3:Zd(J);clearTimeout(f);ae(J,0);break;case 2:w=be(J);switch((x=w)==null?void 0:x.name){case "AbortError":(D=c)==null||D(408);break;default:(H=c)==null||H(400)}J.jumpTo(3)}})};aOc.prototype.getTransmissionType=function(){return 4};var pD=function(a,b){b=b===void 0?"0":b;Fi.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(pD,Fi);h=pD.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 bOc=function(a,b){a.getAuthHeaderValue=b};h=pD.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 aOc);var a=new nD({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Zrc,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});St(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 KNc);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);QNc(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 cOc=function(){},dOc=function(){};var eOc=Symbol("Kb"),zj=function(a,b,c){c=c===void 0?null:c;this.tracker=null;a&&(this.tracker=fOc(a))&&(YC(this.tracker,"click",3,"generic_click"),YC(this.tracker,"dragstart",30),YC(this.tracker,"drop",37),YC(this.tracker,"hover",9),YC(this.tracker,"input_text",15),YC(this.tracker,"key_press",32));b&&(this.visualElementLookup=b.getVisualElementLookup());this.runOutsideAngular=c?c.runOutsideAngular.bind(c):Zone.root.run.bind(Zone.root);zj.lastEventTrackerInstalled||(zj.lastEventTrackerInstalled=!0,
this.runOutsideAngular(function(){window.addEventListener("click",function(d){zj.lastWindowEvent=d},{capture:!0});window.addEventListener("mouseenter",function(d){zj.lastWindowEvent=d},{capture:!0})}))};zj.prototype.addInteractionEventListener=function(a){this.tracker&&this.tracker.addInteractionEventListener(a)};zj.prototype.removeInteractionEventListener=function(a){this.tracker&&this.tracker.removeInteractionEventListener(a)};
var hOc=function(a,b,c){a.runOutsideAngular(function(){a.tracker&&a.visualElementLookup&&(gOc(a,b,c),c.trackImpression&&a.tracker.logImpressions())})};zj.prototype.logEvent=function(a,b,c){this.tracker&&this.tracker.logEvent(a,b,c)};
var gOc=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[eOc]=c)};zj.prototype.logSyntheticEvent=function(a,b,c){this.tracker&&this.tracker.logSyntheticEvent(a,b,c)};zj.prototype.logSemanticInteraction=function(a){this.tracker&&this.tracker.logSemanticInteraction(a)};zj.prototype.log=function(a){this.tracker&&this.tracker.log(a)};
var iOc=function(a,b,c,d){zj.lastWindowEvent&&zj.lastWindowEvent!==d&&(zj.lastWindowEvent.type==="click"&&c.trackClick&&wva(b)&&a.logEvent("click",b),zj.lastWindowEvent.type==="mouseenter"&&c.trackHover&&wva(b)&&a.logEvent("hover",b))};zj.lastEventTrackerInstalled=!1;zj.lastWindowEvent=null;zj.\u0275fac=function(a){return new (a||zj)(Zc(cOc,8),Zc(dOc,8),Zc(Tg,8))};zj.\u0275prov=Fc({token:zj,factory:zj.\u0275fac,providedIn:"root"});var jOc="click mouseenter dragstart drop keydown input".split(" "),qD=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[eOc];if(g){var k=xva(g.interactionMetadata);switch(e.type){case "click":g.trackClick&&d.logEvent("click",f,k);break;case "mouseenter":g.trackHover&&d.logEvent("hover",f,k);break;case "dragstart":g.trackDrag&&d.logEvent("dragstart",f,k);break;case "drop":g.trackDrop&&d.logEvent("drop",
f,k);break;case "keydown":g.trackKeyPress&&d.logEvent("key_press",f,k);break;case "input":g.trackInputText&&d.logEvent("input_text",f,k);break;default:console.warn("No GIL binding for events of type "+e.type)}}}};this.ngZone.runOutsideAngular(function(){for(var e=l(jOc),f=e.next();!f.done;f=e.next())d.document.addEventListener(f.value,d.handleDomEvent,{capture:!0})})};
qD.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};qD.prototype.ngOnDestroy=function(){var a=this;this.ngZone.runOutsideAngular(function(){for(var b=l(jOc),c=b.next();!c.done;c=b.next())a.document.removeEventListener(c.value,a.handleDomEvent,{capture:!0})});qD.instance=void 0};qD.\u0275fac=function(a){return new (a||qD)(Zc(zj),Zc(Uh),Zc(Tg))};
qD.\u0275prov=Fc({token:qD,factory:qD.\u0275fac});var kOc=new ed("VE config");var lOc=function(){var a=this;this.veMetadataObject=Qg.apply(null,q([]));this.veEncoder=Qg.apply(null,[Pba].concat(q([])));this.veKey=Qg.apply(null,["0"].concat(q([])));this.value=ah.apply(null,[function(){var b=a.veMetadataObject();if(!b)return"";b=b.serialize();if(b==="")return"";b=a.veEncoder()(b);return b===""?"":a.veKey()+":"+b}].concat(q([])))};lOc.\u0275fac=function(a){return new (a||lOc)};
lOc.\u0275dir=df({type:lOc,selectors:[["","veMetadataObject",""]],inputs:{veMetadataObject:[1,"veMetadataObject"],veEncoder:[1,"veEncoder"],veKey:[1,"veKey"]},exportAs:["veMetadataLoggingDirective"]});var rD=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=rD.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 UC(this.config.visualElementId),this.el.nativeElement)};h.logEvent=function(a){this.loggingService.logEvent(a,this.el.nativeElement,xva(this.veInteractionMetadata))};var mOc=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=rD.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=mOc(this);this.config=this.getConfig();
hOc(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,gOc(this.loggingService,this.el,this.config)};h.ngOnChanges=function(){this.updateConfig()};
h.ngOnDestroy=function(){var a=this;this.config&&this.trackEventsInDirective&&iOc(this.loggingService,this.el.nativeElement,this.config,this.lastEvent);this.veInputText&&this.trackEventsInDirective&&this.loggingService.removeInteractionEventListener(this.resetIgnoreInputTextEvent);this.ngZone.runOutsideAngular(function(){for(var b=l(a.unregisterFunctions),c=b.next();!c.done;c=b.next())c=c.value,c()})};
da.Object.defineProperties(rD.prototype,{trackEventsInDirective:{configurable:!0,enumerable:!0,get:function(){var a;return this.globalEventListenerService==null&&!((a=this.veLoggingConfig)==null?0:a.disableDirectives)}}});rD.\u0275fac=function(a){return new (a||rD)(Ye(Jd),Ye(zj),Ye(Tg),Ye(fi),Ye(qD,8),Ye(kOc,8),Ye(lOc,8))};
rD.\u0275dir=df({type:rD,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:[xx]});var sD=function(){};sD.\u0275fac=function(a){return new (a||sD)};sD.\u0275mod=cf({type:sD});sD.\u0275inj=Gc({});var nOc=new ed("DUCKIE_VE_CONFIG",{providedIn:"root",factory:function(){return{logSource:0,veIds:{}}}}),tD=function(){this.config=p(nOc)},fOc=function(a){a=new XC(new tv,null,(new pD(a.config.logSource,"0")).build());gNc(a);return a},km=function(a,b,c){c=new gLc(c);hLc(c,b);fOc(a).logSemanticInteraction(c)},uD=function(a,b,c){var d=c.id;d&&(c=c.sessionId,d=(new mm).setMessageId(d),c&&d.setSessionId(c),d=lm(d),km(a,d,b))};tD.\u0275fac=function(a){return new (a||tD)};
tD.\u0275prov=Fc({token:tD,factory:tD.\u0275fac,providedIn:"root"});var oOc=function(){};var Bj=function(){this.Serializable$values={}},Aj=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},vD=function(a,b){return a.Serializable$values[b]!=null};var pOc=function(){};var qOc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Y(qOc,pOc);
var rOc=function(a,b,c){var d=yva(a.hookFactory,b);return d==null?c:ue.pipe(Cf({complete:function(){d.onBeforeSend()}}),rla(c.pipe(Cf(function(e){d.onSuccess(e)},function(e){d.onError(e)}))),qf(function(){var e;(e=d.onFinalize)==null||e.call(d)}))},sOc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof Bj?Dva(b.body,Ava,Bva,Cva):b.body;return rOc(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 tOc=function(){};tOc.prototype.send=function(a,b){Lva(a);return this.makeRequest(a).pipe(A(function(c){return b?Hva(b,c):c}))};var wD={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[wD.UNKNOWN,wD.COMMON_MARK_MARKDOWN_FLAVOR,wD.GITHUB_FLAVORED_MARKDOWN_FLAVOR,wD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR]}},xD={ALL:"ALL",BUGANIZER:"BUGANIZER",COMMON:"COMMON",EXTENDED:"EXTENDED",ISSUETRACKER:"ISSUETRACKER",LEGACY_G3DOC:"LEGACY_G3DOC",NONE:"NONE",values:function(){return[xD.NONE,
xD.COMMON,xD.EXTENDED,xD.ALL,xD.BUGANIZER,xD.ISSUETRACKER,xD.LEGACY_G3DOC]}},uOc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown};Y(uOc,Bj);uOc.prototype.getPartialClassMetadata=function(){return{keys:["markdown"]}};da.Object.defineProperties(uOc.prototype,{markdown:{configurable:!0,enumerable:!0,get:function(){return vD(this,"markdown")?Aj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=a}}});
var vOc=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(vOc,Bj);vOc.prototype.getPartialClassMetadata=function(){return{enums:{markdownFlavor:wD,shortlinkSet:xD},keys:"allowListedTags allowStyle escapeHtml graphviz highlight markdown markdownFlavor shortlinkSet sourcePos".split(" ")}};
da.Object.defineProperties(vOc.prototype,{allowListedTags:{configurable:!0,enumerable:!0,get:function(){return vD(this,"allowListedTags")?Aj(this,"allowListedTags"):null},set:function(a){this.Serializable$values.allowListedTags=a}},allowStyle:{configurable:!0,enumerable:!0,get:function(){return vD(this,"allowStyle")?Aj(this,"allowStyle"):null},set:function(a){this.Serializable$values.allowStyle=a}},escapeHtml:{configurable:!0,enumerable:!0,get:function(){return vD(this,"escapeHtml")?Aj(this,"escapeHtml"):
null},set:function(a){this.Serializable$values.escapeHtml=a}},graphviz:{configurable:!0,enumerable:!0,get:function(){return vD(this,"graphviz")?Aj(this,"graphviz"):null},set:function(a){this.Serializable$values.graphviz=a}},highlight:{configurable:!0,enumerable:!0,get:function(){return vD(this,"highlight")?Aj(this,"highlight"):null},set:function(a){this.Serializable$values.highlight=a}},markdown:{configurable:!0,enumerable:!0,get:function(){return vD(this,"markdown")?Aj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=
a}},markdownFlavor:{configurable:!0,enumerable:!0,get:function(){return vD(this,"markdownFlavor")?Aj(this,"markdownFlavor"):null},set:function(a){this.Serializable$values.markdownFlavor=a}},shortlinkSet:{configurable:!0,enumerable:!0,get:function(){return vD(this,"shortlinkSet")?Aj(this,"shortlinkSet"):null},set:function(a){this.Serializable$values.shortlinkSet=a}},sourcePos:{configurable:!0,enumerable:!0,get:function(){return vD(this,"sourcePos")?Aj(this,"sourcePos"):null},set:function(a){this.Serializable$values.sourcePos=
a}}});var wOc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.safeHtml=a.safeHtml==null?null:a.safeHtml};Y(wOc,Bj);wOc.prototype.getPartialClassMetadata=function(){return{keys:["safeHtml"],objects:{safeHtml:xOc}}};da.Object.defineProperties(wOc.prototype,{safeHtml:{configurable:!0,enumerable:!0,get:function(){return vD(this,"safeHtml")?Aj(this,"safeHtml"):null},set:function(a){this.Serializable$values.safeHtml=a}}});
var xOc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a.privateDoNotAccessOrElseSafeHtmlWrappedValue==null?null:a.privateDoNotAccessOrElseSafeHtmlWrappedValue};Y(xOc,Bj);xOc.prototype.getPartialClassMetadata=function(){return{keys:["privateDoNotAccessOrElseSafeHtmlWrappedValue"]}};
da.Object.defineProperties(xOc.prototype,{privateDoNotAccessOrElseSafeHtmlWrappedValue:{configurable:!0,enumerable:!0,get:function(){return vD(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue")?Aj(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue"):null},set:function(a){this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a}}});
var yOc=new ed("API_VERSION"),zOc=new ed("REQUEST_SERVICE for g3mark_service_api_client"),AOc={$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"},yD=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1":a;this.$apiClient=new qOc(b,c)};
yD.prototype.format=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;return sOc(this.$apiClient,{body:a,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.format",path:"/"+this.gapiVersion+"/G3markService/Format",queryParams:Mva(b,AOc,c),responseCtor:uOc})};
var BOc=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;return sOc(a.$apiClient,{body:b,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.markdownToHtml",path:"/"+a.gapiVersion+"/G3markService/MarkdownToHtml",queryParams:Mva(c,AOc,d),responseCtor:wOc})};yD.\u0275fac=function(a){return new (a||yD)(Zc(yOc,8),Zc(zOc),Zc(oOc,8))};yD.\u0275prov=Fc({token:yD,factory:yD.\u0275fac,providedIn:"root"});var COc=function(){};
COc.\u0275fac=function(a){return new (a||COc)};COc.\u0275prov=Fc({token:COc,factory:function(a){return yD.\u0275fac(a)},providedIn:"root"});var zD=function(a){this.g3markApiClient=a},DOc=function(a,b,c){var d=new vOc,e;d.allowStyle=(e=c==null?void 0:c.allowStyle)!=null?e:d.allowStyle;var f;d.escapeHtml=(f=c==null?void 0:c.escapeHtml)!=null?f:d.escapeHtml;var g;d.shortlinkSet=(g=c==null?void 0:c.shortlinkSet)!=null?g:d.shortlinkSet;var k;d.highlight=(k=c==null?void 0:c.highlight)!=null?k:d.highlight;var m;d.graphviz=(m=c==null?void 0:c.graphviz)!=null?m:d.graphviz;d.markdown=b;d.markdownFlavor=wD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR;var r=
Dh(b,{preserveNewlines:!0,preserveTabs:!0,preserveSpaces:!0});a=BOc(a.g3markApiClient,d).pipe(A(function(w){if(w=w.safeHtml)if(w){w=w.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(!w)throw Error("Qb");w=rh(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(qia(a,c))};zD.\u0275fac=function(a){return new (a||zD)(Zc(COc))};zD.\u0275prov=Fc({token:zD,factory:zD.\u0275fac});/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var EOc=!!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString())||HTMLElement.es5Shimmed||ra.Reflect===void 0||ra.customElements===void 0||ra.customElements.polyfillWrapFlushCallback||!1,FOc,GOc=function(){var a=HTMLElement;if(EOc)return a;if(FOc!==void 0)return FOc;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 FOc=c},HOc=!1;var IOc=ra.ShadowRoot&&(ra.ShadyCSS===void 0||ra.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JOc=Symbol(),KOc=new WeakMap,LOc=function(a,b,c){this._$cssResult$=!0;if(c!==JOc)throw Error("Rb");this.cssText=a;this._strings=b};LOc.prototype.toString=function(){return this.cssText};
da.Object.defineProperties(LOc.prototype,{styleSheet:{configurable:!0,enumerable:!0,get:function(){var a=this._styleSheet,b=this._strings;if(IOc&&a===void 0){var c=b!==void 0&&b.length===1;c&&(a=KOc.get(b));a===void 0&&((this._styleSheet=a=new CSSStyleSheet).replaceSync(this.cssText),c&&KOc.set(b,a))}return a}}});
var MOc=function(a,b){if(IOc)a.adoptedStyleSheets=b.map(function(f){return f instanceof CSSStyleSheet?f:f.styleSheet});else{b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("style"),e=ra.litNonce;e!==void 0&&d.setAttribute("nonce",e);d.textContent=c.cssText;a.appendChild(d)}}},NOc=IOc?function(a){return a}:function(a){if(a instanceof CSSStyleSheet){var b="";a=l(a.cssRules);for(var c=a.next();!c.done;c=a.next())b+=c.value.cssText;b=new LOc(typeof b==="string"?b:
String(b),void 0,JOc)}else b=a;return b};var OOc=function(a){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a=a.ReactiveElement.prototype;globalThis.ShadyDOM&&globalThis.ShadyDOM.inUse&&globalThis.ShadyDOM.noPatch===!0&&globalThis.ShadyDOM.patchElementProto(a);var b=a.createRenderRoot;a.createRenderRoot=function(){var e=this.localName;if(globalThis.ShadyCSS.nativeShadow)return b.call(this);if(!this.constructor.hasOwnProperty("__scoped")){this.constructor.__scoped=!0;var f=this.constructor.elementStyles.map(function(r){return r instanceof
CSSStyleSheet?Array.from(r.cssRules).reduce(function(w,x){return w+x.cssText},""):r.cssText}),g,k;(g=globalThis.ShadyCSS)==null||(k=g.ScopingShim)==null||k.prepareAdoptedCssText(f,e);this.constructor._$handlesPrepareStyles===void 0&&globalThis.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}var m;return(m=this.shadowRoot)!=null?m:this.attachShadow(this.constructor.shadowRootOptions)};var c=a.connectedCallback;a.connectedCallback=function(){c.call(this);this.hasUpdated&&globalThis.ShadyCSS.styleElement(this)};
var d=a._$didUpdate;a._$didUpdate=function(e){this.hasUpdated||globalThis.ShadyCSS.styleElement(this);d.call(this,e)}}},POc;(POc=globalThis).reactiveElementPolyfillSupport!=null||(POc.reactiveElementPolyfillSupport=OOc);EOc||HOc||(HOc=!0,ra.HTMLElement=GOc());
var QOc=GOc(),AD=Object,ROc=AD.is,SOc=AD.defineProperty,TOc=AD.getOwnPropertyDescriptor,UOc=AD.getOwnPropertyNames,VOc=AD.getOwnPropertySymbols,WOc=AD.getPrototypeOf,XOc=ra.trustedTypes,YOc=XOc?XOc.emptyScript:"",ZOc=ra.reactiveElementPolyfillSupport,$Oc={toAttribute:function(a,b){switch(b){case Boolean:a=a?YOc: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}},aPc=function(a,b){return!ROc(a,b)},bPc={attribute:!0,type:String,converter:$Oc,reflect:!1,useDefault:!1,hasChanged:aPc},cPc;Symbol.metadata==null&&(Symbol.metadata=Symbol("Sb"));cPc=Symbol.metadata;var dPc=new WeakMap,BD=function(){var a=QOc.call(this)||this;a.__instanceProperties=void 0;a.isUpdatePending=!1;a.hasUpdated=!1;a.__reflectingProperty=null;a.__initialize();return a};Y(BD,QOc);
BD.addInitializer=function(a){this.__prepare();var b;((b=this._initializers)!=null?b:this._initializers=[]).push(a)};BD.createProperty=function(a,b){b=b===void 0?bPc: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&&SOc(this.prototype,a,b))};
BD.getPropertyDescriptor=function(a,b,c){var d,e=(d=TOc(this.prototype,a))!=null?d:{get:function(){return this[b]},set:function(k){this[b]=k}},f=e.get,g=e.set;return{get:f,set:function(k){var m=f==null?void 0:f.call(this);g==null||g.call(this,k);ePc(this,a,m,c)},configurable:!0,enumerable:!0}};BD.getPropertyOptions=function(a){var b;return(b=this.elementProperties.get(a))!=null?b:bPc};
BD.__prepare=function(){if(!this.hasOwnProperty("elementProperties")){var a=WOc(this);a.finalize();a._initializers!==void 0&&(this._initializers=[].concat(q(a._initializers)));this.elementProperties=new Map(a.elementProperties)}};
BD.finalize=function(){fPc();if(!this.hasOwnProperty("finalized")){this.finalized=!0;this.__prepare();if(this.hasOwnProperty("properties")){var a=this.properties,b=[].concat(q(UOc(a)),q(VOc(a)));b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.createProperty(c,a[c])}a=this[cPc];if(a!==null&&(a=dPc.get(a),a!==void 0))for(a=l(a),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.elementProperties.set(b,c);this.__attributeToPropertyMap=new Map;a=l(this.elementProperties);
for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,c=this.__attributeNameForProperty(b,c),c!==void 0&&this.__attributeToPropertyMap.set(c,b);this.elementStyles=this.finalizeStyles(this.styles)}};BD.finalizeStyles=function(a){var b=[];if(Array.isArray(a)){a=new Set(a.flat(Infinity).reverse());a=l(a);for(var c=a.next();!c.done;c=a.next())b.unshift(NOc(c.value))}else a!==void 0&&b.push(NOc(a));return b};
BD.__attributeNameForProperty=function(a,b){b=b.attribute;return b===!1?void 0:typeof b==="string"?b:typeof a==="string"?a.toLowerCase():void 0};h=BD.prototype;h.__initialize=function(){var a=this;this.__updatePromise=new Promise(function(c){return a.enableUpdating=c});this._$changedProperties=new Map;this.__saveInstanceProperties();ePc(this);var b;(b=this.constructor._initializers)==null||b.forEach(function(c){return c(a)})};
h.__saveInstanceProperties=function(){for(var a=new Map,b=l(this.constructor.elementProperties.keys()),c=b.next();!c.done;c=b.next())c=c.value,this.hasOwnProperty(c)&&(a.set(c,this[c]),delete this[c]);a.size>0&&(this.__instanceProperties=a)};h.createRenderRoot=function(){var a,b=(a=this.shadowRoot)!=null?a:this.attachShadow(this.constructor.shadowRootOptions);MOc(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:$Oc).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:$Oc;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 ePc=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:aPc)(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())};
BD.prototype._$changeProperty=function(a,b,c,d){var e=c.useDefault;var f=c.reflect;c=c.wrapped;var g;if(e&&!((g=this.__defaultValues)!=null?g:this.__defaultValues=new Map).has(a)){var k;this.__defaultValues.set(a,(k=d!=null?d:b)!=null?k:this[a]);if(c!==!0||d!==void 0)return}this._$changedProperties.has(a)||(this.hasUpdated||e||(b=void 0),this._$changedProperties.set(a,b));if(f===!0&&this.__reflectingProperty!==a){var m;((m=this.__reflectingProperties)!=null?m:this.__reflectingProperties=new Set).add(a)}};
BD.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:Zj(d,3);break;case 2:b=be(d),a.squelchUpdateErrorsDuringLit2Migration||Promise.reject(b);case 3:c=gPc(a);if(c==null){d.jumpTo(5);break}return z(d,c,5);case 5:return d.return(!a.isUpdatePending)}})};
var gPc=function(a){if(a.isUpdatePending){if(!a.hasUpdated){a.renderRoot!=null||(a.renderRoot=a.createRenderRoot());if(a.__instanceProperties){for(var b=l(a.__instanceProperties),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a[c]=d}a.__instanceProperties=void 0}b=a.constructor.elementProperties;if(b.size>0)for(b=l(b),c=b.next();!c.done;c=b.next()){d=l(c.value);c=d.next().value;d=d.next().value;var e=a[c];d.wrapped!==!0||a._$changedProperties.has(c)||e===void 0||
a._$changeProperty(c,void 0,d,e)}}b=!1;c=a._$changedProperties;try{b=!0;var f;(f=a.__controllers)==null||f.forEach(function(g){var k;return(k=g.hostUpdate)==null?void 0:k.call(g)});a.update(c)}catch(g){throw b=!1,a.__markUpdated(),g;}b&&a._$didUpdate(c)}};BD.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)};
BD.prototype.__markUpdated=function(){this._$changedProperties=new Map;this.isUpdatePending=!1};BD.prototype.update=function(){var a=this;this.__reflectingProperties&&(this.__reflectingProperties=this.__reflectingProperties.forEach(function(b){return a.__propertyToAttribute(b,a[b])}));this.__markUpdated()};BD.prototype.updated=function(){};da.Object.defineProperties(BD.prototype,{updateComplete:{configurable:!0,enumerable:!0,get:function(){return this.__updatePromise}}});
da.Object.defineProperties(BD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){this.finalize();return this.__attributeToPropertyMap&&[].concat(q(this.__attributeToPropertyMap.keys()))}}});BD.elementStyles=[];BD.shadowRootOptions={mode:"open"};BD.elementProperties=new Map;BD.finalized=new Map;ZOc==null||ZOc({ReactiveElement:BD});var fPc=function(){var a;((a=ra.reactiveElementVersions)!=null?a:ra.reactiveElementVersions=[]).push("2.0.4");fPc=function(){}};var hPc={attribute:!0,type:String,converter:$Oc,reflect:!1,hasChanged:aPc},Pva=function(a,b,c){a=a===void 0?hPc:a;var d=c.kind,e=c.metadata,f=dPc.get(e);f===void 0&&dPc.set(e,f=new Map);d==="setter"&&(a=Object.create(a),a.wrapped=!0);f.set(c.name,a);if(d==="accessor"){var g=c.name;return{set:function(m){var r=b.get.call(this);b.set.call(this,m);ePc(this,g,r,a)},init:function(m){m!==void 0&&this._$changeProperty(g,void 0,a,m);return m}}}if(d==="setter"){var k=c.name;return function(m){var r=this[k];
b.call(this,m);ePc(this,k,r,a)}}throw Error("Tb`"+d);};var iPc=function(a,b,c){c.configurable=!0;c.enumerable=!0;Reflect.decorate&&typeof b!=="object"&&Object.defineProperty(a,b,c);return c};var jPc=Gw(["about:invalid#zClosurez"]),kPc=Tva,lPc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,mPc=xh(Ih(jPc)),Rva=function(a){return a},nPc=function(a){return lPc.test(String(a))?a:mPc},CD=function(){return mPc},oPc=function(a){return a instanceof vh?xh(a):mPc},Sva=new Map([["A href",nPc],["AREA href",nPc],["BASE href",CD],["BUTTON formaction",nPc],["EMBED src",CD],["FORM action",nPc],["FRAME src",CD],["IFRAME src",oPc],["IFRAME srcdoc",function(a){return sh(a)?th(a):th(Cj)}],["INPUT formaction",
nPc],["LINK href",oPc],["OBJECT codebase",CD],["OBJECT data",CD],["SCRIPT href",oPc],["SCRIPT src",oPc],["SCRIPT text",CD],["USE href",oPc]]);var pPc=new Set,qPc=new Map,rPc=function(a,b){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){var c,d,e=((c=globalThis.ShadyDOM)==null?0:c.inUse)&&((d=globalThis.ShadyDOM)==null?void 0:d.noPatch)===!0?globalThis.ShadyDOM.wrap:function(x){return x},f=function(x){var D=qPc.get(x);D===void 0&&qPc.set(x,D=[]);return D},g=new Map,k=a.createElement;a.createElement=function(x,D){x=k.call(a,x,D);D=D==null?void 0:D.scope;D!==void 0&&(globalThis.ShadyCSS.nativeShadow||
globalThis.ShadyCSS.prepareTemplateDom(x,D),D===void 0||pPc.has(D)||(D=f(D),D.push.apply(D,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 m=document.createDocumentFragment(),r=document.createComment("");b=b.prototype;var w=b._$setValue;b._$setValue=function(x,D){D=D===void 0?this:D;var H=e(this._$startNode).parentNode,J,O=(J=this.options)==null?void 0:J.scope,R;if((H instanceof ShadowRoot||H===
((R=this.options)==null?void 0:R.renderContainer))&&O!==void 0&&!pPc.has(O)){J=this._$startNode;R=this._$endNode;m.appendChild(r);this._$startNode=r;this._$endNode=null;w.call(this,x,D);x=(x==null?0:x._$litType$)?this._$committedValue._$template.el:document.createElement("template");D=f(O);var V=D.length!==0;if(V){var ba=document.createElement("style");ba.textContent=D.join("\n");x.content.appendChild(ba)}pPc.add(O);qPc.delete(O);globalThis.ShadyCSS.prepareTemplateStyles(x,O);V&&globalThis.ShadyCSS.nativeShadow&&
(O=x.content.querySelector("style"),O!==null&&x.content.appendChild(O));m.removeChild(r);var oa;if((oa=globalThis.ShadyCSS)==null?0:oa.nativeShadow)oa=x.content.querySelector("style"),oa!==null&&m.appendChild(oa.cloneNode(!0));H.insertBefore(m,R);this._$startNode=J;this._$endNode=R}else w.call(this,x,D)};b._$getTemplate=function(x){var D,H=(D=this.options)==null?void 0:D.scope;D=g.get(H);D===void 0&&g.set(H,D=new Map);H=D.get(x.strings);H===void 0&&D.set(x.strings,H=new a(x,this.options));return H}}},
sPc;(sPc=globalThis).litHtmlPolyfillSupport!=null||(sPc.litHtmlPolyfillSupport=rPc);var tPc="";if(globalThis.Symbol){var uPc=Symbol();typeof uPc!=="symbol"&&(tPc=Object.keys(uPc)[0])}var vPc=tPc!=="",wPc=vPc?function(a){return a!=null&&a[tPc]!==void 0}:function(){return!1};if(vPc&&!globalThis.Symbol.for){var xPc=new Map;globalThis.Symbol.for=function(a){xPc.has(a)||xPc.set(a,Symbol(a));return xPc.get(a)}};var yPc,zPc,APc,DD=((yPc=ra.ShadyDOM)==null?0:yPc.inUse)&&(((zPc=ra.ShadyDOM)==null?void 0:zPc.noPatch)===!0||((APc=ra.ShadyDOM)==null?void 0:APc.noPatch)==="on-demand")?ra.ShadyDOM.wrap:function(a){return a},BPc=ra.trustedTypes,Vva=BPc?BPc.createPolicy("lit-html",{createHTML:function(a){return a}}):void 0,CPc=function(a){return a},DPc=function(){return CPc},ED="lit$"+Math.random().toFixed(9).slice(2)+"$",EPc="?"+ED,FPc="<"+EPc+">",FD=document,Xva=function(a){return a===null||typeof a!="object"&&
typeof a!="function"||wPc(a)},Uva=Array.isArray,GPc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,HPc=/--\x3e/g,IPc=/>/g,GD=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),JPc=/'/g,KPc=/"/g,LPc=/^(?:script|style|textarea|title)$/i,MPc=function(a){var b=ad.apply(1,arguments),c={};return c._$litType$=1,c.strings=a,c.values=b,c},Dj=Symbol.for?Symbol.for("lit-noChange"):Symbol("Vb"),HD=Symbol.for?Symbol.for("lit-nothing"):Symbol("Wb"),
NPc=new WeakMap,ID=FD.createTreeWalker(FD,129),OPc=function(a,b){var c=a.strings;var d=a._$litType$;this.parts=[];for(var e=a=0,f=c.length-1,g=this.parts,k=c.length-1,m=[],r=d===2?"<svg>":d===3?"<math>":"",w,x=GPc,D=0;D<k;D++){for(var H=c[D],J=-1,O=void 0,R=0,V;R<H.length;){x.lastIndex=R;V=x.exec(H);if(V===null)break;R=x.lastIndex;x===GPc?V[1]==="!--"?x=HPc:V[1]!==void 0?x=IPc:V[2]!==void 0?(LPc.test(V[2])&&(w=new RegExp("</"+V[2],"g")),x=GD):V[3]!==void 0&&(x=GD):x===GD?V[0]===">"?(J=void 0,x=(J=
w)!=null?J:GPc,J=-1):V[1]===void 0?J=-2:(J=x.lastIndex-V[2].length,O=V[1],x=V[3]===void 0?GD:V[3]==='"'?KPc:JPc):x===KPc||x===JPc?x=GD:x===HPc||x===IPc?x=GPc:(x=GD,w=void 0)}R=x===GD&&c[D+1].startsWith("/>")?" ":"";r+=x===GPc?H+FPc:J>=0?(m.push(O),H.slice(0,J)+"$lit$"+H.slice(J))+ED+R:H+ED+(J===-2?D:R)}c=[Wva(c,r+(c[k]||"<?>")+(d===2?"</svg>":d===3?"</math>":"")),m];c=l(c);w=c.next().value;c=c.next().value;this.el=OPc.createElement(w,b);ID.currentNode=this.el.content;if(d===2||d===3)b=this.el.content.firstChild,
b.replaceWith.apply(b,q(b.childNodes));for(;(b=ID.nextNode())!==null&&g.length<f;){if(b.nodeType===1){if(b.hasAttributes())for(d=l(b.getAttributeNames()),w=d.next();!w.done;w=d.next())w=w.value,w.endsWith("$lit$")?(m=c[e++],k=b.getAttribute(w).split(ED),m=/([.?@])?(.*)/.exec(m),g.push({type:1,index:a,name:m[2],strings:k,ctor:m[1]==="."?PPc:m[1]==="?"?QPc:m[1]==="@"?RPc:JD}),b.removeAttribute(w)):w.startsWith(ED)&&(g.push({type:6,index:a}),b.removeAttribute(w));if(LPc.test(b.tagName)&&(d=b.textContent.split(ED),
w=d.length-1,w>0)){b.textContent=BPc?BPc.emptyScript:"";for(k=0;k<w;k++)b.append(d[k],FD.createComment("")),ID.nextNode(),g.push({type:2,index:++a});b.append(d[w],FD.createComment(""))}}else if(b.nodeType===8)if(b.data===EPc)g.push({type:2,index:a});else for(d=-1;(d=b.data.indexOf(ED,d+1))!==-1;)g.push({type:7,index:a}),d+=ED.length-1;a++}};OPc.createElement=function(a){var b=FD.createElement("template");b.innerHTML=a;return b};
var SPc=function(a,b){this._$parts=[];this._$disconnectableChildren=void 0;this._$template=a;this._$parent=b};
SPc.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:FD).importNode(c,!0);ID.currentNode=e;c=ID.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 KD(c,c.nextSibling,this,a):g.type===1?k=new g.ctor(c,g.name,g.strings,this,a):g.type===6&&(k=new TPc(c,this,a));this._$parts.push(k);g=b[++f]}k=void 0;d!==((k=g)==null?void 0:k.index)&&(c=ID.nextNode(),d++)}ID.currentNode=FD;return e};
SPc.prototype._update=function(a){for(var b=0,c=l(this._$parts),d=c.next();!d.done;d=c.next())d=d.value,d!==void 0&&(d.strings!==void 0?(d._$setValue(a,d,b),b+=d.strings.length-2):d._$setValue(a[b])),b++};da.Object.defineProperties(SPc.prototype,{parentNode:{configurable:!0,enumerable:!0,get:function(){return this._$parent.parentNode}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var KD=function(a,b,c,d){this.type=2;this._$committedValue=HD;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=KD.prototype;
h._$setValue=function(a,b){a=Fj(this,a,b===void 0?this:b);Xva(a)?a===HD||a==null||a===""?(this._$committedValue!==HD&&this._$clear(),this._$committedValue=HD):a!==this._$committedValue&&a!==Dj&&this._commitText(a):a._$litType$!==void 0?this._commitTemplateResult(a):a.nodeType!==void 0?this._commitNode(a):Uva(a)||typeof(a==null?void 0:a[Symbol.iterator])==="function"?this._commitIterable(a):this._commitText(a)};h._insert=function(a){return DD(DD(this._$startNode).parentNode).insertBefore(a,this._$endNode)};
h._commitNode=function(a){if(this._$committedValue!==a){this._$clear();if(kPc!==DPc){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!==HD&&Xva(this._$committedValue)){var b=DD(this._$startNode).nextSibling;this._textSanitizer===void 0&&(this._textSanitizer=kPc(b,"data","property"));a=this._textSanitizer(a);b.data=a}else b=FD.createTextNode(""),this._commitNode(b),this._textSanitizer===void 0&&(this._textSanitizer=kPc(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=OPc.createElement(Wva(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 SPc(a,this),a=d._clone(this.options),d._update(b),this._commitNode(a),this._$committedValue=d)};h._$getTemplate=function(a){var b=NPc.get(a.strings);b===void 0&&NPc.set(a.strings,b=new OPc(a));return b};
h._commitIterable=function(a){Uva(this._$committedValue)||(this._$committedValue=[],this._$clear());var b=this._$committedValue,c=0,d;a=l(a);for(var e=a.next();!e.done;e=a.next())e=e.value,c===b.length?b.push(d=new KD(this._insert(FD.createComment("")),this._insert(FD.createComment("")),this,this.options)):d=b[c],d._$setValue(e),c++;c<b.length&&(this._$clear(d&&DD(d._$endNode).nextSibling,c),b.length=c)};
h._$clear=function(a,b){a=a===void 0?DD(this._$startNode).nextSibling:a;var c;for((c=this._$notifyConnectionChanged)==null||c.call(this,!1,!0,b);a&&a!==this._$endNode;)b=DD(a).nextSibling,DD(a).remove(),a=b};var UPc=function(a,b){if(a._$parent===void 0){a.__isConnected=b;var c;(c=a._$notifyConnectionChanged)==null||c.call(a,b)}};
da.Object.defineProperties(KD.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=DD(this._$startNode).parentNode,b=this._$parent,c;b!==void 0&&((c=a)==null?void 0:c.nodeType)===11&&(a=b.parentNode);return a}}});
var JD=function(a,b,c,d,e){this.type=1;this._$committedValue=HD;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=HD;this._sanitizer=void 0};
JD.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=Fj(this,a,b,0),f=!Xva(a)||a!==this._$committedValue&&a!==Dj)this._$committedValue=a}else{var g=a;a=e[0];var k;for(k=0;k<e.length-1;k++){var m=Fj(this,g[c+k],b,k);m===Dj&&(m=this._$committedValue[k]);f||(f=!Xva(m)||m!==this._$committedValue[k]);if(m===HD)a=HD;else if(a!==HD){var r=void 0;a+=((r=m)!=null?r:"")+e[k+1]}this._$committedValue[k]=m}}f&&!d&&this._commitValue(a)};
JD.prototype._commitValue=function(a){if(a===HD)DD(this.element).removeAttribute(this.name);else{this._sanitizer===void 0&&(this._sanitizer=kPc(this.element,this.name,"attribute"));var b;a=this._sanitizer((b=a)!=null?b:"");var c;DD(this.element).setAttribute(this.name,(c=a)!=null?c:"")}};da.Object.defineProperties(JD.prototype,{tagName:{configurable:!0,enumerable:!0,get:function(){return this.element.tagName}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var PPc=function(){JD.apply(this,arguments);this.type=3};Y(PPc,JD);PPc.prototype._commitValue=function(a){this._sanitizer===void 0&&(this._sanitizer=kPc(this.element,this.name,"property"));a=this._sanitizer(a);this.element[this.name]=a===HD?void 0:a};var QPc=function(){JD.apply(this,arguments);this.type=4};Y(QPc,JD);QPc.prototype._commitValue=function(a){DD(this.element).toggleAttribute(this.name,!!a&&a!==HD)};var RPc=function(a,b,c,d,e){JD.call(this,a,b,c,d,e);this.type=5};Y(RPc,JD);
RPc.prototype._$setValue=function(a,b){var c;a=(c=Fj(this,a,b===void 0?this:b,0))!=null?c:HD;if(a!==Dj){b=this._$committedValue;c=a===HD&&b!==HD||a.capture!==b.capture||a.once!==b.once||a.passive!==b.passive;var d=a!==HD&&(b===HD||c);c&&this.element.removeEventListener(this.name,this,b);d&&this.element.addEventListener(this.name,this,a);this._$committedValue=a}};
RPc.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 TPc=function(a,b,c){this.element=a;this.type=6;this._$disconnectableChildren=void 0;this._$parent=b;this.options=c};TPc.prototype._$setValue=function(a){Fj(this,a)};da.Object.defineProperties(TPc.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var VPc;(VPc=globalThis.litHtmlPolyfillSupport)==null||VPc(OPc,KD);var WPc,XPc;((XPc=ra.litHtmlVersions)!=null?XPc:ra.litHtmlVersions=[]).push("3.2.1");WPc=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 KD(b.insertBefore(FD.createComment(""),d),d,void 0,c!=null?c:{})}d._$setValue(a);return d};var YPc=function(a){return function(){var b=ad.apply(0,arguments),c={};return c._$litDirective$=a,c.values=b,c}},LD=function(){};LD.prototype._$initialize=function(a,b,c){this.__part=a;this._$parent=b;this.__attributeIndex=c};LD.prototype._$resolve=function(a,b){return this.update(a,b)};LD.prototype.update=function(a,b){return this.render.apply(this,q(b))};da.Object.defineProperties(LD.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});var ZPc=function(a){this.value=HD;if(a.type!==2)throw Error("Zb`"+this.constructor.directiveName);};Y(ZPc,LD);ZPc.prototype.render=function(a){if(a===HD||a===void 0)return this.templateResult=void 0,this.value=a;if(a===Dj)return a;if(a===this.value)return this.templateResult;this.value=a;a=[th(a)];a.raw=a;var b={};return this.templateResult=(b._$litType$=this.constructor.resultType,b.strings=a,b.values=[],b)};ZPc.directiveName="safeHTML";ZPc.resultType=1;var $Pc=YPc(ZPc);/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var awa=function(a,b){a=a._$disconnectableChildren;if(a!==void 0){a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=void 0;(e=(d=c)._$notifyDirectiveConnectionChanged)==null||e.call(d,b,!1);awa(c,b)}}},Yva=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)},Zva=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=bwa),a._$reparentDisconnectables!=null||(a._$reparentDisconnectables=$va))}},MD=function(){this._$disconnectableChildren=void 0};Y(MD,LD);MD.prototype._$initialize=function(a,b,c){LD.prototype._$initialize.call(this,a,b,c);Zva(this);this.isConnected=a._$isConnected};
MD.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&&(awa(this,a),Yva(this))};MD.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)}};MD.prototype.disconnected=function(){};
MD.prototype.reconnected=function(){};/*

 Copyright 2021 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var aQc=function(a){this._ref=a};aQc.prototype.disconnect=function(){this._ref=void 0};aQc.prototype.deref=function(){return this._ref};var bQc=function(){this._resolve=this._promise=void 0};bQc.prototype.get=function(){return this._promise};bQc.prototype.pause=function(){var a=this;this._promise!=null||(this._promise=new Promise(function(b){return a._resolve=b}))};bQc.prototype.resume=function(){var a;(a=this._resolve)==null||a.call(this);this._promise=this._resolve=void 0};var cQc=function(a){return!(a===null||typeof a!="object"&&typeof a!="function")&&typeof a.then==="function"},ND=function(){MD.apply(this,arguments);this.__lastRenderedIndex=1073741823;this.__values=[];this.__weakThis=new aQc(this);this.__pauser=new bQc};Y(ND,MD);ND.prototype.render=function(){var a;return(a=ad.apply(0,arguments).find(function(b){return!cQc(b)}))!=null?a:Dj};
ND.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$8337:void 0},k++){g.value$jscomp$8337=b[k];if(!cQc(g.value$jscomp$8337))return this.__lastRenderedIndex=k,g.value$jscomp$8337;k<d&&g.value$jscomp$8337===c[k]||(this.__lastRenderedIndex=1073741823,d=0,Promise.resolve(g.value$jscomp$8337).then(function(m){return function(r){var w,
x;return y(function(D){if(D.nextAddress==1)return f.get()?z(D,f.get(),1):D.jumpTo(4);w=e.deref();w!==void 0&&(x=w.__values.indexOf(m.value$jscomp$8337),x>-1&&x<w.__lastRenderedIndex&&(w.__lastRenderedIndex=x,w.setValue(r)));ce(D)})}}(g)))}return Dj};ND.prototype.disconnected=function(){this.__weakThis.disconnect();this.__pauser.pause()};ND.prototype.reconnected=function(){this.__weakThis._ref=this;this.__pauser.resume()};var dQc=YPc(ND);var eQc=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)}}},fQc;(fQc=globalThis).litElementPolyfillSupport!=null||(fQc.litElementPolyfillSupport=eQc);var OD=function(){var a=BD.apply(this,arguments)||this;a.renderOptions={host:a};a.__childPart=void 0;return a};Y(OD,BD);OD.shadowRootOptions=BD.shadowRootOptions;OD.elementStyles=BD.elementStyles;OD.__attributeNameForProperty=BD.__attributeNameForProperty;OD.finalizeStyles=BD.finalizeStyles;OD.__prepare=BD.__prepare;OD.getPropertyOptions=BD.getPropertyOptions;OD.getPropertyDescriptor=BD.getPropertyDescriptor;OD.createProperty=BD.createProperty;OD.addInitializer=BD.addInitializer;h=OD.prototype;
h.createRenderRoot=function(){var a=BD.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);BD.prototype.update.call(this,a);this.__childPart=WPc(b,this.renderRoot,this.renderOptions)};h.connectedCallback=function(){BD.prototype.connectedCallback.call(this);var a;(a=this.__childPart)==null||UPc(a,!0)};
h.disconnectedCallback=function(){BD.prototype.disconnectedCallback.call(this);var a;(a=this.__childPart)==null||UPc(a,!1)};h.render=function(){return Dj};OD.finalize=function(){gQc();return BD.finalize.call(this)};OD._$litElement$=!0;OD.finalized=!0;var hQc;(hQc=ra.litElementPolyfillSupport)==null||hQc({LitElement:OD});var gQc=function(){var a;((a=ra.litElementVersions)!=null?a:ra.litElementVersions=[]).push("4.1.1");gQc=function(){}};var iQc=Gw(["<div>","</div>"]),jQc=Ova("g3mark-service-backend","https://g3mark-service-backend.corp.google.com"),PD=function(){var a=OD.apply(this,arguments)||this;a.content="";a.svg=new Promise(function(){});a.fetch=Ova("fetch",function(b,c){return fetch(b,c)});return a};Y(PD,OD);PD.shadowRootOptions=OD.shadowRootOptions;PD.elementStyles=OD.elementStyles;PD.__attributeNameForProperty=OD.__attributeNameForProperty;PD.finalizeStyles=OD.finalizeStyles;PD.__prepare=OD.__prepare;
PD.getPropertyOptions=OD.getPropertyOptions;PD.getPropertyDescriptor=OD.getPropertyDescriptor;PD.createProperty=OD.createProperty;PD.addInitializer=OD.addInitializer;PD.finalize=OD.finalize;
PD.prototype.connectedCallback=function(){var a=this;OD.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(jQc+"/sanitize_svg",{credentials:"include",method:"POST",body:decodeURIComponent(window.atob(this.content))}).then(Nva).then(function(b){b=b.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(b===void 0||b===null)throw Error("Pb");b=rh(b);return $Pc(b)}).catch(function(b){console.error(b)})};
PD.prototype.render=function(){return MPc(iQc,dQc(this.svg,"Loading"))};PD.prototype.createRenderRoot=function(){return this};Rw([Qva({type:String}),Ayc(Object)],PD.prototype,"content",void 0);Rw([Qva({type:String}),Ayc(String)],PD.prototype,"width",void 0);Rw([Qva({type:String}),Ayc(String)],PD.prototype,"height",void 0);Rw([Qva(Object.assign({},void 0,{state:!0,attribute:!1})),Ayc(Object)],PD.prototype,"svg",void 0);
Rw([function(a){return function(b,c){return iPc(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"),Ayc(Promise)],PD.prototype,"div",void 0);Rw([function(a){return function(b,c){c!==void 0?c.addInitializer(function(){customElements.define(a,b)}):customElements.define(a,b)}}("g3mark-svg")],PD);var kQc=new QA,RD=function(){var a=this;this.currentThreadAgentVersion=this.currentThreadAgentId="";this.isDuckieSourceEmbedded=!1;this.dataQueue=[];this.isProcessingStream=!1;this.duckieService=p(IB);this.overridesService=p(RA);this.conversationAgentsService=p(LB);this.duckieEventTrackerService=p(tD);this.communicationService=p(KB);this.sessionSummaryService=p(zC);this.routingService=p(NB);this.markdownService=p(zD);this.backendModelService=p(xC);this.snackBar=p(uC);this.experimentsService=p(GA);
this.userContextService=p(AC);this.duckieClient=p(cGc);this.currentThreadInternal=new Wj(void 0);this.currentThread$=this.currentThreadInternal.pipe(xf({bufferSize:1,refCount:!0}));this.cache=new Map;this.isLoadingThreadInternal=new Wj(!1);this.isLoadingThread$=this.isLoadingThreadInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isDuckieThinkingInternal=new Wj(!1);this.isDuckieThinking$=this.isDuckieThinkingInternal.pipe(xf({bufferSize:1,refCount:!0}));this.canStartNewThread$=this.currentThread$.pipe(A(function(b){return b===
void 0?!1:b.messages.length>=2||b.messages.length===1&&b.messages[0].isUser}));this.cancelPendingCurrentThreadUpdate$=new sf;this.referrer=p(ZFc);this.ancestorOrigins=p(YFc).ancestorOrigins;this.hostname=p(YFc).hostname;new PD;this.routingService.activeView$.pipe(we(function(b){return b===1})).subscribe(function(){QD(a)})},QD=function(a,b){NKc(a.userContextService);a.currentThreadInternal.next(b);lQc(a.communicationService,b);b&&b.modelId!==void 0&&a.backendModelService.currentModelIdInternal.next(b.modelId)};
RD.prototype.startNewThread=function(a,b){a=a===void 0?"":a;b=b===void 0?"":b;NKc(this.userContextService);tKc(this.routingService);this.isDuckieThinkingInternal.next(!1);this.cancelPendingCurrentThreadUpdate$.next();this.currentThreadAgentId=a;this.currentThreadAgentVersion=b;this.currentThreadInternal.next(mQc(this));this.communicationService.newThread$.next(!0)};
var oQc=function(a,b){return y(function(c){a.isDuckieThinkingInternal.next(!1);a.cancelPendingCurrentThreadUpdate$.next();return a.cache.has(b)?(QD(a,a.cache.get(b)),c.return()):z(c,nQc(a,b),0)})},nQc=function(a,b){var c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return a.isLoadingThreadInternal.next(!0),c=(new fB).setSessionId(b),z(k,a.duckieService.getSession(c),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return QD(a),k.return();f=(e=d)==null?void 0:e.getSession();if(!f)return QD(a),k.return();
pQc(f);g=vua(f);return z(k,Promise.all(g.messages.map(a.setMessageTextHtml,a)),3)}g.messages=k.yieldResult;a.cache.set(b,g);QD(a,g);a.isLoadingThreadInternal.next(!1);ce(k)})},pQc=function(a){a.getMessagesList().forEach(function(b,c){Ri(b,19)&&a.setMessagesList(a.getMessagesList().slice(0,c+1))})};
RD.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,DOc(b.markdownService,a.text,{highlight:!0,escapeHtml:!0,graphviz:!0}),2)}c.textHtml=d.yieldResult;return d.return(a)})};
var qQc=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 jB).setSessionId(d).setTitle(b);return z(g,a.duckieService.updateSession(e),3)}f=g.yieldResult;if(!f)return g.return();c.title=b;QD(a,c);return z(g,rKc(a.sessionSummaryService,c),0)})},wQc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:if(b.length>2621440)return a.snackBar.openFromComponent(wC,
{data:{message:"Message exceeds maximum character limit of 2621440.",error:Error("$b")}}),g.return(mQc(a));c=mQc(a);c.title=b.substring(0,200);d=(new eB).setDuckieClient(a.duckieClient).setText(b);return z(g,rQc(a,d,c),2);case 2:return z(g,sQc(a),3);case 3:return(e=g.yieldResult)?(f=jua(d),z(g,tQc(a,c,f),5)):z(g,uQc(a,c,d),5);case 5:return z(g,qKc(a.sessionSummaryService,c),8);case 8:return z(g,vQc(a,c),9);case 9:return g.return(c)}})},xQc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return b.length>
2621440?(a.snackBar.openFromComponent(wC,{data:{message:"Message exceeds maximum character limit of 2621440.",error:Error("$b")}}),g.return()):z(g,ie(a.currentThread$),2);case 2:c=g.yieldResult;if(!c)return g.return();d=(new eB).setDuckieClient(a.duckieClient).setText(b);return z(g,rQc(a,d,c),3);case 3:return z(g,sQc(a),4);case 4:return(e=g.yieldResult)?(f=jua(d),z(g,tQc(a,c,f),6)):z(g,uQc(a,c,d),6);case 6:return z(g,vQc(a,c),0)}})},zQc=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,yQc(a,d,b,c),0):e.return()})};
RD.prototype.cancelDuckieStream=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1){if(!a.currentActiveStream)return m.jumpTo(0);a.currentActiveStream.cancel();a.currentActiveStream=void 0;return z(m,ie(a.currentThread$),3)}b=m.yieldResult;if(!b||b.messages.length===0)return m.return();c=b.messages.slice().reverse().find(function(r){return r.isUser});d=b.messages.slice().reverse().find(function(r){return!r.isUser&&r.id!==""});km(a.duckieEventTrackerService,lm((new mm).setMessageId((f=
(e=d)==null?void 0:e.id)!=null?f:"")),293477);AQc(a,b,(k=(g=c)==null?void 0:g.text)!=null?k:"");ce(m)})};
var yQc=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 aB).setHelpfulness(d).setFeedbackType(0))});a.cache.set(b.serverId,b);ce(e)})},rQc=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=Vm(a.overridesService.overrideOptions,6,Oi());if(d.length>0){f=b.setModelOverrideOptions;
var g=new QA;g=Zm(g,6,d);f.call(b,g)}return z(e,BQc(a,b,c),2)}if(a.isDuckieSourceEmbedded){g=new Mi;var k=new XGc;k=Vn(k,1,2);k=yj(k,3,a.hostname);g=mp(g,7,dj,k);bq(b,6,Mi,g)}else if(a.referrer.length!==0){var m=a.ancestorOrigins.length>0&&a.ancestorOrigins[0]!==a.referrer?1:3;g=bGc.test(a.referrer)&&!a.overridesService.overrideIsFirstTurnFromMoma?"":a.referrer;if(g.length>0){k=new Mi;var r=(new XGc).setReferrerUrl(g);m=Vn(r,1,m);k=mp(k,7,dj,m);bq(b,6,Mi,k)}bGc.test(g)&&(g=new Mi,k=(new rua).setReferrerUrl(a.referrer),
g=mp(g,4,dj,k),bq(b,6,Mi,g))}a.referrer.length!==0&&bGc.test(a.referrer)&&a.overridesService.overrideIsFirstTurnFromMoma&&(a.overridesService.overrideIsFirstTurnFromMoma=!1);g=[];for(k=0;k<c.messages.length;k++)m=c.messages[k],m.isUser||m.id?g.push(qua(m)):g.pop();g=(new dB).setMessagesList(g);c.privacyMode!==void 0&&g.setPrivacyMode(c.privacyMode);b.setConversationHistory(g);if(a.experimentsService.userProvidedContextEnabled){g=(f=c.userProvidedContext)!=null?f:[];f=QKc(a.userContextService,b.getText());
f=l(f);for(k=f.next();!k.done;k=f.next()){k=k.value;m=g;r=m.push;var w=new bj;var x=(new Vi).setType(k.source);x=yj(x,3,k.fullUrl);r.call(m,pua(w,x.setUrl(k.label)))}b.addAllUserProvidedContext(g);NKc(a.userContextService)}c.conversationAgentId&&c.conversationAgentModelId&&(f=(new YA).setAgentId(c.conversationAgentId).setModelId(c.conversationAgentModelId),c.systemInstruction&&f.setSystemInstruction(c.systemInstruction),b.setConversationAgent(f));return e.return(b)})},tQc=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;CQc(a,b,c.getText());QD(a,b);f=null;a.currentActiveStream.on("data",function(k){var m,r,w,x,D;return y(function(H){f=k;a.dataQueue.push({text:(x=(m=k.getResponse())==null?void 0:m.getText())!=null?x:"",state:Ii(k,
4),hiddenMessages:(D=(r=k.getResponse())==null?void 0:(w=X(r,Pi,17))==null?void 0:Ni(w,$A,9,Oi()))!=null?D:[]});return z(H,DQc(a,b),0)})});a.currentActiveStream.on("error",function(){AQc(a,b,c.getText())});a.currentActiveStream.on("end",function(){var k,m;return y(function(r){switch(r.nextAddress){case 1:if(!f){r.jumpTo(2);break}return z(r,EQc(a,b,f),3);case 3:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(4);break}return z(r,FQc(b,f),4);case 4:if((k=f.getResponse())==null?0:Ri(k,20)){r.jumpTo(6);
break}return z(r,GQc(a.communicationService,(m=f.getResponse())==null?void 0:m.getText()),6);case 6:HQc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId());case 2:return a.currentThreadInternal.next(b),z(r,qKc(a.sessionSummaryService,b),8);case 8:d&&QD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),ce(r)}})});return g.return(b)})},DQc=function(a,b){var c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca;return y(function(ja){switch(ja.nextAddress){case 1:if(a.isProcessingStream||
a.dataQueue.length===0)return ja.return();a.isProcessingStream=!0;c=[3,4];d=[];e=a.dataQueue[a.dataQueue.length-1].state;a.dataQueue.length>1&&c.includes(e)?(d=a.dataQueue.slice(0,-1),a.dataQueue=[a.dataQueue[a.dataQueue.length-1]]):(d=a.dataQueue,a.dataQueue=[]);f=b.messages.length-1;k=g=b.messages[f];if(c.includes(d[0].state))m=d[0],w=((r=g.text)!=null?r:"")+m.text,x=RGc((g.executionMetadata||new Pi).clone(),m.hiddenMessages),k=Object.assign({},g,{text:w,executionMetadata:x});else{D=[];H=l(d);for(J=
H.next();!J.done;J=H.next())O=J.value,D=D.concat(O.hiddenMessages);ba=(V=(R=g.executionMetadata)==null?void 0:eAc(R,$A,9))!=null?V:[];oa=[].concat(q(ba.concat(D)));ta=RGc((g.executionMetadata||new Pi).clone(),oa);k=Object.assign({},g,{executionMetadata:ta,isStreamingThoughts:g.isStreamingThoughts})}Yd(ja,2,3);return z(ja,a.setMessageTextHtml(k),5);case 5:k=ja.yieldResult,ka=b.messages.map(function(ua,xa){return xa===f?k:ua}),b.messages=ka,a.cache.set(b.serverId,b),QD(a,b);case 3:Zd(ja);a.isProcessingStream=
!1;if(!(a.dataQueue.length>0)){ja.jumpTo(6);break}return z(ja,DQc(a,b),6);case 6:ae(ja,0);break;case 2:Ca=be(ja),console.error("Error processing message:",Ca),ja.jumpTo(3)}})},uQc=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(nf(1)).subscribe(function(){d=!1}),CQc(a,b,c.getText()),QD(a,b),a.isDuckieThinkingInternal.next(!0),Yd(r,2),z(r,a.duckieService.generateAnswers(c),4);case 4:f=r.yieldResult;Zj(r,3);break;
case 2:return g=be(r),a.snackBar.openFromComponent(wC,{data:{message:"An error occurred. Please try again.",error:g instanceof Error?g:Error(String(g))}}),b.messages.splice(-2),QD(a,b),qJc(c.getText()),a.isDuckieThinkingInternal.next(!1),r.return(b);case 3:return f?z(r,IQc(a,b,f),5):r.return(b);case 5:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(6);break}return z(r,FQc(b,f),6);case 6:if((k=f.getResponse())==null?0:Ri(k,20)){r.jumpTo(8);break}return z(r,GQc(a.communicationService,
(m=f.getResponse())==null?void 0:m.getText()),8);case 8:return HQc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId()),a.cache.set(b.serverId,b),d&&QD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),r.return(b)}})},BQc=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=a.overridesService.getModelOverrideOptions();iSa(d,kQc)||b.setModelOverrideOptions(d);(f=(e=c.agentId)!=null?e:"")&&Ui(b,OGc,10).setAgentId(f);(k=(g=c.agentVersion)!=null?
g:"")&&Ui(b,OGc,10).setAgentVersion(k);(m=a.overridesService.getDisallowRestrictedContent())&&b.setDisallowRestrictedContent(m);a.overridesService.getAppProvidedContext().getValuesList().length>0&&b.setAppProvidedContext(a.overridesService.getAppProvidedContext());ce(r)})},CQc=function(a,b,c){c={text:c,isUser:!0,trackingId:Asa()};a={text:void 0,isUser:!1,isStreamingThoughts:sQc(a),trackingId:Asa()};b.messages.push(c);b.messages.push(a)},IQc=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==
1){d=c.getQuery();if(!d)return w.return();e=b.messages.length-2;f=Wi(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();JQc(b,g);k=Wi(g);return z(w,a.setMessageTextHtml(k),3)}k=w.yieldResult;m=b.messages.length-1;b.messages[m]=k;b.privacyMode=(r=c.getConversationHistory())==null?void 0:r.getPrivacyMode();ce(w)})},EQc=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1){d=c.getConversationHistory();
if(!d||!d.getMessagesList())return console.error("No conversation history or messages in response."),J.return();if(d.getMessagesList().length!==b.messages.length)return console.error("Conversation history and thread messages have different lengths."),J.return();e=d.getMessagesList();f=b.messages.length-1;g=b.messages.length-2;k=b.messages[f].trackingId;m=b.messages[g].trackingId;r=e[g];w=Wi(r);return z(J,a.setMessageTextHtml(w),2)}if(J.nextAddress!=3)return w=J.yieldResult,x=e[f],JQc(b,x),D=Wi(x),
z(J,a.setMessageTextHtml(D),3);D=J.yieldResult;D.isStreamingThoughts=!1;w.trackingId=m;D.trackingId=k;w.sessionId=D.sessionId;b.messages[g]=w;b.messages[f]=D;b.privacyMode=(H=c.getConversationHistory())==null?void 0:H.getPrivacyMode();ce(J)})},FQc=function(a,b){var c,d,e,f,g,k;return y(function(m){c=b.getUserProvidedContextList();if(!c)return m.return();d=[];e=l(c);for(f=e.next();!f.done;f=e.next()){g=f.value;k=pua(new bj,(new Vi).setType(fHc(g).getType()).setUrl(fHc(g).getUrl()));var r=fHc(g);if(wm(r,
3)){r=fHc(k);var w=fHc(g);w=xi(w,3);yj(r,3,w)}d.push(k)}a.userProvidedContext=d;ce(m)})},vQc=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,sKc(a.sessionSummaryService,c),3)}QD(a,c);a.cache.set(c.serverId,c);ce(d)})},JQc=function(a,b){Ri(b,20)||oua(b,a.messages.some(function(c){return c.hasPrivateContent}))},HQc=function(a,b,c){if(b=b.getResponse())if(b=
Wi(b),uD(a.duckieEventTrackerService,201778,b),uD(a.duckieEventTrackerService,201478,b),c=QKc(a.userContextService,c.getText(),!0).map(function(e){var f=(new VKc).setUrl(e.fullUrl);return Vn(f,2,e.source)}),c.length>0){var d;km(a.duckieEventTrackerService,lm(XKc(new mm,WKc(c)).setMessageId(b.id).setSessionId((d=b.sessionId)!=null?d:"")),243707)}},AQc=function(a,b,c){a.isDuckieThinkingInternal.next(!1);a.dataQueue=[];a.isProcessingStream=!1;b.messages.splice(-2);QD(a,b);qJc(c)},mQc=function(a){var b=
MB(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}},sQc=function(a){var b;if(!(b=!a.experimentsService.duckieStreamingMvpEnabled)){var c;if(b=!((c=MB(a.conversationAgentsService).agentId)==null?
0:c.startsWith("a2a:")))a=MB(a.conversationAgentsService),c=a.agentId===Tw.agentId&&a.modelId===Tw.modelId,b=!(a.agentId===Uw.agentId&&a.modelId===Uw.modelId||c)}return!b};RD.\u0275fac=function(a){return new (a||RD)};RD.\u0275prov=Fc({token:RD,factory:RD.\u0275fac,providedIn:"root"});var KQc=new ed("GM2_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var SD=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};SD.\u0275fac=function(a){return new (a||SD)(Ye(KQc))};SD.\u0275dir=df({type:SD,selectors:[["mat-form-field"]],hostAttrs:[1,"gmat-mdc-form-field"],standalone:!1});var LQc=new ed("MatError"),TD=function(){this.id=p(di).getId("mat-mdc-error-")};TD.\u0275fac=function(a){return new (a||TD)};TD.\u0275dir=df({type:TD,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&&Sf("id",b.id)},inputs:{id:"id"},features:[Ig([{provide:LQc,useExisting:TD}])]});var UD=function(){this.align="start";this.id=p(di).getId("mat-mdc-hint-")};UD.\u0275fac=function(a){return new (a||UD)};UD.\u0275dir=df({type:UD,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Sf("id",b.id),Kf("align",null),yg("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var VD=function(){};VD.\u0275fac=function(a){return new (a||VD)};VD.\u0275dir=df({type:VD,selectors:[["mat-label"]]});var MQc=new ed("MatPrefix"),WD=function(){this._isText=!1};da.Object.defineProperties(WD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});WD.\u0275fac=function(a){return new (a||WD)};WD.\u0275dir=df({type:WD,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ig([{provide:MQc,useExisting:WD}])]});var NQc=new ed("MatSuffix"),XD=function(){this._isText=!1};da.Object.defineProperties(XD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});XD.\u0275fac=function(a){return new (a||XD)};XD.\u0275dir=df({type:XD,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ig([{provide:NQc,useExisting:XD}])]});var YD=function(){};YD.\u0275fac=function(a){return new (a||YD)};YD.\u0275dir=df({type:YD});var OQc=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)}))};
OQc.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)};
OQc.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var ZD=function(){this._observers=new Map;this._ngZone=p(Tg)};ZD.prototype.ngOnDestroy=function(){for(var a=l(this._observers),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b.next().value.destroy();this._observers.clear();var c;(c=this._cleanupErrorListener)==null||c.call(this)};
ZD.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new OQc(b));return this._observers.get(b).observe(a)};ZD.\u0275fac=function(a){return new (a||ZD)};ZD.\u0275prov=Fc({token:ZD,factory:ZD.\u0275fac,providedIn:"root"});var PQc=new ed("FloatingLabelParent"),$D=function(){this._elementRef=p(Jd);this._monitorResize=this._floating=!1;this._resizeObserver=p(ZD);this._ngZone=p(Tg);this._parent=p(PQc);this._resizeSubscription=new Rd};$D.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
$D.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};$D.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
$D.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($D.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}}});
$D.\u0275fac=function(a){return new (a||$D)};$D.\u0275dir=df({type:$D,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var aE=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(Tg),c=p(fi);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
aE.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};aE.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};aE.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};aE.\u0275fac=function(a){return new (a||aE)};aE.\u0275dir=df({type:aE,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var QQc=["notch"],bE=function(){this._elementRef=p(Jd);this._ngZone=p(Tg);this.open=!1};bE.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")};
bE.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)":""};bE.prototype._setMaxWidth=function(a){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width","calc(100% - "+a+"px)")};bE.\u0275fac=function(a){return new (a||bE)};
bE.\u0275cmp=C({type:bE,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&jg(QQc,5);if(a&2){var c;ng(c=og())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-notched-outline--notched",b.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:["matFormFieldNotchedOutline",""],ngContentSelectors:["*"],decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,
"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(a){a&1&&(eg(),Vf(0,"div",1),Tf(1,"div",2,0),fg(3),Uf(),Vf(4,"div",3))},encapsulation:2,changeDetection:0});var RQc=["iconPrefixContainer"],SQc=["textPrefixContainer"],TQc=["iconSuffixContainer"],UQc=["textSuffixContainer"],VQc=["textField"],WQc=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],XQc=new ed("MatFormField"),YQc=new ed("MAT_FORM_FIELD_DEFAULT_OPTIONS"),cE=function(){var a=this;this._elementRef=
p(Jd);this._changeDetectorRef=p(Px);this._platform=p(Yh);this._idGenerator=p(di);this._ngZone=p(Tg);this._defaults=p(YQc,{optional:!0});this._iconPrefixContainerSignal=Rg.apply(null,["iconPrefixContainer"].concat(q([])));this._textPrefixContainerSignal=Rg.apply(null,["textPrefixContainer"].concat(q([])));this._iconSuffixContainerSignal=Rg.apply(null,["iconSuffixContainer"].concat(q([])));this._textSuffixContainerSignal=Rg.apply(null,["textSuffixContainer"].concat(q([])));this._prefixSuffixContainers=
ah.apply(null,[function(){return[a._iconPrefixContainerSignal(),a._textPrefixContainerSignal(),a._iconSuffixContainerSignal(),a._textSuffixContainerSignal()].map(function(d){return d==null?void 0:d.nativeElement}).filter(function(d){return d!==void 0})}].concat(q([])));this._labelChild=apa.apply(null,[VD].concat(q([])));this._hideRequiredMarker=!1;this.color="primary";this._appearanceSignal=pg.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=pi();this.getLabelId=ah.apply(null,[function(){return a._hasFloatingLabel()?a._labelId:null}].concat(q([])));this._hasFloatingLabel=ah.apply(null,[function(){return!!a._labelChild()}].concat(q([])));
var b=this._defaults,c=p(ei);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=cE.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=l(g);var m=l(k.next().value);g=m.next().value;m=m.next().value;var r=l(k.next().value);k=r.next().value;r=r.next().value;return g!==k||m!==r})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(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;Dpa({earlyRead:function(){if(a._appearanceSignal()!=="outline"){var b;(b=a._outlineLabelOffsetResizeObserver)==null||b.disconnect();return null}if(globalThis.ResizeObserver){a._outlineLabelOffsetResizeObserver||(a._outlineLabelOffsetResizeObserver=new globalThis.ResizeObserver(function(){a._writeOutlinedLabelStyles(a._getOutlinedLabelOffset())}));b=l(a._prefixSuffixContainers());for(var c=b.next();!c.done;c=b.next())a._outlineLabelOffsetResizeObserver.observe(c.value,
{box:"border-box"})}return a._getOutlinedLabelOffset()},write:function(b){return a._writeOutlinedLabelStyles(b())}})};h._shouldAlwaysFloat=function(){return this.floatLabel==="always"};h._hasOutline=function(){return this.appearance==="outline"};h._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};h._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};
h._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};h._getSubscriptMessageType=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};h._handleLabelResized=function(){this._refreshOutlineNotchWidth()};
h._refreshOutlineNotchWidth=function(){if(this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()){var a;(a=this._notchedOutline)==null||a._setNotchWidth(this._floatingLabel.getWidth())}else{var b;(b=this._notchedOutline)==null||b._setNotchWidth(0)}};h._processHints=function(){this._syncDescribedByIds()};h._validateHints=function(){};
h._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,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 m;k=(m=d==null?void 0:d.getBoundingClientRect().width)!=null?m:0;return["var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc("+((this._currentDirection==="rtl"?"-1":"1")+" * ("+(b+f+"px + var(--mat-mdc-form-field-label-offset-x, 0px)))))")),b+f+g+k]};
h._writeOutlinedLabelStyles=function(a){if(a!==null){var b=l(a);a=b.next().value;b=b.next().value;this._floatingLabel&&(this._floatingLabel.element.style.transform=a);if(b!==null){var c;(c=this._notchedOutline)==null||c._setMaxWidth(b)}}};h._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
da.Object.defineProperties(cE.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Oh(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}}});cE.\u0275fac=function(a){return new (a||cE)};
cE.\u0275cmp=C({type:cE,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(ioa(b._labelChild,kg(c,VD,5)),kg(c,YD,5),kg(c,MQc,5),kg(c,NQc,5),kg(c,LQc,5),kg(c,UD,5));if(a&2){rg();var d;ng(d=og())&&(b._formFieldControl=d.first);ng(d=og())&&(b._prefixChildren=d);ng(d=og())&&(b._suffixChildren=d);ng(d=og())&&(b._errorChildren=d);ng(d=og())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(qg(b._iconPrefixContainerSignal,RQc),qg(b._textPrefixContainerSignal,SQc),qg(b._iconSuffixContainerSignal,
TQc),qg(b._textSuffixContainerSignal,UQc),jg(VQc,5),jg(RQc,5),jg(SQc,5),jg(TQc,5),jg(UQc,5),jg($D,5),jg(bE,5),jg(aE,5));if(a&2){rg(4);var c;ng(c=og())&&(b._textField=c.first);ng(c=og())&&(b._iconPrefixContainer=c.first);ng(c=og())&&(b._textPrefixContainer=c.first);ng(c=og())&&(b._iconSuffixContainer=c.first);ng(c=og())&&(b._textSuffixContainer=c.first);ng(c=og())&&(b._floatingLabel=c.first);ng(c=og())&&(b._notchedOutline=c.first);ng(c=og())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],
hostVars:38,hostBindings:function(a,b){a&2&&yg("mat-mdc-form-field-label-always-float",b._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",b._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",b._hasIconSuffix)("mat-form-field-invalid",b._control.errorState)("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-form-field-appearance-fill",b.appearance=="fill")("mat-form-field-appearance-outline",b.appearance=="outline")("mat-form-field-hide-placeholder",
b._hasFloatingLabel()&&!b._shouldLabelFloat())("mat-primary",b.color!=="accent"&&b.color!=="warn")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("ng-untouched",b._shouldForward("untouched"))("ng-touched",b._shouldForward("touched"))("ng-pristine",b._shouldForward("pristine"))("ng-dirty",b._shouldForward("dirty"))("ng-valid",b._shouldForward("valid"))("ng-invalid",b._shouldForward("invalid"))("ng-pending",b._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",
color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ig([{provide:XQc,useExisting:cE},{provide:PQc,useExisting:cE}])],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();eg(WQc);E(0,ewa,1,1,"ng-template",null,0,Og);K(2,"div",
6,1);N("click",function(d){u(c);return v(b._control.onContainerClick(d))});F(4,fwa,1,0,"div",7);K(5,"div",8);F(6,iwa,2,2,"div",9);F(7,jwa,3,0,"div",10);F(8,kwa,3,0,"div",11);K(9,"div",12);F(10,mwa,1,1,null,13);fg(11);L();F(12,nwa,3,0,"div",14);F(13,owa,3,0,"div",15);L();F(14,pwa,1,0,"div",16);L();K(15,"div",17);F(16,qwa,2,0,"div",18)(17,swa,5,1,"div",19);L()}a&2&&(B(2),yg("mdc-text-field--filled",!b._hasOutline())("mdc-text-field--outlined",b._hasOutline())("mdc-text-field--no-label",!b._hasFloatingLabel())("mdc-text-field--disabled",
b._control.disabled)("mdc-text-field--invalid",b._control.errorState),B(2),G(b._hasOutline()||b._control.disabled?-1:4),B(2),G(b._hasOutline()?6:-1),B(),G(b._hasIconPrefix?7:-1),B(),G(b._hasTextPrefix?8:-1),B(2),G(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1),B(2),G(b._hasTextSuffix?12:-1),B(),G(b._hasIconSuffix?13:-1),B(),G(b._hasOutline()?-1:14),B(),yg("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic"),a=b._getSubscriptMessageType(),B(),G(a==="error"?16:a==="hint"?
17:-1))},dependencies:[$D,bE,ky,aE,UD],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 dE=function(){};dE.\u0275fac=function(a){return new (a||dE)};dE.\u0275mod=cf({type:dE});dE.\u0275inj=Gc({imports:[rz,cE,Zy]});var eE=function(){};eE.\u0275fac=function(a){return new (a||eE)};eE.\u0275mod=cf({type:eE});eE.\u0275inj=Gc({imports:[dE]});var ZQc=new ed("GM2_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var fE=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};fE.\u0275fac=function(a){return new (a||fE)(Ye(ZQc))};fE.\u0275dir=df({type:fE,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"gmat-mdc-input"],standalone:!1});var gE=function(){};gE.\u0275fac=function(a){return new (a||gE)};
gE.\u0275cmp=C({type:gE,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 $Qc={passive:!0},hE=function(){this._platform=p(Yh);this._ngZone=p(Tg);this._renderer=p(af).createRenderer(null,null);this._styleLoader=p(bi);this._monitoredElements=new Map};
hE.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return ue;this._styleLoader.load(gE);var c=Qh(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,$Qc)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
hE.prototype.stopMonitoring=function(a){a=Qh(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))};hE.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};hE.\u0275fac=function(a){return new (a||hE)};hE.\u0275prov=Fc({token:hE,factory:hE.\u0275fac,providedIn:"root"});var iE=function(){var a=this;this._elementRef=p(Jd);this._platform=p(Yh);this._ngZone=p(Tg);this._renderer=p(fi);this._resizeEvents=new sf;this._destroyed=new sf;this._enabled=!0;this._previousMinRows=-1;this._document=p(Uh);this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};p(bi).load(gE);this._textareaElement=this._elementRef.nativeElement};h=iE.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,aRc(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;aRc(a,!0)})}),this._isViewInited=!0,aRc(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&&aRc(this)};
var aRc=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}};iE.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};iE.prototype._noopInputHandler=function(){};iE.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
da.Object.defineProperties(iE.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Rh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Rh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?aRc(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()}}});iE.\u0275fac=function(a){return new (a||iE)};
iE.\u0275dir=df({type:iE,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&N("input",function(){})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",bh],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var jE=function(){};jE.\u0275fac=function(a){return new (a||jE)};jE.\u0275mod=cf({type:jE});jE.\u0275inj=Gc({});var kE=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};kE.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};kE.prototype.registerOnTouched=function(a){this.onTouched=a};kE.prototype.registerOnChange=function(a){this.onChange=a};kE.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};kE.\u0275fac=function(a){return new (a||kE)(Ye(fi),Ye(Jd))};kE.\u0275dir=df({type:kE});
var Jj=function(){kE.apply(this,arguments)};Y(Jj,kE);Jj.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Jj)))(b||Jj)}}();Jj.\u0275dir=df({type:Jj,features:[Gf]});var lE=new ed("");var bRc={provide:lE,useExisting:Xc(function(){return Ij}),multi:!0},cRc=new ed(""),Ij=function(a,b,c){kE.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((Rl?window.navigator.userAgent:"").toLowerCase()))};Y(Ij,kE);Ij.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};Ij.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Ij.prototype._compositionStart=function(){this._composing=!0};Ij.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Ij.\u0275fac=function(a){return new (a||Ij)(Ye(fi),Ye(Jd),Ye(cRc,8))};
Ij.\u0275dir=df({type:Ij,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(a,b){a&1&&N("input",function(c){return b._handleInput(c.target.value)})("blur",function(){return b.onTouched()})("compositionstart",function(){return b._compositionStart()})("compositionend",
function(c){return b._compositionEnd(c.target.value)})},standalone:!1,features:[Ig([bRc]),Gf]});var mE=new ed(""),dRc=new ed(""),Gj=function(a){return xwa(a)};var nE=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};h=nE.prototype;h._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Hwa(this._rawValidators)};h._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Jwa(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(nE.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 oE=function(){nE.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Y(oE,nE);var pE=function(){nE.apply(this,arguments)};Y(pE,nE);da.Object.defineProperties(pE.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var eRc=function(a){this._cd=a};
da.Object.defineProperties(eRc.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._touched)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._pristine)==
null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._status)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==
null?0:(b=a.control)==null?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a,b;(a=this._cd)==null||(b=a._submitted)==null||b.call(a);var c;return!((c=this._cd)==null||!c.submitted)}}});var qE=function(a){this._cd=a};Y(qE,eRc);qE.\u0275fac=function(a){return new (a||qE)(Ye(oE,2))};
qE.\u0275dir=df({type:qE,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&yg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)},standalone:!1,features:[Gf]});var rE=function(a){this._cd=a};Y(rE,eRc);rE.\u0275fac=function(a){return new (a||rE)(Ye(pE,10))};
rE.\u0275dir=df({type:rE,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&yg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)("ng-submitted",b.isSubmitted)},standalone:!1,features:[Gf]});var fRc=new ed("",{factory:function(){return"whenDisabledForLegacyCode"}});var sE=function(){},gRc=function(a,b){this.value=a;this.source=b};Y(gRc,sE);var hRc=function(a,b){this.pristine=a;this.source=b};Y(hRc,sE);var iRc=function(a,b){this.touched=a;this.source=b};Y(iRc,sE);var jRc=function(a,b){this.status=a;this.source=b};Y(jRc,sE);var kRc=function(a){this.source=a};Y(kRc,sE);var lRc=function(a){this.source=a};Y(lRc,sE);
var tE=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=ah.apply(null,[function(){return c.statusReactive()}].concat(q([])));this.statusReactive=pg.apply(null,[void 0].concat(q([])));this._pristine=ah.apply(null,[function(){return c.pristineReactive()}].concat(q([])));this.pristineReactive=pg.apply(null,[!0].concat(q([])));this._touched=ah.apply(null,[function(){return c.touchedReactive()}].concat(q([])));
this.touchedReactive=pg.apply(null,[!1].concat(q([])));this._events=new sf;this.events=this._events.asObservable();this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},Xwa=function(a,b){a._assignValidators(b)},Ywa=function(a,b){a._assignAsyncValidators(b)},Lf=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&&Lf(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new iRc(!0,
e))},mRc=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){mRc(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 iRc(!1,e))},$wa=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&&$wa(a._parent,Object.assign({},b,{sourceControl:e}));
c&&b.emitEvent!==!1&&a._events.next(new hRc(!1,e))},nRc=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){nRc(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new hRc(!0,e))};h=tE.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 gRc(this.value,d)),this._events.next(new jRc(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}))});Hj(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&&(Hj(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 Hj=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 gRc(a.value,c)),a._events.next(new jRc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Hj(a._parent,Object.assign({},
b,{sourceControl:c}))};h=tE.prototype;h._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Hj(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=Cwa(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 jRc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};h._initObservables=function(){this.valueChanges=new gj;this.statusChanges=new gj};
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 hRc(this.pristine,b))};h._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new iRc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};h._registerOnCollectionChange=function(a){this._onCollectionChange=a};
h._setUpdateStrategy=function(a){Kj(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)?Hwa(a):a||null};
h._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Jwa(a):a||null};
da.Object.defineProperties(tE.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 uE=function(a,b,c){tE.call(this,(Kj(b)?b.validators:b)||null,(Kj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Hj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(uE,tE);var oRc=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=uE.prototype;
h.addControl=function(a){var b=b===void 0?{}:b;oRc(this,a);Hj(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];Hj(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;exa(this,a);Object.keys(a).forEach(function(d){dxa(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Hj(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})}),Hj(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);Hj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new lRc(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&&Hj(this,{onlySelf:!0});return a};h._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};h._updateValue=function(){this.value=this._reduceValue()};
h._anyControls=function(a){for(var b=l(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};h._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};h._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
h._allControlsDisabled=function(){for(var a=l(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled};h._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var pRc=function(){uE.apply(this,arguments)};Y(pRc,uE);var qRc={provide:pE,useExisting:Xc(function(){return vE})},rRc=Promise.resolve(),vE=function(a,b,c){pE.call(this);var d=this;this.callSetDisabledState=c;this._submitted=ah.apply(null,[function(){return d.submittedReactive()}].concat(q([])));this.submittedReactive=pg.apply(null,[!1].concat(q([])));this._directives=new Set;this.ngSubmit=new gj;this.form=new uE({},Hwa(a),Jwa(b))};Y(vE,pE);h=vE.prototype;h.ngAfterViewInit=function(){this._setUpdateStrategy()};
h.addControl=function(a){var b=this;rRc.then(function(){var c=b._findContainer(a.path);a.control=oRc(c,a.name,a.control);Twa(a.control,a,b.callSetDisabledState);Hj(a.control,{emitEvent:!1});b._directives.add(a)})};h.removeControl=function(a){var b=this;rRc.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;rRc.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);bxa(this.form,this._directives);this.ngSubmit.emit(a);this.form._events.next(new kRc(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(vE.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}}});
vE.\u0275fac=function(a){return new (a||vE)(Ye(mE,10),Ye(dRc,10),Ye(fRc,8))};vE.\u0275dir=df({type:vE,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&N("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ig([qRc]),Gf]});var wE=function(a,b,c){a=a===void 0?null:a;tE.call(this,(Kj(b)?b.validators:b)||null,(Kj(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Hj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Kj(b)&&(b.nonNullable||b.initialValueIsDefault)&&(fxa(a)?this.defaultValue=a.value:this.defaultValue=a)};Y(wE,tE);h=wE.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)});Hj(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);nRc(this,b);mRc(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 lRc(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&&$wa(this),this._pendingTouched&&Lf(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};
h._applyFormState=function(a){fxa(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 sRc={provide:oE,useExisting:Xc(function(){return xE})},tRc=Promise.resolve(),xE=function(a,b,c,d,e,f){oE.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new wE;this._registered=!1;this.name="";this.update=new gj;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=cxa(d)};Y(xE,oE);h=xE.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);axa(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(){Twa(this.control,this,this.callSetDisabledState);Hj(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;tRc.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
h._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&bh(a);tRc.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?Nwa(a,this._parent):[a]};
da.Object.defineProperties(xE.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}}});xE.\u0275fac=function(a){return new (a||xE)(Ye(pE,9),Ye(mE,10),Ye(dRc,10),Ye(lE,10),Ye(Px,8),Ye(fRc,8))};
xE.\u0275dir=df({type:xE,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ig([sRc]),Gf,xx]});var yE=function(){};yE.\u0275fac=function(a){return new (a||yE)};yE.\u0275dir=df({type:yE,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var uRc={provide:lE,useExisting:Xc(function(){return zE}),multi:!0},zE=function(){Jj.apply(this,arguments)};Y(zE,Jj);zE.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};zE.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};zE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(zE)))(b||zE)}}();
zE.\u0275dir=df({type:zE,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&N("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},standalone:!1,features:[Ig([uRc]),Gf]});var vRc={provide:lE,useExisting:Xc(function(){return AE}),multi:!0},BE=function(){this._accessors=[]};BE.prototype.add=function(a,b){this._accessors.push([a,b])};BE.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}};BE.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
BE.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};BE.\u0275fac=function(a){return new (a||BE)};BE.\u0275prov=Fc({token:BE,factory:BE.\u0275fac,providedIn:"root"});var AE=function(a,b,c,d){Jj.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=p(fRc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Y(AE,Jj);h=AE.prototype;
h.ngOnInit=function(){this._control=this._injector.get(oE);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)};AE.\u0275fac=function(a){return new (a||AE)(Ye(fi),Ye(Jd),Ye(BE),Ye(Ae))};
AE.\u0275dir=df({type:AE,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&N("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Ig([vRc]),Gf]});var CE=function(a,b,c){pE.call(this);var d=this;this.callSetDisabledState=c;this._submitted=ah.apply(null,[function(){return d._submittedReactive()}].concat(q([])));this._submittedReactive=pg.apply(null,[!1].concat(q([])));this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this._setValidators(a);this._setAsyncValidators(b)};Y(CE,pE);h=CE.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&&(Uwa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};h.addControl=function(a){var b=this.form.get(a.path);Twa(b,a,this.callSetDisabledState);Hj(b,{emitEvent:!1});this.directives.push(a);return b};
h.removeControl=function(a){Vwa(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;bxa(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new kRc(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&&(Vwa(c||null,b),d instanceof wE&&(Twa(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
h._setUpFormContainer=function(a){var b=this.form.get(a.path);Owa(b,a);Hj(b,{emitEvent:!1})};h._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Uwa(b,a)&&Hj(b,{emitEvent:!1})}};h._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};h._updateValidators=function(){Owa(this.form,this);this._oldForm&&Uwa(this._oldForm,this)};h._checkFormPresent=function(){};
da.Object.defineProperties(CE.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[]}}});CE.\u0275fac=function(a){return new (a||CE)(Ye(mE,10),Ye(dRc,10),Ye(fRc,8))};CE.\u0275dir=df({type:CE,features:[Gf,xx]});var wRc=function(a,b,c){tE.call(this,(Kj(b)?b.validators:b)||null,(Kj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Hj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(wRc,tE);h=wRc.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));Hj(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);Hj(this,{emitEvent:c.emitEvent})};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;exa(this,a);a.forEach(function(d,e){dxa(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});Hj(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})}),Hj(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);Hj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new lRc(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),Hj(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&&Hj(this,{onlySelf:!0});return a};h._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};
h._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};h._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};h._allControlsDisabled=function(){for(var a=l(this.controls),b=a.next();!b.done;b=a.next())if(b.value.enabled)return!1;return this.controls.length>0||this.disabled};
h._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};h._find=function(a){var b;return(b=this.at(a))!=null?b:null};da.Object.defineProperties(wRc.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var xRc=new ed(""),yRc={provide:oE,useExisting:Xc(function(){return DE})},DE=function(a,b,c,d,e){oE.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new gj;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=cxa(c)};Y(DE,oE);
DE.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Vwa(b,this);Twa(this.form,this,this.callSetDisabledState);Hj(this.form,{emitEvent:!1})}axa(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};DE.prototype.ngOnDestroy=function(){this.form&&Vwa(this.form,this)};DE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};DE.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
da.Object.defineProperties(DE.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}}});DE._ngModelWarningSentOnce=!1;DE.\u0275fac=function(a){return new (a||DE)(Ye(mE,10),Ye(dRc,10),Ye(lE,10),Ye(xRc,8),Ye(fRc,8))};
DE.\u0275dir=df({type:DE,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ig([yRc]),Gf,xx]});var zRc={provide:oE,useExisting:Xc(function(){return EE})},EE=function(a,b,c,d,e){oE.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new gj;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=cxa(d)};Y(EE,oE);EE.prototype.ngOnChanges=function(a){this._added||this._setUpControl();axa(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
EE.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};EE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};EE.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
da.Object.defineProperties(EE.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Nwa(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});EE._ngModelWarningSentOnce=!1;EE.\u0275fac=function(a){return new (a||EE)(Ye(pE,13),Ye(mE,10),Ye(dRc,10),Ye(lE,10),Ye(xRc,8))};
EE.\u0275dir=df({type:EE,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ig([zRc]),Gf,xx]});var ARc={provide:pE,useExisting:Xc(function(){return FE})},FE=function(){CE.apply(this,arguments);this.form=null;this.ngSubmit=new gj};Y(FE,CE);da.Object.defineProperties(FE.prototype,{control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});FE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(FE)))(b||FE)}}();
FE.\u0275dir=df({type:FE,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&N("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ig([ARc]),Gf]});var GE=function(){this._validator=zwa};GE.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):zwa,this._onChange&&this._onChange())};GE.prototype.validate=function(a){return this._validator(a)};GE.prototype.registerOnValidatorChange=function(a){this._onChange=a};GE.prototype.enabled=function(a){return a!=null};GE.\u0275fac=function(a){return new (a||GE)};
GE.\u0275dir=df({type:GE,features:[xx]});var BRc={provide:mE,useExisting:Xc(function(){return HE}),multi:!0},HE=function(){GE.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return wwa(a)}};Y(HE,GE);HE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(HE)))(b||HE)}}();
HE.\u0275dir=df({type:HE,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:[Ig([BRc]),Gf]});
var CRc={provide:mE,useExisting:Xc(function(){return IE}),multi:!0},IE=function(){GE.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return vwa(a)}};Y(IE,GE);IE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IE)))(b||IE)}}();
IE.\u0275dir=df({type:IE,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:[Ig([CRc]),Gf]});var DRc={provide:mE,useExisting:Xc(function(){return JE}),multi:!0},JE=function(){GE.apply(this,arguments);this.inputName="required";this.normalizeInput=bh;this.createValidator=function(){return xwa}};
Y(JE,GE);JE.prototype.enabled=function(a){return a};JE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JE)))(b||JE)}}();JE.\u0275dir=df({type:JE,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:[Ig([DRc]),Gf]});
var ERc={provide:mE,useExisting:Xc(function(){return KE}),multi:!0},KE=function(){GE.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return ywa(a)}};Y(KE,GE);KE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KE)))(b||KE)}}();
KE.\u0275dir=df({type:KE,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:[Ig([ERc]),Gf]});
var FRc={provide:mE,useExisting:Xc(function(){return LE}),multi:!0},LE=function(){GE.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Awa(a)}};Y(LE,GE);LE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(LE)))(b||LE)}}();
LE.\u0275dir=df({type:LE,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:[Ig([FRc]),Gf]});var ME=function(){};ME.\u0275fac=function(a){return new (a||ME)};ME.\u0275mod=cf({type:ME});ME.\u0275inj=Gc({});var NE=function(){this.useNonNullable=!1};h=NE.prototype;h.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};gxa(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new uE(a,c)};h.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new pRc(a,b)};h.control=function(a,b,c){var d={};if(!this.useNonNullable)return new wE(a,b,c);gxa(b)?d=b:(d.validators=b,d.asyncValidators=c);return new wE(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 wRc(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 wE?a:a instanceof tE?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(NE.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new NE;a.useNonNullable=!0;return a}}});NE.\u0275fac=function(a){return new (a||NE)};NE.\u0275prov=Fc({token:NE,factory:NE.\u0275fac,providedIn:"root"});var OE=function(){};OE.\u0275fac=function(a){return new (a||OE)};OE.\u0275mod=cf({type:OE});OE.\u0275inj=Gc({imports:[ME]});var PE=function(){};PE.\u0275fac=function(a){return new (a||PE)};PE.\u0275mod=cf({type:PE});PE.\u0275inj=Gc({imports:[ME]});var GRc=new ed("MAT_INPUT_VALUE_ACCESSOR");var HRc="button checkbox file hidden image radio range reset submit".split(" "),IRc=new ed("MAT_INPUT_CONFIG"),QE=function(){var a=this;this._elementRef=p(Jd);this._platform=p(Yh);this.ngControl=p(oE,{optional:!0,self:!0});this._autofillMonitor=p(hE);this._ngZone=p(Tg);this._formField=p(XQc,{optional:!0});this._renderer=p(fi);this._uid=p(di).getId("mat-input-");this._config=p(IRc,{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(m){return Ara().has(m)});this._iOSKeyupListener=function(m){m=m.target;m.value||m.selectionStart!==0||m.selectionEnd!==0||(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};var b=p(vE,{optional:!0}),c=p(FE,{optional:!0}),d=p(rA),e=p(GRc,{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 pFc(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=QE.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(){HRc.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(QE.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Oh(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:Lwa(b._rawValidators,
Gj))!=null?d:!1},set:function(a){this._required=Oh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&Ara().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=Oh(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(" "))||[]}}});QE.\u0275fac=function(a){return new (a||QE)};
QE.\u0275dir=df({type:QE,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&&(Sf("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),yg("mat-input-server",b._isServer)("mat-mdc-form-field-textarea-control",b._isInFormField&&b._isTextarea)("mat-mdc-form-field-input-control",b._isInFormField)("mat-mdc-input-disabled-interactive",b.disabledInteractive)("mdc-text-field__input",b._isInFormField)("mat-mdc-native-select-inline",b._isInlineSelect()))},
inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh]},exportAs:["matInput"],features:[Ig([{provide:YD,useExisting:QE}]),xx]});var RE=function(){};RE.\u0275fac=function(a){return new (a||RE)};RE.\u0275mod=cf({type:RE});RE.\u0275inj=Gc({imports:[dE,dE,jE,Zy]});var SE=function(){};SE.\u0275fac=function(a){return new (a||SE)};SE.\u0275mod=cf({type:SE});SE.\u0275inj=Gc({imports:[RE,eE]});var dya=Symbol("ac"),TE=function(a){this.params=a||{}};TE.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};TE.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};TE.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};da.Object.defineProperties(TE.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var nxa={exact:sxa,subset:vxa},oxa={exact:qxa,subset:txa,ignored:function(){return!0}},Pj=function(a,b,c){a=a===void 0?new Oj([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};Pj.prototype.toString=function(){return JRc.serialize(this)};da.Object.defineProperties(Pj.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new TE(this.queryParams));return this._queryParamMap}}});
var Oj=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})};Oj.prototype.hasChildren=function(){return this.numberOfChildren>0};Oj.prototype.toString=function(){return Axa(this)};da.Object.defineProperties(Oj.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Rj=function(a,b){this.path=a;this.parameters=b};
Rj.prototype.toString=function(){return yxa(this.path)+zxa(this.parameters)};var UE=function(){};UE.\u0275fac=function(a){return new (a||UE)};UE.\u0275prov=Fc({token:UE,factory:function(){return new VE},providedIn:"root"});var VE=function(){};
VE.prototype.parse=function(a){a=new KRc(a);WE(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new Oj([],{}):new Oj([],LRc(a));var c={};if(WE(a,"?")){do{var d,e,f=a.remaining.match(MRc);if(e=f?f[0]:"")a.capture(e),f="",WE(a,"=")&&(d=(d=a.remaining.match(NRc))?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(WE(a,
"&"))}return new Pj(b,c,WE(a,"#")?decodeURIComponent(a.remaining):null)};VE.prototype.serialize=function(a){var b="/"+Bxa(a.root,!0),c=Exa(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};
var JRc=new VE,Fxa=/^[^\/()?;#]+/,ORc=/^[^\/()?;=#]+/,MRc=/^[^=?&#]+/,NRc=/^[^&#]+/,KRc=function(a){this.remaining=this.url=a},LRc=function(a){if(a.remaining==="")return{};WE(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(PRc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(PRc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=QRc(a,!0));var d={};a.remaining.startsWith("(")&&(d=QRc(a,!1));if(b.length>0||Object.keys(c).length>
0)d.primary=new Oj(b,c);return d},PRc=function(a){var b=Gxa(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Uc(4009,!1);a.capture(b);b=decodeURIComponent(b);for(var c={};WE(a,";");){var d,e=a;if(d=(d=e.remaining.match(ORc))?d[0]:""){e.capture(d);var f="";if(WE(e,"=")){var g=Gxa(e.remaining);g&&(f=g,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new Rj(b,c)},QRc=function(a,b){var c={};for(a.capture("(");!WE(a,")")&&a.remaining.length>0;){var d=Gxa(a.remaining),e=
a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Uc(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):b&&(e="primary");d=LRc(a);var f=void 0;c[(f=e)!=null?f:"primary"]=Object.keys(d).length===1&&d.primary?d.primary:new Oj([],d);WE(a,"//")}return c},WE=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};KRc.prototype.capture=function(a){if(!WE(this,a))throw new Uc(4011,!1);};var Uxa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&Nxa(c[0]))throw new Uc(4003,!1);if((a=c.find(Rxa))&&a!==(c.length>0?c[c.length-1]:null))throw new Uc(4004,!1);},Mxa=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var XE=function(a,b){this.id=a;this.url=b},rr=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;XE.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Y(rr,XE);rr.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var ak=function(a,b,c){XE.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Y(ak,XE);
ak.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var bk=function(a,b,c,d){XE.call(this,a,b);this.reason=c;this.code=d;this.type=2};Y(bk,XE);bk.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var dk=function(a,b,c,d){XE.call(this,a,b);this.reason=c;this.code=d;this.type=16};Y(dk,XE);
var ck=function(a,b,c,d){XE.call(this,a,b);this.error=c;this.target=d;this.type=3};Y(ck,XE);ck.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var RRc=function(a,b,c,d){XE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Y(RRc,XE);RRc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var SRc=function(a,b,c,d){XE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Y(SRc,XE);SRc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var TRc=function(a,b,c,d,e){XE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Y(TRc,XE);
TRc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var URc=function(a,b,c,d){XE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Y(URc,XE);URc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var VRc=function(a,b,c,d){XE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Y(VRc,XE);VRc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var WRc=function(a){this.route=a;this.type=9};WRc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var XRc=function(a){this.route=a;this.type=10};
XRc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var Gya=function(a){this.snapshot=a;this.type=11};Gya.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var YRc=function(a){this.snapshot=a;this.type=12};YRc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Hya=function(a){this.snapshot=a;this.type=13};Hya.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var ZRc=function(a){this.snapshot=a;this.type=14};ZRc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var $Rc=function(a,b,c){this.position=a;this.anchor=b;this.scrollBehavior=c;this.type=15};
$Rc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var aSc=function(){},bSc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var cSc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new YE(this.rootInjector)};da.Object.defineProperties(cSc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=Tj((a=this.route)==null?void 0:a.snapshot))!=null?b:this.rootInjector}}});
var YE=function(a){this.rootInjector=a;this.contexts=new Map},dSc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},eSc=function(a,b){var c=a.getContext(b);c||(c=new cSc(a.rootInjector),a.contexts.set(b,c));return c};YE.prototype.getContext=function(a){return this.contexts.get(a)||null};YE.\u0275fac=function(a){return new (a||YE)(Zc($e))};YE.\u0275prov=Fc({token:YE,factory:YE.\u0275fac,providedIn:"root"});var ZE=function(a){this._root=a};ZE.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};ZE.prototype.children=function(a){return(a=aya(a,this._root))?a.children.map(function(b){return b.value}):[]};ZE.prototype.firstChild=function(a){return(a=aya(a,this._root))&&a.children.length>0?a.children[0].value:null};ZE.prototype.pathFromRoot=function(a){return bya(a,this._root).map(function(b){return b.value})};
da.Object.defineProperties(ZE.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var Uj=function(a,b){this.value=a;this.children=b};Uj.prototype.toString=function(){return"TreeNode("+this.value+")"};var mya=function(a,b){this._root=a;this.snapshot=b;fya(this,a)};Y(mya,ZE);mya.prototype.toString=function(){return this.snapshot.toString()};
var Vj=function(a,b,c,d,e,f,g,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=g;this._futureSnapshot=k;var m,r;this.title=(r=(m=this.dataSubject)==null?void 0:m.pipe(A(function(w){return w[dya]})))!=null?r:ee(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};Vj.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
da.Object.defineProperties(Vj.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 TE(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(A(function(a){return new TE(a)})));return this._queryParamMap}}});
var $E=function(a,b,c,d,e,f,g,k,m){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=g;this.routeConfig=k;this._resolve=m};$E.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
da.Object.defineProperties($E.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[dya]}},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 TE(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new TE(this.queryParams));return this._queryParamMap}}});var fSc=function(a,b){this._root=b;this.url=a;fya(this,b)};Y(fSc,ZE);fSc.prototype.toString=function(){return gya(this._root)};var gSc=new ed(""),aF=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new gj;this.deactivateEvents=new gj;this.attachEvents=new gj;this.detachEvents=new gj;this.routerOutletData=Qg.apply(null,q([]));this.parentContexts=p(YE);this.location=p(hg);this.changeDetector=p(Px);this.inputBinder=p(hSc,{optional:!0})};
aF.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(iSc(this,b)&&(this.deactivate(),dSc(this.parentContexts,b)),jSc(this))}};aF.prototype.ngOnDestroy=function(){iSc(this,this.name)&&dSc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||kSc(a,this)};var iSc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};aF.prototype.ngOnInit=function(){jSc(this)};
var jSc=function(a){var b=a.parentContexts,c=a.name,d=eSc(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):lSc(a,b.route,b.injector))};aF.prototype.detach=function(){if(!this.activated)throw new Uc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
aF.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(kSc(b,this),mSc(b,this));this.attachEvents.emit(a.instance)};aF.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var lSc=function(a,b,c){if(a.isActivated)throw new Uc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=eSc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new nSc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(kSc(b,a),mSc(b,a));a.activateEvents.emit(a.activated.instance)};
da.Object.defineProperties(aF.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 Uc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Uc(4012,!1);return this._activatedRoute}}});
aF.\u0275fac=function(a){return new (a||aF)};aF.\u0275dir=df({type:aF,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xx]});var nSc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};
nSc.prototype.get=function(a,b){return a===Vj?this.route:a===YE?this.childContexts:a===gSc?this.outletData:this.parent.get(a,b)};
var hSc=new ed(""),bF=function(){this.outletDataSubscriptions=new Map},kSc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},mSc=function(a,b){var c=b.activatedRoute,d=le([c.queryParams,c.params,c.data]).pipe(Af(function(e,f){var g=l(e);e=g.next().value;var k=g.next().value;g=g.next().value;g=Object.assign({},e,k,g);return f===0?ee(g):Promise.resolve(g)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=Fpa(c.component);if(f){f=l(f.inputs);for(var g=f.next();!g.done;g=f.next())g=g.value.templateName,b.activatedComponentRef.setInput(g,e[g])}else kSc(a,b)}else kSc(a,b)});a.outletDataSubscriptions.set(b,d)};bF.\u0275fac=function(a){return new (a||bF)};bF.\u0275prov=Fc({token:bF,factory:bF.\u0275fac});var kya=function(){};kya.\u0275fac=function(a){return new (a||kya)};kya.\u0275cmp=C({type:kya,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&M(0,"router-outlet")},dependencies:[aF],encapsulation:2});var pSc=function(a,b,c,d){return A(function(e){(new oSc(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},oSc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};oSc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;qSc(this,b,c,a);hya(this.futureState.root);rSc(this,b,c,a)};
var qSc=function(a,b,c,d){var e=cya(c);b.children.forEach(function(f){var g=f.value.outlet,k=e[g],m=f.value,r=k?k.value:null;m===r?m.component?(m=d.getContext(m.outlet))&&qSc(a,f,k,m.children):qSc(a,f,k,d):r&&sSc(a,k,d);delete e[g]});Object.values(e).forEach(function(f){sSc(a,f,d)})},sSc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=cya(b);b=l(Object.values(b));for(var e=b.next();!e.done;e=b.next())sSc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},rSc=function(a,b,c,d){var e=cya(c);b.children.forEach(function(f){var g=e[f.value.outlet],k=f.value,m=g?g.value:null;hya(k);k===m?k.component?(k=eSc(d,k.outlet),rSc(a,f,g,k.children)):rSc(a,f,g,d):k.component?(g=eSc(d,k.outlet),g.attachRef=null,g.route=k,g.outlet&&lSc(g.outlet,k,g.injector),rSc(a,f,null,g.children)):rSc(a,f,null,d);a.forwardEvent(new ZRc(f.value.snapshot))});b.children.length&&a.forwardEvent(new YRc(b.value.snapshot))};var tya=Symbol("cc");var wya=function(a){this.path=a;this.route=this.path[this.path.length-1]},yya=function(a,b){this.component=a;this.route=b};var cF=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,cF.prototype)};Y(cF,Error);var tSc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a;Object.setPrototypeOf(this,tSc.prototype)};Y(tSc,Error);
var uSc=function(a,b){this.urlSerializer=a;this.urlTree=b},vSc=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 Uc(4E3,!1);c=c.children.primary}ce(d)})},ySc=function(a,b,c,d,e,f){var g,k;return y(function(m){if(m.nextAddress==1)return z(m,Nya(c,e,f),2);g=m.yieldResult;if(g instanceof Pj)throw new tSc(g);var r=g,w=a.urlSerializer.parse(g);r=wSc(a,r,w.root,b,d);k=new Pj(r,
xSc(w.queryParams,a.urlTree.queryParams),w.fragment);if(g[0]==="/")throw new tSc(k);return m.return(k)})},xSc=function(a,b){var c={};Object.entries(a).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;c[d]=typeof e==="string"&&e[0]===":"?b[e.substring(1)]:e});return c},wSc=function(a,b,c,d,e){var f=zSc(c.segments,d,e),g={};Object.entries(c.children).forEach(function(k){var m=l(k);k=m.next().value;m=m.next().value;g[k]=wSc(a,b,m,d,e)});return new Oj(f,g)},zSc=function(a,b,c){return a.map(function(d){if(d.path[0]===
":"){if(d=c[d.path.substring(1)],!d)throw new Uc(4001,!1);}else a:for(var e=0,f=l(b),g=f.next();!g.done;g=f.next()){g=g.value;if(g.path===d.path){b.splice(e);d=g;break a}e++}return d})};var Pya={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var ASc=function(){},Vya=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 uSc(this.urlSerializer,this.urlTree)};
Vya.prototype.recognize=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return b=Uya(a.urlTree.root,[],[],a.config).segmentGroup,z(m,a.match(b),2);c=m.yieldResult;d=c.children;e=c.rootSnapshot;f=new Uj(e,d);g=new fSc("",f);var r=e,w=a.urlTree.queryParams,x=a.urlTree.fragment;w=w===void 0?null:w;x=x===void 0?null:x;var D=D===void 0?new VE:D;r=Jxa(r);k=Qxa(r,[],w,x,D);k.queryParams=a.urlTree.queryParams;g.url=a.urlSerializer.serialize(k);return m.return({state:g,tree:k})})};
Vya.prototype.match=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=new $E([],Object.freeze({}),Object.freeze(Object.assign({},b.urlTree.queryParams)),b.urlTree.fragment,Object.freeze({}),"primary",b.rootComponentType,null,{}),Yd(f,2),z(f,BSc(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 tSc)return b.urlTree=e.urlTree,f.return(b.match(e.urlTree.root));if(e instanceof cF)throw new Uc(4002,
"'"+e.segmentGroup+"'");throw e;})};var BSc=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,CSc(a,b,c,d,d.segments,e,!0,f),2);g=k.yieldResult;return k.return(g instanceof Uj?[g]:[])})};
Vya.prototype.processChildren=function(a,b,c,d){var e=this,f,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:f=[];g=l(Object.keys(c.children));for(k=g.next();!k.done;k=g.next())m=k.value,m==="primary"?f.unshift(m):f.push(m);r=[];w=l(f);x=w.next();case 2:if(x.done){V.jumpTo(4);break}D=x.value;H=c.children[D];J=$xa(b,D);return z(V,BSc(e,a,J,H,D,d),5);case 5:O=V.yieldResult;r.push.apply(r,q(O));x=w.next();V.jumpTo(2);break;case 4:return R=Zya(r),Xya(R),V.return(R)}})};
var CSc=function(a,b,c,d,e,f,g,k){var m,r,w,x,D;return y(function(H){switch(H.nextAddress){case 1:m=l(c),r=m.next();case 2:if(r.done){H.jumpTo(4);break}w=r.value;Yd(H,5);x=void 0;return z(H,DSc(a,(x=w._injector)!=null?x:b,c,w,d,e,f,g,k),7);case 7:return H.return(H.yieldResult);case 5:D=be(H);if(D instanceof cF||Bya(D)){H.jumpTo(3);break}throw D;case 3:r=m.next();H.jumpTo(2);break;case 4:if(e.length===0&&!d.children[f])return H.return(new ASc);throw new cF(d);}})},DSc=function(a,b,c,d,e,f,g,k,m){return y(function(r){if(Sj(d)!==
g&&(g==="primary"||!Tya(e,f,d)))throw new cF(e);if(d.redirectTo===void 0)return r.return(ESc(a,b,e,d,f,g,m));if(a.allowRedirects&&k)return r.return(FSc(a,b,e,c,d,f,g,m));throw new cF(e);})},FSc=function(a,b,c,d,e,f,g,k){var m,r,w,x,D,H,J,O,R,V,ba,oa;return y(function(ta){if(ta.nextAddress==1){m=Oya(c,e,f);r=m.matched;w=m.parameters;x=m.consumedSegments;D=m.positionalParamSegments;H=m.remainingSegments;if(!r)throw new cF(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,
a.absoluteRedirectCount>31&&(a.allowRedirects=!1));R=new $E(f,w,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},Sj(e),(O=(J=e.component)!=null?J:e._loadedComponent)!=null?O:null,e,e.resolve||{});V=eya(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(ta,ySc(a.applyRedirects,x,e.redirectTo,D,R,b),2)}if(ta.nextAddress!=3)return ba=ta.yieldResult,z(ta,
vSc(ba),3);oa=ta.yieldResult;return ta.return(CSc(a,b,d,c,oa.concat(H),g,!1,k))})},ESc=function(a,b,c,d,e,f,g){var k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra,$a;return y(function(pb){switch(pb.nextAddress){case 1:if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(pb,jxa(Qya(c,d,e,b,a.abortSignal)),2);case 2:k=pb.yieldResult;d.path==="**"&&(c.children={});if((m=k)==null||!m.matched)throw new cF(c);b=(r=d._injector)!=null?r:b;return z(pb,GSc(a,b,d,e),3);case 3:w=pb.yieldResult;
x=w.routes;H=(D=d._loadedInjector)!=null?D:b;J=k;O=J.parameters;R=J.consumedSegments;V=J.remainingSegments;ta=new $E(R,O,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},Sj(d),(oa=(ba=d.component)!=null?ba:d._loadedComponent)!=null?oa:null,d,d.resolve||{});ka=eya(ta,g,a.paramsInheritanceStrategy);ta.params=Object.freeze(ka.params);ta.data=Object.freeze(ka.data);Ca=Uya(c,R,V,x);ja=Ca.segmentGroup;ua=Ca.slicedSegments;if(ua.length!==0||!ja.hasChildren()){pb.jumpTo(4);
break}return z(pb,a.processChildren(H,x,ja,ta),5);case 5:return xa=pb.yieldResult,pb.return(new Uj(ta,xa));case 4:if(x.length===0&&ua.length===0)return pb.return(new Uj(ta,[]));Ra=Sj(d)===f;return z(pb,CSc(a,H,x,ja,ua,Ra?"primary":f,!0,ta),6);case 6:return $a=pb.yieldResult,pb.return(new Uj(ta,$a instanceof Uj?[$a]:[]))}})},GSc=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(c.children)return g.return({routes:c.children,injector:b});if(!c.loadChildren){g.jumpTo(2);break}if(c._loadedRoutes!==
void 0)return g.return({routes:c._loadedRoutes,injector:c._loadedInjector});if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(g,jxa(Lya(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 qya(3);case 2:return g.return({routes:[],injector:b})}})};var $ya=new ed("",{factory:function(){return Wya}});var dF=function(){},HSc=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[dya])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};dF.\u0275fac=function(a){return new (a||dF)};dF.\u0275prov=Fc({token:dF,factory:function(){return p(eF)},providedIn:"root"});var eF=function(a){this.title=a};Y(eF,dF);eF.prototype.updateTitle=function(a){a=HSc(a);a!==void 0&&this.title.setTitle(a)};eF.\u0275fac=function(a){return new (a||eF)(Zc(Jy))};
eF.\u0275prov=Fc({token:eF,factory:eF.\u0275fac,providedIn:"root"});var fF=new ed("",{factory:function(){return{}}});var lza=new ed(""),gF=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;p(Vx)};
gF.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,mxa(id(a,function(){return b.loadComponent()})),4);case 4:return f=k.yieldResult,z(k,hza(iza(f)?f["default"]:f),5);case 5:g=k.yieldResult;if(c.onLoadEndListener)c.onLoadEndListener(b);
b._loadedComponent=g;return k.return(g);case 2:Zd(k),c.componentLoaders.delete(b),ae(k,0)}})}();c.componentLoaders.set(b,d);return e.return(d)})};
gF.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,mza(b,a,c.onLoadEndListener),4);if(f.nextAddress!=2)return e=f.yieldResult,b._loadedRoutes=e.routes,b._loadedInjector=e.injector,f.return(e);Zd(f);c.childrenLoaders.delete(b);
return ae(f,0)})}();this.childrenLoaders.set(b,d);return d};gF.\u0275fac=function(a){return new (a||gF)};gF.\u0275prov=Fc({token:gF,factory:gF.\u0275fac,providedIn:"root"});var hF=function(){};hF.\u0275fac=function(a){return new (a||hF)};hF.\u0275prov=Fc({token:hF,factory:function(){return p(iF)},providedIn:"root"});var iF=function(){};iF.prototype.merge=function(a){return a};iF.\u0275fac=function(a){return new (a||iF)};iF.\u0275prov=Fc({token:iF,factory:iF.\u0275fac,providedIn:"root"});var ISc=new ed(""),nza=new ed("");var JSc=function(){},KSc=new ed(""),jF=function(){var a=this;this.currentNavigation=pg.apply(null,[null].concat(q([{equal:function(){return!1}}])));this.currentTransition=null;this.lastSuccessfulNavigation=pg.apply(null,[null].concat(q([])));this.events=new sf;this.transitionAbortWithErrorSubject=new sf;this.configLoader=p(gF);this.environmentInjector=p($e);this.destroyRef=p(Ee);this.urlSerializer=p(UE);this.rootContexts=p(YE);this.location=p(ki);this.inputBindingEnabled=p(hSc,{optional:!0})!==null;
this.titleStrategy=p(dF);this.options=p(fF,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlHandlingStrategy=p(hF);this.createViewTransition=p(ISc,{optional:!0});this.navigationErrorHandler=p(KSc,{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 XRc(b))};this.configLoader.onLoadStartListener=
function(b){return a.events.next(new WRc(b))};this.destroyRef.onDestroy(function(){a.destroyed=!0})};jF.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var LSc=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}))})},PSc=function(a,b){a.transitions=new Wj(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 MSc(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||NSc(a)||OSc(a);var m,r=(m=g.extras.onSameUrlNavigation)!=null?
m:b.onSameUrlNavigation;return k||r==="reload"?ee(g).pipe(Af(function(w){a.events.next(new rr(w.id,a.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState));return w.id!==a.navigationId?ue:Promise.resolve(w)}),aza(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(D){D.finalUrl=w.urlAfterRedirects;
return D});var x=new RRc(w.id,a.urlSerializer.serialize(w.extractedUrl),a.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);a.events.next(x)})):(a.events.next(new dk(g.id,a.urlSerializer.serialize(g.rawUrl),"",0)),g.resolve(!1),ue)}),A(function(g){var k=new SRc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);k=Object;var m=k.assign;var r=g.currentSnapshot;var w=g.targetSnapshot._root;r=xya(w,r?r._root:null,
a.rootContexts,[w.value]);return a.currentTransition=c=m.call(k,{},g,{guards:r})}),Eya(a.environmentInjector,function(g){return a.events.next(g)}),Af(function(g){if((c.guardsResult=g.guardsResult)&&typeof g.guardsResult!=="boolean")throw rya(g.guardsResult);var k=new TRc(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 MSc(a,g,"",3),ue;if(g.guards.canActivateChecks.length===
0)return ee(g);k=new URc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);if(!f())return ue;var m=!1;return ee(g).pipe(dza(a.paramsInheritanceStrategy,a.environmentInjector),Cf({next:function(){m=!0;var r=new VRc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(r)},complete:function(){m||MSc(a,g,"",2)}}))}),gza(function(g){var k=function(r){var w=
[],x;if((x=r.routeConfig)==null?0:x._loadedComponent){var D;r.component=(D=r.routeConfig)==null?void 0:D._loadedComponent}else{var H;if((H=r.routeConfig)==null?0:H.loadComponent){var J;x=(J=Tj(r))!=null?J:a.environmentInjector;w.push(a.configLoader.loadComponent(x,r.routeConfig).then(function(O){r.component=O}))}}J=l(r.children);for(x=J.next();!x.done;x=J.next())w.push.apply(w,q(k(x.value)));return w},m=k(g.targetSnapshot.root);return m.length===0?ee(g):Xd(Promise.all(m).then(function(){return g}))}),
gza(function(){return a.afterPreactivation()}),Af(function(){var g=c,k=g.currentSnapshot;g=g.targetSnapshot;var m,r=(m=a.createViewTransition)==null?void 0:m.call(a,a.environmentInjector,k.root,g.root);return r?Xd(r).pipe(A(function(){return c})):ee(c)}),A(function(g){var k=nya(b.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);a.currentTransition=c=Object.assign({},g,{targetRouterState:k});a.currentNavigation.update(function(m){m.targetRouterState=k;return m});return c}),Cf(function(){a.events.next(new aSc)}),
pSc(a.rootContexts,b.routeReuseStrategy,function(g){return a.events.next(g)},a.inputBindingEnabled),nf(1),Bf(uya(e.signal).pipe(we(function(){return!d&&!c.targetRouterState}),Cf(function(){MSc(a,c,e.signal.reason+"",4)}))),Cf({next:function(g){d=!0;a.currentNavigation.update(function(m){m.abort=JSc;return m});a.lastSuccessfulNavigation.set(Rc(a.currentNavigation));a.events.next(new ak(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||MSc(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(sya(g))a.events.next(new bk(c.id,a.urlSerializer.serialize(c.extractedUrl),g.message,g.cancellationCode)),sya(g)&&Qj(g.url)?
a.events.next(new bSc(g.url,g.navigationBehaviorOptions)):c.resolve(!1);else{var k,m=new ck(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,m)}),a.events.next(m),g;}catch(r){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(r)}}return ue}))}))},MSc=function(a,b,c,d){c=new bk(b.id,a.urlSerializer.serialize(b.extractedUrl),c,d);a.events.next(c);
b.resolve(!1)},NSc=function(a){var b,c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},OSc=function(a){var b=a.urlSerializer.parse(a.location.path(!0));a=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(jF.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});jF.\u0275fac=function(a){return new (a||jF)};jF.\u0275prov=Fc({token:jF,factory:jF.\u0275fac,providedIn:"root"});var kF=function(){};kF.\u0275fac=function(a){return new (a||kF)};kF.\u0275prov=Fc({token:kF,factory:function(){return p(lF)},providedIn:"root"});var QSc=function(){};QSc.prototype.store=function(){};QSc.prototype.retrieve=function(){return null};QSc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var lF=function(){};Y(lF,QSc);lF.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(lF)))(b||lF)}}();lF.\u0275prov=Fc({token:lF,factory:lF.\u0275fac,providedIn:"root"});var mF=function(){this.urlSerializer=p(UE);this.options=p(fF,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.location=p(ki);this.urlHandlingStrategy=p(hF);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new Pj;var a=new fSc("",new Uj(new $E([],{},{},"",{},"primary",null,null,{}),[])),b=new Vj(new Wj([new Rj("",{})]),new Wj({}),new Wj({}),new Wj(""),new Wj({}),"primary",null,a.root);
b.snapshot=a.root;this.routerState=new mya(new Uj(b,[]),a);this._stateMemento=RSc(this)},SSc=function(a,b){var c=b.finalUrl;var d=b.initialUrl;b=b.targetBrowserUrl;c=c!==void 0?a.urlHandlingStrategy.merge(c,d):d;c=b!=null?b:c;return c instanceof Pj?a.urlSerializer.serialize(c):c},TSc=function(a,b){var c=b.targetRouterState;var d=b.finalUrl;b=b.initialUrl;d&&c?(a.currentUrlTree=d,a.rawUrlTree=a.urlHandlingStrategy.merge(d,b),a.routerState=c):a.rawUrlTree=b},RSc=function(a){return{rawUrlTree:a.rawUrlTree,
currentUrlTree:a.currentUrlTree,routerState:a.routerState}};mF.prototype.restoredState=function(){return this.location.getState()};da.Object.defineProperties(mF.prototype,{stateMemento:{configurable:!0,enumerable:!0,get:function(){return this._stateMemento}}});mF.\u0275fac=function(a){return new (a||mF)};mF.\u0275prov=Fc({token:mF,factory:function(){return p(nF)},providedIn:"root"});var nF=function(){mF.apply(this,arguments);this.currentPageId=0;this.lastSuccessfulId=-1};Y(nF,mF);
var USc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&setTimeout(function(){b(c.url,c.state,"popstate")})})},WSc=function(a,b,c){var d=c.extras;c=c.id;var e=d.replaceUrl;d=d.state;var f=a.location;var g=g===void 0?"":g;f.path()==f.normalize(b+lh(g))||e?(g=Object.assign({},d,VSc(a,c,a.browserPageId)),a.location.replaceState(b,"",g)):(g=Object.assign({},d,VSc(a,c,a.browserPageId+1)),a.location.go(b,"",g))},ZSc=function(a,b,c){c=c===void 0?!1:c;a.canceledNavigationResolution===
"computed"?(c=a.currentPageId-a.browserPageId,c!==0?a.location.historyGo(c):a.currentUrlTree===b.finalUrl&&c===0&&(XSc(a,b),YSc(a))):a.canceledNavigationResolution==="replace"&&(c&&XSc(a,b),YSc(a))},XSc=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)},YSc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",VSc(a,a.lastSuccessfulId,
a.currentPageId))},VSc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};da.Object.defineProperties(nF.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}}});
nF.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nF)))(b||nF)}}();nF.\u0275prov=Fc({token:nF,factory:nF.\u0275fac,providedIn:"root"});var $Sc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aTc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},oF=function(){var a=this;this.disposed=!1;this.console=p(Kx);this.stateManager=p(mF);this.options=p(fF,{optional:!0})||{};this.pendingTasks=p(Wg);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=p(jF);this.urlSerializer=p(UE);this.location=p(ki);this.urlHandlingStrategy=p(hF);this.injector=
p($e);this._events=new sf;this.navigated=!1;this.routeReuseStrategy=p(kF);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=p(lza,{optional:!0}))==null?void 0:b.flat())!=null?c:[];p(hSc,{optional:!0});this.currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();this.eventsSubscription=new Rd;this.config=this.config.map(jya);this.navigated=!1;PSc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});bTc(this)},
bTc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition,e=Rc(a.navigationTransitions.currentNavigation);if(d!==null&&e!==null){var f=a.stateManager;c instanceof rr?f._stateMemento=RSc(f):c instanceof dk?TSc(f,e):c instanceof RRc?f.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||WSc(f,SSc(f,e),e)):c instanceof aSc?(TSc(f,e),f.urlUpdateStrategy!=="deferred"||e.extras.skipLocationChange||WSc(f,SSc(f,e),e)):c instanceof
bk&&c.code!==1&&c.code!==0?ZSc(f,e):c instanceof ck?ZSc(f,e,!0):c instanceof ak&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof bk&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof ak)a.navigated=!0;else if(c instanceof bSc){var g=c.navigationBehaviorOptions,k=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl),m=Object.assign({},{scroll:d.extras.scroll,browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,replaceUrl:d.extras.replaceUrl||
a.urlUpdateStrategy==="eager"||d.source!=="imperative"},g);cTc(a,k,"imperative",null,m,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof aSc||c instanceof bSc||a._events.next(c)}catch(r){a.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});a.eventsSubscription.add(b)};oF.prototype.initialNavigation=function(){dTc(this);this.navigationTransitions.hasRequestedNavigation||eTc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var dTc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=USc(a.stateManager,function(b,c,d){eTc(a,b,d,c)}))},eTc=function(a,b,c,d){var e={replaceUrl:!0},f=(d==null?0:d.navigationId)?d:null;d&&(d=Object.assign({},d),delete d.navigationId,delete d.\u0275routerPageId,Object.keys(d).length!==0&&(e.state=d));b=a.parseUrl(b);cTc(a,b,c,f,e).catch(function(g){a.disposed||a.injector.get(Te)(g)})};oF.prototype.ngOnDestroy=function(){this.dispose()};
oF.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 pF=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=fTc(g));try{var k=Jxa(c?c.snapshot:a.routerState.snapshot.root)}catch(m){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return Qxa(k,b,g,f!=null?f:null,a.urlSerializer)},$t=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=Qj(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return cTc(a,b,"imperative",null,c)};oF.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 Uc(4008,!1);return $t(this,pF(this,a,b),b)};
oF.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.console.warn(efa(4018,!1)),this.urlSerializer.parse("/")}};oF.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},$Sc):b===!1?c=Object.assign({},aTc):c=b;if(Qj(a))return pxa(this.currentUrlTree,a,c);a=this.parseUrl(a);return pxa(this.currentUrlTree,a,c)};
var fTc=function(a){return Object.entries(a).reduce(function(b,c){var d=l(c);c=d.next().value;d=d.next().value;d!==null&&d!==void 0&&(b[c]=d);return b},{})},cTc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var g=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(r,w){g=r;k=w});var m=a.pendingTasks.add();qza(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(m)})});LSc(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(oF.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}}});oF.\u0275fac=function(a){return new (a||oF)};oF.\u0275prov=Fc({token:oF,factory:oF.\u0275fac,providedIn:"root"});var qF=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=pg.apply(null,[null].concat(q([])));this.onChanges=new sf;this.applicationErrorHandler=p(Te);this.options=p(fF,{optional:!0});this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;this.reactiveHref.set(p(new yx("href"),{optional:!0}));var g;a=(g=e.nativeElement.tagName)==null?void 0:g.toLowerCase();var k,m,r;(this.isAnchorElement=
a==="a"||a==="area"||!!(typeof customElements==="object"&&((k=customElements.get(a))==null?0:(m=k.observedAttributes)==null?0:(r=m.includes)==null?0:r.call(m,"href"))))?gTc(this,"0"):hTc(this)},hTc=function(a){if(a.subscription===void 0&&a.isAnchorElement){var b=a.preserveFragment,c=function(e){return e==="merge"||e==="preserve"};b||(b=c(a.queryParamsHandling));var d;b||(b=!a.queryParamsHandling&&!c((d=a.options)==null?void 0:d.defaultQueryParamsHandling));b&&(a.subscription=a.router.events.subscribe(function(e){e instanceof
ak&&iTc(a)}))}},gTc=function(a,b){if(a.tabIndexAttribute==null&&!a.isAnchorElement){var c=a.renderer;a=a.el.nativeElement;b!==null?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};qF.prototype.ngOnChanges=function(){this.isAnchorElement&&(iTc(this),hTc(this));this.onChanges.next(this)};
qF.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=$t(this.router,g,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(m){f.applicationErrorHandler(m)});return!this.isAnchorElement};qF.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var iTc=function(a){var b=a.urlTree,c,d;a.reactiveHref.set(b!==null&&a.locationStrategy?(d=(c=a.locationStrategy)==null?void 0:c.prepareExternalUrl(a.router.urlSerializer.serialize(b)))!=null?d:"":null)};
da.Object.defineProperties(qF.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,gTc(this,null)):(Qj(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],gTc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:Qj(this.routerLinkInput)?this.routerLinkInput:
pF(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})}}});qF.\u0275fac=function(a){return new (a||qF)(Ye(oF),Ye(Vj),Lga("tabindex"),Ye(fi),Ye(Jd),Ye(wy))};
qF.\u0275dir=df({type:qF,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(),Mja)("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",bh],skipLocationChange:[2,"skipLocationChange",
"skipLocationChange",bh],replaceUrl:[2,"replaceUrl","replaceUrl",bh],routerLink:"routerLink"},features:[xx]});var rF=function(a,b,c,d){var e=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new gj;this.link=p(qF,{optional:!0});this.routerEventsSubscription=a.events.subscribe(function(f){f instanceof ak&&e.update()})};rF.prototype.ngAfterContentInit=function(){var a=this;ee(this.links.changes,ee(null)).pipe(ne()).subscribe(function(){a.update();jTc(a)})};
var jTc=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!==kTc(a,a.router)(c)&&a.update()})};rF.prototype.ngOnChanges=function(){this.update()};rF.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
rF.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=lTc(a);a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)});b&&a.ariaCurrentWhenActive!==void 0?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,"aria-current");a._isActive!==b&&(a._isActive=b,a.cdr.markForCheck(),
a.isActiveChange.emit(b))})};var kTc=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return(d=d.urlTree)?b.isActive(d,c):!1}},lTc=function(a){var b=kTc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
da.Object.defineProperties(rF.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})}}});rF.\u0275fac=function(a){return new (a||rF)(Ye(oF),Ye(Jd),Ye(fi),Ye(Px))};
rF.\u0275dir=df({type:rF,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&kg(c,qF,5);if(a&2){var d;ng(d=og())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xx]});var mTc=function(){},sF=function(a,b,c,d){this.router=a;this.injector=b;this.preloadingStrategy=c;this.loader=d},nTc=function(a){a.subscription=a.router.events.pipe(we(function(b){return b instanceof ak}),qla(function(){return a.preload()})).subscribe(function(){})};sF.prototype.preload=function(){return oTc(this,this.injector,this.router.config)};sF.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var oTc=function(a,b,c){var d=[];c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Vka(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(pTc(a,g,e));if(e.children||e._loadedRoutes)g=void 0,d.push(oTc(a,f,(g=e.children)!=null?g:e._loadedRoutes))}return Xd(d).pipe(ne())},pTc=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 oTc(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})};sF.\u0275fac=function(a){return new (a||sF)(Zc(oF),Zc($e),Zc(mTc),Zc(gF))};
sF.\u0275prov=Fc({token:sF,factory:sF.\u0275fac,providedIn:"root"});var qTc=new ed(""),tF=function(a){this.options=a;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};this.urlSerializer=p(UE);this.zone=p(Tg);this.viewportScroller=p(QCc);this.transitions=p(jF);var b;(b=this.options).scrollPositionRestoration||(b.scrollPositionRestoration="disabled");var c;(c=this.options).anchorScrolling||(c.anchorScrolling="disabled")};
tF.prototype.init=function(){if(this.options.scrollPositionRestoration!=="disabled")try{this.viewportScroller.window.history.scrollRestoration="manual"}catch(a){console.warn(efa(2400,!1))}this.routerEventsSubscription=rTc(this);this.scrollEventsSubscription=sTc(this)};
var rTc=function(a){return a.transitions.events.subscribe(function(b){b instanceof rr?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof ak?(a.lastId=b.id,tTc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof dk&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,tTc(a,a.urlSerializer.parse(b.url).fragment))})},sTc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
$Rc&&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])}})},tTc=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 $Rc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b,d))});ce(e)})})};
tF.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};tF.\u0275fac=function(){Ze()};tF.\u0275prov=Fc({token:tF,factory:tF.\u0275fac});new ed("",{factory:function(){return!1}});var uTc=new ed("",{factory:function(){return new sf}}),vTc=new ed("",{factory:function(){return 1}}),wTc=new ed("");new ed("");var xTc=[ki,{provide:UE,useClass:VE},oF,YE,{provide:Vj,useFactory:function(){return p(oF).routerState.root}},gF,[]],uF=function(){};uF.\u0275fac=function(a){return new (a||uF)};uF.\u0275mod=cf({type:uF});uF.\u0275inj=Gc({});var yTc=new ed("");var zTc=["textarea"],ATc=new ed("MessageInputTemplate"),vF=function(){var a=this;this.threadService=p(RD);this.routingService=p(NB);this.experimentsService=p(GA);this.userContextService=p(AC);this.overridesService=p(RA);this.conversationAgentsService=p(LB);this.inputText=Zoa.apply(null,q([]));this.submitMessage=Pg();this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(q([])));this.textarea=Rg.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()&&BTc(a)})};vF.prototype.ngAfterViewInit=function(){var a=this;BTc(this);this.routingService.events.pipe(we(function(b){return b instanceof ak})).subscribe(function(){BTc(a)})};var BTc=function(a){var b;(b=a.textarea())==null||b.nativeElement.focus()};vF.prototype.cancelDuckieStream=function(){this.threadService.cancelDuckieStream()};
vF.prototype.removeContextSource=function(a){MKc(this.userContextService,a)};var CTc=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)})};vF.prototype.sendMessage=function(){this.submitMessage.emit(this.inputText()||"");this.inputText.set("")};vF.\u0275fac=function(a){return new (a||vF)};
vF.\u0275cmp=C({type:vF,selectors:[["message-input"]],viewQuery:function(a,b){a&1&&qg(b.textarea,zTc);a&2&&rg()},hostAttrs:[1,"padded-m-left","padded-right","flex-column","gap-xs"],inputs:{inputText:[1,"inputText"],inputPlaceholder:[1,"inputPlaceholder"]},outputs:{inputText:"inputTextChange",submitMessage:"submitMessage"},decls:17,vars:19,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","","aria-label","Textarea to input message",1,"ask-duckie-input",3,"ngModelChange","keydown.enter","placeholder","disabled","ngModel","ve","veClick","veImpression"],["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"disabled"],[1,"duckie-disclaimer","text-secondary","type-xs"],[1,"duckie-disclaimer-content"],
[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();bg(0);T(1,"async");bg(2);T(3,"async");F(4,wza,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(QKc(f,e,!0))}return v()});Eg("ngModelChange",function(e){u(c);Dg(b.inputText,e)||(b.inputText=e);return v(e)});N("keydown.enter",function(e){u(c);return v(CTc(b,e))});Q(10,"    ");L()();F(11,xza,3,0,"button",5);T(12,"async");Nf(13,yza,5,6,"button",6);L();K(14,"p",7)(15,"span",8);Q(16);L()()}if(a&2){var d;cg(U(1,9,b.userProvidedContextSources$));B(2);cg(U(3,12,b.userProvidedContextServiceError$));B(2);G(b.userProvidedContextEnabled?4:-1);B(3);I("placeholder",
b.inputPlaceholder())("disabled",((d=U(9,15,b.currentThread$))==null?null:d.sessionState)===b.sessionStateDeprecated&&!b.responseMetadataEnabled);Cg("ngModel",b.inputText);I("ve",b.ve.DuckieChatMessageSendButton)("veClick",!0)("veImpression",!0);B(4);G(U(12,17,b.isDuckieThinking$)&&b.duckieStreamingMvpEnabled&&rJc(b.conversationAgentsService)?11:13);B(5);S(" ",b.disclaimer||"Duckie can make mistakes. Consider double-checking its responses."," ")}},dependencies:[ty,OE,Ij,qE,xE,pC,nC,lC,eE,SD,cE,SE,
fE,QE,$y,Yy,jE,sD,rD,FA,ly],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 DTc=["customMessageInput"],wF=function(){this.inputText=Qg.apply(null,q([]));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(q([])));this.submitMessage=Pg();this.messageInputTemplate=p(ATc,{optional:!0});this.customMessageInput=Rg.apply(null,["customMessageInput"].concat(q([{read:hg}])))};
wF.prototype.ngAfterViewInit=function(){var a=this;this.messageInputTemplate&&this.customMessageInput()&&(this.componentRef=this.customMessageInput().createComponent(this.messageInputTemplate),this.componentRef.instance.inputText=pg.apply(null,[this.inputText()].concat(q([]))),this.componentRef.instance.inputPlaceholder=pg.apply(null,[this.inputPlaceholder()].concat(q([]))),this.componentRef.instance.submitMessage.subscribe(function(b){a.submitMessage.emit(b)}))};
wF.\u0275fac=function(a){return new (a||wF)};
wF.\u0275cmp=C({type:wF,selectors:[["message-input-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customMessageInput,DTc,hg);a&2&&rg()},inputs:{inputText:[1,"inputText"],inputPlaceholder:[1,"inputPlaceholder"]},outputs:{submitMessage:"submitMessage"},decls:2,vars:1,consts:[["customMessageInput",""],[3,"inputText","inputPlaceholder"],[3,"submitMessage","inputText","inputPlaceholder"]],template:function(a,b){a&1&&F(0,zza,2,0,"ng-container")(1,Aza,1,2,"message-input",1);a&2&&G(b.messageInputTemplate?0:
1)},dependencies:[ty,vF],encapsulation:2,changeDetection:0});var ETc=new ed("ReminderBlurbTemplate"),xF=function(){this.overridesService=p(RA);this.overrideAgentName=this.overridesService.overrideAgentMessageDisplayName};xF.\u0275fac=function(a){return new (a||xF)};
xF.\u0275cmp=C({type:xF,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&&(Tf(0,"div",0)(1,"p",1),Q(2,"Reminder"),Uf(),Tf(3,"p"),Q(4," Do not prompt "),F(5,Bza,2,1,"span")(6,Cza,2,0,"a",2),Q(7," with user data or personally identifiable information (PII). Review "),Tf(8,"a",3),Q(9,"go/code-ai-policy"),Uf(),Q(10," before using this tool or its outputs in production. "),
Uf(),Tf(11,"p"),Q(12," Note: If you are part of a Bet, you must also review and follow any AI policies specific to your Bet. "),Uf()());a&2&&(B(5),G(b.overrideAgentName?5:6))},dependencies:[ty],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 FTc=["customReminderBlurb"],yF=function(){this.reminderBlurbTemplate=p(ETc,{optional:!0});this.customReminderBlurb=Rg.apply(null,["customReminderBlurb"].concat(q([{read:hg}])))};yF.prototype.ngAfterViewInit=function(){this.reminderBlurbTemplate&&this.customReminderBlurb()&&(this.componentRef=this.customReminderBlurb().createComponent(this.reminderBlurbTemplate))};yF.\u0275fac=function(a){return new (a||yF)};
yF.\u0275cmp=C({type:yF,selectors:[["reminder-blurb-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customReminderBlurb,FTc,hg);a&2&&rg()},decls:2,vars:1,consts:[["customReminderBlurb",""]],template:function(a,b){a&1&&F(0,Dza,2,0,"ng-container")(1,Eza,1,0,"reminder-blurb");a&2&&G(b.reminderBlurbTemplate?0:1)},dependencies:[ty,xF],encapsulation:2,changeDetection:0});var GTc=function(a,b){return b.title},Hza=function(a,b){return b.label},zF=function(){var a=this;this.ve={ProductionAgentZeroStateSuggestionChip:278387};this.threadService=p(RD);this.routingService=p(NB);this.overridesService=p(RA);this.configurationKey=Qg.apply(null,q([]));this.pageId=Qg.apply(null,q([]));this.draftQuery=pg.apply(null,[""].concat(q([])));this.isLoading=pg.apply(null,[!1].concat(q([])));this.onboardingExamples=zua(this.overridesService.overrideOnboardingExamplesList$.asObservable().pipe(Cf(function(){a.isLoading.set(!0)}),
of(800),Cf(function(){a.isLoading.set(!1)})))};zF.prototype.sendQuestion=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,LNa(b.routingService,""),2):z(c,wQc(b.threadService,a),0)})};zF.\u0275fac=function(a){return new (a||zF)};
zF.\u0275cmp=C({type:zF,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,Fza,4,0,"div",1),Qf(3,Iza,5,3,"div",2,GTc),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(),Rf(b.onboardingExamples()),B(2),I("inputText",b.draftQuery()))},dependencies:[mC,jC,wF,yF,rD],styles:['[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;height:100%}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-bottom:16px}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .prompt-button[_ngcontent-%COMP%]{line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:36px;background-color:var(--xap-color-surface)}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%]   .shimmer-line-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;padding:16px 0;width:300px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]{height:16px;background:var(--xap-color-surface-container-high);position:relative;overflow:hidden;border-radius:4px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;height:100%;width:100%;background:-webkit-gradient(linear,left top,right top,from(var(--xap-color-surface-container-high)),color-stop(50%,var(--xap-color-surface-container)),to(var(--xap-color-surface-container-high)));background:-webkit-linear-gradient(left,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);background:linear-gradient(to right,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);-webkit-animation:_ngcontent-%COMP%_shimmer 2.2s infinite;animation:_ngcontent-%COMP%_shimmer 2.2s infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}@keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}\n/*# sourceMappingURL=gpp_custom_onboarding.css.map */',
"[_nghost-%COMP%] { height: 100%; }"],changeDetection:0});var AF=function(){};AF.prototype.transform=function(a){var b=a.getPrompt();return b?"Prompt: "+b:a.getLabel()||null};AF.\u0275fac=function(a){return new (a||AF)};AF.\u0275pipe=ef({name:"interactiveButtonTooltip",type:AF,pure:!0});/*

 Copyright (c) 2013 Marc J. Schmidt

 Use of this source code is governed by a MIT-style
 license that can be found in the LICENSE file or at
 https://opensource.org/licenses/MIT.
*/
"use strict";
var HTc=typeof window!=="undefined"?window:this,ITc=function(){function a(m,r){var w=Object.prototype.toString.call(m),x=0,D=m.length;if("[object Array]"===w||"[object NodeList]"===w||"[object HTMLCollection]"===w||"[object Object]"===w||"undefined"!==typeof jQuery&&m instanceof jQuery||"undefined"!==typeof Elements&&m instanceof Elements)for(;x<D;x++)r(m[x]);else r(m)}function b(m){if(!m.getBoundingClientRect)return{width:m.offsetWidth,height:m.offsetHeight};m=m.getBoundingClientRect();return{width:Math.round(m.width),
height:Math.round(m.height)}}function c(m,r){Object.keys(r).forEach(function(w){m.style[w]=r[w]})}if(typeof window==="undefined")return null;var d=typeof window!="undefined"&&Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:globalThis,e=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame||function(m){return d.setTimeout(m,20)},f=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame||function(m){d.clearTimeout(m)},g=function(m,
r){function w(){var H=[];this.add=function(R){H.push(R)};var J,O;this.call=function(R){J=0;for(O=H.length;J<O;J++)H[J].call(this,R)};this.remove=function(R){var V=[];J=0;for(O=H.length;J<O;J++)H[J]!==R&&V.push(H[J]);H=V};this.length=function(){return H.length}}function x(H,J){if(H)if(H.resizedAttached)H.resizedAttached.add(J);else{H.resizedAttached=new w;H.resizedAttached.add(J);H.resizeSensor=document.createElement("div");H.resizeSensor.dir="ltr";H.resizeSensor.className="resize-sensor";var O={pointerEvents:"none",
position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"};J={position:"absolute",left:"0px",top:"0px",transition:"0s"};c(H.resizeSensor,O);var R=document.createElement("div");R.className="resize-sensor-expand";c(R,O);var V=document.createElement("div");c(V,J);R.appendChild(V);var ba=document.createElement("div");ba.className="resize-sensor-shrink";c(ba,O);O=document.createElement("div");c(O,J);c(O,{width:"200%",height:"200%"});
ba.appendChild(O);H.resizeSensor.appendChild(R);H.resizeSensor.appendChild(ba);H.appendChild(H.resizeSensor);J=(J=window.getComputedStyle(H))?J.getPropertyValue("position"):null;"absolute"!==J&&"relative"!==J&&"fixed"!==J&&"sticky"!==J&&(H.style.position="relative");var oa=!1,ta=0,ka=b(H),Ca=0,ja=0,ua=!0;D=0;var xa=function(){var pb=H.offsetWidth,Yb=H.offsetHeight;V.style.width=pb+10+"px";V.style.height=Yb+10+"px";R.scrollLeft=pb+10;R.scrollTop=Yb+10;ba.scrollLeft=pb+10;ba.scrollTop=Yb+10},Ra=function(){if(ua){if(H.offsetWidth===
0&&H.offsetHeight===0){D||(D=e(function(){D=0;Ra()}));return}ua=!1}xa()};H.resizeSensor.resetSensor=Ra;var $a=function(){ta=0;oa&&(Ca=ka.width,ja=ka.height,H.resizedAttached&&H.resizedAttached.call(ka))};J=function(){ka=b(H);(oa=ka.width!==Ca||ka.height!==ja)&&!ta&&(ta=e($a));Ra()};O=function(pb,Yb,lc){pb.attachEvent?pb.attachEvent("on"+Yb,lc):pb.addEventListener(Yb,lc)};O(R,"scroll",J);O(ba,"scroll",J);D=e(function(){D=0;Ra()})}}var D=0;a(m,function(H){x(H,r)});this.detach=function(H){D&&(f(D),D=
0);g.detach(m,H)};this.reset=function(){m.resizeSensor.resetSensor&&m.resizeSensor.resetSensor()}};g.reset=function(m){a(m,function(r){m.resizeSensor.resetSensor&&r.resizeSensor.resetSensor()})};g.detach=function(m,r){a(m,function(w){if(w){if(w.resizedAttached&&typeof r==="function"&&(w.resizedAttached.remove(r),w.resizedAttached.length()))return;w.resizeSensor&&(w.contains(w.resizeSensor)&&w.removeChild(w.resizeSensor),delete w.resizeSensor,delete w.resizedAttached)}})};if(typeof MutationObserver!==
"undefined"){var k=new MutationObserver(function(m){for(var r in m)if(m.hasOwnProperty(r))for(var w=m[r].addedNodes,x=0;x<w.length;x++)w[x].resizeSensor&&g.reset(w[x])});document.addEventListener("DOMContentLoaded",function(){k.observe(document.body,{childList:!0,subtree:!0})})}return g};typeof define==="function"&&define.amd?define(ITc):typeof exports==="object"?module.exports=ITc():HTc.ResizeSensor=ITc();var JTc=window.ResizeSensor;var BF=function(){this.eventsDomainSelector_=this.metricsDomainSelector_=this.appDomainSelector_=null};Pw("awesomecharts.config.RestDomainsConfig",BF);BF.prototype.getApp=function(){return this.appDomainSelector_};BF.prototype.getApp=BF.prototype.getApp;BF.prototype.setApp=function(a){this.appDomainSelector_=KTc(this,a);return this};BF.prototype.setApp=BF.prototype.setApp;BF.prototype.getPublicApi=function(){return this.publicApiSelector_};BF.prototype.getPublicApi=BF.prototype.getPublicApi;
BF.prototype.setPublicApi=function(a){this.publicApiSelector_=KTc(this,a);return this};BF.prototype.setPublicApi=BF.prototype.setPublicApi;BF.prototype.getPublicCharts=function(){return this.publicChartsSelector_};BF.prototype.getPublicCharts=BF.prototype.getPublicCharts;BF.prototype.setPublicCharts=function(a){this.publicChartsSelector_=KTc(this,a);return this};BF.prototype.setPublicCharts=BF.prototype.setPublicCharts;BF.prototype.getMetrics=function(){return this.metricsDomainSelector_};
BF.prototype.getMetrics=BF.prototype.getMetrics;BF.prototype.setMetrics=function(a){this.metricsDomainSelector_=KTc(this,a);return this};BF.prototype.setMetrics=BF.prototype.setMetrics;BF.prototype.getEvents=function(){return this.eventsDomainSelector_};BF.prototype.getEvents=BF.prototype.getEvents;BF.prototype.setEvents=function(a){this.eventsDomainSelector_=KTc(this,a);return this};BF.prototype.setEvents=BF.prototype.setEvents;BF.prototype.setIterFactory=function(a){this.iterFactory_=a};
BF.prototype.setIterFactory=BF.prototype.setIterFactory;var KTc=function(a,b){if(!b)return null;typeof b==="string"&&(b=[b]);Array.isArray(b)&&(b=a.iterFactory_(b));return b};var LTc=function(){};Pw("awesomecharts.interfaces.AnalyticsInterface",LTc);LTc.prototype.sinceLoad=function(){};LTc.prototype.sinceLoad=LTc.prototype.sinceLoad;var CF=function(){};Pw("awesomecharts.interfaces.AuthInterface",CF);CF.prototype.checkAuth=function(){};CF.prototype.checkAuth=CF.prototype.checkAuth;CF.prototype.isAuthInProgress=function(){};CF.prototype.isAuthInProgress=CF.prototype.isAuthInProgress;CF.prototype.isReady=function(){};CF.prototype.isReady=CF.prototype.isReady;CF.prototype.request=function(){};CF.prototype.request=CF.prototype.request;CF.prototype.clear=function(){};CF.prototype.clear=CF.prototype.clear;
CF.prototype.handleRequestError=function(){};CF.prototype.handleRequestError=CF.prototype.handleRequestError;CF.prototype.authorizeRequest=function(){};CF.prototype.authorizeRequest=CF.prototype.authorizeRequest;var MTc=function(){};MTc.prototype.sinceLoad=function(){};
var DF=function(){this.qnAuth_=this.auth_=null;this.throwPartials_=!0;this.restDomainsConfig_=new BF;this.colorTheme_=this.dateTimeDisplayFormatter_=this.timezonePreference_=null;this.whitelist_={};this.baseUrls_={gcm_v3:"https://monitoring.googleapis.com"};this.analytics_=new MTc;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};DF.prototype.setAuth=function(a){this.auth_=a;return this};DF.prototype.setAuth=DF.prototype.setAuth;DF.prototype.setQnAuth=function(a){this.qnAuth_=a;return this};DF.prototype.setQnAuth=DF.prototype.setQnAuth;DF.prototype.getAuth=function(){return this.auth_};DF.prototype.getAuth=DF.prototype.getAuth;DF.prototype.getQnAuth=function(){return this.qnAuth_};DF.prototype.getQnAuth=DF.prototype.getQnAuth;
DF.prototype.setThrowPartials=function(a){this.throwPartials_=a;return this};DF.prototype.setThrowPartials=DF.prototype.setThrowPartials;DF.prototype.getThrowPartials=function(){return this.throwPartials_};DF.prototype.getThrowPartials=DF.prototype.getThrowPartials;DF.prototype.setTimezoneUtils=function(a){this.timezoneUtils_=a;return this};DF.prototype.setTimezoneUtils=DF.prototype.setTimezoneUtils;DF.prototype.getTimezoneUtils=function(){return this.timezoneUtils_};
DF.prototype.getTimezoneUtils=DF.prototype.getTimezoneUtils;DF.prototype.setAnalytics=function(a){this.analytics_=a;return this};DF.prototype.setAnalytics=DF.prototype.setAnalytics;DF.prototype.getAnalytics=function(){return this.analytics_||null};DF.prototype.getAnalytics=DF.prototype.getAnalytics;DF.prototype.setTimezone=function(a){this.timezonePreference_=a;return this};DF.prototype.setTimezone=DF.prototype.setTimezone;
DF.prototype.getTimezone=function(){return this.timezonePreference_?this.timezonePreference_:window&&window.sd&&window.sd.timezonePreference?window.sd.timezonePreference:"LocalTime"};DF.prototype.getTimezone=DF.prototype.getTimezone;DF.prototype.setDateTimeDisplayFormatter=function(a){this.dateTimeDisplayFormatter_=a;return this};DF.prototype.setDateTimeDisplayFormatter=DF.prototype.setDateTimeDisplayFormatter;DF.prototype.getDateTimeDisplayFormatter=function(){return this.dateTimeDisplayFormatter_};
DF.prototype.getDateTimeDisplayFormatter=DF.prototype.getDateTimeDisplayFormatter;DF.prototype.setColorTheme=function(a){this.colorTheme_=a;return this};DF.prototype.setColorTheme=DF.prototype.setColorTheme;DF.prototype.getColorTheme=function(){return this.colorTheme_?this.colorTheme_:window&&window.sd&&window.sd.colorTheme?window.sd.colorTheme:null};DF.prototype.getColorTheme=DF.prototype.getColorTheme;DF.prototype.getRestDomainsConfig=function(){return this.restDomainsConfig_};
DF.prototype.getRestDomainsConfig=DF.prototype.getRestDomainsConfig;DF.prototype.setWhitelist=function(a,b){this.whitelist_[a]=b;return this};DF.prototype.setWhitelist=DF.prototype.setWhitelist;
var NTc=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)})},OTc=function(a,b,c){return Array.isArray(c)&&c.includes(b)?!0:!!a.whitelist_[b]},QTc=function(a){var b=null;PTc(a).forEach(function(c){c.indexOf("chart-throttle-")===0&&(b=Math.min(c.substring(15),b===null?Infinity:b))});return b},PTc=function(a){return Object.keys(a.whitelist_).filter(function(b){return a.whitelist_[b]})};
DF.prototype.setBaseUrl=function(a,b){this.baseUrls_[a]=b};DF.prototype.setBaseUrl=DF.prototype.setBaseUrl;DF.prototype.getBaseUrl=function(){return this.baseUrls_[void 0]};DF.prototype.setAsyncEventWrapperFn=function(){};DF.prototype.setAsyncEventWrapperFn=DF.prototype.setAsyncEventWrapperFn;DF.prototype.setForceSync=function(a){this.forceSync_=a};DF.prototype.setForceSync=DF.prototype.setForceSync;DF.prototype.isForceSync=function(){return this.forceSync_};DF.prototype.isForceSync=DF.prototype.isForceSync;
DF.prototype.transportReadEvent=function(a){var b=this.stats_.transportRead;b.push(a);b.length>1E3&&b.shift()};DF.prototype.transportReadEvent=DF.prototype.transportReadEvent;DF.prototype.chartLoadingEvent=function(a,b){var c=this.stats_.chartLoading;c.push(a);c.length>1E3&&c.shift();b&&this.stats_.chartErrors++};DF.prototype.chartLoadingEvent=DF.prototype.chartLoadingEvent;DF.prototype.dashboardLoadingEvent=function(a){var b=this.stats_.dashboardLoading;b.push(a);b.length>1E3&&b.shift()};
DF.prototype.dashboardLoadingEvent=DF.prototype.dashboardLoadingEvent;
DF.prototype.showStats=function(){OTc(this,"chart-adaptive")?console.log("tile loading is on."):console.log("tile loading is off.");OTc(this,"chart-grpc")?console.log("grpc is on."):console.log("grpc is off.");console.log("throttle is "+QTc(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.")};DF.prototype.showStats=DF.prototype.showStats;
DF.prototype.doUseDataWorkers=function(a){return typeof self.Worker==="function"?OTc(this,"chart-data-workers",a)||NTc(this,"chart-override-performance-",a)?!0:NTc(this,"chart-performance-",a)&&OTc(this,"chart-rollout-performance",a):!1};DF.prototype.doUseDataWorkers=DF.prototype.doUseDataWorkers;DF.prototype.setUseTerminatingDrawQueue=function(a){this.useTerminatingDrawQueue=a};DF.prototype.setUseTerminatingDrawQueue=DF.prototype.setUseTerminatingDrawQueue;
DF.prototype.getUseTerminatingDrawQueue=function(){return this.useTerminatingDrawQueue};DF.prototype.getUseTerminatingDrawQueue=DF.prototype.getUseTerminatingDrawQueue;var EF=new DF;Pw("awesomecharts.config.settings",EF);var Jza={};var FF=function(){Wj.call(this,{type:"@ngrx/store/init"})};Y(FF,Wj);FF.create=Wj.create;FF.prototype.next=function(a){if(typeof a==="function")throw new TypeError("fc");if(typeof a==="undefined")throw new TypeError("gc");if(typeof a.type==="undefined")throw new TypeError("hc");Wj.prototype.next.call(this,a)};FF.prototype.complete=function(){};FF.prototype.ngOnDestroy=function(){Wj.prototype.complete.call(this)};FF.\u0275fac=function(a){return new (a||FF)};FF.\u0275prov=Fc({token:FF,factory:FF.\u0275fac});
var RTc=[FF];var STc=new ed("@ngrx/store Internal Root Guard"),TTc=new ed("@ngrx/store Internal Initial State"),UTc=new ed("@ngrx/store Initial State"),VTc=new ed("@ngrx/store Reducer Factory"),WTc=new ed("@ngrx/store Internal Reducer Factory Provider"),XTc=new ed("@ngrx/store Initial Reducers"),YTc=new ed("@ngrx/store Internal Initial Reducers"),ZTc=new ed("@ngrx/store Store Features"),$Tc=new ed("@ngrx/store Internal Store Reducers"),aUc=new ed("@ngrx/store Internal Feature Reducers"),bUc=new ed("@ngrx/store Internal Feature Configs"),
cUc=new ed("@ngrx/store Internal Store Features"),dUc=new ed("@ngrx/store Internal Feature Reducers Token"),eUc=new ed("@ngrx/store Feature Reducers"),fUc=new ed("@ngrx/store User Provided Meta Reducers"),gUc=new ed("@ngrx/store Meta Reducers"),hUc=new ed("@ngrx/store Internal Resolved Meta Reducers"),iUc=new ed("@ngrx/store User Runtime Checks Config"),jUc=new ed("@ngrx/store Internal User Runtime Checks Config"),dAa=new ed("@ngrx/store Internal Runtime Checks"),cAa=new ed("@ngrx/store Check if Action types are unique");
new ed("@ngrx/store Root Store Provider");new ed("@ngrx/store Feature State Provider");var kUc=function(){Vd.apply(this,arguments)};Y(kUc,Vd);kUc.create=Vd.create;var GF=function(){FF.apply(this,arguments)};Y(GF,FF);GF.create=FF.create;GF.\u0275prov=FF.\u0275prov;GF.\u0275fac=FF.\u0275fac;var HF=function(a,b,c,d){Wj.call(this,d(c,b));this.dispatcher=a;this.initialState=b;this.reducers=c;this.reducerFactory=d};Y(HF,Wj);HF.create=Wj.create;
var mUc=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"?Vza(g)(e,k):Uza(f,g)(e,k);c[d]=e;return c},{});lUc(a,b)},oUc=function(a,b){nUc(a,b.map(function(c){return c.key}))},lUc=function(a,b){a.reducers=Object.assign({},a.reducers,b);pUc(a,Object.keys(b))},nUc=function(a,b){b.forEach(function(c){a.reducers=Sza(a.reducers,c)});pUc(a,b)},pUc=function(a,b){a.next(a.reducerFactory(a.reducers,a.initialState));
a.dispatcher.next({type:"@ngrx/store/update-reducers",features:b})};HF.prototype.ngOnDestroy=function(){this.complete()};HF.\u0275fac=function(a){return new (a||HF)(Zc(GF),Zc(UTc),Zc(XTc),Zc(VTc))};HF.\u0275prov=Fc({token:HF,factory:HF.\u0275fac});var qUc=[HF,{provide:kUc,useExisting:HF},{provide:GF,useExisting:FF}];var IF=function(){sf.apply(this,arguments)};Y(IF,sf);IF.create=sf.create;IF.prototype.ngOnDestroy=function(){this.complete()};IF.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IF)))(b||IF)}}();IF.\u0275prov=Fc({token:IF,factory:IF.\u0275fac});var rUc=[IF];var sUc=function(){Vd.apply(this,arguments)};Y(sUc,Vd);sUc.create=Vd.create;var JF=function(a,b,c,d){Wj.call(this,d);var e=this;this.stateSubscription=a.pipe(Vha()).pipe(Ef(b)).pipe(Mla(gAa,{state:d})).subscribe(function(f){var g=f.state;f=f.action;e.next(g);c.next(f)});this.state=zua(this,{manualCleanup:!0,requireSync:!0})};Y(JF,Wj);JF.create=Wj.create;JF.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe();this.complete()};JF.INIT="@ngrx/store/init";
JF.\u0275fac=function(a){return new (a||JF)(Zc(FF),Zc(kUc),Zc(IF),Zc(UTc))};JF.\u0275prov=Fc({token:JF,factory:JF.\u0275fac});var tUc=[JF,{provide:sUc,useExisting:JF}];var KF=function(a,b,c,d){this.actionsObserver=b;this.reducerManager=c;this.injector=d;this.source=a;this.state=a.state};Y(KF,Vd);KF.create=Vd.create;h=KF.prototype;h.select=function(a){return kk.call.apply(kk,[null,a].concat(q(ad.apply(1,arguments))))(this)};h.lift=function(a){var b=new KF(this,this.actionsObserver,this.reducerManager);b.operator=a;return b};h.dispatch=function(a,b){if(typeof a==="function")return uUc(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 uUc=function(a,b,c){Lza(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})};KF.\u0275fac=function(a){return new (a||KF)(Zc(sUc),Zc(FF),Zc(HF),Zc(Ae))};KF.\u0275prov=Fc({token:KF,factory:KF.\u0275fac});var vUc=[KF];var LF=function(){};LF.\u0275fac=function(a){return new (a||LF)(Zc(FF),Zc(kUc),Zc(IF),Zc(KF),Zc(STc,8),Zc(cAa,8))};LF.\u0275mod=cf({type:LF});LF.\u0275inj=Gc({});var MF=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:hAa(d.initialState)})});mUc(c,a)};MF.prototype.ngOnDestroy=function(){oUc(this.reducerManager,this.features)};
MF.\u0275fac=function(a){return new (a||MF)(Zc(cUc),Zc(eUc),Zc(HF),Zc(LF),Zc(cAa,8))};MF.\u0275mod=cf({type:MF});MF.\u0275inj=Gc({});var NF=fk("[AC] Add chart",gk()),OF=fk("[AC] Remove chart",gk()),PF=fk("[AC] Rename chart",gk()),wUc=fk("[AC] Remove ChartGroup",gk()),xUc=fk("[AC] Add X Axis",gk()),yUc=fk("[AC] Remove X Axis",gk()),zUc=fk("[AC] Add Categorical Axis",gk()),AUc=fk("[AC] Remove Categorical Axis",gk()),BUc=fk("[AC] Add Layer",gk()),CUc=fk("[AC] Remove layer",gk()),QF=fk("[AC] Rename layer",gk()),iAa=fk("[AC] Batch actions",gk()),jAa=new WeakMap;var RF=function(a){this.selectorService=a;this.logger=null;this.setupCalled=!1;this.stateObservableSwitcher=new Wj(ee({previousValue:null,currentValue:null}));this.stateObservableInternal=this.stateObservableSwitcher.pipe(Af(function(b){return b}));this.store=p(KF)},SF=function(a,b){return a.scopeObservable.pipe(Af(function(c){return a.store.pipe(kk(b(c)))}),xf({bufferSize:1,refCount:!0}))};
RF.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}))};RF.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};RF.prototype.setup=function(a){this.setupCalled||(this.stateObservable=DUc(a.stateSelectionObservables),this.setupCalled=!0)};
var DUc=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(pk),xf({bufferSize:1,refCount:!0}))};da.Object.defineProperties(RF.prototype,{stateObservable:{configurable:!0,enumerable:!0,set:function(a){this.stateObservableSwitcher.next(a)},get:function(){return this.stateObservableInternal}}});var yk=function(a){return jk(function(b){return b[a]},function(b){return b})}("awesomecharts");var rk=function(a){this.getKey=a.getKey;this.getSelector=a.getSelector},sk=ik(function(a){return hk(a,lAa,mAa)});var EUc=new rk({getKey:oAa,getSelector:function(){return ee(jk(pAa(),function(a){return a}))}}),FUc=new rk({getKey:oAa,getSelector:function(a){var b=a.chartGroupId;var c=a.chartId;return ee(jk(pAa(),function(d){return(d==null?void 0:d.chartGroupId)===b&&(d==null?void 0:d.chartId)===c}))}});var sAa=jk(yk,function(a){return a.resize}),GUc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(sAa,function(c){return c.entities[b]}))}}),HUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.top-b.margins.bottom)}))}}),IUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.width-
b.margins.left-b.margins.right)}))}}),JUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.top)}))}}),KUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.left)}))}}),LUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,
b.width-b.margins.right)}))}}),MUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.bottom)}))}}),NUc=tk(function(a){return a.chartId},function(a,b){if(a!==void 0&&b!==void 0)return{bodyLeft:a,bodyRight:b}},KUc,LUc),OUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){return b==null?void 0:b.width}))}}),PUc=new rk({getKey:function(a){return a.chartId},
getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){return b==null?void 0:b.height}))}}),QUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a){return ee(jk(Bk({chartId:a.chartId}),function(b){return b==null?void 0:b.margins}))}}),RUc=new rk({getKey:function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},getSelector:function(a){var b=a.chartId;var c=a.layerId;return ee(jk(Bk({chartId:b}),function(d){var e;return(e=d==null?void 0:d.reservedMarginsByLayer.entities[c])!=
null?e:void 0}))}}),SUc=new rk({getKey:function(a){return a.chartId},getSelector:function(a,b){return le([b.getSelector(PUc,a),b.getSelector(OUc,a),b.getSelector(QUc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return jk(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}})}))}}),TF=tk(wk,function(a,b,c){if(a&&b!==void 0&&c!==void 0)return Object.assign({},a,{chartWidth:b,chartHeight:c})},tk(wk,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}},JUc,KUc,LUc,MUc,IUc,HUc),OUc,PUc);var TUc=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},tAa=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 UF={},VF=function(a){this.name=this.name||"ACError";this.code=this.code||500;this.message=this.message||a||"An unknown error occurred";this.details={}};Pw("awesomecharts.utils.errors.ACError",VF);UF.ACError=VF;Qw(VF,Error);var UUc=function(a){this.name="RequestAbortedError";this.message=a||"";this.code=499;VF.call(this)};UF.RequestAbortedError=UUc;Qw(UUc,VF);var VUc=function(a){this.name="ServiceUnavailableError";this.message=a||"";this.code=503;VF.call(this)};UF.ServiceUnavailableError=VUc;
Qw(VUc,VF);var WUc=function(a){this.name="TooManyRequestsError";this.message=a||"";this.code=429;VF.call(this)};UF.TooManyRequestsError=WUc;Qw(WUc,VF);var XUc=function(a,b){this.code=415;this.name="ContentTypeError";this.message=a||this.name+" for path "+b;VF.call(this)};Pw("awesomecharts.utils.errors.ContentTypeError",XUc);UF.ContentTypeError=XUc;Qw(XUc,VF);var YUc=function(a){this.code=200;this.name="NoDataError";this.message=a||"Query response did not contain any data.";VF.call(this)};
Pw("awesomecharts.utils.errors.NoDataError",YUc);UF.NoDataError=YUc;Qw(YUc,VF);var ZUc=function(a,b){this.status=b;this.code=403;this.name="UnauthorizedError";this.message=a||"You do not have permissions for this request.";VF.call(this)};Pw("awesomecharts.utils.errors.UnauthorizedError",ZUc);UF.UnauthorizedError=ZUc;Qw(ZUc,VF);var $Uc=function(a,b){this.code=404;this.name="NotFoundError";this.message=a||"One or more resources could not be found.";this.status=b;VF.call(this)};
Pw("awesomecharts.utils.errors.NotFoundError",$Uc);UF.NotFoundError=$Uc;Qw($Uc,VF);var aVc=function(a,b){this.status=b||null;this.code=400;this.name="InvalidRequestError";this.message=a||"Request was invalid.";VF.call(this)};Pw("awesomecharts.utils.errors.InvalidRequestError",aVc);UF.InvalidRequestError=aVc;Qw(aVc,VF);var bVc=function(a){this.message=a||"Request timed out";this.code=504;this.name="TimeoutError";VF.call(this)};Pw("awesomecharts.utils.errors.TimeoutError",bVc);UF.TimeoutError=bVc;
Qw(bVc,VF);var cVc=function(a){this.code=499;this.name="FetchStrategyError";this.message=a||"Encountered error executing fetch strategy.";VF.call(this)};Pw("awesomecharts.utils.errors.FetchStrategyError",cVc);UF.FetchStrategyError=cVc;Qw(cVc,VF);var dVc=function(a){this.code=-1;this.name="CustomError";this.message=a||"Unknown error.";VF.call(this)};Pw("awesomecharts.utils.errors.CustomError",dVc);UF.CustomError=dVc;Qw(dVc,VF);var eVc,fVc=-1;
if(UF)if(Array.isArray(UF))for(eVc=UF.length;++fVc<eVc;)new UF[fVc];else{var gVc=Object.keys(UF),hVc;for(eVc=gVc.length;++fVc<eVc;)hVc=gVc[fVc],new UF[hVc]}var iVc=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(iVc,Error);Pw("awesomecharts.utils.errors.ValidationError",iVc);var jVc=function(){};Pw("awesomecharts.interfaces.LabelFormatterInterface",jVc);jVc.prototype.format=function(){};var kVc=/(["'])(?:(?=(\\?))\2.)*?\1/,lVc=/\$\{\s*\w[^\(\}]*?(?:\(\))?\s*}/,mVc=/^\w[\w\.]*?(?:\(\))$/,nVc=/\\([\\"])/g,oVc=/\\([\\'])/g,pVc=new Map([["metric.labels.",["metric","labels"]],["resource.labels.",["resource","labels"]],["metadata.system_labels.",["metadata","system_labels"]],["metadata.user_labels.",["metadata","user_labels"]]]),WF=function(){},Ck=function(a){this.quoteType_=a[0];this.quotedValue_=a;this.unquotedValue_=a.slice(1,a.length-1).replace(this.quoteType_==='"'?nVc:oVc,"$1")};
Y(Ck,WF);Ck.prototype.toString=function(){return this.quotedValue_};Ck.prototype.value=function(){return this.unquotedValue_};
var XF=function(a){this.identifier_=a.slice(2,a.length-1).trim();if(this.isFunction_=!!this.identifier_.match(mVc))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(XF,WF);XF.prototype.toString=function(){var a=this.identifier_;this.isFunction_&&(a+="()");return a};XF.prototype.value=function(){return this.identifier_};XF.prototype.getParts_=function(a){for(var b=l(pVc.entries()),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(a.startsWith(c))return a=a.substring(c.length),[].concat(q(d),[a])}var e;return(e=a.split("."))!=null?e:[]};var qVc=function(){};qVc.prototype.format=function(){};
var Bl=function(a){this.originalString_=a;this.parsed=this.parse_()};Y(Bl,qVc);var rVc=function(a,b){b=a.parseQuoted(b);b=b.map(function(c){return c instanceof WF?c:a.parseToken_(lVc,XF,c)});return TUc(b)};Bl.prototype.parse_=function(){return this.parsed?this.parsed:rVc(this,this.originalString)};
Bl.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};Bl.prototype.parseQuoted=function(a){return this.parseToken_(kVc,Ck,a)};
Bl.prototype.format=function(a,b){for(var c=null,d=null,e=[],f=this.parsed.map(function(m,r){if(m instanceof Ck)var w=c instanceof XF&&d===""?"":m.value();else if(m instanceof XF){w=a;if(b&&m.isFunction_&&m.identifierParts_.length===1){var x=m.identifierParts_[0];(w=b[x])||(w=a[x])}else{x=l(m.identifierParts_);for(var D=x.next();!D.done&&(w=w[D.value],w);D=x.next());}w=m.isFunction_?w&&typeof w==="function"?w(a):"#ERR":w===void 0||w===null?null:w;if(w===void 0||w===null)w="";c instanceof Ck&&w===
""&&(e.push(r-1),w="")}else w=m;c=m;return d=w}),g=l(e),k=g.next();!k.done;k=g.next())f[k.value]="";f=f.join("");return f.trim()===""?"":f};da.Object.defineProperties(Bl.prototype,{originalString:{configurable:!0,enumerable:!0,get:function(){return this.originalString_}}});var sVc=/\s?<=|>=|!=|=|<|>\s?/,tVc=/\sAND\s|\sOR\s/,uVc=/^\sAND\s$/,vVc=/(\sAND\s)$/,wVc=/^\sOR\s$/,xVc=/(\sOR\s)$/,yVc=/^(.*?)(\sAND\s|\sOR\s|\s)?(\S+)$/,zVc=/^(\w[\w\.]*?\()(.*)(\))$/,AVc=/(select_.*?)(\(.+\)+)/,YF=function(a){this.value_=a};Y(YF,WF);YF.prototype.toString=function(){return String(this.value_)};YF.prototype.value=function(){return this.value_};
YF.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 ZF=function(a){this.value_="";this.subtokens_=[a]};Y(ZF,YF);h=ZF.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 Ck?a.toString():a}).join("")};ZF.prototype.toString=ZF.prototype.toString;ZF.prototype.prepend=ZF.prototype.prepend;ZF.prototype.append=ZF.prototype.append;ZF.prototype.subtoken=ZF.prototype.subtoken;ZF.prototype.numSubtokens=ZF.prototype.numSubtokens;var $F=function(){YF.apply(this,arguments)};Y($F,YF);var Dk=function(){ZF.apply(this,arguments)};Y(Dk,ZF);
var Ek=function(a){if(a instanceof Ck)ZF.call(this,a);else{var b=a.match(zVc);b?(ZF.call(this,b[1]),b[2].length>0&&this.append(b[2]),this.append(b[3])):ZF.call(this,a)}};Y(Ek,ZF);var aG=function(){YF.apply(this,arguments)};Y(aG,YF);var bG=function(){aG.apply(this,arguments)};Y(bG,aG);var BVc=function(){aG.apply(this,arguments)};Y(BVc,aG);
var CVc=[{token:Dk},{token:$F},{token:Ek,canBeLast:!0},{token:aG}],Fk=function(a){this.originalString=a;this.parsed=this.parse_();this.validate()},BAa=function(a){return a.parsed?a.parsed.map(function(b){return xAa(b)}):void 0};
Fk.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 Ck){c=yVc.exec(c);var d=l([c&&c[1]?c[1]:"",c&&c[2]?c[2]:"",c&&c[3]?c[3]:""]);c=d.next().value;var e=d.next().value;d=d.next().value;c.length&&b.push(c);e.length&&(uVc.test(e)||/^\s*$/.test(e)?b.push(new bG(e)):wVc.test(e)?b.push(new BVc(e)):b.push(e));
c=new Dk(d);c.append(a[0]);b.push(c);a.shift()}else b.push(c)}a=b}a=this.parseExpressions(a);b=a=TUc(a);a=[];e=null;for(c=0;c<b.length;c++)if(d=b[c],d instanceof Ck)!e||e instanceof aG?(e=new Dk(d),a.push(e)):e instanceof $F?(e=new Ek(d),a.push(e)):e instanceof ZF&&e.append(d);else if(d instanceof Dk)if(e instanceof Dk)e.append(d.toString());else if(e instanceof Ek){d=d.toString();var f=d.match(/^\s+/);f?(e=f[0],a.push(new bG(e)),e=new Dk(d.slice(e.length)),a.push(e)):DVc(this)}else a.push(d),e=d;
else d instanceof Ek?e instanceof Ek?e.append(d.toString()):e instanceof Dk?DVc(this):(a.push(d),e=d):(a.push(d),e=d);return a};Fk.prototype.validate=function(){for(var a=0,b=0;b<this.parsed.length;b++){var c=CVc[a],d=this.parsed[b+1];this.parsed[b]instanceof c.token&&(d||c.canBeLast)||DVc(this);a++;a===CVc.length&&(a=0)}};
Fk.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 EVc=function(a,b){var c=[],d=tVc.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 Ek(f.input.slice(e,f.index))),uVc.test(f[0])?c.push(new bG(f[0])):wVc.test(f[0])&&c.push(new BVc(f[0])),e=d.lastIndex,e!==b.length&&c.push(new Dk(b.slice(e)))):(d=b.split(" "),c.push(new Ek(d.shift())),d.length>0&&(d[d.length-1]!==""?(b=new Dk(d.pop()),d=d.join(" "),d.match(/[^ ]/)&&DVc(a),c.push(new bG(d||" ")),c.push(b)):c.push(new bG(" "))));
return c};h=Fk.prototype;h.parseTss=function(a){var b=a.match(AVc);if(!b)return[a];var c=new Dk(b[1]),d=new Ek(b[2].slice(1,b[2].length-1));d.prepend("(");d.append(")");a=a.replace(AVc,"");b.index>0&&(a=" "+a);return[c,new $F(""),d,a]};h.parseQuoted=function(a){var b=this;a=a.map(function(c){return c instanceof WF?c:b.parseToken_(kVc,Ck,c)});return TUc(a)};
h.parseExpressions=function(a){var b=this;a=a.map(function(c){if(!(c instanceof WF)){var d=c;c=[];var e=sVc.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=EVc(b,k),g.length>1?c.push(g):c.push(new Dk(k))):c.push(EVc(b,k))}c.push(new $F(f[0]));g=e.lastIndex}g!==d.length&&(d=d.slice(g),g===0?c.push(EVc(b,d)):(e=vVc.exec(d),f=xVc.exec(d),e?(c.push(new Ek(d.substr(0,d.length-e[1].length))),
c.push(new bG(e[1]))):f?(c.push(new Ek(d.substr(0,d.length-f[1].length))),c.push(new BVc(f[1]))):c.push(new Ek(d))))}return c});return TUc(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 bG(a)):this.parsed.push(new BVc(a)));var e=b+" "+c+" "+d;a=(e.toString().match(/\(/g)||[]).length;e=(e.toString().match(/\)/g)||[]).length;this.parsed.push(new Dk(b));a<e&&this.parsed[this.parsed.length-1].prepend("(");this.parsed.push(new $F(c));this.parsed.push(new Ek(d));a>e&&this.parsed[this.parsed.length-1].append(")");this.validate()};
h.removeLhsExpression=function(a){var b=new Dk(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 ZF);)d++;this.parsed[d].prepend("(")}else{for(d=a-1;d>=0&&!(this.parsed[d]instanceof ZF);)d--;this.parsed[d].append(")")}a>0?c.unshift(this.parsed.splice(a-1,1)[0]):c.unshift(new aG(""));
return c};var DVc=function(a){throw new iVc("Invalid metric filter. Can not parse '"+a.originalString+"'.");};Fk.prototype.removeLhsExpression=Fk.prototype.removeLhsExpression;Fk.prototype.addExpression=Fk.prototype.addExpression;Fk.prototype.hasToken=Fk.prototype.hasToken;Fk.prototype.toString=Fk.prototype.toString;Fk.prototype.parseExpressions=Fk.prototype.parseExpressions;Fk.prototype.parseQuoted=Fk.prototype.parseQuoted;Fk.prototype.parseTss=Fk.prototype.parseTss;var CAa={"=":"eq","<":"lt",">":"gt","<=":"lte",">=":"gte","=~":"rgx"};var yAa=jk(yk,function(a){return a.timeSeries}),FVc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(yAa,function(c){return c.entities[b]}))}});var EAa=jk(yk,function(a){return a.xAxisPin}),GVc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(EAa,function(c){return c.entities[b]}))}}),HVc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(EAa,function(c){var d,e;return(e=(d=c.entities[b])==null?void 0:d.xPos)!=null?e:void 0}))}}),IVc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(EAa,function(c){var d;return(d=c.entities[b])==null?void 0:d.locked}))}}),JVc=new rk({getKey:xk,
getSelector:function(a){var b=a.chartGroupId;return ee(jk(EAa,function(c){var d;return(d=c.entities[b])==null?void 0:d.trackingNow}))}});var KVc=0,cG=function(a,b){RF.call(this,b);var c=this;this.el=a;this.destroyed=new sf;this.logger=null;this.objectiveChartId="ac-composable-chart-"+KVc++;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:SF(this,pAa),resize:SF(this,Bk),xAxisPin:SF(this,FAa),timeSeries:SF(this,zAa)};le([this.scopeObservable,this.stateObservable]).pipe(Bf(this.destroyed)).subscribe(function(d){var e=
l(d);d=e.next().value;e=e.next().value;c.context.scope=d;c.context.state=e.currentValue})};Y(cG,RF);h=cG.prototype;
h.setup=function(a){var b=this;a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables);RF.prototype.setup.call(this,{stateSelectionObservables:a});this.scopeObservable.pipe(zf(null),vf(),A(pk),Ef(this.stateObservable),Bf(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)});this.setupStateChangeHandler(a.resize,function(c,d){return b.onResizeChange(qk(c,function(e){return e.resize}),d)},"resize");this.setupStateChangeHandler(a.xAxisPin,
function(c,d){return b.onXAxisPinChange(qk(c,function(e){return e.xAxisPin}),d)},"xAxisPin");this.setupStateChangeHandler(a.timeSeries,function(c,d){return b.onTimeSeriesChange(qk(c,function(e){return e.timeSeries}),d)},"timeSeries");this.setupStateChangeHandler(a.focus,function(c,d){return b.onFocusChange(qk(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(GAa(this.scopeObservable,this.stateObservable),Bf(this.destroyed)).subscribe(function(f){var g=l(f);f=g.next().value;g=g.next().value;var k={scope:f,state:g.currentValue},m={previousValue:e,currentValue:g.currentValue};e=g.currentValue;d.scheduleStateChangeHandler({changes:m,context:k,componentHandlerUsingContext:b,mergeKey:f.chartId+"-"+c,scope:f})})}};
h.onScopeChange=function(a){var b=a.previousValue,c=a.currentValue,d=[];c&&(b==null?void 0:b.chartId)!==(c==null?void 0:c.chartId)&&(d.push(PF({chartGroupId:c.chartGroupId,previousChartId:b==null?void 0:b.chartId,currentChartId:c.chartId})),LVc(this.selectorService,a));dG(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){IAa(a)?a.viewHandlerUsingContext(a.changes,a.context):KAa(a)&&(a=a.componentHandlerUsingContext(a.changes,a.context))&&a.length&&this.store.dispatch(nk({actions:a}))};h.scheduleChangeHandler=function(a){var b=a.changes;HAa(a)&&a.viewHandler(b);JAa(a)&&(a=a.componentHandler(b))&&a.length&&this.store.dispatch(nk({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 MVc=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))},NVc=function(a,b){a=a.eventHandlerRegistry.get(b);return a?(a=a.get("mousemove"))?a:new Set:new Set},eG=function(a,b,c,d){var e=NVc(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;NVc(a,b).delete(g)})},dG=function(a,b){a.changeDetectionActionsBatch=a.changeDetectionActionsBatch.concat(b)},
OVc=function(a){if(a.changeDetectionActionsBatch.length){var b=a.changeDetectionActionsBatch;a.changeDetectionActionsBatch=[];a.store.dispatch(nk({actions:b}))}};cG.prototype.ngOnInit=function(){var a=this;this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId});dG(this,[NF({chartId:this.chartId,chartGroupId:this.chartGroupId})]);SF(this,qAa).pipe(Bf(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
cG.prototype.ngOnChanges=function(a){("chartId"in a||"chartGroupId"in a)&&this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId})};cG.prototype.ngAfterViewChecked=function(){OVc(this)};cG.prototype.ngOnDestroy=function(){var a=OF({chartId:this.chartId,chartGroupId:this.chartGroupId});dG(this,[a]);OVc(this);this.destroyed.next();this.destroyed.complete()};cG.\u0275fac=function(){Ze()};
cG.\u0275dir=df({type:cG,inputs:{chartGroupId:"chartGroupId",chartId:"chartId",title:"title"},features:[Gf,xx]});var Ok=function(a){if(typeof a=="number"){var b=new SAa;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(":",tB(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=PVc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new SAa;b.timeZoneId_=
a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},PVc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(tB(Math.floor(a/60)%100,2),":",tB(a%60,2));return b.join("")},QVc=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]},$k=function(a,b){a=a.standardOffset_-
QVc(a,b);return a===-1440?0:a};var UAa={};var VAa={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 WAa=(new Date).getTimezoneOffset();var RVc={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},fG=RVc;fG=RVc;var SVc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),TVc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,UVc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,VVc=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},WVc=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},gG=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=gG.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 gG(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 Am=function(a,b,c){typeof a==="number"?(this.date=XVc(a,b||0,c||1),YVc(this,c||1)):Oa(a)?(this.date=XVc(a.getFullYear(),a.getMonth(),a.getDate()),YVc(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),YVc(this,a))},XVc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};h=Am.prototype;h.firstDayOfWeek_=fG.FIRSTDAYOFWEEK;
h.firstWeekCutOffDay_=fG.FIRSTWEEKCUTOFFDAY;h.clone=function(){var a=new Am(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 ZVc=function(a){return VVc(a.getFullYear(),a.getMonth())};h=Am.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(VVc(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()),YVc(this,a.getDate()))};
h.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+tB(Math.abs(b),c?6:4),tB(this.getMonth()+1,2),tB(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 YVc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};Am.prototype.valueOf=function(){return this.date.valueOf()};
var Cm=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())};Qw(Cm,Am);h=Cm.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){Am.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=Am.prototype.toIsoString.call(this,a);return a?b+"T"+tB(this.getHours(),2)+":"+tB(this.getMinutes(),2)+":"+tB(this.getSeconds(),2):b+"T"+tB(this.getHours(),2)+tB(this.getMinutes(),2)+tB(this.getSeconds(),2)};h.equals=function(a){return this.getTime()==a.getTime()};h.toString=function(){return this.toIsoString()};h.clone=function(){var a=new Cm(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var wl=function(a){this.patternParts_=[];this.dateTimeSymbols_=fG;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},$Vc=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],aWc=function(a){return a.getHours?a.getHours():0};
wl.prototype.applyPattern_=function(a){for(bWc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<$Vc.length;++c){var d=a.match($Vc[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("mc`"+a);}};
wl.prototype.format=function(a,b){if(!a)throw Error("nc");var c=b?(a.getTimezoneOffset()-$k(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(cWc(this,g,a,d,e,b)):c.push(g)}return c.join("")};
wl.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 hG=function(a,b){return O8a(b,a.dateTimeSymbols_)},bWc=!1,O8a=function(a,b){a=String(a);b=b||fG;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("")},eWc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return hG(a,dWc(c,b))},dWc=function(a,b){b==2&&(a%=100);a<0&&b++;return tB(a,b)},iG=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("oc");},fWc=function(a,
b){iG(b);b=aWc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},cWc=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 eWc(a,g,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=WVc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),g==2&&(c%=100),hG(a,dWc(c,g));case "u":return eWc(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=hG(a,tB(c+1,g))}return g;case "k":return iG(e),c=aWc(e)||24,hG(a,tB(c,g));case "S":return hG(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?tB(0,g-3):""));case "E":return c=d.getDay(),g>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return fWc(a,e);case "b":return fWc(a,e);case "B":return fWc(a,
e);case "h":return iG(e),c=aWc(e)%12||12,hG(a,tB(c,g));case "K":return iG(e),c=aWc(e)%12,hG(a,tB(c,g));case "H":return iG(e),c=aWc(e),hG(a,tB(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=hG(a,tB(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=hG(a,tB(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 hG(a,tB(d.getDate(),g));case "m":return iG(e),hG(a,tB(e.getMinutes?e.getMinutes():0,g));case "s":return iG(e),hG(a,tB(e.getSeconds(),g));case "v":return(f||Ok(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Ok(c.getTimezoneOffset()),
g<=2?a.timeZoneId_:QVc(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=WVc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),hG(a,tB(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
g));case "z":return a=f||Ok(c.getTimezoneOffset()),g<4?a.tzNames_[QVc(a,c)>0?2:0]:a.tzNames_[QVc(a,c)>0?3:1];case "Z":return d=f||Ok(c.getTimezoneOffset()),g<4?(g=-$k(d,c),a=[g<0?"-":"+"],g=Math.abs(g),a.push(tB(Math.floor(g/60)%100,2),tB(g%60,2)),g=a.join("")):g=hG(a,PVc($k(d,c))),g;default:return""}};var gWc={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"}}},hWc=gWc;hWc=gWc;var iWc={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 jWc={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"},Vk=jWc;Vk=jWc;var jG=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_=Vk.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)},sBa=function(a,b){if(b>308)throw Error("rc`"+b);a.maximumFractionDigits_=b},uBa=function(a,b){if(a.minimumFractionDigits_>0&&b>=0)throw Error("qc");a.significantDigits_=b};
jG.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=kWc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,g=0,k=-1,m=a.length,r=!0;b[0]<m&&r;b[0]++)switch(a.charAt(b[0])){case "#":f>0?g++:e++;k>=0&&d<0&&k++;break;case "0":if(g>0)throw Error("yc`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("zc`"+a);d=e+f+g;break;case "E":if(this.useExponentialNotation_)throw Error("Ac`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<m&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<m&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Bc`"+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("Cc`"+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_=kWc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=kWc(this,a,b),b[0]+=c,
this.negativeSuffix_=kWc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
jG.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(Vk.DECIMAL_PATTERN);break;case 2:this.applyPattern_(Vk.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(Vk.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=Vk.CURRENCY_PATTERN;var c=["0"],d=iWc[Vk.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:lWc(this,1);break;case 6:lWc(this,2);break;default:throw Error("sc");
}};var lWc=function(a,b){a.compactStyle_=b;a.applyPattern_(Vk.DECIMAL_PATTERN);a.minimumFractionDigits_=0;sBa(a,2);uBa(a,2)};
jG.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("tc");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(Vk.INFINITY,b[0])==b[0]){b[0]+=Vk.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,g=!1,k=!1,m=-1,r=1,w=Vk.DECIMAL_SEP,x=Vk.GROUP_SEP,D=Vk.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("uc");x=x.replace(/\u202f/g,"\u00a0");for(var H="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),O=mWc(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&&mWc(e.charAt(b[0]+1))>=0)){if(f||g)break}else if(J==D.charAt(0)){if(g)break;H+="E";g=!0;m=b[0]}else if(J=="+"||J=="-"){if(k&&m!=b[0]-1)break;H+=
J}else if(this.multiplier_==1&&J==Vk.PERCENT.charAt(0)){if(r!=1)break;r=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&J==Vk.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};
jG.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("vc");if(isNaN(a))return Vk.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=nWc;else{c=Math.abs(c);var d=oWc(this,c<=1?0:pWc(c)).divisorBase;c=oWc(this,d+pWc(qWc(this,kG(c,-d)).intValue))}a=kG(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)rWc(this,e,this.minimumIntegerDigits_,b),sWc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=kG(e,-f);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=f%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),e=kG(e,g),f-=g,g=1):this.minimumIntegerDigits_<1?(f++,e=kG(e,-1)):(f-=this.minimumIntegerDigits_-1,e=kG(e,this.minimumIntegerDigits_-
1));rWc(this,e,g,b);sWc(this,f,b)}}else rWc(this,a,this.minimumIntegerDigits_,b);else b.push(Vk.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 qWc=function(a,b){var c=kG(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=tWc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(kG(c,-a.maximumFractionDigits_));c=Math.floor(c-kG(d,a.maximumFractionDigits_));if(c<0||c>=kG(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},rWc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("vc");d||(d=[]);b=qWc(a,b);var e=b.intValue,
f=b.fracValue,g=e==0?0:pWc(e)+1,k=a.minimumFractionDigits_>0||f>0||a.showTrailingZeros_&&g<a.significantDigits_;b=a.minimumFractionDigits_;k&&(b=a.showTrailingZeros_&&a.significantDigits_>0?a.significantDigits_-g:a.minimumFractionDigits_);var m="";for(g=e;g>1E20;)m="0"+m,g=Math.round(kG(g,-1));m=g+m;var r=Vk.DECIMAL_SEP;g=Vk.ZERO_DIGIT.codePointAt(0);var w=m.length,x=0;if(e>0||c>0){for(e=w;e<c;e++)d.push(String.fromCodePoint(g));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)x+=
a.groupingArray_[c];c=w-x;if(c>0){e=a.groupingArray_;x=w=0;for(var D,H=Vk.GROUP_SEP,J=m.length,O=0;O<J;O++)if(d.push(String.fromCodePoint(g+Number(m.charAt(O)))),J-O>1)if(D=e[x],O<c){var R=c-O;(D===1||D>0&&R%D===1)&&d.push(H)}else x<e.length&&(O===c?x+=1:D===O-c-w+1&&(d.push(H),w+=D,x+=1))}else{c=m;m=a.groupingArray_;e=Vk.GROUP_SEP;D=c.length;H=[];for(w=m.length-1;w>=0&&D>0;w--){x=m[w];for(J=0;J<x&&D-J-1>=0;J++)H.push(String.fromCodePoint(g+Number(c.charAt(D-J-1))));D-=x;D>0&&H.push(e)}d.push.apply(d,
H.reverse())}}else k||d.push(String.fromCodePoint(g));(a.decimalSeparatorAlwaysShown_||k)&&d.push(r);f=String(f);k=f.split("e+");k.length==2&&(f=String(tWc(parseFloat(k[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=jIc("0",parseInt(k[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+jIc("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))))},sWc=function(a,b,c){c.push(Vk.EXP_SYMBOL);
b<0?(b=-b,c.push(Vk.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(Vk.PLUS_SIGN);b=""+b;for(var d=Vk.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-uWc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},mWc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=Vk.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},uWc="0".codePointAt(0),kWc=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+=Vk.DEF_CURRENCY_CODE):(g=Vk.DEF_CURRENCY_CODE,d+=g in iWc?iWc[g][1]:g);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("wc");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("xc");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=Vk.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&
a.multiplier_!=1)throw Error("wc");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("xc");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=Vk.PERMILL;break;default:d+=g}}return d},nWc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},oWc=function(a,b){a=a.compactStyle_==1?hWc.COMPACT_DECIMAL_SHORT_PATTERN:hWc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=hWc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return nWc;b=Math.min(14,b);var c=a[kG(1,b)];for(--b;!c&&b>=
3;)c=a[kG(1,b)],b--;if(!c)return nWc;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]}:nWc:nWc},pWc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},kG=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))},vWc=function(a,b){return a&&isFinite(a)?kG(Math.round(kG(a,b)),-b):a},tWc=function(a,b,c){if(!a)return a;b=b-pWc(a)-1;return b<-c?vWc(a,-c):vWc(a,b)};var $Ba=Math.sqrt(50),aCa=Math.sqrt(10),bCa=Math.sqrt(2),cBa={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}},wWc={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"]},gBa=Object.keys(wWc).reduce(function(a,b){for(var c=l(wWc[b]),d=c.next();!d.done;d=c.next())a[d.value]=b;return a},{}),dBa={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}},lG={},iBa=(lG["1,1"]="1kMGTPEZY".split(""),lG["1,2"]="By kBy MBy GBy TBy PBy EBy ZBy YBy".split(" "),lG["2,2"]="By KiBy MiBy GiBy TiBy PiBy EiBy ZiBy YiBy".split(" "),lG["1,3"]="\u00a2 $ k$ M$ G$ T$ P$ E$ Z$ Y$".split(" "),
lG["1,4"]=["%","ratio"],lG["1,5"]="ys zs as fs ps ns us ms s min h d w".split(" "),lG),xWc=Object.keys(dBa).map(ZAa).join("|"),yWc=Object.keys(cBa).map(ZAa).join("|"),bBa=new RegExp("^("+xWc+")?("+yWc+")?$"),FBa={neverScaleRates:!0,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)},tBa=new jG(1),vBa=new jG(2);uBa(vBa,3);var wBa=new jG("#,##0.00"),CBa=new wl(8);var zWc={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"},mG=zWc;mG=zWc;var Zk={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},RBa=Object.values(Zk),nG={},UBa=(nG[Zk.WEEKLY]=new wl(2),nG[Zk.DAILY]=new wl(mG.MONTH_DAY_ABBR),nG[Zk.QUARTER_DAY]=new wl(7),nG[Zk.TWO_HOURLY]=new wl(7),nG[Zk.HOURLY]=new wl(7),nG[Zk.HALF_HOURLY]=new wl(7),nG[Zk.TEN_MINUTES]=new wl(7),nG[Zk.FIVE_MINUTES]=new wl(7),
nG[Zk.ONE_MINUTE]=new wl(7),nG[Zk.THIRTY_SECONDS]=new wl(6),nG[Zk.TEN_SECONDS]=new wl(6),nG[Zk.ONE_SECOND]=new wl(6),nG[Zk.HUNDRED_MILLIS]=new wl("HH:mm:ss.SSS"),nG[Zk.TEN_MILLIS]=new wl("HH:mm:ss.SSS"),nG[Zk.ONE_MILLI]=new wl("HH:mm:ss.SSS"),nG);new wl(2);new wl(mG.MONTH_DAY_ABBR);new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm:ss");new wl("HH:mm:ss");new wl("HH:mm:ss");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");
var oG={},TBa=(oG[Zk.DAILY]=new wl(mG.YEAR_FULL),oG[Zk.QUARTER_DAY]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.TWO_HOURLY]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.HOURLY]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.HALF_HOURLY]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.TEN_MINUTES]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.FIVE_MINUTES]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.ONE_MINUTE]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.THIRTY_SECONDS]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.TEN_SECONDS]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.ONE_SECOND]=new wl(mG.MONTH_DAY_ABBR),oG[Zk.HUNDRED_MILLIS]=
new wl("HH:mm:ss.SSS"),oG[Zk.TEN_MILLIS]=new wl("HH:mm:ss.SSS"),oG[Zk.ONE_MILLI]=new wl("HH:mm:ss.SSS"),oG);new wl("yyyy-MM-dd");new wl("MM-dd");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm");new wl("HH:mm:ss");new wl("HH:mm:ss");new wl("HH:mm:ss");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");new wl(mG.YEAR_FULL);new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");
new wl("MM-dd");new wl("MM-dd");new wl("MM-dd");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");new wl("HH:mm:ss.SSS");var AWc={format:Wk,ignoreFloatImprecision:!1};var pG=function(){this.valueStrategyRegistry=new Map},BWc=function(a,b,c){var d=a.valueStrategyRegistry.get(b.chartId);d?d.next(c):(d=new Wj(c),a.valueStrategyRegistry.set(b.chartId,d))};pG.prototype.getValueStrategy=function(a){var b=this.valueStrategyRegistry.get(a.chartId);b||(b=new Wj(AWc),this.valueStrategyRegistry.set(a.chartId,b));return b.pipe(pf())};var CWc=function(a,b,c){var d=a.valueStrategyRegistry.get(b);d&&(d.pipe(nf(1)).subscribe(function(e){BWc(a,{chartId:c},e)}),a.valueStrategyRegistry.delete(b))};
pG.\u0275fac=function(a){return new (a||pG)};pG.\u0275prov=Fc({token:pG,factory:pG.\u0275fac,providedIn:"root"});var DWc=new ed("TOOLTIP_POSITION"),EWc=new ed("TOOLTIP_VISIBLE_ON_OVERLAY_HOVER"),FWc=new ed("TOOLTIP_MOCK_REQUEST_ANIMATION_FRAME"),GWc=new ed("TOOLTIP_RENDER_DEBOUNCE_MS");var HWc=[{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"}],IWc=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"]]),JWc=["left","right"],KWc=["chart_group","bottom","ops_group"],LWc=new ed("AC_USE_MINIMUM_CANVASES");var hCa=Math.log10(1E12),iCa=Math.log10(1);var qG=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},MWc=function(a,b){var c=a.factoryRegistry.get(b);c||(c={selectors:new Map,selections:new Map},a.factoryRegistry.set(b,c));return c};
qG.prototype.getSelector=function(a,b){var c=this,d=MWc(this,a),e=a.getKey(b),f=d.selectors.get(e);f||(f=ria(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(m){k.next(m)});return k}).pipe(xf({refCount:!0,bufferSize:1})),d.selectors.set(e,f));return f};
qG.prototype.getSelection=function(a,b){var c=this,d=MWc(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(kk(g))})),d.selections.set(e,f));return f};
var NWc=function(a,b,c){b=b.chartId+","+b.yAxisId;var d=a.yAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Wj(c),a.yAxisTickStrategyRegistry.set(b,d))},OWc=function(a,b){b=b.chartId+","+b.yAxisId;var c=a.yAxisTickStrategyRegistry.get(b);c||(c=new Wj(jCa),a.yAxisTickStrategyRegistry.set(b,c));return c.pipe(pf())},PWc=function(a,b,c){b=Nk(b.chartGroupId,b.chartId,b.xAxisId);var d=a.xAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Wj(c),a.xAxisTickStrategyRegistry.set(b,d))},QWc=function(a,b){b=
Nk(b.chartGroupId,b.chartId,b.xAxisId);var c=a.xAxisTickStrategyRegistry.get(b);c||(c=new Wj(VBa),a.xAxisTickStrategyRegistry.set(b,c));return c.pipe(pf())},RWc=function(a,b,c,d){b=Nk(b.chartGroupId,b.chartId,b.xAxisId);var e=a.categoricalAxisTickStrategyRegistry.get(b);c={strategy:c,options:d};e?e.next(c):(e=new Wj(c),a.categoricalAxisTickStrategyRegistry.set(b,e))},SWc=function(a,b){b=Nk(b.chartGroupId,b.chartId,b.xAxisId);var c=a.categoricalAxisTickStrategyRegistry.get(b);c||(c=new Wj({strategy:XBa}),
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 Hba((f=d.options.customOrder)!=null?f:[],(g=e.options.customOrder)!=null?g:[])}))};qG.prototype.getValueStrategy=function(a){return this.formatterService.getValueStrategy(a)};
var LVc=function(a,b){var c=b.previousValue,d=b.currentValue;if((c==null?0:c.chartGroupId)&&(c==null?0:c.chartId)&&(d==null?0:d.chartGroupId)&&(d==null?0:d.chartId)&&(c.chartGroupId!==d.chartGroupId||c.chartId!==d.chartId)){b=l(KWc);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(Nk(c.chartGroupId,c.chartId,f.xAxisId$jscomp$3)))&&e.pipe(nf(1)).subscribe(function(g){return function(k){PWc(a,{chartGroupId:d.chartGroupId,
chartId:d.chartId,xAxisId:g.xAxisId$jscomp$3},k)}}(f));b=l(JWc);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){NWc(a,{chartId:d.chartId,yAxisId:g.yAxisId$jscomp$3},k)}}(f));CWc(a.formatterService,c.chartId,d.chartId)}};qG.\u0275fac=function(a){return new (a||qG)(Zc(KF),Zc(pG))};qG.\u0275prov=Fc({token:qG,factory:qG.\u0275fac,providedIn:"root"});var rG={chartGroupId:"",axis:0,panning:!1,brushing:!1,xPos:null,xPosStart:null,yAxes:[],chartId:null};var TWc=fk("[AC] Set project id for chart",gk()),UWc=fk("[AC] Set y axis orientation for chart",gk());var VWc=fk("[AC] Update chart dimensions",gk()),sG=fk("[AC] Set chart margin requirement",gk()),WWc=fk("[AC] Remove chart margin requirements",gk()),XWc=fk("[AC] Set margins strategy to use max chart group margins",gk());var YWc=fk("[AC] Set Y Axis requirement",gk()),ZWc=fk("[AC] Set Y Axis label",gk()),$Wc=fk("[AC] Remove Y Axis requirements by priority",gk()),aXc=fk("[AC] Remove Y Axis requirement by id",gk()),bXc=fk("[AC] Set for Y Axis",gk());var cXc,dXc=cXc=cXc=kCa;var eXc=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"},fXc=eXc;fXc=eXc;var cm=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=Vk;var b=hWc;if(gXc!==a||hXc!==b)gXc=a,hXc=b,iXc=new jG(1);this.numberFormatter_=iXc},gXc=null,hXc=null,iXc=null,jXc=RegExp("'([{}#].*?)'","g"),kXc=RegExp("''","g");cm.prototype.format=function(a){return this.format_(a,!1)};
cm.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=lXc(this,this.pattern_);this.parsedPattern_=mXc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=Ma(this.initialLiterals_);c=[];nXc(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 nXc=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var g=b[f].value;var k=a,m=e,r=c[g];r===void 0?m.push("Undefined parameter - "+g):(k.literals_.push(r),m.push(k.buildPlaceholder_(k.literals_)));break;case 2:g=b[f].value;k=a;m=c;r=d;var w=e,x=g.argumentIndex;m[x]===void 0?w.push("Undefined parameter - "+x):(x=g[m[x]],x===void 0&&(x=g.other),nXc(k,x,m,r,w));break;case 0:g=b[f].value;oXc(a,g,c,fXc,d,e);break;case 1:g=b[f].value,oXc(a,g,c,
dXc,d,e)}},oXc=function(a,b,c,d,e,f){var g=b.argumentIndex,k=b.argumentOffset,m=+c[g];isNaN(m)?f.push("Undefined or invalid parameter - "+g):(k=m-k,g=b[c[g]],g===void 0&&(d=d(Math.abs(k)),g=b[d],g===void 0&&(g=b.other)),b=[],nXc(a,g,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},lXc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(kXc,function(){c.push("'");return d(c)});return b=b.replace(jXc,function(e,f){c.push(f);return d(c)})},
pXc=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},qXc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,rXc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,sXc=/^\s*(\w+)\s*,\s*select\s*,/,mXc=function(a,b){var c=[];b=pXc(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(qXc.test(f)?0:rXc.test(f)?1:sXc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=tXc(a,b[d].value);break;case 0:e.type=0;e.value=uXc(a,b[d].value);break;case 1:e.type=1;e.value=vXc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},tXc=function(a,b){var c="";b=b.replace(sXc,function(k,m){c=m;return""});var d={};d.argumentIndex=c;b=pXc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=mXc(a,b[e].value));d[f.replace(/\s/g,"")]=g;e++}return d},uXc=function(a,b){var c="",d=0;b=b.replace(qXc,function(m,r,w){c=r;w&&(d=parseInt(w,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=pXc(b);for(var f=0;f<b.length;){var g=b[f].value;f++;var k=void 0;1==b[f].type&&(k=mXc(a,b[f].value));e[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},vXc=function(a,b){var c="";b=b.replace(rXc,function(k,m){c=m;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=pXc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=mXc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;e++}return d};cm.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var vCa={get scaleFactor(){return window.devicePixelRatio||2}};var sCa=/var\((--[\w\-]+)(?:\s*,\s*(.+?))?\)$/,tCa=/^#([0-9a-f]{1,8})$/i,rCa=document.createElement("div");rCa.style.display="none";var wXc=Gw(["pan-"]),tG=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("Fc");this.ctx=b;a.appendChild(this.canvas)};tG.prototype.detach=function(){this.isAttached()&&this.base.removeChild(this.canvas)};
tG.prototype.reattach=function(){this.isAttached()||this.base.appendChild(this.canvas)};tG.prototype.isAttached=function(){return this.base.contains(this.canvas)};var uG=function(a,b){a.drawListener=b},xXc=function(a){a.drawListener=function(){}},vG=function(a){a.panInstrumentationAdded||(xsa([new wsa(wXc[0].toLowerCase())],a.base,"pan-async-rendered",""),a.panInstrumentationAdded=!0)};tG.prototype.destroy=function(){this.canvas&&(this.canvas.height=0,this.canvas.width=0)};
tG.prototype.pan=function(a){this.ctx.save();var b=vCa.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 wG=function(a,b,c){a.lastDrawnDomain={min:b,max:c}},xG=function(a,b){a.fastResizeBufferMap.delete(b)};
tG.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"),kl(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",kl(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";kl(b,this.base,k,g);b=a.left*(1-d);var m=a.top*(1-f);g=g-b-a.right*(1-d);a=k-m-a.bottom*(1-f);e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,b|0,m|0,g|0,a|0)}};var yG=function(){tG.apply(this,arguments)};Y(yG,tG);
yG.prototype.draw=function(a){this.lastChanges=a;this.drawInternal(a)};yG.prototype.redraw=function(){this.lastChanges&&this.drawInternal(this.lastChanges)};var zG=function(){tG.apply(this,arguments)};Y(zG,tG);h=zG.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 yXc=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=fl(d,0,f))?{shift:d(a.lastDrawnDomain.min)-d(b),xAxisMin:b,xAxisMax:e,clip:{left:0,top:0,width:f,height:c}}:null},AG=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)},AXc=function(a,b){zG.call(this,a);var c=this;this.drawScheduler=new zXc(this.canvas,b,function(d){c.drawInternal(d)})};Y(AXc,zG);AXc.prototype.drawV1=function(a){this.drawScheduler.schedule(a)};
var zXc=function(a,b,c){var d=this;this.callback=c;this.isVisible=!1;this.contextForScheduledCallback=this.contextForWhenVisible=null;b.runOutsideAngular(function(){(new IntersectionObserver(function(e){var f=e[0];e=l(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.time>f.time&&(f=g);d.isVisible=f.isIntersecting;d.isVisible&&d.contextForWhenVisible!==null&&(d.schedule(d.contextForWhenVisible),d.contextForWhenVisible=null)},{rootMargin:"50% 0px 50% 0px"})).observe(a)})};
zXc.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 ol=jk(yk,function(a){return a.brush}),BXc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(ol,function(c){return c.entities[b]}))}}),CXc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(ol,function(c){var d;return(d=c.entities[b])==null?void 0:d.brushing}))}}),DXc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(ol,function(c){var d;return(d=c.entities[b])==null?void 0:d.panning}))}}),EXc=new rk({getKey:xk,getSelector:function(a){var b=
a.chartGroupId;return ee(jk(ol,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPosStart}))}}),FXc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(ol,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPos}))}}),GXc=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(ol,function(c){var d;return(d=c.entities[b])==null?void 0:d.axis}))}});var HXc=fk("[AC] Set Categorical Axis requirement",gk()),IXc=fk("[AC] Remove Categorical Axis requirement by id",gk()),JXc=fk("[AC] Set Categorical Axis gutter ratio",gk());var KXc=jk(yk,function(a){return a.categoricalAxis}),LXc=new rk({getKey:BCa,getSelector:function(a){return ee(jk(KXc,function(b){var c;return(c=b.entities[BCa(a)])==null?void 0:c.requirements}))}}),MXc=new rk({getKey:BCa,getSelector:function(a){return ee(jk(KXc,function(b){var c;return(c=b.entities[BCa(a)])==null?void 0:c.gutterRatio}))}}),NXc=new rk({getKey:CCa,getSelector:function(a,b){return le([SWc(b,a),b.getSelector(LXc,a)]).pipe(A(function(c){c=l(c);var d=c.next().value;var e=d.strategy;var f=
d.options;c=c.next().value;return ik(function(g){return hk(g,function(k,m){return k===m},ACa)})(c,function(g){if(g!==void 0&&g.length>0)return e(g,f!=null?f:{})})}))}}),OXc=new rk({getKey:CCa,getSelector:function(a,b){return le([b.getSelector(LXc,a),b.getSelector(NXc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return jk(c,d,function(e,f){if(e!==void 0&&f!==void 0)return Object.assign({},a,{requirements:e},f)})}))}});var PXc=fk("[AC] Set layer color map",gk());var QXc=jk(yk,function(a){return a.colorMap}),RXc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(QXc,function(c){return c.entities[b]}))}});var SXc=jk(yk,function(a){return a.colorScale}),TXc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(SXc,function(c){return c.entities[b]}))}});var UXc=fk("[AC] Set chart error for source",gk()),VXc=fk("[AC] Clear chart error for source",gk()),WXc=fk("[AC] Set non-blocking chart error for source",gk()),XXc=fk("[AC] Clear non-blocking chart error for source",gk());var YXc=jk(yk,function(a){return a.error}),ZXc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(YXc,function(c){return c.entities[b]}))}});var $Xc=fk("[AC] Set focus requirement",gk()),aYc=fk("[AC] Remove focus requirement",gk());var bYc=jk(yk,function(a){return a.lastInteraction}),cYc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(bYc,function(c){return c.entities[b]}))}});var dYc=fk("[AC] Set chart loading for source",gk()),eYc=fk("[AC] Clear chart loading for source",gk());var fYc=jk(yk,function(a){return a.loading}),gYc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(fYc,function(c){return c.entities[b]}))}});var hYc=jk(yk,function(a){return a.seriesSelection}),iYc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(hYc,function(c){return c.entities[b]}))}});var jYc=jk(yk,function(a){return a.chartSpec}),kYc=new rk({getKey:wk,getSelector:function(a){var b=a.chartId;return ee(jk(jYc,function(c){return c.entities[b]}))}});var lYc=fk("[AC] Set X Axis requirement",gk()),mYc=fk("[AC] Remove X Axis requirements by priority",gk()),nYc=fk("[AC] Remove X Axis requirement by id",gk()),oYc=fk("[AC] Set X axis relative-to",gk()),pYc=fk("[AC] Set X axis timezone offset",gk()),qYc=fk("[AC] Set X axis time zone ID",gk());var rYc={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],min:null,max:null,unit:"ms_since_epoch",bucketWidth:void 0,ticks:[],scaleType:0,lastUpdateCausedBy:0};var BG=function(a){return Nk(a.chartGroupId,a.chartId,a.xAxisId)},CG=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Nk(b,c,a.xAxisId)},DG=jk(yk,function(a){return a.xAxis}),sYc=new rk({getKey:BG,getSelector:function(a){return ee(jk(DG,function(b){var c;return(c=b.entities[BG(a)])==null?void 0:c.requirements}))}}),tYc=new rk({getKey:BG,getSelector:function(a){return ee(jk(DG,function(b){var c;return(c=b.entities[BG(a)])==null?void 0:c.lastUpdateCausedBy}))}}),
uYc=new rk({getKey:BG,getSelector:function(a){return ee(jk(DG,function(b){var c;return(c=b.entities[BG(a)])==null?void 0:c.timezoneOffset}))}}),vYc=new rk({getKey:BG,getSelector:function(a){return ee(jk(DG,function(b){var c;return(c=b.entities[BG(a)])==null?void 0:c.timeZoneId}))}}),wYc=tk(CG,function(a,b){return Pk(a,b)},uYc,vYc),xYc=new rk({getKey:BG,getSelector:function(a){return ee(jk(DG,function(b){var c;return(c=b.entities[BG(a)])==null?void 0:c.relativeTo}))}}),EG=new rk({getKey:CG,getSelector:function(a,
b){return b.getSelection(xYc,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([QWc(b,d),b.getSelector(sYc,d),b.getSelector(tYc,d),b.getSelector(uYc,d),b.getSelector(vYc,d),b.getSelector(IUc,d)]).pipe(A(function(e){var f=l(e);var g=f.next().value;e=f.next().value;var k=f.next().value;var m=f.next().value;var r=f.next().value;f=f.next().value;return ik(function(w){return hk(w,function(x,D){return x===D},GCa)})(e,k,m,r,f,
function(w,x,D,H,J){if(w!==void 0&&x!==void 0)return g(w,{lastUpdateCausedBy:x,timezoneOffset:D,timeZoneId:H,axisWidth:J,shift:c==null?void 0:c.shift})})}))}))}}),yYc=new rk({getKey:CG,getSelector:function(a,b){return le([b.getSelector(sYc,a),b.getSelector(tYc,a),b.getSelector(uYc,a),b.getSelector(vYc,a),b.getSelector(xYc,a),b.getSelector(EG,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;var k=d.next().value;d=d.next().value;return jk(c,
e,f,g,k,d,function(m,r,w,x,D,H){if(m!==void 0&&r!==void 0&&H!==void 0)return Object.assign({},a,{requirements:m,lastUpdateCausedBy:r,timezoneOffset:w,timeZoneId:x,relativeTo:D},H)})}))}}),zYc=new rk({getKey:CG,getSelector:function(a,b){return b.getSelector(EG,a).pipe(A(function(c){return jk(c,function(d){if(d!==void 0)return d.min})}))}}),AYc=new rk({getKey:CG,getSelector:function(a,b){return b.getSelector(EG,a).pipe(A(function(c){return jk(c,function(d){if(d!==void 0)return d.max})}))}}),BYc=new rk({getKey:CG,
getSelector:function(a,b){return b.getSelector(EG,a).pipe(A(function(c){return jk(c,function(d){if(d!==void 0)return d.tickIncrement})}))}}),CYc=new rk({getKey:CG,getSelector:function(a,b){return b.getSelector(EG,a).pipe(A(function(c){return jk(c,function(d){if(d!==void 0)return d.unit})}))}}),DYc=new rk({getKey:CG,getSelector:function(a,b){return b.getSelector(EG,a).pipe(A(function(c){return ik(function(d){return hk(d,function(e,f){return e===f},function(e,f){return Array.isArray(e)&&Array.isArray(f)?
XAa(e,f):e===f})})(c,function(d){if(d!==void 0)return d.ticks})}))}}),FG=new rk({getKey:CG,getSelector:function(a,b){return le([b.getSelector(zYc,a),b.getSelector(AYc,a),b.getSelector(CYc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return jk(c,e,d,function(f,g,k){if(f!=null&&g!=null&&k!==void 0)return{min:f,max:g,unit:k}})}))}});var EYc=jk(yk,function(a){return a.chart}),GG=new rk({getKey:function(a){return a.chartId},getSelector:function(a){var b=a.chartId;return ee(jk(EYc,function(c){var d;return(d=c.entities[b])==null?void 0:d.yAxisOrientation}))}});var PAa={chartId:"",yAxisId:"right",label:"",requirements:[],min:0,max:1,unit:"count",ticks:[],scaleType:0,lastUpdateCausedBy:0,position:"right"};var HG=function(a){return a.chartId+","+a.yAxisId},FYc=jk(yk,function(a){return a.yAxis}),GYc=new rk({getKey:HG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(jk(FYc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.label}))}}),HYc=new rk({getKey:HG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(jk(FYc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.requirements}))}}),IYc=new rk({getKey:HG,getSelector:function(a){var b=a.chartId;var c=
a.yAxisId;return ee(jk(FYc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.lastUpdateCausedBy}))}}),JYc=new rk({getKey:HG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(jk(FYc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.position}))}}),KYc=new rk({getKey:HG,getSelector:function(a,b){return le([le([OWc(b,a),b.getValueStrategy(a),b.getSelector(HYc,a),b.getSelector(IYc,a),b.getSelector(HUc,a),b.getSelector(IUc,a)]),b.getSelector(GG,a),b.getSelector(JYc,
a)]).pipe(A(function(c){var d=l(c);var e=l(d.next().value);var f=e.next().value;var g=e.next().value;c=e.next().value;var k=e.next().value;var m=e.next().value;e=e.next().value;var r=d.next().value;d=d.next().value;return ik(function(w){return hk(w,function(x,D){return x===D},HCa)})(c,k,m,e,r,d,function(w,x,D,H,J,O){if(w!==void 0&&x!==void 0&&D!==void 0&&H!==void 0)return f(w,{lastUpdateCausedBy:x,axisLength:J==="vertical"?D:H,valueFormatter:function(R,V,ba,oa){var ta,ka;return(ka=(ta=g.formatShort)==
null?void 0:ta.call(g,R,V,ba,Object.assign({},oa,{yAxisPosition:O})))!=null?ka:g.format(R,V,ba,Object.assign({},oa,{yAxisPosition:O}))}})})}))}}),IG=new rk({getKey:HG,getSelector:function(a,b){return le([b.getSelector(GYc,a),b.getSelector(HYc,a),b.getSelector(IYc,a),b.getSelector(JYc,a),b.getSelector(KYc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return jk(c,e,f,g,d,function(k,m,r,w,x){if(m!==void 0&&r!==void 0&&
w!==void 0&&x!==void 0)return Object.assign({},a,{label:k!=null?k:"",requirements:m,lastUpdateCausedBy:r,position:w},x)})}))}});var JG=function(){};JG.\u0275fac=function(a){return new (a||JG)};JG.\u0275prov=Fc({token:JG,factory:JG.\u0275fac});var LYc=0,KG=function(a,b,c,d){RF.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-"+LYc++;this.xAxisId="chart_group";this.yAxisId="right";this.chartId=this.chartGroupId="default";this.layerScopeSubject=new wf(1);this.dataObservableSwitcher=new Wj(ee({previousValue:null,currentValue:null}));this.dataObservableInternal=this.dataObservableSwitcher.pipe(Af(function(f){return f}));
this.configObservableSwitcher=new Wj(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=l(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(BXc),
colorMap:this.selectorFactoryToObservable(RXc),colorScale:this.selectorFactoryToObservable(TXc),error:this.selectorFactoryToObservable(ZXc),focus:this.selectorFactoryToObservable(EUc),loading:this.selectorFactoryToObservable(gYc),resize:this.selectorFactoryToObservable(GUc),seriesSelection:this.selectorFactoryToObservable(iYc),spec:this.selectorFactoryToObservable(kYc),xAxisPin:this.selectorFactoryToObservable(GVc),timeSeries:this.selectorFactoryToObservable(FVc),xAxis:this.selectorFactoryToObservable(yYc),
yAxis:this.selectorFactoryToObservable(IG),categoricalAxis:this.selectorFactoryToObservable(OXc),lastInteraction:this.selectorFactoryToObservable(cYc)};this.latestObservable=le([this.scopeObservable,this.dataObservable,this.stateObservable,this.configObservable]);this.latestObservable.pipe(Bf(this.destroyed)).subscribe(function(f){var g=l(f);f=g.next().value;var k=g.next().value;var m=g.next().value;g=g.next().value;e.context.scope=f;e.context.data=k.currentValue;e.context.state=m.currentValue;e.context.config=
g.currentValue});(a=p(JG,{optional:!0}))&&a.redrawTrigger$.pipe(Bf(this.destroyed)).subscribe(function(){for(var f=l(e.redrawableViews),g=f.next();!g.done;g=f.next())g.value.redraw()})};Y(KG,RF);var LG=function(a,b){a=a.chart.getBoundingClientRect();return{x:b.clientX-a.left,y:b.clientY-a.top}};h=KG.prototype;
h.setup=function(a){var b=this,c=a.dataObservable,d=a.configObservable;c&&(this.dataObservable=c.pipe(zf(null),vf(),A(pk)));d&&(this.configObservable=d.pipe(zf(null),vf(),A(pk)));this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(pk)).subscribe(function(e){var f=e.previousValue;e=e.currentValue;if((f||e)&&b.layerType!=null){var g=[],k=e!=null&&f!=null&&(e.chartId!==f.chartId||e.chartGroupId!==f.chartGroupId),m=e&&(f==null||k),r=f&&(e==null||k);!k&&e!=null&&f!=null&&e.layerId!==f.layerId&&
e&&f&&g.push(QF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f.layerId,currentLayerId:e.layerId}));r&&f&&g.push(CUc({layerType:b.layerType,layerId:f.layerId,chartId:f.chartId,chartGroupId:f.chartGroupId}));m&&e&&g.push(BUc({layerType:b.layerType,layerId:e.layerId,chartId:e.chartId,chartGroupId:e.chartGroupId}));dG(b.chart,g)}});this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),RF.prototype.setup.call(this,
{stateSelectionObservables:a}),this.dataObservable.pipe(Bf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,context:b.context,componentHandlerUsingContext:sl(function(f,g){return b.onDataChange(f,g)},b.destroyed),viewHandlerUsingContext:sl(function(f,g){for(var k=l(b.views),m=k.next();!m.done;m=k.next())m.value.draw(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-data",scope:b.context.scope})}),this.configObservable.pipe(Bf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,
context:b.context,componentHandlerUsingContext:sl(function(f,g){return b.onConfigChange(f,g)},b.destroyed),viewHandlerUsingContext:sl(function(f,g){for(var k=l(b.views),m=k.next();!m.done;m=k.next())m.value.onConfigChange(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-config",scope:b.context.scope})}),this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(pk),Ef(this.dataObservable,this.stateObservable,this.configObservable)).subscribe(function(e){var f=l(e);e=f.next().value;f.next();
f.next();f.next();if(e.currentValue)b.onScopeChange(e)}),(this.onResizeChange!==KG.prototype.onResizeChange||this.views.some(function(e){return e.onResizeChange!==zG.prototype.onResizeChange}))&&this.setupStateChangeHandler(a.resize,function(e,f){e=qk(e,function(g){return g.resize});return b.onResizeChange(e,f)},function(e,f){e=qk(e,function(m){return m.resize});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onResizeChange(e,f)},"resize"),(this.onXAxisChange!==KG.prototype.onXAxisChange||
this.views.some(function(e){return e.onXAxisChange!==zG.prototype.onXAxisChange}))&&this.setupStateChangeHandler(a.xAxis,function(e,f){e=qk(e,function(g){return g.xAxis});return b.onXAxisChange(e,f)},function(e,f){e=qk(e,function(m){return m.xAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisChange(e,f)},"xAxis"),(this.onCategoricalAxisChange!==KG.prototype.onCategoricalAxisChange||this.views.some(function(e){return e.onCategoricalAxisChange!==zG.prototype.onCategoricalAxisChange}))&&
this.setupStateChangeHandler(a.categoricalAxis,function(e,f){e=qk(e,function(g){return g.categoricalAxis});return b.onCategoricalAxisChange(e,f)},function(e,f){e=qk(e,function(m){return m.categoricalAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onCategoricalAxisChange(e,f)},"categoricalAxis"),(this.onYAxisChange!==KG.prototype.onYAxisChange||this.views.some(function(e){return e.onYAxisChange!==zG.prototype.onYAxisChange}))&&this.setupStateChangeHandler(a.yAxis,function(e,f){e=
qk(e,function(g){return g.yAxis});return b.onYAxisChange(e,f)},function(e,f){e=qk(e,function(m){return m.yAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onYAxisChange(e,f)},"yAxis"),(this.onErrorChange!==KG.prototype.onErrorChange||this.views.some(function(e){return e.onErrorChange!==zG.prototype.onErrorChange}))&&this.setupStateChangeHandler(a.error,function(e,f){e=qk(e,function(g){return g.error});return b.onErrorChange(e,f)},function(e,f){e=qk(e,function(m){return m.error});
for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onErrorChange(e,f)},"error"),(this.onLoadingChange!==KG.prototype.onLoadingChange||this.views.some(function(e){return e.onLoadingChange!==zG.prototype.onLoadingChange}))&&this.setupStateChangeHandler(a.loading,function(e,f){e=qk(e,function(g){return g.loading});return b.onLoadingChange(e,f)},function(e,f){e=qk(e,function(m){return m.loading});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onLoadingChange(e,f)},"loading"),(this.onBrushChange!==
KG.prototype.onBrushChange||this.views.some(function(e){return e.onBrushChange!==zG.prototype.onBrushChange}))&&this.setupStateChangeHandler(a.brush,function(e,f){e=qk(e,function(g){return g.brush});return b.onBrushChange(e,f)},function(e,f){e=qk(e,function(m){return m.brush});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onBrushChange(e,f)},"brush"),(this.onSeriesSelectionChange!==KG.prototype.onSeriesSelectionChange||this.views.some(function(e){return e.onSeriesSelectionChange!==zG.prototype.onSeriesSelectionChange}))&&
this.setupStateChangeHandler(a.seriesSelection,function(e,f){e=qk(e,function(g){return g.seriesSelection});return b.onSeriesSelectionChange(e,f)},function(e,f){e=qk(e,function(m){return m.seriesSelection});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onSeriesSelectionChange(e,f)},"seriesSelection"),(this.onXAxisPinChange!==KG.prototype.onXAxisPinChange||this.views.some(function(e){return e.onXAxisPinChange!==zG.prototype.onXAxisPinChange}))&&this.setupStateChangeHandler(a.xAxisPin,function(e,
f){e=qk(e,function(g){return g.xAxisPin});return b.onXAxisPinChange(e,f)},function(e,f){e=qk(e,function(m){return m.xAxisPin});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisPinChange(e,f)},"xAxisPin"),(this.onTimeSeriesChange!==KG.prototype.onTimeSeriesChange||this.views.some(function(e){return e.onTimeSeriesChange!==zG.prototype.onTimeSeriesChange}))&&this.setupStateChangeHandler(a.timeSeries,function(e,f){e=qk(e,function(g){return g.timeSeries});return b.onTimeSeriesChange(e,
f)},function(e,f){e=qk(e,function(m){return m.timeSeries});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onTimeSeriesChange(e,f)},"timeSeries"),(this.onFocusChange!==KG.prototype.onFocusChange||this.views.some(function(e){return e.onFocusChange!==zG.prototype.onFocusChange}))&&this.setupStateChangeHandler(a.focus,function(e,f){e=qk(e,function(g){return g.focus});return b.onFocusChange(e,f)},function(e,f){e=qk(e,function(m){return m.focus});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onFocusChange(e,
f)},"focus"),(this.onColorScaleChange!==KG.prototype.onColorScaleChange||this.views.some(function(e){return e.onColorScaleChange!==zG.prototype.onColorScaleChange}))&&this.setupStateChangeHandler(a.colorScale,function(e,f){e=qk(e,function(g){return g.colorScale});return b.onColorScaleChange(e,f)},function(e,f){e=qk(e,function(m){return m.colorScale});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onColorScaleChange(e,f)},"colorScale"),(this.onColorMapChange!==KG.prototype.onColorMapChange||
this.views.some(function(e){return e.onColorMapChange!==zG.prototype.onColorMapChange}))&&this.setupStateChangeHandler(a.colorMap,function(e,f){e=qk(e,function(g){return g.colorMap});return b.onColorMapChange(e,f)},function(e,f){e=qk(e,function(m){return m.colorMap});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onColorMapChange(e,f)},"colorMap"))};
h.setupStateChangeHandler=function(a,b,c,d){var e=this;if(this.setupCalled&&a){var f=null;a.pipe(GAa(this.stateObservable),Bf(this.destroyed)).subscribe(function(g){g=l(g).next().value;var k={previousValue:f,currentValue:g.currentValue};f=g.currentValue;e.chart.scheduleStateChangeHandler({changes:k,context:e.context,componentHandlerUsingContext:sl(b,e.destroyed),viewHandlerUsingContext:sl(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(QF({chartGroupId:a.chartGroupId,chartId:a.chartId,previousLayerId:b==null?void 0:b.layerId,currentLayerId:a.layerId}));dG(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($Xc({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(aYc({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.ngOnInit=function(){this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};
h.ngOnChanges=function(a){("layerId"in a||"yAxisId"in a||"xAxisId"in a)&&this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};h.ngOnDestroy=function(){for(var a=this,b=l(this.views),c=b.next();!c.done;c=b.next())c=c.value,xXc(c),c.destroy();this.withLatest(function(d){dG(a.chart,[CUc(Object.assign({},d.scope,{layerType:a.layerType}))])});this.destroyed.next();this.destroyed.complete()};
var MG=function(a,b,c){c=c?a.objectiveLayerId+"-"+c:a.objectiveLayerId;return b?YWc(Object.assign({},b,{chartId:a.chartId,yAxisId:a.yAxisId,id:c})):aXc({chartId:a.chartId,yAxisId:a.yAxisId,id:c})},NG=function(a,b){var c=c===void 0?a.objectiveLayerId:c;return b?lYc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):nYc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c,keepLastCause:!0})},MYc=function(a,b){var c=c===void 0?a.objectiveLayerId:
c;return b?HXc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):IXc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})},OG=function(a,b,c){return b?dYc({chartId:a.chartId,sourceId:a.objectiveLayerId,loading:b,loadingDescription:c}):eYc({chartId:a.chartId,sourceId:a.objectiveLayerId})},PG=function(a,b,c){return b&&b.name==="NoDataError"&&c?UXc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):b?UXc({chartId:a.chartId,
layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:b}):c?UXc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):VXc({chartId:a.chartId,sourceId:a.objectiveLayerId})},QG=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 PXc({chartId:b.chartId,
layerId:b.layerId,order:d,colorMap:f,shapeMap:g})}}return null};da.Object.defineProperties(KG.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}}});KG.\u0275fac=function(){Ze()};
KG.\u0275dir=df({type:KG,inputs:{layerId:"layerId",xAxisId:"xAxisId",yAxisId:"yAxisId"},features:[Gf,xx]});var NYc=fk("[AC] Start brushing on the x axis",gk()),OYc=fk("[AC] Stop brushing on the x axis",gk()),PYc=fk("[AC] Update brush position on the x axis",gk()),QYc=fk("[AC] Start panning on the x axis",gk()),RYc=fk("[AC] Stop panning on the x axis",gk()),SYc=fk("[AC] Start brushing on the y axis",gk()),TYc=fk("[AC] Stop brushing on the y axis",gk()),UYc=fk("[AC] Update brush position on the y axis",gk());var RG=fk("[AC] Set last interaction for chart X axis",gk()),SG=fk("[AC] Set last interaction for Y axis",gk()),VYc=fk("[AC] Set last interaction for categorical axis",gk()),WYc=fk("[AC] Set last interaction for gauge threshold",gk());var TG=fk("[AC] Sets x axis pin position",gk()),UG=fk("[AC] Sets whether x axis pin is locked",gk()),VG=fk("[AC] Sets whether x axis pin is tracking now",gk());var XYc=new wl(mG.MONTH_DAY_ABBR),YYc=new wl(7),ZYc=function(a,b){return YYc.format(a,b)},JCa=function(a,b){var c=XYc.format(a,b);a=ZYc(a,b);return c+", "+a},WG={},ICa=(WG[Zk.WEEKLY]=JCa,WG[Zk.DAILY]=JCa,WG[Zk.QUARTER_DAY]=JCa,WG[Zk.TWO_HOURLY]=JCa,WG[Zk.HOURLY]=ZYc,WG[Zk.HALF_HOURLY]=ZYc,WG[Zk.TEN_MINUTES]=ZYc,WG[Zk.FIVE_MINUTES]=ZYc,WG);var $Yc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},aZc=[4,4],bZc=function(a){yG.call(this,a);this.canvas.className="overlay-z-index"};Y(bZc,yG);
bZc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyLeft,d=b.bodyHeight,e=b.bodyWidth,f=b.chartHeight,g=b.chartWidth,k=b.brushing,m=b.brushStart,r=b.brushEnd;b=b.brushAxis;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,f,g);f=new Path2D;f.rect(c,a,e,d);this.ctx.clip(f);r&&b===0&&(m&&k&&(this.drawBrushSelection(m,r,a,d),this.drawBrushLine(m,a,d)),this.drawBrushLine(r,a,d))}}};
bZc.prototype.drawBrushLine=function(a,b,c){var d=d===void 0?$Yc:d;this.ctx.save();il(this.ctx,d,this.base);this.ctx.setLineDash(aZc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};bZc.prototype.drawBrushSelection=function(a,b,c,d){var e=e===void 0?$Yc:e;this.ctx.save();il(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};var cZc;
cZc={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 PCa=function(){this.rdtfSymbols_=cZc};PCa.prototype.format=function(a,b){b=dZc(this,b).LONG;if(b){var c=Math.abs(a);a=(new cm("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var dZc=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 KCa=[24192E5,25056E5,2592E6,26784E5],LCa=[7776E6,78624E5,79488E5],NCa=[31536E6,316224E5],MCa=3/90,OCa=5/365;var XG={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"},eZc={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},fZc=[4,4],gZc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},
hZc=Object.assign({},XG,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),iZc={globalAlpha:.2},jZc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"};var kZc=function(){yG.apply(this,arguments);this.lastDrawnState=null};Y(kZc,yG);h=kZc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c){var d=c.state;c=c.config;if(d&&c){var e=d.bodyTop,f=d.bodyRight,g=d.bodyLeft,k=d.chartWidth,m=d.ticks,r=d.axisTopEdge,w=d.timeZoneLabel,x=c.shift?QCa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,r+20,k);var D;if(!(c==null?0:(D=c.styles)==null?0:D.hideAxis)){D=XG;var H,J,O,R;D=Object.assign({},D,{fillStyle:(O=c==null?void 0:(H=c.styles)==null?void 0:H.textColor)!=null?O:D.fillStyle,
font:(R=c==null?void 0:(J=c.styles)==null?void 0:J.font)!=null?R:D.font});H=x||w;J=0;var V;H&&(c==null?void 0:(V=c.styles)==null?void 0:V.hideLeftLabel)!==!0&&(J=this.drawLeftLabel(r,g,H,D));V=this.drawAxisTickLabels(r,m,J,k,D);var ba;((ba=c.styles)==null?0:ba.drawGrid)&&this.drawAxisGridLines(r,e,V,eZc);this.drawAxisAndTickLines(r,g,f,V,c.styles,D);this.drawBrushInternal(a);if(a=a.currentValue)if(m=a.state)a=m.bodyHeight,ba=m.bodyWidth,c=m.bodyLeft,e=m.bodyTop,f=m.bodyRight,g=m.bodyBottom,r=m.bottomMarginHeight,
V=m.xAxisPinPosition,k=m.xAxisPinLocked,m=m.xAxisPinCanTrackNow,D=k?hZc:jZc,H=D.lineWidth===void 0?0:D.lineWidth,(new Path2D).rect(c-H,e,ba+H*2,a+r),V&&(m&&!k&&this.drawXAxisPinGradient(e,f,a),this.drawXAxisPinLine(V,e,g,D));a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.lastDrawnState=d}}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();il(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(ll([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll([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();il(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&il(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(ll([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(ll([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll([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();il(this.ctx,e,this.base);b=l(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var m=this.ctx.measureText(k).width,r=g-m/2;m=g+m/2;r<0||r<c+6||m>d||(ml(this.ctx,k,g,a+8),c=m,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();il(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=ml(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?gZc:d;this.ctx.save();il(this.ctx,d,this.base);this.ctx.setLineDash(fZc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b,c,d){var e=e===void 0?gZc:e;this.ctx.save();il(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();il(this.ctx,d,this.base);this.ctx.setLineDash(fZc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([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,hl("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");il(this.ctx,Object.assign({},iZc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var lZc=tk(uk,function(a,b){if(a&&a.min!==null&&a.max!==null&&a.unit==="ms_since_epoch")return a=b.tzNames_[QVc(b,new Date(a.min))>0?2:0],a!=null?a:void 0},EG,wYc),YG=tk(uk,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 al(e,f,c,d,g)},inverseDomainMap:function(g){return al(c,d,e,f,g)}}}}},NUc,FG),mZc=tk(uk,function(a,b){return a&&b===0||!1},DXc,GXc),nZc=tk(uk,function(a,b){if(a)return(b!=null?b:[]).map(function(c){return{label:c.label,
value:a.domainMap(c.value)}})},YG,DYc),oZc=tk(vk,function(a,b,c){return{position:a,locked:b!=null?b:!1,trackingNow:c!=null?c:!1}},HVc,IVc,JVc),pZc=tk(nAa,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},MUc,RUc),qZc=tk(uk,function(a,b){if(a!==void 0&&a!==null&&b!==null&&b!==void 0&&b>0)return Date.now()-b<=a},AYc,BYc),rZc=tk(uk,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})}},tk(wk,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}},JUc,KUc,IUc,HUc,OUc,PUc),YG,CXc,EXc,FXc,GXc),sZc=tk(uk,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})},TF,YG,HVc,IVc,qZc),tZc=tk(vk,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}},TF,nZc,lZc,pZc,YG),uZc=tk(vk,function(a,b,c){if(a&&b&&c)return Object.assign({},a,b,c)},tk(vk,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}},TF,nZc,lZc,pZc,YG),tk(uk,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}},YG,CXc,EXc,FXc,GXc),tk(uk,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}},YG,HVc,IVc,qZc)),vZc=tk(vk,function(a,b){if(a!==void 0&&b)return{xAxisPinPxPos:b.domainMap(a)}},HVc,YG),wZc=tk(vk,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}},FG,BYc,wYc,vZc,oZc,pZc),xZc=tk(vk,function(a,b){if(a)return{xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,xAxisTimeZone:b}},FG,wYc),yZc=tk(vk,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}},oZc,FG,qZc),zZc=tk(uk,
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}},CYc,CXc,EXc,GXc,DXc),AZc=tk(uk,function(a,b,c){return{xAxisMax:a!=null?a:null,xAxisPinCanTrackNow:b!=null?b:!1,xAxisUnit:c!=null?c:null}},AYc,qZc,CYc),BZc=tk(uk,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}},DXc,AYc,qZc,oZc,CYc),CZc=tk(uk,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}},GXc,CXc,DXc,FXc,FG);var DZc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"},EZc=Object.assign({},DZc,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),FZc={globalAlpha:.2},GZc=function(a){yG.call(this,a);this.canvas.className="overlay-z-index"};Y(GZc,yG);
GZc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyHeight;var c=b.bodyWidth,d=b.bodyLeft,e=b.bodyTop,f=b.bodyRight,g=b.bodyBottom,k=b.chartHeight,m=b.chartWidth,r=b.bottomMarginHeight,w=b.xAxisPinPosition,x=b.xAxisPinLocked;b=b.xAxisPinCanTrackNow;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,k,m);k=x?EZc:DZc;m=k.lineWidth===void 0?0:k.lineWidth;var D=new Path2D;D.rect(d-m,e,c+m*2,a+r);this.ctx.clip(D);w&&(b&&!x&&this.drawXAxisPinGradient(e,
f,a),this.drawXAxisPinLine(w,e,g,k))}}};GZc.prototype.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();il(this.ctx,d,this.base);this.ctx.setLineDash(aZc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
GZc.prototype.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,hl("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");il(this.ctx,Object.assign({},FZc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var HZc=function(){yG.apply(this,arguments);this.lastDrawnState=null};Y(HZc,yG);h=HZc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c&&(a=c.state,c=c.config,a&&c)){var d=a.bodyTop,e=a.bodyRight,f=a.bodyLeft,g=a.chartWidth,k=a.ticks,m=a.axisTopEdge,r=a.timeZoneLabel,w=c.shift?QCa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,m+20,g);var x;if(!(c==null?0:(x=c.styles)==null?0:x.hideAxis)){x=XG;var D,H,J,O;x=Object.assign({},x,{fillStyle:(J=c==null?void 0:(D=c.styles)==null?void 0:D.textColor)!=null?J:x.fillStyle,
font:(O=c==null?void 0:(H=c.styles)==null?void 0:H.font)!=null?O:x.font});D=w||r;H=0;var R;D&&(c==null?void 0:(R=c.styles)==null?void 0:R.hideLeftLabel)!==!0&&(H=this.drawLeftLabel(m,f,D,x));R=this.drawAxisTickLabels(m,k,H,g,x);var V;((V=c.styles)==null?0:V.drawGrid)&&this.drawAxisGridLines(m,d,R,eZc);this.drawAxisAndTickLines(m,f,e,R,c.styles,x);V=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:V});this.lastDrawnState=a}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();il(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(ll([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll([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();il(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&il(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(ll([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(ll([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll([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();il(this.ctx,e,this.base);b=l(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var m=this.ctx.measureText(k).width,r=g-m/2;m=g+m/2;r<0||r<c+6||m>d||(ml(this.ctx,k,g,a+8),c=m,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();il(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=ml(this.ctx,c,b,a+8);this.ctx.restore();return b+a};var IZc=function(a){UC.call(this,a)};Y(IZc,UC);var Fl=function(a){var b=this;this.lastAveEvent=this.tracker=null;this.interactionEventListener=function(){b.lastAveEvent=null};a&&(this.tracker=fOc(a))&&this.tracker.addInteractionEventListener(this.interactionEventListener)},Cl=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 IZc(c),d),a.lastAveEvent={eventType:b,
visualElement:c,el:d})};Fl.prototype.ngOnDestroy=function(){this.tracker&&this.tracker.removeInteractionEventListener(this.interactionEventListener)};Fl.ve={AccessibilityGrid:118923,AwesomeChartImage:68528,AwesomeChartLegendPane:68529,HovercardCloseButton:164075,HovercardPinToggle:164076,HovercardUnpinToggle:164077,HovercardZone:118924,LineDeselectToggle:68567,LineMultiSelectToggle:118925,LineSelectToggle:68568,LineSpecificSelectToggle:118926,XPanZone:118927,XZoomZone:68583,YZoomZone:68585};
Fl.\u0275fac=function(a){return new (a||Fl)(Zc(cOc,8))};Fl.\u0275prov=Fc({token:Fl,factory:Fl.\u0275fac,providedIn:"root"});var ul=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);var JZc=fk("[AC] Map chart IDs to a dashboard ID",gk());var ZG=function(a){var b=this;this.document=a;this.hiddenPageMeasurements=new Map;this.isPageHidden=this.document.visibilityState!=="visible";this.onVisibilityChange=function(){if(b.document.visibilityState==="visible"){var c=performance.now();b.isPageHidden=!1;for(var d=l(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e=e.value.hiddenSpans,(e=e[e.length-1])?e.endTimestamp=c:console.error("No latest span was found for a hidden time measurement")}else for(c=performance.now(),b.isPageHidden=
!0,d=l(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e.value.hiddenSpans.push({startTimestamp:c})};this.document.addEventListener("visibilitychange",this.onVisibilityChange)},KZc=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};
ZG.prototype.endHiddenMeasurement=function(a){var b=KZc(this,a);this.hiddenPageMeasurements.delete(a);return b};ZG.prototype.ngOnDestroy=function(){this.document.removeEventListener("visibilitychange",this.onVisibilityChange)};ZG.prototype.endHiddenMeasurement=ZG.prototype.endHiddenMeasurement;ZG.\u0275fac=function(a){return new (a||ZG)(Zc(Uh))};ZG.\u0275prov=Fc({token:ZG,factory:ZG.\u0275fac,providedIn:"root"});var $G=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;LZc(c);c.signalsToSendOnIdle.length||
c.signalsFlushed$.next()};this.dashboardState$=this.store.pipe(kk(RCa()),we(function(d){return(d==null?void 0:d.chartIdToDashboardId)!=null}))},aH=function(a,b){a.didWarnMissingGenerator||a.generator!==null?a.generator&&(b.dashboardId!=null||"dashboardId"in b?MZc(a,b):NZc(a,b.chartId).subscribe(function(c){b.dashboardId=c;MZc(a,b)})):a.didWarnMissingGenerator=!0},MZc=function(a,b){if(a.isRequestIdleCallbackSupported)a.signalsToSendOnIdle.push(b),LZc(a);else{var c;(c=a.generator)==null||c.receiveSignal(b)}},
LZc=function(a){!a.idleTimerId&&a.signalsToSendOnIdle.length&&(a.idleTimerId=requestIdleCallback(a.processSignalQueue,{timeout:5E3}))};$G.prototype.initialize=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.initialize():this.didWarnMissingGenerator=!0};$G.prototype.stop=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.stop():this.didWarnMissingGenerator=!0};
var NZc=function(a,b){return a.dashboardState$.pipe(we(function(c){return c.chartIdToDashboardId[b]!=null}),A(function(c){return c.chartIdToDashboardId[b]}),nf(1))};$G.\u0275fac=function(a){return new (a||$G)(Zc(ZG),Zc(KF))};$G.\u0275prov=Fc({token:$G,factory:$G.\u0275fac,providedIn:"root"});var OZc=["pinPill"],TCa=function(a,b){return{left:a,top:b}},ZCa=function(a,b,c){return{locked:a,draggable:b,dragging:c}},$Ca=function(a,b,c){return{top:a,"min-height":b,"border-radius":c}},aDa=function(a,b){return{"margin-left":a,"margin-right":b}},bDa=function(a,b,c){return{height:a,width:b,padding:c}},PZc=new ed("AwesomechartsTimezoneOffset");new ed("AwesomechartsTimeZoneId");
var QZc={dragZoom:!0,ctrlScrollZoom:!0,ctrlDragPan:!0,hoverBrush:!0,clickTimePin:!0,hoverTimePin:!0,moveTimePinOnChartClick:!1,touchPan:!0,touchZoom:!0},RZc={lineDash:[],hideAxis:!1},SZc=new cm("Data in this chart spans a time range from {MIN} to {MAX}."),TZc=new cm("Independent values in this chart along the X axis range from {MIN} to {MAX}."),UZc=new cm("Unpin X axis cursor at {PIN_LABEL}"),VZc=new cm("Pin X axis cursor at {PIN_LABEL}"),WZc=0,XZc={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"},
bH=function(a,b,c,d,e,f,g,k,m){KG.call(this,a,b,c,!0);this.interactionService=d;this.instrumentationService=e;this.liveAnnouncer=f;this.ngZone=g;this.tickStrategy=VBa;this.timePinLabelStrategy=tl;this.relativeTo=null;this.rightOverhangMargin=this.leftOverhangMargin=10;this.xAxisBrushActionButtonConfig=null;this.onPinChange=new gj;this.axisDescriptionObservable=ee("");this.dataSubject=new Wj(null);var r;this.configSubject=new Wj({shift:((r=this.relativeTo)==null?void 0:r.shift)||0,styles:this.styles});
this.stylesInternal=RZc;this.interactionsInternal=QZc;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=this.lastXAxisPinButtonClickEvent=null;this.touchState={lastTouchDistance:null,lastTouchCenter:null};var w;this.timePinLabelStrategySubject=new Wj((w=this.timePinLabelStrategy)!=null?w:tl);var x,D;this.showXAxisPinPillSubject=new Wj(!!(((x=this.interactions)==null?0:x.clickTimePin)||((D=this.interactions)==null?0:D.hoverTimePin)));this.relativeToSubject=new Wj(null);this.xAxisPinPillObservable=
ee(null);this.xAxisUnpinAriaLabelObservable=ee("Unpin X axis cursor");this.xAxisPinAriaLabelObservable=ee("Pin X axis cursor");this.actionButtonPosition$=ee(null);this.isActionButtonBeingHovered$=new Wj(!1);this.xAxisCursorDescribedById="ac-x-axis-aria-describedby-"+WZc++;this.isCurrentChartBeingHovered$=new Wj(!1);this.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE="var(--ac-sys-color-extensions-on-surface, #202124)";this.layerType="axis";k&&(this.timezoneOffset=k);m?(this.axisView=new kZc(a.nativeElement),
this.redrawableViews=[this.axisView]):(this.axisView=new HZc(a.nativeElement),this.brushView=new bZc(a.nativeElement),this.xAxisPinView=new GZc(a.nativeElement),this.redrawableViews=[this.axisView,this.brushView,this.xAxisPinView]);this.bindDrawInstrumentation()};Y(bH,KG);bH.\u0275dir=KG.\u0275dir;h=bH.prototype;h.isPrimaryModifierKeyDown=function(a){return ul?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;uG(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;aH(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});aH(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.ngOnInit=function(){var a=this;KG.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=l(g);g.next();if(!g.next().value)a.onMouseLeave()});
eG(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,m;if(((k=a.interactions)==null?0:k.touchPan)||((m=a.interactions)==null?0:m.touchZoom))g.preventDefault(),k=g.touches[0],g=g.touches[1],a.touchState.lastTouchDistance=Math.abs(k.clientX-g.clientX),a.touchState.lastTouchCenter=LG(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,m;if(((k=a.interactions)==null?0:k.touchPan)||((m=a.interactions)==null?0:m.touchZoom)){g.preventDefault();
k=g.touches[0];m=g.touches[1];g=Math.abs(k.clientX-m.clientX);k=LG(a,{clientX:(k.clientX+m.clientX)/2,clientY:(k.clientY+m.clientY)/2});if(a.touchState.lastTouchDistance!==null&&a.touchState.lastTouchCenter!==null){var r=a.touchState.lastTouchDistance/g;m=k.x-a.touchState.lastTouchCenter.x;var w=a.select(FG);if(!w)break a;var x=w.min,D=w.max;w=w.unit;var H=a.axisView.calculateDataValue(a.touchState.lastTouchCenter.x);if(H===null)break a;x=H-(H-x)*r;r=H+(D-H)*r;if(m=a.axisView.pxToXAxisUnit(-m))x+=
m,r+=m;YZc(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)});eG(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,m;if(((k=a.interactions)==null?0:k.ctrlDragPan)||((m=a.interactions)==null?0:m.dragZoom))g.preventDefault(),g.stopPropagation()});ve(this.chart.syncTouchStartObservable,this.chart.syncTouchMoveObservable,this.chart.syncTouchEndObservable).pipe(Bf(this.destroyed)).subscribe(function(g){var k,m;if(((k=a.interactions)==null?0:k.touchZoom)||((m=a.interactions)==
null?0:m.touchPan))g.preventDefault(),g.stopPropagation()});this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(pYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));this.timeZoneId&&b.push(qYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));b.push(sG({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?
0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));PWc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy);var c=this.selectorFactoryToObservable(tZc),d=this.selectorFactoryToObservable(rZc),e=this.selectorFactoryToObservable(sZc),f=this.selectorFactoryToObservable(uZc);le([f,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,
state:g!=null?g:null}}),zf(null),vf(),A(pk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(m){a.axisView.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([c,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,
config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(pk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(m){a.axisView instanceof HZc&&a.axisView.draw(m)},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=
l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(pk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawBrushFromSelection",changes:g,viewHandler:function(m){var r;(r=a.brushView)==null||r.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});
le([e,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(pk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawTimePinFromSelection",changes:g,viewHandler:function(m){var r;(r=a.xAxisPinView)==null||r.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,
xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.xAxisPinPillObservable=le([this.selectorFactoryToObservable(wZc),this.timePinLabelStrategySubject,this.showXAxisPinPillSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;var m=k.next().value;if(!k.next().value||!g)return null;k=g.xAxisPinPxPos;var r=g.xAxisPinPosition,w=g.xAxisPinTrackingNow,x=g.xAxisPinLocked,D=g.axisTopEdge;return r?{label:m({position:r,tickIncrement:g.xAxisTickIncrement,timeZone:g.xAxisTimeZone,trackingNow:w,unit:g.xAxisUnit||
"ms_since_epoch"}),locked:x,draggable:!x,dragging:!x,left:k,top:D+4,height:16,trackingNow:w}:null}));this.xAxisUnpinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?UZc.format({PIN_LABEL:g.label}):"Unpin X axis cursor"}));this.xAxisPinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?VZc.format({PIN_LABEL:g.label}):"Pin X axis cursor"}));this.actionButtonPosition$=(d!=null?d:f).pipe(A(function(g){return g&&g.brushEnd?
{left:g.brushEnd,top:g.bodyTop}:null}),Bf(this.destroyed));this.axisDescriptionObservable=this.selectorFactoryToObservable(xZc).pipe(A(function(g){if(!g)return"";var k=g.xAxisUnit,m=g.xAxisMin,r=g.xAxisMax;g=g.xAxisTimeZone;return m!==null&&r!==null?k==="ms_since_epoch"?SZc.format({MIN:DBa(new Date(m),g),MAX:DBa(new Date(r),g)}):TZc.format({MIN:Wk(m,k),MAX:Wk(r,k)}):""}),of(0),Gk(this.ngZone));this.selectorFactoryToObservable(yZc).pipe(Bf(this.destroyed)).subscribe(function(g){if(g){var k=g.xAxisPinPosition,
m=g.xAxisPinTrackingNow,r=g.xAxisPinCanTrackNow,w=g.xAxisMin,x=g.xAxisMax;g.xAxisPinLocked&&m?r?a.store.dispatch(TG({chartGroupId:a.chartGroupId,position:x})):a.store.dispatch(nk({actions:ZZc(a,!0)})):w!==null&&x!==null&&(k<w||x<k)&&a.store.dispatch(nk({actions:ZZc(a,!0)}))}});this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(pk)).subscribe(function(g){var k=g.previousValue;(g=g.currentValue)&&(k==null?void 0:k.layerId)!==(g==null?void 0:g.layerId)&&dG(a.chart,[QF({chartGroupId:g.chartGroupId,
chartId:g.chartId,previousLayerId:k==null?void 0:k.layerId,currentLayerId:g.layerId})])});dG(this.chart,b)};h.ngAfterViewInit=function(){var a=this;le([this.selectorFactoryToObservable(vZc),this.showXAxisPinPillSubject,this.pillEl.changes]).pipe(Bf(this.destroyed)).subscribe(function(b){var c=l(b);b=c.next().value;c.next().value&&a.pillEl&&a.pillEl.length&&b&&(a.pillEl.first.nativeElement.style.left=b.xAxisPinPxPos+"px")})};
h.ngOnChanges=function(a){KG.prototype.ngOnChanges.call(this,a);var b=[];"tickStrategy"in a&&(PWc(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:tl)}"timezoneOffset"in a&&this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(pYc({chartGroupId:this.chartGroupId,chartId:this.chartId,
xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));"timeZoneId"in a&&this.timeZoneId&&b.push(qYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));if("styles"in a||"relativeTo"in a){var d;this.configSubject.next({shift:(d=this.relativeTo)==null?void 0:d.shift,styles:this.styles})}if("interactions"in a){var e,f,g;if(((e=this.interactions)==null?0:e.hoverBrush)||((f=this.interactions)==null?0:f.dragZoom)||(g=this.brushView)==null||!g.isAttached()){var k,
m,r;if((((k=this.interactions)==null?0:k.hoverBrush)||((m=this.interactions)==null?0:m.dragZoom))&&((r=this.brushView)==null||!r.isAttached())){var w;(w=this.brushView)==null||w.reattach()}}else this.brushView.detach();var x,D,H;if(((x=this.interactions)==null?0:x.clickTimePin)||((D=this.interactions)==null?0:D.hoverTimePin)||(H=this.xAxisPinView)==null||!H.isAttached()){var J,O,R;if((((J=this.interactions)==null?0:J.clickTimePin)||((O=this.interactions)==null?0:O.hoverTimePin))&&((R=this.xAxisPinView)==
null||!R.isAttached())){var V;(V=this.xAxisPinView)==null||V.reattach();this.showXAxisPinPillSubject.next(!0)}}else this.xAxisPinView.detach(),this.showXAxisPinPillSubject.next(!1)}"relativeTo"in a&&(this.relativeTo&&b.push(oYc({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(sG({chartGroupId:this.chartGroupId,
chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));dG(this.chart,b)};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);this.axisView.destroy();var a;(a=this.brushView)==null||a.destroy();var b;(b=this.xAxisPinView)==null||b.destroy();a=NG(this,null);this.store.dispatch(nk({actions:[WWc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
h.onClick=function(a){var b=this.select(AZc);if(b){var c=b.xAxisUnit,d=b.xAxisMax,e=b.xAxisPinCanTrackNow,f=LG(this,a);b=this.axisView.calculateDataValue(f.x);this.axisView.withinBodyOrAxis(f.x,f.y)&&this.store.dispatch(RG({chartId:this.chartId,lastInteraction:{click:f.x}}));var g,k;if(((g=this.interactions)==null?0:g.clickTimePin)&&a.pageX!==((k=this.lastXAxisPinButtonClickEvent)==null?void 0:k.pageX)&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(f.x,f.y)||this.axisView.withinAxis(f.x,
f.y))){if((g=this.pillEl.first)&&g.nativeElement.className.includes("x-axis-pin")&&g.nativeElement.querySelector(".x-axis-pin-icon-wrapper")&&(g=g.nativeElement.children[1].getBoundingClientRect(),k=a.clientX-g.x,f=a.clientY-g.y,k>0&&k<g.width&&f>0&&f<g.height)){YCa(this,a,!0);return}if(c=(a=$Zc(this,e,b,c,d))&&c==="ms_since_epoch"&&d!==null?d:b)this.onPinChange.emit(c),this.store.dispatch(nk({actions:[TG({chartGroupId:this.chartGroupId,position:c}),UG({chartGroupId:this.chartGroupId,locked:!0}),
VG({chartGroupId:this.chartGroupId,trackingNow:a})]}))}}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=[],c=this.select(BZc);if(!c)return b;var d=c.xAxisPinLocked,e=c.xAxisPinPosition,f=c.xAxisPinTrackingNow,g=c.xAxisPinCanTrackNow,k=c.brushPanning,m=c.xAxisUnit;c=c.xAxisMax;a=LG(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=$Zc(this,g,d,m,c),b.push(TG({chartGroupId:this.chartGroupId,
position:g&&m==="ms_since_epoch"&&c!==null?c:d})),b.push(VG({chartGroupId:this.chartGroupId,trackingNow:g}))):d||(e!==null&&b.push(TG({chartGroupId:this.chartGroupId,position:null})),f&&b.push(VG({chartGroupId:this.chartGroupId,trackingNow:!1}))));this.axisView.withinBody(a.x,a.y)?(b.push(RG({chartId:this.chartId,lastInteraction:{hover:a.x}})),this.isCurrentChartBeingHovered$.getValue()||this.isCurrentChartBeingHovered$.next(!0)):b.push(RG({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(oZc);if(a){a.locked||(a.position!==void 0&&this.store.dispatch(TG({chartGroupId:this.chartGroupId,position:null})),a.trackingNow&&this.store.dispatch(VG({chartGroupId:this.chartGroupId,trackingNow:!1})));var b;((b=this.interactions)==null?0:b.hoverBrush)&&this.store.dispatch(PYc({chartGroupId:this.chartGroupId,position:null}));this.store.dispatch(RG({chartId:this.chartId,lastInteraction:{hover:null}}))}};
h.onDocumentMouseMove=function(a){var b=[],c=this.select(CZc);if(!c)return b;var d=c.brushBrushing,e=c.brushPanning,f=c.brushAxis,g=c.brushPosition,k=c.xAxisMin,m=c.xAxisMax;c=c.xAxisUnit;var r=LG(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=LG(this,this.lastMouseDownEvent);var x=this.axisView.withinBody(w.x,w.y),D;if(D=!d){var H=this.lastMouseDownEvent;D=a.clientX-H.clientX;
H=a.clientY-H.clientY;var J=Math.sqrt(Math.pow(D,2)+Math.pow(H,2));D=Math.abs(H/D)<1&&J>10}D&&x&&(r=this.axisView.calculateDataValue(r.x),(w=this.axisView.calculateDataValue(w.x))&&r&&b.push(NYc({chartGroupId:this.chartGroupId,positionStart:(new Date(w)).valueOf(),position:(new Date(r)).valueOf()})))}r=0;var O;if(((O=this.interactions)==null?0:O.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseMoveEvent&&k!==null&&m!==null&&(e||b.push(QYc({chartGroupId:this.chartGroupId})),
O=LG(this,this.lastMouseMoveEvent),w=LG(this,a),this.axisView.withinBody(w.x,w.y)&&(O=this.axisView.pxToXAxisUnit(O.x-w.x)))){r=m-k;var R,V;w=(V=(R=this.interactionBounds)==null?void 0:R.max)!=null?V:Date.now();var ba,oa;R=(oa=(ba=this.interactionBounds)==null?void 0:ba.max)!=null?oa:c==="ms_since_epoch"?w:r;ba=Math.min(k+O,R-r);this.interactionBounds&&this.interactionBounds.min!=null&&this.interactionBounds.min>ba&&(O+=this.interactionBounds.min-ba,ba=this.interactionBounds.min);m=Math.min(m+O,R);
r=ba-k;b.push(mYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}));b.push(lYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:3,min:ba,max:m,unit:c}))}if(this.isEventInsideWindow(a)){var ta;k=((ta=this.interactions)==null?void 0:ta.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&d&&f===0;m=this.lastMouseDownEvent&&LG(this,this.lastMouseDownEvent);ta=LG(this,a);c=this.lastMouseMoveEvent&&
LG(this,this.lastMouseMoveEvent);m=m&&this.axisView.withinBody(m.x,m.y);c=c&&this.axisView.withinBody(c.x,c.y);var ka;ba=((ka=a.target)==null?void 0:ka.offsetParent)===this.el.nativeElement||a.target===document||e;e=this.axisView.withinBody(ta.x,ta.y)&&ba;var Ca;((Ca=this.interactions)==null?0:Ca.hoverBrush)&&e&&(!d||f!==0)||k&&m?(d=this.axisView.calculateDataValue(ta.x))&&b.push(PYc({chartGroupId:this.chartGroupId,position:d+r})):!c||e||g===null||this.isActionButtonBeingHovered$.getValue()||b.push(PYc({chartGroupId:this.chartGroupId,
position:null}))}else b.push(OYc({chartGroupId:this.chartGroupId}));this.lastMouseMoveEvent=a;return b};
h.onMouseUp=function(a){var b=this.select(zZc);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(RYc({chartGroupId:this.chartGroupId})),Cl(this.interactionService,"drag",Fl.ve.XPanZone,this.el.nativeElement));var k;if(((k=this.interactions)==null?0:k.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&d&&e===0&&this.isEventInsideWindow(a)&&(a=
LG(this,a),c=this.axisView.calculateDataValue(a.x),d=(d=this.lastMouseDownEvent&&LG(this,this.lastMouseDownEvent))&&this.axisView.withinBody(d.x,d.y),c&&d&&f!==null)){d=f<c;this.store.dispatch(nk({actions:[OYc({chartGroupId:this.chartGroupId}),mYc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}),lYc({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})]}));Cl(this.interactionService,
"drag",Fl.ve.XZoomZone,this.el.nativeElement);var m;(f=(m=this.select(YG))==null?void 0:m.inverseDomainMap)&&this.store.dispatch(PYc({chartGroupId:this.chartGroupId,position:f(a.x)}))}this.isMouseDown=!1;this.lastMouseDownEvent=null}};h.syncOnScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=LG(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=LG(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&this.scrollZoom(b,a.deltaY))};
h.scrollZoom=function(a,b){var c=this.select(FG);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),YZc(this,d-b*a,e+b*(1-a),c),Cl(this.interactionService,"scroll",Fl.ve.XZoomZone,this.el.nativeElement,{debounce:!0})}};h.onKeyDown=function(a){var b=this.select(FUc);switch(a.key){case "Escape":b&&(a=ZZc(this,!0),this.store.dispatch(nk({actions:a})))}};
h.onKeyUp=function(a){var b=this.select(mZc),c;((c=this.interactions)==null?0:c.ctrlDragPan)&&b&&!this.isPrimaryModifierKeyDown(a)&&(this.store.dispatch(RYc({chartGroupId:this.chartGroupId})),Cl(this.interactionService,"drag",Fl.ve.XPanZone,this.el.nativeElement))};
var YCa=function(a,b,c){if(c)a.store.dispatch(nk({actions:ZZc(a)})),a.liveAnnouncer.announce("X axis cursor unpinned.",2E3),a.onPinChange.emit(null),a.lastXAxisPinButtonClickEvent=b;else{var d;if(c=(d=a.lastXAxisPinButtonClickEvent)==null?void 0:d.timeStamp)a.store.dispatch(UG({chartGroupId:a.chartGroupId,locked:!0})),a.liveAnnouncer.announce("X axis cursor pinned.",2E3),a.onPinChange.emit(c),a.lastXAxisPinButtonClickEvent=b}},SCa=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)})},ZZc=function(a,b){b=b===void 0?!1:b;var c=[];c.push(UG({chartGroupId:a.chartGroupId,locked:!1}));b&&(c.push(TG({chartGroupId:a.chartGroupId,position:null})),c.push(VG({chartGroupId:a.chartGroupId,trackingNow:!1})));return c};
bH.prototype.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
var $Zc=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},YZc=function(a,b,c,d){if(d==="ms_since_epoch"){var e,f,g=(f=(e=a.interactionBounds)==null?void 0:e.max)!=null?f:Date.now();c>g&&(e=c-g,c-=e,b-=e)}if(a.interactionBounds){var k;e=(k=a.interactionBounds.max)!=null?k:d==="ms_since_epoch"?Date.now():Infinity;var m;k=(m=a.interactionBounds.min)!=null?m:-Infinity;e<c?(b=Math.max(k,b+e-c),c=e):k>b&&(c=Math.min(e,
c+k-b),b=k)}a.store.dispatch(nk({actions:[mYc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,priority:4}),lYc({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(bH.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){a?this.interactionsInternal=Object.assign({},QZc,a):this.interactionsInternal=QZc},get:function(){return this.interactionsInternal}},styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},RZc,a)},get:function(){return this.stylesInternal}},topButtonIconPath:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.xAxisBrushActionButtonConfig)!=null&&a.icon?
XZc[this.xAxisBrushActionButtonConfig.icon]||"":""}}});bH.\u0275fac=function(a){return new (a||bH)(Ye(Jd),Ye(cG),Ye(qG),Ye(Fl),Ye($G),Ye(sz),Ye(Tg),Ye(PZc,8),Ye(LWc,8))};
bH.\u0275cmp=C({type:bH,selectors:[["ac-x-axis"]],viewQuery:function(a,b){a&1&&jg(OZc,5);if(a&2){var c;ng(c=og())&&(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,xx],decls:9,vars:10,consts:function(){return[["pinPill",""]," Unpinning the X axis cursor allows the cursor to follow the mouse while hovering over the chart. The X axis cursor will always be pinned while using keyboard navigation to indicate that the values reflected in the tooltip or the legend are associated with the position of the X axis cursor.\n",[1,"ac-screen-reader-only-content"],[4,"ngIf"],["class","x-axis-pin overlay-z-index",
3,"ngClass","ngStyle",4,"ngIf"],[1,"ac-screen-reader-only-content",3,"id"],["class","x-axis-cursor-action-button overlay-z-index",3,"ngStyle","mouseenter","mouseleave",4,"ngIf"],[1,"x-axis-cursor-action-button","overlay-z-index",3,"mouseenter","mouseleave","ngStyle"],["type","button","aria-label","Select a point on a chart",1,"ac-a11y-focusable",3,"click"],"width;16px;height;16px;viewBox;0 0 24 24".split(";"),[1,"x-axis-pin","overlay-z-index",3,"ngClass","ngStyle"],[1,"x-axis-pin-label",3,"ngStyle"],
[1,"x-axis-pin-icon-wrapper",3,"ngStyle"],["type","button",1,"x-axis-icon","ac-a11y-focusable",3,"click"],["svgIcon","ac:time_pin_unset",1,"icon","x-axis-pin-mat-icon"],["svgIcon","ac:time_pin_set",1,"icon","x-axis-pin-mat-icon"]]},template:function(a,b){a&1&&(K(0,"p",2),Q(1),T(2,"async"),L(),E(3,VCa,3,3,"ng-container",3),T(4,"async"),E(5,cDa,10,28,"div",4),T(6,"async"),K(7,"p",5),$f(8,1),L());a&2&&(B(),Ag(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:[Yy,Yx,fy,jy,ly],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.x-axis-cursor-action-button[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%) translateY(-100%);padding-bottom:4px}.x-axis-cursor-action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;display:flex;background-color:var(--ac-sys-color-extensions-surface, #fff);border-radius:10000px;box-shadow:0 0 5px var(--ac-sys-color-extensions-on-surface-variant, #5F6368);justify-content:center;align-items:center;width:24px;height:24px}.x-axis-pin[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%);border:none;box-sizing:border-box;cursor:default;line-height:10px;width:fit-content;white-space:nowrap}.x-axis-pin[_ngcontent-%COMP%]:focus-within{outline-offset:1px}.x-axis-pin.draggable[_ngcontent-%COMP%]{cursor:grabbing}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline-offset:3px}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon-wrapper[_ngcontent-%COMP%]{box-sizing:border-box}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:50%;text-align:center;display:block;cursor:default}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-label[_ngcontent-%COMP%]{margin:auto 6px;vertical-align:top;font-family:sans-serif;font-style:normal;font-weight:400;font-size:10px}.x-axis-pin.locked[_ngcontent-%COMP%]{background:var(--ac-sys-color-chart-x-axis-pin, #5F6368);color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin.locked[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-primary, #fff);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]:not(.locked){background:var(--ac-sys-color-extensions-neutral, #bdbdbd);color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]:not(.locked)   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-neutral, #404040);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top}.dragging[_ngcontent-%COMP%]{cursor:grabbing}"],
changeDetection:0});var cH=function(a){this.liveAnnouncer=a;this.subscriptions=new Map;this.currentlyLoading=0},a_c=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."))}))},b_c=function(a,b){var c=a.subscriptions.get(b);c&&(c.unsubscribe(),
a.subscriptions.delete(b))};cH.\u0275fac=function(a){return new (a||cH)(Zc(sz))};cH.\u0275prov=Fc({token:cH,factory:cH.\u0275fac,providedIn:"root"});var dH=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},eH=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)};
dH.prototype.scheduleChangeHandler=function(a){var b=this;a.mergeKey?c_c(this,a):this.ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c=a.changes;HAa(a)?a.viewHandler(c):IAa(a)&&a.viewHandlerUsingContext(c,a.context);var d;JAa(a)?d=a.componentHandler(c):KAa(a)&&(d=a.componentHandlerUsingContext(c,a.context));d&&d.length&&b.store.dispatch(nk({actions:d}))})})};
var c_c=function(a,b){var c=b.changes,d=b.mergeKey,e=Date.now();if(HAa(b)||IAa(b)){var f=a.pendingViewRequests.get(d);f?f.changes={previousValue:f.changes.previousValue,currentValue:c.currentValue}:HAa(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(JAa(b)||KAa(b))(e=a.pendingComponentRequests.get(d))?e.changes={previousValue:e.changes.previousValue,currentValue:c.currentValue}:JAa(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});(JAa(b)||KAa(b))&&d_c(a);(HAa(b)||
IAa(b))&&e_c(a)},d_c=function(a){a.nextSetTimeoutId||a.ngZone.runOutsideAngular(function(){a.nextSetTimeoutId=setTimeout(function(){a.nextSetTimeoutId=null;var b=[],c=Array.from(a.pendingComponentRequests.keys());c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(d=a.pendingComponentRequests.get(e))a.eventStartTime=d.eventStartTime,a.pendingComponentRequests.delete(e),e=void 0,d.handlerUsingContext?e=d.handlerUsingContext(d.changes,d.context):d.handler&&(e=d.handler(d.changes)),a.eventStartTime=
null,e&&(b=b.concat(e))}b.length&&a.store.dispatch(nk({actions:b}));a.pendingComponentRequests.size&&d_c(a)},0)})},e_c=function(a){a.nextAnimationFrameId||a.ngZone.runOutsideAngular(function(){a.nextAnimationFrameId=requestAnimationFrame(function(){a.nextAnimationFrameId=null;var b=Array.from(a.pendingViewRequests.keys());b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.pendingViewRequests.get(c);if(d){var e=void 0;if(a.timeToFirstDraw===null){var f=void 0,g=a;g.timeToFirstDraw=Date.now()-
((f=g.timeToFirstQueue)!=null?f:0)-g.timeInit;f=g.pageVisibilityService;g=performance.now();var k=[];f.isPageHidden&&k.push({startTimestamp:g});f.hiddenPageMeasurements.set("timeToInteractivity",{hiddenSpans:k})}if(f=a.pendingViewRequests.get(c))if(g=Date.now(),k=g-Math.max(f.scheduledTime,(e=a.lastTaskRunTime)!=null?e:0),a.lastTaskRunTime=g,k>50&&f_c(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&&e_c(a)})})},f_c=function(a,b,c,d){NZc(a.instrumentationService,c.chartId).subscribe(function(e){aH(a.instrumentationService,{type:"dashboard-non-interactivity",dashboardId:e,timestamp:b,metadata:{blockingTimeMs:d}})})};dH.\u0275fac=function(a){return new (a||dH)(Zc(KF),Zc(Tg),Zc($G),Zc(ZG))};dH.\u0275prov=Fc({token:dH,factory:dH.\u0275fac,providedIn:"root"});EF.setThrowPartials&&EF.setThrowPartials(!1);
var g_c=new ed("window-with-resize-observer",{providedIn:"root",factory:function(){return window}}),h_c=0,fH=function(a,b,c,d,e,f,g,k,m,r){cG.call(this,a,b);var w=this;this.window=c;this.renderer=d;this.queueService=e;this.liveAnnouncerService=f;this.formatterService=g;this.instrumentationService=k;this.ngZone=m;this.testingTimezoneOffset=r;this.lastMeasuredBoundingClientRect=null;this.labelledById="ac-chart-aria-labelledby-"+h_c++;this.describedById="ac-chart-aria-describedby-"+h_c++;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 gj;this.ve={AwesomechartsGeneric:170573,AwesomechartsHeatmap:84053,AwesomechartsStackedArea:84058,AwesomechartsTimeBar:84059,AwesomechartsLine:84054,AwesomeChartImage:68528};this.chartVe=170573;this.unregisterFunctions=[];a_c(this.liveAnnouncerService,this.objectiveChartId,this.anyLayerLoading);this.setup({});this.mouseUpObservable.pipe(Ef(this.mouseDownObservable),Bf(this.destroyed)).subscribe(function(H){var J=l(H);H=J.next().value;J=J.next().value;Math.abs(J.clientX-
H.clientX)+Math.abs(J.clientY-H.clientY)<10&&(w.mouseClickSubject.next(H),w.afterMouseClickSubject.next(H))});var x=a.nativeElement,D=navigator.maxTouchPoints>1;fH.sharedWindowScrollCapture$.pipe(Bf(this.destroyed)).subscribe(function(H){w.windowCaptureScrollSubject.next(H)});this.ngZone.runOutsideAngular(function(){i_c(w,"chart");i_c(w,"document");w.unregisterFunctions.push(d.listen(x,"mousedown",function(H){eH(e,w.objectiveChartId+"-mousedown",function(){dDa(H)&&w.mouseDownSubject.next(H)})}),d.listen(x,
"mouseup",function(H){eH(e,w.objectiveChartId+"-mouseup",function(){dDa(H)&&w.mouseUpSubject.next(H)})}),d.listen(x,"mouseenter",function(H){eH(e,w.objectiveChartId+"-mouseenter",function(){w.mouseEnterSubject.next(H)})}),d.listen(x,"mouseleave",function(H){eH(e,w.objectiveChartId+"-mouseleave",function(){w.mouseLeaveSubject.next(H)})}),d.listen(x,"wheel",function(H){w.syncScrollSubject.next(H);eH(e,w.objectiveChartId+"-wheel",function(){w.scrollSubject.next(H)})}),d.listen(x,"dragstart",function(H){w.syncDragStartSubject.next(H);
eH(e,w.objectiveChartId+"-dragstart",function(){w.dragStartSubject.next(H)})}),d.listen(x,"drag",function(H){w.syncDragSubject.next(H);eH(e,w.objectiveChartId+"-drag",function(){w.dragSubject.next(H)})}),d.listen(x,"dragend",function(H){w.syncDragEndSubject.next(H);eH(e,w.objectiveChartId+"-dragend",function(){w.dragEndSubject.next(H)})}),D?d.listen(x,"touchstart",function(H){w.syncTouchStartSubject.next(H);eH(e,w.objectiveChartId+"-touchstart",function(){w.touchStartSubject.next(H)})}):null,D?d.listen(x,
"touchmove",function(H){w.syncTouchMoveSubject.next(H);eH(e,w.objectiveChartId+"-touchmove",function(){w.touchMoveSubject.next(H)})}):null,D?d.listen(x,"touchend",function(H){w.syncTouchEndSubject.next(H);eH(e,w.objectiveChartId+"-touchend",function(){w.touchEndSubject.next(H)})}):null,d.listen(c,"keydown",function(H){w.syncKeyDownSubject.next(H);eH(e,w.objectiveChartId+"-window-keydown",function(){w.keyDownSubject.next(H)})}),d.listen(c,"keyup",function(H){eH(e,w.objectiveChartId+"-window-keyup",
function(){w.keyUpSubject.next(H)})}),d.listen(document,"mouseup",function(H){eH(e,w.objectiveChartId+"-document-mouseup",function(){dDa(H)&&w.documentMouseUpSubject.next(H)})}))})};Y(fH,cG);fH.\u0275dir=cG.\u0275dir;fH.prototype.ngOnInit=function(){var a=this;cG.prototype.ngOnInit.call(this);aH(this.instrumentationService,{type:"chart-initialization-start",timestamp:performance.now(),chartId:this.chartId});this.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)})};
fH.prototype.onMouseEnter=function(){j_c(this)};var i_c=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.")}MVc(a,b);a.unregisterFunctions.push(a.renderer.listen(c,"mousemove",function(d){eH(a.queueService,a.objectiveChartId+"-"+b+"-mousemove",function(){var e=NVc(a,b),f=[];e=l(e.values());for(var g=e.next();!g.done;g=e.next())g=g.value,f=f.concat(g(d));f.length&&a.store.dispatch(nk({actions:f}))})}))};
fH.prototype.ngAfterViewInit=function(){var a=this;typeof this.window.ResizeObserver==="function"?(this.resizeObserver=new ResizeObserver(function(){a.resizeObserverTimeout=setTimeout(function(){a.resizeObserverTimeout=void 0;k_c(a,a.el.nativeElement.getBoundingClientRect())},0)}),this.resizeObserver.observe(this.el.nativeElement)):this.resizeSensor=new JTc(this.el.nativeElement,function(){k_c(a,a.el.nativeElement.getBoundingClientRect())});j_c(this,!0);fH.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=VWc({chartGroupId:a.chartGroupId,chartId:a.chartId,height:b.height,width:b.width,offsets:{top:b.top,left:b.left}}),kAa(a.store,b))})};
fH.prototype.ngOnChanges=function(a){cG.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(XWc({chartGroupId:this.chartGroupId,chartId:this.chartId,useChartGroupHorizontalMargins:this.useChartGroupHorizontalMargins}));
"yAxisOrientation"in a&&b.push(UWc({chartId:this.chartId,yAxisOrientation:this.yAxisOrientation}));"valueStrategy"in a&&this.valueStrategy&&BWc(this.formatterService,{chartId:this.chartId},this.valueStrategy);dG(this,b)};
fH.prototype.ngOnDestroy=function(){cG.prototype.ngOnDestroy.call(this);this.resizeObserver&&this.resizeObserver.unobserve(this.el.nativeElement);this.resizeObserverTimeout&&clearTimeout(this.resizeObserverTimeout);this.resizeSensor&&this.resizeSensor.detach(function(){});for(var a=l(this.unregisterFunctions),b=a.next();!b.done;b=a.next())(b=b.value)&&b();this.formatterService.valueStrategyRegistry.delete(this.chartId);b_c(this.liveAnnouncerService,this.objectiveChartId)};
var j_c=function(a,b){var c=a.el.nativeElement.getBoundingClientRect();k_c(a,c,b)},k_c=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)};
fH.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=VWc({chartGroupId:this.chartGroupId,chartId:this.chartId,height:a,width:b,offsets:{top:(f=c)!=null?f:0,left:(g=d)!=null?g:0}});e?dG(this,[a]):this.store.dispatch(a)};fH.prototype.trackByIndex=function(a){return a};
fH.prototype.scheduleStateChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};fH.prototype.scheduleChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};
da.Object.defineProperties(fH.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}}});fH.sharedWindowScrollCapture$=re(window,"scroll",{passive:!0,capture:!0}).pipe(Df(250),Nla());
fH.\u0275fac=function(a){return new (a||fH)(Ye(Jd),Ye(qG),Ye(g_c),Ye(fi),Ye(dH),Ye(cH),Ye(pG),Ye($G),Ye(Tg),Ye(PZc,8))};
fH.\u0275cmp=C({type:fH,selectors:[["ac-chart"]],hostAttrs:["draggable","true",1,"ac-chart","ac-composable-chart"],hostVars:4,hostBindings:function(a,b){a&2&&xg("height",b.height,"px")("width",b.width,"px")},inputs:{disableZoomAndPan:"disableZoomAndPan",timezoneOffset:"timezoneOffset",timeZoneId:"timeZoneId",height:"height",width:"width",featureFlags:"featureFlags",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",useChartGroupHorizontalMargins:"useChartGroupHorizontalMargins",yAxisOrientation:"yAxisOrientation",
refactorA11yNavInstructions:"refactorA11yNavInstructions",valueStrategy:"valueStrategy"},outputs:{anyLayerLoading:"anyLayerLoading"},features:[Ig([{provide:cG,useExisting:fH}]),Gf,xx],ngContentSelectors:["*"],decls:8,vars:8,consts:[[3,"ve","veMutable"],[1,"ac-screen-reader-only-content",3,"id"]],template:function(a,b){a&1&&(eg(),K(0,"figure",0)(1,"div",1)(2,"p"),Q(3),L()(),K(4,"div",1)(5,"p"),Q(6),L()(),fg(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),Ag(b.title),B(),I("id",b.describedById),B(2),Ag(b.keyboardNavInstructions))},dependencies:[rD],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 l_c=jk(yk,function(a){return a.map}),m_c=new rk({getKey:xk,getSelector:function(a){var b=a.chartGroupId;return ee(jk(l_c,function(c){return c.entities[b]}))}});var n_c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},o_c=0,gH=function(a,b){RF.call(this,a);var c=this;this.deprecateOmnibusStateObservable=b;this.destroyed=new sf;this.logger=null;this.extensionId="ac-extension-"+o_c++;this.inputScopeSubject=new Wj({});var d;this.enclosingChart=(d=p(cG,{optional:!0}))!=null?d:void 0;var e;this.enclosingLayer=(e=p(KG,{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(D){var H=l(D);D=H.next().value;H=H.next().value;return Object.assign({},n_c,D,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(BXc),colorScale:this.selectorFactoryToObservable(TXc),error:this.selectorFactoryToObservable(ZXc),focus:this.selectorFactoryToObservable(EUc),lastInteraction:this.selectorFactoryToObservable(cYc),loading:this.selectorFactoryToObservable(gYc),map:this.selectorFactoryToObservable(m_c),resize:this.selectorFactoryToObservable(GUc),seriesSelection:this.selectorFactoryToObservable(iYc),spec:this.selectorFactoryToObservable(kYc),xAxisPin:this.selectorFactoryToObservable(GVc),
timeSeries:this.selectorFactoryToObservable(FVc),xAxis:this.selectorFactoryToObservable(yYc),yAxis:this.selectorFactoryToObservable(IG)};var k,m,r,w,x;this.context={scope:{chartGroupId:((k=this.scope)==null?void 0:k.chartGroupId)||"",chartId:((m=this.scope)==null?void 0:m.chartId)||"",yAxisId:((r=this.scope)==null?void 0:r.yAxisId)||"right",xAxisId:((w=this.scope)==null?void 0:w.xAxisId)||"chart_group",layerId:((x=this.scope)==null?void 0:x.layerId)||""},state:null};le([this.scopeObservable,this.stateObservable]).pipe(Bf(this.destroyed)).subscribe(function(D){var H=
l(D);D=H.next().value;H=H.next().value;c.context.scope=D;c.context.state=H.currentValue})};Y(gH,RF);h=gH.prototype;
h.setup=function(a){var b=this;this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),RF.prototype.setup.call(this,{stateSelectionObservables:a}),this.scopeObservable.pipe(zf(null),vf(),A(pk),Ef(this.stateObservable),Bf(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)}),this.setupStateChangeHandler(a.resize,function(c,d){c=qk(c,function(e){return e.resize});b.onResizeChange(c,
d)},"resize"),this.setupStateChangeHandler(a.xAxis,function(c,d){c=qk(c,function(e){return e.xAxis});b.onXAxisChange(c,d)},"xAxis"),this.setupStateChangeHandler(a.yAxis,function(c,d){c=qk(c,function(e){return e.yAxis});b.onYAxisChange(c,d)},"yAxis"),this.setupStateChangeHandler(a.error,function(c,d){c=qk(c,function(e){return e.error});b.onErrorChange(c,d)},"error"),this.setupStateChangeHandler(a.loading,function(c,d){c=qk(c,function(e){return e.loading});b.onLoadingChange(c,d)},"loading"),this.setupStateChangeHandler(a.brush,
function(c,d){c=qk(c,function(e){return e.brush});b.onBrushChange(c,d)},"brush"),this.setupStateChangeHandler(a.seriesSelection,function(c,d){c=qk(c,function(e){return e.seriesSelection});b.onSeriesSelectionChange(c,d)},"seriesSelection"),this.setupStateChangeHandler(a.xAxisPin,function(c,d){c=qk(c,function(e){return e.xAxisPin});b.onXAxisPinChange(c,d)},"xAxisPin"),this.setupStateChangeHandler(a.timeSeries,function(c,d){c=qk(c,function(e){return e.timeSeries});b.onTimeSeriesChange(c,d)},"timeSeries"),
this.setupStateChangeHandler(a.focus,function(c,d){c=qk(c,function(e){return e.focus});b.onFocusChange(c,d)},"focus"),this.setupStateChangeHandler(a.lastInteraction,function(c,d){c=qk(c,function(e){return e.lastInteraction});b.onLastInteractionChange(c,d)},"lastInteraction"),this.setupStateChangeHandler(a.colorScale,function(c,d){c=qk(c,function(e){return e.colorScale});b.onColorScaleChange(c,d)},"colorScale"),this.setupStateChangeHandler(a.spec,function(c){c=qk(c,function(d){return d.spec});b.onChartSpecChange(c)},
"spec"),this.setupStateChangeHandler(a.map,function(c,d){c=qk(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(GAa(this.stateObservable),Bf(this.destroyed)).subscribe(function(f){f=l(f).next().value;var g={previousValue:e,currentValue:f.currentValue};e=f.currentValue;d.scheduleStateChangeHandler(g,d.context,b,d.extensionId+"-"+c,d.context.scope)})}};h.onScopeChange=function(){};
h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onLastInteractionChange=function(){};h.onColorScaleChange=function(){};h.onChartSpecChange=function(){};h.onMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a,b,c){c(a,b)};h.ngOnChanges=function(a){"scope"in a&&this.inputScopeSubject.next(Object.assign({},this.scope))};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};gH.\u0275fac=function(){Ze()};gH.\u0275dir=df({type:gH,inputs:{scope:"scope"},features:[Gf,xx]});var AMa={chartId:"",byLayer:{ids:[],entities:{}}},p_c={layerId:"",yAxisId:"right",xAxisId:"chart_group",valueType:1,unit:null,bySeries:{ids:[],entities:{}}},q_c={seriesId:"",name:"",atTimeKey:{}};var r_c={chartGroupId:"",xPos:null,locked:!1,trackingNow:!1,directionOfTravel:0};var s_c=["hoverContent"],hH=function(a,b,c,d,e,f,g){KG.call(this,a,b,c);var k=this;this.queueService=d;this.overlay=e;this.viewContainerRef=f;this.ngZone=g;this.mouseInBounds=new Wj(!1);this.focusAndXAxisPinInChart=new Wj(!1);this.isPinned$=new Wj(!1);this.showHovercardOverrideSubject=new Wj("no_override");this.shouldShowSeriesActionText$=new Wj(!0);this.dataSubject=new Wj(null);this.defaultShowHovercard=le([this.mouseInBounds,this.focusAndXAxisPinInChart]).pipe(Ef(this.isPinned$),Af(function(m){var r=
l(m);var w=l(r.next().value);m=w.next().value;w=w.next().value;return r.next().value?ee(!0):w?ee(!0):m?t_c(k).pipe(A(function(x){return!x})):ee(!1)}));this.globalHoverDisabled=this.isShowing=!1;this.showHovercard=this.showHovercardOverrideSubject.pipe(Af(function(m){return u_c(k,m)}),xf({bufferSize:1,refCount:!0}),pf(),Cf(function(m){k.isShowing=m}),Gk(this.ngZone));this.timeKeySubject=new Wj(1);this.timeKeyObservable=this.timeKeySubject.pipe(pf());this.globalOverlayPositionStrategy=this.overlay.position().global();
this.overlayRef=this.overlay.create(new gi({positionStrategy:this.globalOverlayPositionStrategy,scrollStrategy:this.overlay.scrollStrategies.close()}));this.setup({dataObservable:this.dataSubject});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(m){if(!k.globalHoverDisabled)k.onMouseEnter(m)});eG(this.chart,"chart",function(m){if(k.mouseInBounds.value&&!k.globalHoverDisabled)k.onMouseMove(m);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){k.onMouseLeave()});
this.showHovercard.pipe(we(function(m){return!m}),Bf(this.destroyed)).subscribe(function(){return void k.detachHovercard()})};Y(hH,KG);h=hH.prototype;h.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);SF(this,qAa).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?Uz($z(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){v_c(this,b);w_c(this,b)};
h.onXAxisPinChange=function(a,b){v_c(this,b)};h.onLastInteractionChange=function(a,b){w_c(this,b)};
var w_c=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=vl(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=hH.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){$Ec(e.overlayRef,e.connectedOverlayPositionStrategy);var g=
e.connectedOverlayPositionStrategy;g._offsetX=f.x;g._offsetY=f.y}else $Ec(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 dA(this.hoverContent,this.viewContainerRef)),this.onAttach())};h.detachHovercard=function(){this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.onDetach())};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);this.detachHovercard()};
var u_c=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)}},v_c=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)}},t_c=function(a){return a.scopeObservable.pipe(Af(function(b){return a.store.select(yCa(b))}),
xf({bufferSize:1,refCount:!0}),A(function(b){return!(b==null||!b.brushing)}))};da.Object.defineProperties(hH.prototype,{showHovercardOverride:{configurable:!0,enumerable:!0,set:function(a){this.showHovercardOverrideSubject.next(a)}}});hH.\u0275fac=function(a){return new (a||hH)(Ye(Jd),Ye(cG),Ye(qG),Ye(dH),Ye(iA),Ye(hg),Ye(Tg))};
hH.\u0275dir=df({type:hH,viewQuery:function(a,b){a&1&&jg(s_c,5);if(a&2){var c;ng(c=og())&&(b.hoverContent=c.first)}},inputs:{positionStrategy:"positionStrategy",connectedOverlayPositionAnchor:"connectedOverlayPositionAnchor",showHovercardOverride:"showHovercardOverride"},features:[Gf]});var x_c=[[["","prefix",""]],[["","suffix",""]]],iH=function(){gH.call(this,p(qG));var a=this;this.timeKey=1;this.updateDebouncedTriggerSubject=new sf;this.dateFormatStrategy=eDa;this.numericFormatStrategy=fDa;this.dateTimeSubject=new Wj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Wj(Ok(WAa));this.queueService=p(dH);this.formattedDateTimeObservable=le([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;if(c.unit==="ms_since_epoch"){var e,
f,g;return c.cursor?a.dateFormatStrategy(new Date((e=c.cursor)!=null?e:""),c.min?new Date((f=c.min)!=null?f:""):null,c.max?new Date((g=c.max)!=null?g:""):null,d):""}return a.numericFormatStrategy(c.cursor,c.min,c.max)}));this.setup({});var b=p(hH,{optional:!0});b&&b.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(c){a.timeKey=c;a.withLatest(function(d){a.update(d)})});p(Tg).runOutsideAngular(function(){a.updateDebouncedTriggerSubject.pipe(Df(250)).pipe(Bf(a.destroyed)).subscribe(function(){a.withLatest(function(c){a.update(c)})})})};
Y(iH,gH);iH.\u0275dir=gH.\u0275dir;h=iH.prototype;h.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};h.onXAxisChange=function(a){if(dl(a)||el(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Pk(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=vl(a.scope,e);d=gl(c,d.margins.left,d.width-d.margins.right);a:{switch(this.timeKey){case 0:var g;var k=(g=f==null?void 0:f.xPos)!=null?g:null;break a;case 2:g=(k=a.click)==null?void 0:k.x;k=d&&g?d(g):null;break a;case 1:var m;g=(m=a.hover)==null?void 0:m.x;k=d&&g?d(g):null;break a;case 3:k=c.max;break a;case 4:var r;g=(r=a.multiselectAnchor)==null?void 0:r.x;k=d&&g?d(g):
null;break a;default: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;m=k=null;f=r=Infinity;if((d==null?0:d.length)&&b)for(d=l(d),a=d.next();!a.done;a=d.next())if((e=b[a.value])&&(e.valueType===1||e.valueType===2)){var w=void 0,x=void 0,D=void 0;a=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x0;D=x=w=void 0;e=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?
void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x;a&&e?(w=Math.abs(e-g)+Math.abs(a-g),w<f&&(m=a,k=e,f=w)):e&&f===Infinity&&(a=Math.abs(e-g),a<r&&(k=e,r=a))}this.dateTimeSubject.next({cursor:g,max:k,min:m,unit:c.unit})}}}};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
da.Object.defineProperties(iH.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()}}});iH.\u0275fac=function(a){return new (a||iH)};
iH.\u0275cmp=C({type:iH,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&&(eg(x_c),F(0,gDa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[ly],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 jH=fk("[AC] Set selected series for chart and layer",gk()),kH=fk("[AC] Clear selected series for chart and layer",gk()),y_c=fk("[AC] Add a selected series for chart and layer",gk()),z_c=fk("[AC] Remove a selected series for chart and layer",gk()),lH=fk("[AC] Set hovered series for chart and layer",gk()),A_c=fk("[AC] Set last clicked series for chart and layer",gk()),B_c=fk("[AC] Set multiselect anchor series for chart and layer",gk()),C_c=fk("[AC] Set tooltip annotations for chart and layer",
gk()),D_c=fk("[AC] Set selected annotations for chart and layer",gk());var E_c="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0;m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835;m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82;m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28;m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28;m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19;m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94;m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158;m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19;m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7;m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464;m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36".split(";");
Array.from((new Map([["circle","m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"],["square","m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835"],["diamond","m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82"],["down_triangle","m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28"],["up_triangle","m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28"],["hill","m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19"],["plus",
"m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94"],["cross","m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158"],["valley","m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19"],["star","m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7"],
["pentagon","m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464"],["marker","m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36"]])).entries()).map(function(a){var b=l(a);a=b.next().value;return[b.next().value,a]});var F_c={height:28,width:28};var tDa=function(a,b){return{fill:a,stroke:b}},G_c=new Map([[0,"line"],[1,"line-with-area"],[2,"square"],[3,"square"],[4,"band-max"],[5,"band-min"],[6,"threshold"],[7,"square"]]),H_c=0,mH=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-"+H_c++;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(mH.prototype,{drawnAs:{configurable:!0,enumerable:!0,set:function(a){this.keyShape=a!==void 0?G_c.get(a)||"circle":"circle"}}});mH.\u0275fac=function(a){return new (a||mH)};
mH.\u0275cmp=C({type:mH,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,uDa,8,11,"i",2)(1,xDa,4,6,"ng-template",null,0,Og);a&2&&(a=sg(2),I("ngIf",!b.condensed)("ngIfElse",a))},dependencies:[fy,jy,gy,hy,iy],styles:["i[_ngcontent-%COMP%]{position:relative;display:block;width:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);height:var(--ac-sys-spacing-legend-basis,12px);line-height:0}i[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}i.condensed[_ngcontent-%COMP%]{width:var(--ac-sys-spacing-legend-basis,12px)}\n/*# sourceMappingURL=ac_key.css.map */"],
changeDetection:0});var I_c=new ed("MAT_MENU_PANEL");var J_c=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nH=function(){this._elementRef=p(Jd);this._document=p(Uh);this._focusMonitor=p(bz);this._parentMenu=p(I_c,{optional:!0});this._changeDetectorRef=p(Px);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new sf;this._focused=new sf;this._triggersSubmenu=this._highlighted=!1;p(bi).load(sA);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};h=nH.prototype;
h.focus=function(a,b){this._focusMonitor&&a?cz(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()};nH.\u0275fac=function(a){return new (a||nH)};
nH.\u0275cmp=C({type:nH,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),yg("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh]},exportAs:["matMenuItem"],attrs:["mat-menu-item",""],ngContentSelectors:["mat-icon, [matMenuItemIcon]","*"],decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(eg(J_c),fg(0),K(1,
"span",0),fg(2,1),L(),M(3,"div",1),F(4,yDa,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:[vA],encapsulation:2,changeDetection:0});var K_c=new ed("MatMenuContent"),oH=function(){this._template=p(gg);this._appRef=p(Yg);this._injector=p(Ae);this._viewContainerRef=p(hg);this._document=p(Uh);this._changeDetectorRef=p(Px);this._attached=new sf};
oH.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new dA(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new ii(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()};
oH.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};oH.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};oH.\u0275fac=function(a){return new (a||oH)};oH.\u0275dir=df({type:oH,selectors:[["ng-template","matMenuContent",""]],features:[Ig([{provide:K_c,useExisting:oH}])]});var L_c=new ed("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),pH=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._injector=p(Ae);this._animationsDisabled=pi();this._directDescendantItems=new ig;this._classList={};this._panelAnimationState="void";this._animationDone=new sf;this._isAnimating=pg.apply(null,[!1].concat(q([])));this.close=this.closed=
new gj;this.panelId=p(di).getId("mat-menu-panel-");var a=p(L_c);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=pH.prototype;h.ngOnInit=function(){this.setPositionClasses()};
h.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=Ez(CEc(Bz(new Hz(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 Fz(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:Jh(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||FEc(c,"keyboard"),c.onKeydown(a)}};
var M_c=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;FEc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};h=pH.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}));mg(a._directDescendantItems)})};h._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
da.Object.defineProperties(pH.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}}});pH.\u0275fac=function(a){return new (a||pH)};
pH.\u0275cmp=C({type:pH,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(kg(c,K_c,5),kg(c,nH,5),kg(c,nH,4));if(a&2){var d;ng(d=og())&&(b.lazyContent=d.first);ng(d=og())&&(b._allItems=d);ng(d=og())&&(b.items=d)}},viewQuery:function(a,b){a&1&&jg(gg,5);if(a&2){var c;ng(c=og())&&(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",bh],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:bh(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ig([{provide:I_c,useExisting:pH}])],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&&(eg(),If(0,zDa,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 N_c=new ed("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a)}}}),qH=new WeakMap,rH=function(a){this._canHaveBackdrop=a;this._element=p(Jd);this._viewContainerRef=p(hg);this._menuItemInstance=p(nH,{optional:!0,self:!0});this._dir=p(ei,{optional:!0});this._focusMonitor=p(bz);this._ngZone=p(Tg);this._injector=p(Ae);this._scrollStrategy=p(N_c);this._changeDetectorRef=p(Px);this._animationsDisabled=pi();this._overlayRef=null;this._menuOpen=
!1;this._menuCloseSubscription=this._closingActionsSubscription=Rd.EMPTY;this._openedBy=void 0;var b=p(I_c,{optional:!0});this._parentMaterialMenu=b instanceof pH?b:void 0};h=rH.prototype;h.ngOnDestroy=function(){this._menu&&this._ownsMenu(this._menu)&&qH.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=qH.get(c);qH.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&&M_c(c,this._openedBy||"program");this._setIsMenuOpen(!0);c instanceof pH&&(c._setIsOpen(!0),c._directDescendantItems.changes.pipe(Bf(c.close)).subscribe(function(){cFc(gFc(f,!1));gFc(f,!0)}))}};h.focus=function(a,b){this._focusMonitor&&a?cz(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 pH&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(nf(1)).subscribe(function(){b.detach();if(!qH.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)&&qH.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=ni(this._injector,c);this._overlayRef.keydownEvents().subscribe(function(d){b._menu instanceof pH&&b._menu._handleKeydown(d)})}return this._overlayRef};
h._getOverlayConfig=function(a){return new gi({positionStrategy:hFc(eFc(gFc($h(this._injector,this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})};
h._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){c._ngZone.run(function(){a.setPositionClasses(d.connectionPair.overlayX==="start"?"after":"before",d.connectionPair.overlayY==="top"?"below":"above")})})};
h._setPosition=function(a,b){var c=l(a.xPosition==="before"?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=l(a.yPosition==="above"?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var g=l([f,e]),k=g.next().value;g=g.next().value;var m=l([d,c]),r=m.next().value;m=m.next().value;var w=0;this._triggersSubmenu()?(m=d=a.xPosition==="before"?"start":"end",c=r=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=
(a=this._parentMaterialMenu.items.first)?a._getHostElement().offsetTop:0),w=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",g=e==="top"?"bottom":"top");Uz(b,[{originX:d,originY:k,overlayX:r,overlayY:f,offsetY:w},{originX:c,originY:k,overlayX:m,overlayY:f,offsetY:w},{originX:d,originY:g,overlayX:r,overlayY:e,offsetY:-w},{originX:c,originY:g,overlayX:m,overlayY:e,offsetY:-w}])};
h._menuClosingActions=function(){var a=this,b=this._getOutsideClickStream(this._overlayRef),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed: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 dA(a.templateRef,this._viewContainerRef));return this._portal};
h._ownsMenu=function(a){return qH.get(a)===this};
da.Object.defineProperties(rH.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"}}});rH.\u0275fac=function(){Ze()};rH.\u0275dir=df({type:rH});var sH=function(){rH.call(this,!0);var a=this;this._hoverSubscription=Rd.EMPTY;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new gj;this.onMenuClose=this.menuClosed=new gj;this._cleanupTouchstart=p(fi).listen(this._element.nativeElement,"touchstart",function(b){xra(b)||(a._openedBy="touch")},{passive:!0})};Y(sH,rH);h=sH.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(){rH.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){wra(a)||(this._openedBy=a.button===0?"mouse":void 0,rH.prototype._triggersSubmenu.call(this)&&a.preventDefault())};
h._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";rH.prototype._triggersSubmenu.call(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};h._handleClick=function(a){rH.prototype._triggersSubmenu.call(this)?(a.stopPropagation(),this.openMenu()):this.menuOpen?this.closeMenu():this.openMenu()};
h._handleHover=function(){var a=this;rH.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(sH.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}}});sH.\u0275fac=function(a){return new (a||sH)};
sH.\u0275dir=df({type:sH,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 tH=function(){};tH.\u0275fac=function(a){return new (a||tH)};tH.\u0275mod=cf({type:tH});tH.\u0275inj=Gc({imports:[yA,lA,Zy,Rz]});var O_c=["streamActionsMenuContents"],uH=function(a){this.cdr=a;this.streamActions=[];this.filteredStreamActions=[]};uH.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(),P_c(this),this.cdr.detectChanges()};
uH.prototype.ngAfterViewInit=function(){var a;this.streamActionMenu&&((a=this.filteredStreamActions)==null?0:a.length)&&(this.streamActionMenu.clear(),P_c(this),this.cdr.detectChanges())};var P_c=function(a){if(a.streamActionMenu)for(var b=l(a.filteredStreamActions),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.streamActionMenu.createComponent(c.menuItem);d.instance.config=c.config;d.instance.streamMetadata=a.streamMetadata}};uH.\u0275fac=function(a){return new (a||uH)(Ye(Px))};
uH.\u0275cmp=C({type:uH,selectors:[["ac-stream-action-menu"]],viewQuery:function(a,b){a&1&&jg(O_c,5,hg);if(a&2){var c;ng(c=og())&&(b.streamActionMenu=c.first)}},inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[xx],decls:3,vars:0,consts:[["streamActionsMenuContents",""],[1,"stream-action-menu"]],template:function(a){a&1&&(Tf(0,"div",1),Vf(1,"div",null,0),Uf())},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 vH=function(){this.streamActions=[];this.filteredStreamActions=[]};vH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};vH.\u0275fac=function(a){return new (a||vH)};
vH.\u0275cmp=C({type:vH,selectors:[["ac-series-stream-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[xx],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,ADa,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:[ty,fy,$y,Yy,mC,lC,tH,pH,sH,uH],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 Q_c=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(Q_c.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 R_c=function(){Q_c.apply(this,arguments);this.valueType=1};Y(R_c,Q_c);var S_c=function(){Q_c.apply(this,arguments);this.valueType=2};Y(S_c,Q_c);var wH=function(){};
wH.prototype.updateLabelsModel=function(a,b){var c=!1,d=function(g){var k=a.selectedColumns.filter(function(m){return m.uniqueId!==g.uniqueId});k.length<a.selectedColumns.length&&(c=!0,a.selectedColumns=k)},e=function(g){a.selectedColumns.filter(function(k){return k.uniqueId===g.uniqueId}).length===0&&(c=!0,a.selectedColumns.push(g))},f=1;a.selectableColumns.forEach(function(g){delete g.order});b.forEach(function(g,k){g&&g.forEach(function(m){var r=!1;a.selectableColumns.forEach(function(w){m.title===w.title&&
(r=!0,w.order=w.order||f++,w.isDefault!==m.isDefault&&((w.isDefault=m.isDefault)?e(w):d(w)),m.template!==w.templates[k]&&(w.templates[k]=m.template,w.tokenizers[k]=m.tokenizer))});r||(m={isDefault:m.isDefault,title:m.title,templates:[m.template],tokenizers:[m.tokenizer],uniqueId:m.uniqueId},m.uniqueId=a.nextColumnId++,m.order=f++,a.selectableColumns.push(m),m.isDefault&&e(m))})});a.selectableColumns.forEach(function(g){g.order||d(g)});a.selectableColumns=a.selectableColumns.filter(function(g){return g.order});
a.selectableColumns=a.selectableColumns.map(function(g){return g});a.selectableColumns.sort(function(g,k){return g.order-k.order});b=a.selectedColumns;a.selectedColumns=a.selectedColumns.map(function(g){return g});a.selectedColumns.sort(function(g,k){return g.order-k.order});b.forEach(function(g,k){g.uniqueId!==a.selectedColumns[k].uniqueId&&(c=!0)});return c};
wH.prototype.updatePercents=function(a,b,c,d){d=d||640;a.labelWidths=b.map(function(k,m){var r=a.labelWidths&&a.labelWidths.length&&a.labelWidths[m]||0;r===0&&(r=a.labelHeaders&&a.labelHeaders[m]&&a.labelHeaders[m].length||0);return Math.max(r,k.length)});var e=0;a.labelWidths.forEach(function(k){e+=k});var f=Math.max(80,d/8)-e;a.scale=f<0?c-1.25*f:c;var g=a.labelWidths.length;a.labelPercents=f>0&&g?a.labelWidths.map(function(k){return k+f/g}):a.labelWidths.map(function(k){return k});e=0;a.labelPercents.forEach(function(k){e+=
k});for(a.labelPercents=a.labelPercents.map(function(k){return Math.floor(k/e*c)});a.labelPercents.includes(0);){d=Math.max.apply(Math,q(a.labelPercents));if(d<=1)break;b=a.labelPercents.indexOf(0);d=a.labelPercents.indexOf(d);a.labelPercents[b]++;a.labelPercents[d]--}};var Al=function(a){return a[0]!=='"'||a.length<2||a[a.length-1]!=='"'?a:a.substring(1,a.length-1).replace(/\\([\\"])/g,"$1")};wH.prototype.updatePercents=wH.prototype.updatePercents;wH.prototype.updateLabelsModel=wH.prototype.updateLabelsModel;
var T_c=new wH;Pw("awesomecharts.utils.LabelUtils",T_c);var U_c=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(U_c.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 V_c={getColor:function(a,b){a=RDa(b.max,b.colorPivots)(a);var c=l(a);a=c.next().value;b=c.next().value;c=c.next().value;return"rgb("+a+", "+b+", "+c+")"}};var nEa=function(){return[]},YDa=function(a,b){return{$implicit:a,name:b}},cEa=function(a,b,c){return{$implicit:a,seriesMetadata:b,displayValue:c}},zEa=function(a){return{"min-width":a}},W_c=["right","left"],BH=function(){var a=p(qG);gH.call(this,a);var b=this;this.queueService=p(dH);this.formatterService=p(pG);this.cdr=p(Px);this.enclosingHovercard=p(hH,{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=V_c;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 Wj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return c.sort(IEa)}));
this.relativeYPosSubject=new Wj(null);this.centerStreamIndexObservable=le([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),pf());this.truncatedStreamsObservable=le([this.sortedStreamsObservable,this.centerStreamIndexObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Math.max(0,d-Math.ceil(Math.max(0,b.visibleRows-1)/2));var e=Math.min(d+b.visibleRows,c.length),f=
b.visibleRows-(e-d);f&&(d===0?e=Math.min(c.length,e+f):d=Math.max(0,d-f));return{streams:c.slice(d,e),streamsAboveCount:d,streamsBelowCount:c.length-e}}),xf({bufferSize:1,refCount:!0}));this.streamsObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streams}),xf({bufferSize:1,refCount:!0}));this.selectedStreamsSubject=new Wj([]);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 Wj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(xf({bufferSize:1,refCount:!0}));this.showSelectedSeriesHeadersObservable=le([this.selectedStreamsObservable,this.timeshiftColumnLabelObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;
d=b.chartQuickActionsEnabled&&d!=="";return c.length>0?!b.onlyShowSelectedSeriesInternal||d:!1}),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,m;return(m=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?m:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y(BH,gH);
BH.\u0275dir=gH.\u0275dir;h=BH.prototype;h.ngOnChanges=function(a){gH.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(kk(DG),Bf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=W_c.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(IG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(pk),we(function(d){return xl(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=l(c.streams);for(var e=c.next();!e.done;e=c.next())e=e.value,e.metadata!==void 0&&(d=d||a.showHovercardSeriesActionText(e.metadata));a.enclosingHovercard.shouldShowSeriesActionText$.next(d)}});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=W_c.map(function(d){return b.scopeObservable.pipe(Af(function(e){return b.selectorService.getSelection(IG,Object.assign({},e,{yAxisId:d}))}))});le(c).pipe(nf(1)).subscribe(function(d){for(var e=new Map,f=0;f<W_c.length;f++)e.set(W_c[f],d[f]);b.withLatest(function(g){var k=g.scope;var m=g.state;if(k&&m&&m.timeSeries&&m.brush&&m.resize&&Object.keys(m.timeSeries.byLayer.entities).length!==0){g=m.colorScale;var r=m.seriesSelection,w=m.timeSeries,x=m.resize;if(!m.brush.panning){a&&
b.deselectAllSeries(k,r);m=X_c(r);r=b.getInteractedSeries(r);for(var D=new Map,H=l(W_c),J=H.next();!J.done;J=H.next()){J=J.value;var O=e.get(J);if(O){O=yl(O,x.margins.top,x.height-x.margins.bottom,O.unit);var R=void 0;D.set(J,(R=O)!=null?R:null)}else D.set(J,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);g=b.buildStreams(k,w,r,D,e,g);b.allStreamsSubject.next(g);k=Y_c(b,k,w,m,e);b.selectedStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,m=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Nk((m=(e=a)==null?void 0:e.chartGroupId)!=null?m:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?QCa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Gc");}return c||""};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){rl(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(vl(b.scope,a)),this.relativeYPosSubject.next(b)};var X_c=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=BH.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(kH({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,m;return(m=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?m:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new Bl(a.legendTemplate):this.labelTemplate&&(b=new Bl(this.labelTemplate));var d=NDa(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 Y_c=function(a,b,c,d,e){var f=new Map,g=new Map;c=l(c);for(var k=c.next(),m={};!k.done;m={labelFormatter$jscomp$1:void 0,layer$jscomp$6:void 0,yAxisState$jscomp$1:void 0},k=c.next())if(m.layer$jscomp$6=k.value,m.yAxisState$jscomp$1=e.get(m.layer$jscomp$6.yAxisId),m.yAxisState$jscomp$1){var r=void 0,w=void 0,x=void 0,D=void 0,H=void 0,J=void 0;k=!!((x=a.xAxisLookup.entities[Nk((H=(r=b)==null?void 0:r.chartGroupId)!=null?H:"",(J=(w=b)==null?void 0:w.chartId)!=null?J:"",m.layer$jscomp$6.xAxisId)])==
null?0:(D=x.relativeTo)==null?0:D.shift);if(m.layer$jscomp$6.valueType!==2&&(m.layer$jscomp$6.valueType===1||m.layer$jscomp$6.valueType===3))for(r=Object.values(m.layer$jscomp$6.bySeries.entities),w=void 0,m.labelFormatter$jscomp$1=a.getCachedLabelFormatter(r,(w=m.layer$jscomp$6.legendTemplate)!=null?w:a.labelTemplate),r=l(r),x=r.next(),w={};!x.done;w={series$jscomp$22:void 0,value$jscomp$8623: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(ta){return ta.seriesId}).includes(w.series$jscomp$22.seriesId)){w.value$jscomp$8623=w.series$jscomp$22.atTimeKey[a.timeKey];D=function(ta){return function(){return ta.series$jscomp$22.color}}(w);H=function(ta){return function(){return ta.series$jscomp$22.shape}}(w);w.getName=function(ta,ka){return function(){return a.displayName(ta.series$jscomp$22,ka.labelFormatter$jscomp$1)}}(w,m);J=function(ta,ka){return function(){var Ca;return a.formatNumericValue((Ca=
ta.value$jscomp$8623)==null?void 0:Ca.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,ta.getName)())}}(w,m);var O=void 0;x=((O=w.value$jscomp$8623)==null?void 0:O.min)!==void 0?function(ta,ka){return function(){var Ca;return a.formatNumericValue((Ca=ta.value$jscomp$8623)==null?void 0:Ca.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,ta.getName)())}}(w,m):void 0;var R=void 0;O=((R=w.value$jscomp$8623)==null?void 0:R.max)!==void 0?function(ta,ka){return function(){var Ca;return a.formatNumericValue((Ca=ta.value$jscomp$8623)==null?void 0:Ca.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,ta.getName)())}}(w,m):void 0;var V=function(ta){return function(){return ta.series$jscomp$22.dataSeriesMetadata}}(w),ba=void 0;R=w.value$jscomp$8623!==void 0&&w.value$jscomp$8623!==null?(ba=Uk(m.layer$jscomp$6.unit,m.yAxisState$jscomp$1.unit,w.value$jscomp$8623.y))!=null?ba:w.value$jscomp$8623.y:void 0;var oa=ba=void 0;D=new R_c({getColor:D,getShape:H,getDisplayValue:J,getIsInteracted:function(){return!1},getName:w.getName,
getMetadata:V,drawnAs:w.series$jscomp$22.drawnAs,lineDash:w.series$jscomp$22.lineDash,rawValue:(oa=(ba=w.value$jscomp$8623)==null?void 0:ba.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,D):f.set(w.series$jscomp$22.seriesId,D)}}b=l(f);e=b.next();for(d={};!e.done;d={shiftedStream:void 0},e=b.next())c=l(e.value),e=c.next().value,c=c.next().value,d.shiftedStream=g.get(e),d.shiftedStream&&
(c.getTimeshiftDisplayValue=function(ta){return function(){return ta.shiftedStream.displayValue}}(d),g.delete(e));return Array.from(f.values()).concat(Array.from(g.values())).sort(IEa)};h=BH.prototype;
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,m=new Map;b=l(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$7:void 0,yAxisState$jscomp$2:void 0,layerColorScale:void 0,labelFormatter$jscomp$2:void 0,labelFormatter$jscomp$3:void 0},r=b.next())if(w.layer$jscomp$7=r.value,w.yAxisState$jscomp$2=e.get(w.layer$jscomp$7.yAxisId),w.yAxisState$jscomp$2){var x=void 0,D=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Nk((O=(x=a)==null?void 0:x.chartGroupId)!=null?O:
"",(R=(D=a)==null?void 0:D.chartId)!=null?R:"",w.layer$jscomp$7.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$7.valueType===2)for(x=void 0,w.layerColorScale=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$7.layerId],x=Object.values(w.layer$jscomp$7.bySeries.entities),D=void 0,w.labelFormatter$jscomp$2=this.getCachedLabelFormatter(x,(D=w.layer$jscomp$7.legendTemplate)!=null?D:this.labelTemplate),x=l(x),H=x.next(),D={};!H.done;D={series$jscomp$23:void 0,getDisplayValueAndBucketCount:void 0},
H=x.next())(D.series$jscomp$23=H.value,!D.series$jscomp$23||this.hideThresholds&&D.series$jscomp$23.drawnAs===6||(H=D.series$jscomp$23.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(D.getDisplayValueAndBucketCount=function(ua,xa){return function(){return g.formatDistributionValue(ua.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)}}(D,w),H=void 0,
J=new S_c({getColor:function(ua,xa){return function(){var Ra=(0,ua.getDisplayValueAndBucketCount)().bucketCount;Ra=xa.layerColorScale?g.distributionColorStrategy.getColor(Ra!=null?Ra:xa.layerColorScale.min,xa.layerColorScale):"var(--ac-sys-color-chart-on-surface, #000)";return typeof Ra!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":Ra}}(D,w),getShape:function(){},getDisplayValue:function(ua){return function(){return(0,ua.getDisplayValueAndBucketCount)().displayValue}}(D),getIsInteracted:function(ua){return function(){return c.map(function(xa){return xa.seriesId}).includes(ua.series$jscomp$23.seriesId)}}(D),
getName:function(ua,xa){return function(){return g.displayName(ua.series$jscomp$23,xa.labelFormatter$jscomp$2)}}(D,w),getMetadata:function(ua){return function(){return ua.series$jscomp$23.dataSeriesMetadata}}(D),drawnAs:D.series$jscomp$23.drawnAs,lineDash:D.series$jscomp$23.lineDash,rawValue:(H=D.series$jscomp$23.atTimeKey[this.timeKey])!=null?H:void 0}),r?m.set(D.series$jscomp$23.seriesId,J):k.set(D.series$jscomp$23.seriesId,J));else if(w.layer$jscomp$7.valueType===1||w.layer$jscomp$7.valueType===
3)if(x=d.get(w.layer$jscomp$7.yAxisId))for(D=Object.values(w.layer$jscomp$7.bySeries.entities),H=void 0,w.labelFormatter$jscomp$3=this.getCachedLabelFormatter(D,(H=w.layer$jscomp$7.legendTemplate)!=null?H:this.labelTemplate),D=l(D),J=D.next(),H={};!J.done;H={series$jscomp$24:void 0,value$jscomp$8625:void 0,getName$jscomp$2:void 0},J=D.next())if(H.series$jscomp$24=J.value,H.series$jscomp$24&&(!this.hideThresholds||H.series$jscomp$24.drawnAs!==6)&&(H.value$jscomp$8625=H.series$jscomp$24.atTimeKey[this.timeKey],
!this.hideUndefinedValues||H.value$jscomp$8625)){O=function(ua){return function(){return ua.series$jscomp$24.color}}(H);R=function(ua){return function(){return ua.series$jscomp$24.shape}}(H);H.getName$jscomp$2=function(ua,xa){return function(){return g.displayName(ua.series$jscomp$24,xa.labelFormatter$jscomp$3)}}(H,w);var V=function(ua,xa){return function(){var Ra;return g.formatNumericValue((Ra=ua.value$jscomp$8625)==null?void 0:Ra.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,ua.getName$jscomp$2)())}}(H,w),ba=void 0;J=((ba=H.value$jscomp$8625)==null?void 0:ba.min)!==void 0?function(ua,xa){return function(){var Ra;return g.formatNumericValue((Ra=ua.value$jscomp$8625)==null?void 0:Ra.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,ua.getName$jscomp$2)())}}(H,w):void 0;var oa=void 0;ba=((oa=H.value$jscomp$8625)==null?void 0:oa.max)!==void 0?function(ua,xa){return function(){var Ra;return g.formatNumericValue((Ra=ua.value$jscomp$8625)==null?void 0:Ra.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,ua.getName$jscomp$2)())}}(H,
w):void 0;var ta=function(ua){return function(){return c.map(function(xa){return xa.seriesId}).includes(ua.series$jscomp$24.seriesId)}}(H),ka=function(ua){return function(){return ua.series$jscomp$24.dataSeriesMetadata}}(H),Ca=void 0;oa=H.value$jscomp$8625!==void 0&&H.value$jscomp$8625!==null?(Ca=Uk(w.layer$jscomp$7.unit,w.yAxisState$jscomp$2.unit,H.value$jscomp$8625.y))!=null?Ca:H.value$jscomp$8625.y:void 0;var ja=Ca=void 0;O=new R_c({getColor:O,getShape:R,getDisplayValue:V,getIsInteracted:ta,getName:H.getName$jscomp$2,
getMetadata:ka,drawnAs:H.series$jscomp$24.drawnAs,lineDash:H.series$jscomp$24.lineDash,rawValue:(ja=(Ca=H.value$jscomp$8625)==null?void 0:Ca.y)!=null?ja:void 0,scaledValue:oa,pxValue:H.value$jscomp$8625!==void 0&&H.value$jscomp$8625!==null?x(H.value$jscomp$8625.y):void 0,stackingIndex:H.series$jscomp$24.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:ba});r?m.set(H.series$jscomp$24.seriesId,O):k.set(H.series$jscomp$24.seriesId,O)}}a=l(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$1:void 0},
e=a.next())f=l(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$1=m.get(e),d.shiftedStream$jscomp$1&&(f.getTimeshiftDisplayValue=function(ua){return function(){return ua.shiftedStream$jscomp$1.displayValue}}(d),m.delete(e));return Array.from(k.values()).concat(Array.from(m.values()))};
h.getCachedLabelFormatter=function(a,b){a=ODa(a);var c=PDa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==null?void 0:(r=m.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==
null?void 0:(r=m.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,m=a.atTimeKey[this.timeKey];if(m&&m.bucketIndex!==void 0){var r=m.bucketIndex;a=m.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/m.y.count).toFixed(),D=l(zl(m.y,r)),H=D.next().value;D=D.next().value;r===m.y.bucketCounts.length&&(D=null);H===-Infinity&&(H=null);r=l([H,D].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Uk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Wk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));m=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,m,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,m){var r,w=(r=this.valueFormatter)!=null?r:Wk;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=Uk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(m){var D;c=Object.assign({},(D=c)!=null?D:{},{displayName:m})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new cm("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new cm("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new cm("{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(){gH.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(BH.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"}}});BH.\u0275fac=function(a){return new (a||BH)};
BH.\u0275cmp=C({type:BH,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,xx],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,HEa,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:[mH,vH,jy,ky,ly],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 Z_c=["right","left"],CH=function(a,b,c,d,e){gH.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 Wj(this.streamsInternal);this.streamsObservable=this.streamsSubject.pipe(zf(null));this.anyStreamInteractedObservable=this.streamsObservable.pipe(A(function(g){a:{if(g){g=l(g);for(var k=g.next();!k.done;k=g.next())if(k=
k.value,k.isSelected||k.isInteracted){g=!0;break a}}g=!1}return g}));this.dataSourceInternal="most_recent";this.customTemplate=this.labelTablesCacheInvalid=this.multipleLayers=this.isQuery=!1;this.statsModeSummaryColumnLabel=this.timeshiftName="";this.sortFunc=JEa();this.xAxisLookup={ids:[],entities:{}};this.legendHovered=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.layerIdsToIgnore=[];this.lastSeriesSelectedInLegend=null;this.isLoadingSubject=new Wj(!1);this.setup({});
this.store.pipe(kk(DG),Bf(this.destroyed)).subscribe(function(g){f.xAxisLookup=g});this.scopeObservable.pipe(Af(function(g){return f.store.pipe(kk(DAa(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(CH,gH);h=CH.prototype;h.bringLastSelectedIntoView=function(){};
h.ngOnInit=function(){var a=this;this.initialized=!0;var b=Z_c.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(IG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(pk),we(function(d){return xl(d)}))});ve.apply(null,q(b)).pipe(Bf(this.destroyed)).subscribe(function(){a.update()})};
h.ngOnChanges=function(a){gH.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=Z_c.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(IG,Object.assign({},d,{yAxisId:c}))}))});le(b).pipe(nf(1)).subscribe(function(c){for(var d=new Map,e=0;e<Z_c.length;e++)d.set(Z_c[e],c[e]);a.withLatest(function(f){var g=f.scope;f=f.state;if(g&&f&&f.timeSeries&&Object.keys(f.timeSeries.byLayer.entities).length!==0){var k=g.layerId,m=f.seriesSelection,r=f.timeSeries;f=f.resize;g=$_c(a,m);m=a0c(m);k=a.getRelevantLayers(r,
k);a.multipleLayers!==k.length>1&&(a.multipleLayers=!a.multipleLayers,a.labelTablesCacheInvalid=!0);r=new Map;for(var w=l(Z_c),x=w.next();!x.done;x=w.next()){x=x.value;var D=d.get(x);if(D&&f){D=yl(D,f.margins.top,f.height-f.margins.bottom,D.unit);var H=void 0;r.set(x,(H=D)!=null?H:null)}else r.set(x,null)}f=a.buildStreams(k,g,m,d,r);a.streams=f.slice().sort(a.sortFunc);a.initialized&&a.cdRef.detectChanges()}})})};h.onScopeChange=function(){this.update()};
h.onLastInteractionChange=function(a,b){b0c(this,b)};h.onMapChange=function(){this.update()};h.onSeriesSelectionChange=function(a,b){rl(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){b0c(this,b);this.update()};
var b0c=function(a,b){var c,d,e,f,g=(f=(d=((c=b.state)==null?0:c.lastInteraction)?vl(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"},$_c=function(a,b){var c=[];b&&Object.values(b.byLayer.entities).forEach(function(d){c=c.concat(c0c(a,d))});return c},c0c=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")}},a0c=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};
CH.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||d0c(c,e)})})};
CH.prototype.getTranslationFunctions=function(){var a,b,c=Object.assign({},(b=(a=this.customTranslationFunctions)==null?void 0:a.getBoundGlobalFunctions())!=null?b:{},{credentialNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.credential_id)!=null?g:""},instanceNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.instance_id)!=null?g:""},getName:function(d){var e;return(e=d.name)!=
null?e:""},metricDisplayName:function(d){var e;return d.metricDisplayName?d.metricDisplayName():(e=d.shortMetric)!=null?e:""}});this.withLatest(function(d){var e=d.state;if(e==null?0:e.map)c.instanceNameOrId=function(f){var g,k,m;f=(m=f==null?void 0:(g=f.resource)==null?void 0:(k=g.labels)==null?void 0:k.instance_id)!=null?m:"";var r;return(r=e.map.instance[f])!=null?r:f}});return c};
CH.prototype.buildStreams=function(a,b,c,d,e){var f=this,g=new Map,k=new Map;this.customTemplate=!!this.legendTemplate;var m="",r="";a=l(a);for(var w=a.next(),x={};!w.done;x={layerUnit$jscomp$2:void 0,layer$jscomp$10:void 0,yAxisState$jscomp$4:void 0},w=a.next())if(x.layer$jscomp$10=w.value,x.layer$jscomp$10.valueType!==2&&(x.layerUnit$jscomp$2=x.layer$jscomp$10.unit,x.layerUnit$jscomp$2==="{not_a_unit}"&&(x.layerUnit$jscomp$2="1"),x.yAxisState$jscomp$4=d.get(x.layer$jscomp$10.yAxisId),x.yAxisState$jscomp$4)){w=
e.get(x.layer$jscomp$10.yAxisId);var D=void 0,H=void 0,J=void 0,O=void 0,R=void 0,V=void 0,ba=(J=this.xAxisLookup.entities[Nk((R=(D=this.scope)==null?void 0:D.chartGroupId)!=null?R:"",(V=(H=this.scope)==null?void 0:H.chartId)!=null?V:"",x.layer$jscomp$10.xAxisId)])==null?void 0:(O=J.relativeTo)==null?void 0:O.shift;D=!!ba;ba=ba?QCa(ba):"";if(m==="")m=ba;else if(ba!==""&&m!==ba)throw Error("Gc");x.layer$jscomp$10.legendTemplate&&(this.customTemplate=!0);H=Object.values(x.layer$jscomp$10.bySeries.entities);
ba=this.legendTemplate&&new Bl(this.legendTemplate)||x.layer$jscomp$10.legendTemplate&&new Bl(x.layer$jscomp$10.legendTemplate)||e0c(this,H);H=l(H);O=H.next();for(J={};!O.done;J={series$jscomp$27:void 0,seriesLegendFormatter:void 0},O=H.next())if(J.series$jscomp$27=O.value,J.series$jscomp$27&&!d0c(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 Bl(J.series$jscomp$27.legendTemplate)||ba;var oa=b.includes(J.series$jscomp$27.seriesId),ta=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"?Uk(x.layerUnit$jscomp$2,x.yAxisState$jscomp$4.unit,ka.y):null;V=R=void 0;oa=new U_c({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(Ca,ja){return function(){return f.formatNumericValue(Ca.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(Ca,ja){return function(){return f0c(f,Ca.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(Ca,ja){return function(){a:{var ua=Ca.series$jscomp$27.statsModeSummaryValue,xa=ja.layerUnit$jscomp$2;var Ra=ja.layer$jscomp$10.yAxisId;var $a=ja.yAxisState$jscomp$4.min,pb=ja.yAxisState$jscomp$4.max,Yb=ja.yAxisState$jscomp$4.unit,lc=ja.yAxisState$jscomp$4.maximumFractionDigits;
if(ua!==void 0&&ua!==null&&(xa==="{not_a_unit}"&&(xa="1"),ua=Uk(xa,Yb,ua),ua!==null)){lc={maximumFractionDigits:lc};$a=$a!==null&&pb!==null&&Yb!==null?{domain:{min:$a,max:pb,unit:Yb},yAxisPosition:Ra}:void 0;var fc,qc,sb;Ra=((sb=(qc=f.valueFormatter)!=null?qc:(fc=f.valueStrategy)==null?void 0:fc.format)!=null?sb:Wk)(ua,Yb,lc,$a);break a}Ra="-"}return Ra}}(J,x),isInteracted:oa,isSelected:ta,hideValue:x.layer$jscomp$10.valueType===3,getColumnIds:function(){return[]},getLabels:function(){return[]},getName:function(Ca){return function(){var ja=
NDa(Ca.series$jscomp$27.dataSeriesMetadata),ua;return ja&&((ua=Ca.seriesLegendFormatter)==null?void 0:ua.format(ja,f.getTranslationFunctions()))||Ca.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(Ca,ja){return function(ua){ua=ua?[{seriesId:Ca.series$jscomp$27.seriesId}]:[];var xa,Ra;f.store.dispatch(lH({chartId:(Ra=(xa=f.scope)==null?void 0:xa.chartId)!=null?Ra:"",layerId:ja.layer$jscomp$10.layerId,
series:ua}))}}(J,x),setSelected:function(Ca,ja){return function(ua){if(ua){f.lastSeriesSelectedInLegend=Ca.series$jscomp$27.seriesId;var xa,Ra;f.store.dispatch(y_c({chartId:(Ra=(xa=f.scope)==null?void 0:xa.chartId)!=null?Ra:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Ca.series$jscomp$27.seriesId}}))}else{var $a,pb;f.store.dispatch(z_c({chartId:(pb=($a=f.scope)==null?void 0:$a.chartId)!=null?pb:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Ca.series$jscomp$27.seriesId}}))}}}(J,
x)});D?k.set(J.series$jscomp$27.seriesId,oa):g.set(J.series$jscomp$27.seriesId,oa)}}this.timeshiftName=m;this.statsModeSummaryColumnLabel=r;b=l(g);for(c=b.next();!c.done;c=b.next())if(d=l(c.value),c=d.next().value,d=d.next().value,e=k.get(c))d.timeshiftValue=e.displayValue,k.delete(c);return Array.from(g.values()).concat(Array.from(k.values()))};
var d0c=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};CH.prototype.formatNumericValue=function(a,b,c,d,e,f,g,k){return f0c(this,a,b,c,d,e,f,g,k).displayValue};
var f0c=function(a,b,c,d,e,f,g,k,m){b=b.atTimeKey[a.timeKey];if(b!==void 0&&b!==null){c==="{not_a_unit}"&&(c="1");c=Uk(c,g,b.y)||0;m={maximumFractionDigits:k,rawValue:b.y};d=e!==null&&f!==null&&g!==null?{domain:{min:e,max:f,unit:g},yAxisPosition:d}:void 0;if(a.valueFormatter)return{displayValue:a.valueFormatter(c,g,m),displayValueSubstrings:void 0};if(a.valueStrategy)return a.valueStrategy.formatSubstrings?(a=a.valueStrategy.formatSubstrings(c,g,m,d),{displayValue:yBa(a)+a.unitSuffix,displayValueSubstrings:a}):
{displayValue:a.valueStrategy.format(c,g,m,d),displayValueSubstrings:void 0};a=xBa(c,g,{maximumFractionDigits:k,rawValue:b.y});return{displayValue:yBa(a)+a.unitSuffix,displayValueSubstrings:a}}switch(m){case "gap_detection":return{displayValue:"-",displayValueSubstrings:void 0};case "zero_fill":return{displayValue:"0",displayValueSubstrings:void 0};default:return{displayValue:"",displayValueSubstrings:void 0}}},g0c=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?HDa():a.isQuery?JDa(b):KDa(b,a.multipleLayers&&c);if(a.showAllColumnsByDefault&&c)for(d=l(c),e=d.next();!e.done;e=d.next()){e=l(e.value);for(var f=e.next();!f.done;f=e.next())f=f.value,a.filterByColumnValue&&a.filterByColumnValue.column===
f.title||(f.isDefault=!0)}if(c&&a.multipleLayers&&a.labelStats){d=a.labelStats;e="";d.metric>1&&(e=d.metric>d.shortMetric?e+'${metric.type}" "':e+'${metricDisplayName()}" "');d.aligner>1&&(e+='${requestParams.aggregation\\.perSeriesAligner}" "');d.primaryReducer>1&&(e+='${requestParams.aggregation\\.crossSeriesReducer}" "');d.secondaryReducer>1&&(e+='${requestParams.secondaryAggregation\\.crossSeriesReducer}" "');if(d.filter){f=l(Object.keys(d.filter));for(var g=f.next();!g.done;g=f.next()){g=d.filter[g.value];
for(var k=g.count,m=l(Object.keys(g.entries)),r=m.next();!r.done;r=m.next()){r=r.value;var w=g.entries[r];if(w.count!==k||w.set.size!==1)e+="${requestParams.filterTokens."+r+".key}${requestParams.filterTokens."+r+".op}${requestParams.filterTokens."+r+'.value}" "'}}}if(d=e?{isDefault:!0,title:"Metric",template:e,tokenizer:new Bl(e)}:null)for(e=l(c),f=e.next();!f.done;f=e.next())f.value.unshift(d)}a.labelTablesCache=c;a.labelTablesCacheInvalid=!1;a.seriesMetadataForLabelTablesCache=b;return c},e0c=
function(a,b){var c=b.map(function(g){var k;return(k=g.dataSeriesMetadata)!=null?k:null});b=g0c(a,c!=null?c:[],b.length>1);if(!b)return null;c=MDa(c);a="";b=l(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value){d=l(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.isDefault&&c.get(e.title)!==!1){var f=void 0;a+=((f=e.template)!=null?f:"")+'" "'}}return a?new Bl(a):null};
CH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};CH.prototype.hover=function(a){this.legendHovered=!0;var b;(b=a.setHovered)==null||b.call(a,!0)};var PEa=function(a,b){a.legendHovered=!1;var c;(c=b.setHovered)==null||c.call(b,!1)};
da.Object.defineProperties(CH.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")}}}});CH.\u0275fac=function(a){return new (a||CH)(Ye(qG),Ye(Px),Ye(Jd),Ye(dH),Ye(pG))};
CH.\u0275dir=df({type:CH,inputs:{hideThresholds:"hideThresholds",valueName:"valueName",valueFormatter:"valueFormatter",filterByColumnValue:"filterByColumnValue",showAllColumnsByDefault:"showAllColumnsByDefault",customTranslationFunctions:"customTranslationFunctions",legendTemplate:"legendTemplate",layerIdsToIgnore:"layerIdsToIgnore"},features:[Gf,xx]});var h0c=["condensedList"],REa=function(a){return{scrollable:a}},SEa=function(){return[]},i0c=0,DH=function(){this.el=p(Jd)};DH.prototype.focus=function(){this.el.nativeElement.focus()};DH.\u0275fac=function(a){return new (a||DH)};DH.\u0275dir=df({type:DH,selectors:[["","focusableLegendItem",""]]});
var EH=function(a,b,c,d,e){CH.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-"+i0c++ +"-describedby";this.inlineLegendLabel="Legend for nearby chart";this.condensed=!1;this.condensedLayout=Qg.apply(null,["row"].concat(q([])));this.useColumnDisplay=ah.apply(null,[function(){return f.condensedLayout().toLowerCase()==="column"}].concat(q([])));this.hideAllValues=this.enableSelection=this.enableScrolling=
!1;this.maxSeriesSubject=new Wj(30);this.hideSingleSeriesLegends=this.sortByValue=!1;this.legendItems=$oa.apply(null,[DH].concat(q([])));this.focusKeyManager=new Hz(this.legendItems,p(Ae));this.legendClick=new gj;this.narrowSubject=new Wj(!1);this.isLoadingObservable=this.isLoadingSubject.pipe(pf());this.condensedStreamsObservable=le([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return g?k?g.slice(0,k):g:[]}));this.additionalStreamsObservable=
le([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return g===null?0:g.length-k}));this.hideSingleSeriesLegendsObservable=this.condensedStreamsObservable.pipe(A(function(g){if(f.hideSingleSeriesLegends&&g!==void 0){var k=0;g=l(g);for(var m=g.next();!m.done;m=g.next())m.value.seriesId.startsWith("ac-threshold-line")||k++;k=k<2}else k=!1;return k}));gf(function(){f.legendItems();(!f.focusKeyManager.activeItemIndex||f.focusKeyManager.activeItemIndex<
0)&&Fz(f.focusKeyManager,0)})};Y(EH,CH);EH.\u0275dir=CH.\u0275dir;h=EH.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){CH.prototype.ngOnChanges.call(this,a);"sortByValue"in a?(this.sortFunc=this.sortByValue?LEa(-1):JEa(),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 WEa=function(a,b,c){return!(!a.enableSelection||!c||b.isSelected||b.isInteracted)};EH.prototype.ngOnDestroy=function(){CH.prototype.ngOnDestroy.call(this);var a;(a=this.listResizeObserver)==null||a.disconnect()};
da.Object.defineProperties(EH.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+'"'}}});EH.\u0275fac=function(a){return new (a||EH)(Ye(qG),Ye(Px),Ye(Jd),Ye(dH),Ye(pG))};
EH.\u0275cmp=C({type:EH,selectors:[["ac-inline-legend"],["cola-inline-legend"]],viewQuery:function(a,b){a&1&&(qg(b.legendItems,DH),jg(h0c,5,Jd));if(a&2){rg();var c;ng(c=og())&&(b.condensedList=c.first)}},inputs:{condensed:"condensed",condensedLayout:[1,"condensedLayout"],enableScrolling:"enableScrolling",enableSelection:"enableSelection",hideAllValues:"hideAllValues",maxSeries:"maxSeries",sortByValue:"sortByValue",sortByMethod:"sortByMethod",hideSingleSeriesLegends:"hideSingleSeriesLegends",chartTitle:"chartTitle"},
outputs:{legendClick:"legendClick"},features:[Gf,xx],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,TEa,3,10,"div",2)(1,ZEa,14,34,"ng-template",null,0,Og),K(3,"p",3),Q(4),L());a&2&&(a=sg(2),I("ngIf",!b.condensed)("ngIfElse",a),B(3),Kf("id",b.describedById),B(),Ag(b.inlineLegendDescribedBy))},dependencies:[mH,DH,DA,Yx,ey,fy,rD,ly],styles:['.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{max-height:inherit}.scrollable[_ngcontent-%COMP%]{overflow-y:auto}button[_ngcontent-%COMP%]{border:none;background:none}.ac-inline-legend[_ngcontent-%COMP%]{display:inline-block;max-height:inherit}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]{display:inline-block}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-block;height:var(--ac-sys-spacing-legend-basis,12px);margin-right:6px;padding:4px 6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:inline-block;margin-right:6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-value[_ngcontent-%COMP%]{margin:0 5px;min-width:5em;text-overflow:ellipsis;white-space:nowrap}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;height:var(--ac-sys-spacing-legend-basis,12px)}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:700}.ac-inline-legend.condensed[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);padding:0 0 0 calc(10px - var(--ac-sys-spacing-legend-basis, 12px)/3*2/2);margin:0;min-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);line-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2)}.ac-inline-legend.condensed.column-display[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.ac-inline-legend.condensed.narrow[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{max-width:100%}.ac-inline-legend.condensed.hidden-trivial-legend[_ngcontent-%COMP%]{display:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%], .ac-inline-legend.condensed[_ngcontent-%COMP%]   li.n-more[_ngcontent-%COMP%]{font-style:italic;list-style-type:none;padding:0 calc(var(--ac-sys-spacing-legend-basis, 12px)/3*2/2)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:100%}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0 calc(var(--ac-sys-spacing-legend-basis, 12px)/3*2/2);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;height:unset}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:500}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:block;margin:calc((2*var(--ac-sys-spacing-legend-basis, 12px) - var(--ac-sys-spacing-legend-basis, 12px))/2) 3px calc((2*var(--ac-sys-spacing-legend-basis, 12px) - var(--ac-sys-spacing-legend-basis, 12px))/2) 0}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]{font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);display:block;height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);position:relative;text-align:left;overflow:hidden;line-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-visible[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--ac-sys-color-chart-legend-label,#000)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-ruler[_ngcontent-%COMP%]{top:0;left:0;height:0;overflow:hidden;font-weight:500}  .mat-mdc-tooltip.ac-inline-legend-hover-tooltip{margin:0;font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}\n/*# sourceMappingURL=ac_inline_legend_style.css.map */'],
changeDetection:0});var FH=function(){this.registry=new Map};FH.prototype.register=function(a,b){this.registry.set(a,b)};FH.prototype.unregister=function(a,b){var c=this.registry.get(a);b===c&&this.registry.delete(a)};FH.prototype.focus=function(a,b){(a=this.registry.get(a))&&a.focus(function(){b.focus()})};FH.\u0275fac=function(a){return new (a||FH)};FH.\u0275prov=Fc({token:FH,factory:FH.\u0275fac,providedIn:"root"});var j0c=function(a){var b=this;this.isFrozen=a;this.strategy=function(c,d,e,f,g){b.isFrozen()||(b.lastPosition=$Ea(c,d,e,f,g));return b.lastPosition}};var k0c=["*"],l0c=["closeButton"],m0c=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 */"},
GH=function(){this.initialized=!1;this.ariaLabel=Qg.apply(null,[null].concat(q([])));this.refocusAfterViewChecked=this.isPinned=this.grabFocusAndUseAsModal=!1};GH.prototype.ngOnInit=function(){this.initialized=!0};GH.prototype.ngOnChanges=function(a){this.initialized&&"grabFocusAndUseAsModal"in a&&this.grabFocusAndUseAsModal&&(this.refocusAfterViewChecked=!0)};
GH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){var a;if((a=this.cdkTrapFocus)==null?0:gz(a.focusTrap))this.refocusAfterViewChecked=!1}};GH.\u0275fac=function(a){return new (a||GH)};
GH.\u0275cmp=C({type:GH,selectors:[["ac-hovercard-dialog"]],viewQuery:function(a,b){a&1&&jg(kz,5);if(a&2){var c;ng(c=og())&&(b.cdkTrapFocus=c.first)}},inputs:{ariaLabel:[1,"ariaLabel"],grabFocusAndUseAsModal:"grabFocusAndUseAsModal",isPinned:"isPinned"},features:[xx],ngContentSelectors:k0c,decls:3,vars:6,consts:[[1,"ac-hover-container",3,"cdkTrapFocus"],[1,"ac-hover-bg"]],template:function(a,b){a&1&&(eg(),K(0,"div",0),M(1,"div",1),fg(2),L());a&2&&(yg("ac-hover-container-pinned",b.isPinned),I("cdkTrapFocus",
!0),Kf("aria-modal",b.grabFocusAndUseAsModal?!0:void 0)("role",b.grabFocusAndUseAsModal?"dialog":"tooltip")("aria-label",b.ariaLabel()))},dependencies:[kz],styles:[m0c()],changeDetection:0});
var HH=function(a,b,c,d,e,f,g,k,m,r){hH.call(this,a,b,c,d,e,f,r);this.cdr=g;this.interactionService=k;this.modalService=m;this.ngZone=r;this.positionStrategy=$Ea;this.pinningEnabled$=new Wj(!1);this.ariaLabel=Qg.apply(null,[null].concat(q([])));this.chartQuickActionsEnabled=this.pinIfVisible=!1;this.closeOnDeselect$=new Wj(!1);this.hideHovercard=this.hasSeriesActionType=this.hidePinPrompt=!1;this.isPinnedOutput$=new gj;this.showPointerCursor=this.pinningEnabled$.value;this.onClose=function(){};this.closeAriaLabel=
"Return to chart";this.grabFocusAndUseAsModalSubject=new Wj(!1);this.grabFocusAndUseAsModalObservable=this.grabFocusAndUseAsModalSubject.pipe(Gk(this.ngZone))};Y(HH,hH);HH.\u0275dir=hH.\u0275dir;
HH.prototype.ngOnInit=function(){var a=this;hH.prototype.ngOnInit.call(this);this.pinningEnabled$.pipe(Bf(this.destroyed)).subscribe(function(b){a.positionStrategy=b?(new j0c(function(){return a.isPinned$.value})).strategy:$Ea;a.showPointerCursor=b;a.cdr.detectChanges()});this.overlayRef.outsidePointerEvents().pipe(Bf(this.destroyed)).subscribe(function(b){a.isPinned$.value&&a.closeOnDeselect$.value&&!(a.chartQuickActionsEnabled?(ul?b.metaKey:b.ctrlKey)||b.shiftKey:b.ctrlKey)&&(b.stopPropagation(),
aFa(a))})};HH.prototype.ngAfterViewInit=function(){var a=this;hH.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 n0c=function(a,b){var c=b.xAxis;b=b.resize;return c&&b?(c=fl(c,b.margins.left,b.width-b.margins.right))?c(a.x.valueOf()):null:null},o0c=function(a,b,c){var d=b.yAxis;b=b.resize;return d&&b?(c=yl(d,b.margins.top,b.height-b.margins.bottom,c))?c(a.y):null:null},p0c=function(a){if(!a)return null;var b,c,d,e=(d=Object.values((c=(b=a.seriesSelection)==null?void 0:b.byLayer.entities)!=null?c:{}).find(function(m){var r;return((r=m==null?void 0:m.selectedSeries)!=null?r:[]).length>0}))==null?void 0:d.selectedSeries[0].seriesId;
if(!e)return null;var f,g;b=Object.values((g=(f=a.timeSeries)==null?void 0:f.byLayer.entities)!=null?g:{});f=null;g=l(b);for(b=g.next();!b.done;b=g.next())if((c=b.value)&&c.valueType===1){var k=d=void 0;b=(d=c)==null?void 0:(k=d.bySeries.entities[e])==null?void 0:k.atTimeKey[2];k=d=void 0;c=(k=(d=c)==null?void 0:d.unit)!=null?k:null;if(b){e=n0c(b,a);a=o0c(b,a,c);e!==null&&a!==null&&(f={x:e,y:a});break}}return f};
HH.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?(ul?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=p0c(c),b.reposition(a,2,0,c!=null?c:void 0)):b.reposition(a,2);b.isPinned$.next(e);Cl(b.interactionService,"click",e?Fl.ve.HovercardPinToggle:Fl.ve.HovercardUnpinToggle,b.el.nativeElement)}b.chartQuickActionsEnabled&&b.isPinned$.value&&!d&&aFa(b)})};
HH.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()};HH.prototype.onFocusIn=function(a){this.onFocus(a)};var aFa=function(a){a.isPinned$.next(!1);a.onClose();a.detachHovercard();a.grabFocusAndUseAsModalSubject.next(!1)};HH.prototype.onDetach=function(){this.modalService.unregister(0,this);this.grabFocusAndUseAsModalSubject.next(!1)};
HH.prototype.onAttach=function(){this.modalService.register(0,this);Cl(this.interactionService,"hover",Fl.ve.HovercardZone,this.el.nativeElement)};da.Object.defineProperties(HH.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)}}});HH.\u0275fac=function(a){return new (a||HH)(Ye(Jd),Ye(cG),Ye(qG),Ye(dH),Ye(iA),Ye(hg),Ye(Px),Ye(Fl),Ye(FH),Ye(Tg))};
HH.\u0275cmp=C({type:HH,selectors:[["ac-hovercard"]],viewQuery:function(a,b){a&1&&(jg(kz,5),jg(l0c,5));if(a&2){var c;ng(c=og())&&(b.cdkTrapFocus=c.first);ng(c=og())&&(b.closeButton=c.first)}},hostAttrs:[1,"composable-layer","ac-hovercard"],hostVars:2,hostBindings:function(a,b){a&2&&yg("pinnable-cursor",b.showPointerCursor)},inputs:{ariaLabel:[1,"ariaLabel"],pinningEnabled:"pinningEnabled",pinIfVisible:"pinIfVisible",chartQuickActionsEnabled:"chartQuickActionsEnabled",closeOnDeselect:"closeOnDeselect",
hidePinPrompt:"hidePinPrompt",hasSeriesActionType:"hasSeriesActionType",hideHovercard:"hideHovercard"},outputs:{isPinnedOutput$:"isPinnedOutput$"},features:[Ig([{provide:KG,useExisting:HH},{provide:hH,useExisting:HH}]),Gf],ngContentSelectors:k0c,decls:2,vars:0,consts:function(){return[["hoverContent",""],["closeButton",""],["pinPrompt",""]," Select resources to view details. "," Click \ufffd#3\ufffdon chart\ufffd/#3\ufffd to pin card. ",[3,"grabFocusAndUseAsModal","isPinned","ariaLabel","focusin",
4,"ngIf"],[3,"focusin","grabFocusAndUseAsModal","isPinned","ariaLabel"],["mat-icon-button","","class","close-button ac-a11y-focusable",3,"close-button-small","matTooltip","matTooltipClass","click","focus",4,"ngIf"],["class","pinPromptBanner",4,"ngIf"],["mat-icon-button","",1,"close-button","ac-a11y-focusable",3,"click","focus","matTooltip","matTooltipClass"],["svgIcon","ac:close"],[1,"pinPromptBanner"],[4,"ngIf","ngIfElse"],["svgIcon","ac:time_pin_set",1,"pin-button"],[4,"ngIf"],["svgIcon","ac:pin_outline",
1,"pin-button"]]},template:function(a){a&1&&(eg(),E(0,hFa,2,3,"ng-template",null,0,Og))},dependencies:[GH,Yy,lC,DA,fy,ly],styles:[m0c()],changeDetection:0});var IH=fk("[AC] Set the value for multiple time series in a chart",gk()),JH=fk("[AC] Set the metadata for multiple time series in a chart",gk()),KH=fk("[AC] Sets the time series metadata for a layer",gk());var q0c,s0c=function(){q0c||(q0c=Uint8Array.from(atob(r0c),function(a){return a.charCodeAt(0)}).buffer);return q0c.slice(0)},r0c="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=",
t0c=new function(){};var u0c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u0c,W);var v0c=vta(u0c);var w0c;var x0c=[{frequencyMultiplier:1,gain:10},{frequencyMultiplier:4,gain:2}],y0c=function(a){this.mixerMaxGain=1/x0c.map(function(f){return f.gain}).reduce(function(f,g){return f+g},0);this.oscillators=[];this.mixer=a.createGain();this.mixer.gain.value=0;for(var b=l(x0c),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)}};y0c.prototype.connect=function(a){return this.mixer.connect(a)};var Ll=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ll,W);var FFa=LFa(w0c||(w0c=v0c('[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"]'))),
z0c=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 y0c(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)};
z0c.prototype.play=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa;return y(function(ta){switch(ta.nextAddress){case 1:return z(ta,b.audioContext.suspend(),2);case 2:c=b.audioContext.currentTime;b.gain.gain.setTargetAtTime(.8,c,.004);d="audioWorklet"in AudioContext.prototype;if(!d){ta.jumpTo(3);break}return z(ta,MFa(b.voiceAndEarcons),4);case 4:e=ta.yieldResult,e.gain.value=.3,e.connect(b.panner),e.gain.setTargetAtTime(0,c+a.durationSeconds,.004);case 3:f=l(a.notes);for(g=f.next();!g.done;g=
f.next()){k=g.value;b.panner.pan.setTargetAtTime(k.pan,c+k.onset,0);m=b.voices[b.nextVoice];b.nextVoice=(b.nextVoice+1)%10;for(var ka=m,Ca=k.frequency,ja=c+k.onset,ua=l(x0c.entries()),xa=ua.next();!xa.done;xa=ua.next()){var Ra=l(xa.value);xa=Ra.next().value;Ra=Ra.next().value;ka.oscillators[xa].frequency.setTargetAtTime(Ca*Ra.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=l(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,((ba=a.earcons[a.earcons.length-1])==null?void 0:ba.onset)||0),b.playbackTimes={startTime:c,endTime:c+oa},z(ta,b.audioContext.resume(),0);D=x=w.value;H=D.onset;return z(ta,b.audioContext.decodeAudioData(s0c()),8);case 8:J=ta.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(),ta.jumpTo(5)}})};var A0c=function(a){a.gain.gain.setTargetAtTime(0,a.audioContext.currentTime,.004);setTimeout(function(){a.audioContext.close()},1E3)};z0c.prototype.getProgress=function(){return!this.playbackTimes||this.audioContext.currentTime>this.playbackTimes.endTime?null:AFa(this.playbackTimes.startTime,this.playbackTimes.endTime,0,1,this.audioContext.currentTime)};var B0c=function(){this.xAxis=this.synth=null};B0c.prototype.play=function(a){var b=this,c,d;return y(function(e){b.stop();c=yFa(a);d=EFa(c);b.synth=new z0c;b.xAxis=c.xAxis;return z(e,b.synth.play(d),0)})};B0c.prototype.stop=function(){this.synth&&(A0c(this.synth),this.xAxis=this.synth=null)};B0c.prototype.getProgress=function(){if(this.synth===null||this.xAxis===null)return null;var a=this.synth.getProgress();return a===null?null:AFa(0,1,this.xAxis.min,this.xAxis.max,a)};var LH=function(){this.logger=null;try{this.session=new B0c}catch(a){this.session=null}};LH.\u0275fac=function(a){return new (a||LH)};LH.\u0275prov=Fc({token:LH,factory:LH.\u0275fac,providedIn:"root"});var C0c=["topLeftCell"],D0c=["audioHeader"],E0c=["virtualTableValueButton"],F0c=["virtualTableColumnHeaderButton"],G0c=["virtualTableRowHeaderButton"],H0c=["virtualTableAudioValueButton"],QFa=function(a,b){return{"left.px":a,"top.px":b}},Poa=function(a,b,c,d){return{"left.px":a,"top.px":b,"height.px":c,"width.px":d}},I0c="ArrowUp ArrowDown ArrowLeft ArrowRight Enter Space PageDown PageUp Home End".split(" "),J0c=0,MH=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 gj;this.onBlur=new gj;this.onFocusedCellChange=new gj;this.onGridCellActivate=new gj;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-"+J0c++;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&&I0c.includes(f.key)&&f.preventDefault():e.ignoreKeyboardEvents.add(f)})};MH.prototype.shownColumns=function(a){for(var b=[],c=0;c<a.length;c++)RFa(this,c)&&b.push({colIndex:c,column:a[c]});return b};
var K0c=function(a,b){for(var c=[],d=0;d<b.length;d++)$Fa(a,d)&&c.push({rowIndex:d,row:b[d]});return c},L0c=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},NH=function(a,b,c){return b<1?b:L0c(a,c).findIndex(function(d){return d.visualRowIndex===b})+1};MH.prototype.trackByIndex=function(a){return String(a)};
MH.prototype.trackColumnById=function(a,b){return b.column.id};MH.prototype.trackRowById=function(a,b){return b.row.id};
MH.prototype.onKeyDown=function(a){if(this.focused&&this.grid&&this.grid.rows.length&&!this.ignoreKeyboardEvents.has(a)&&this.grid.columns.length&&I0c.includes(a.key)){this.statusUpdate="";var b=this.grid,c=b.rows.length+1-1,d=b.columns.length+this.numberOfHeaderColumns-1;if(this.focusedCell){var e=l(this.focusedCell);b=e.next().value;e=e.next().value;var f,g,k=(g=(f=M0c(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=NH(this,a,f);break;
case "PageUp":a=Math.max(0,k-10);g=NH(this,a,f);break;case "ArrowDown":a=Math.min(c,k+1);g=NH(this,a,f);break;case "PageDown":a=Math.min(c,k+10);g=NH(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=NH(this,c,f));break;case "Enter":case "Space":VFa(this,g-1,f===1);var m;f>=this.numberOfHeaderColumns&&g>=1&&((m=this.audioChartsService.session)==null?void 0:m.getProgress())===null?(a=
this.focusedCellRef)&&this.focused&&this.onGridCellActivate.emit(a.nativeElement):f>=this.numberOfHeaderColumns&&g===0?PFa(this,f-this.numberOfHeaderColumns):f===0&&g>=1&&this.toggleRow(g-1)}if(b!==g||e!==f)this.focusedCell=[g,f],N0c(this,this.focusedCell);b!==g&&(this.statusUpdate=g>=1?(new cm("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]=NH(this,b[0],b[1]),this.focusedCell=b,N0c(this,this.focusedCell))}}else this.ignoreKeyboardEvents.has(a)&&this.ignoreKeyboardEvents.delete(a)};
var M0c=function(a,b,c){if(b===0)return a.internalColumns[c-a.numberOfHeaderColumns];if(c===0)return a.internalRows[b-1];if(a.audioChartsEnabled&&c===1)return a.internalAudioValues[b-1];if(!a.focusedValue)return null;c=l(a.focusedValue);b=c.next().value;c=c.next().value;return(a=a.internalValues[b])?a[c]||null:null};
MH.prototype.focus=function(a){this.isActive||(this.isActive=!0,this.gridGenerator&&(this.grid=this.gridGenerator(),O0c(this)),this.columnMaskGenerator&&(this.columnMask=this.columnMaskGenerator()));this.focused=!0;this.onFocus.next(a);this.focusedCell||(this.focusedCell=[0,0]);this.internalFocusTransfer||N0c(this,this.focusedCell)};MH.prototype.blur=function(a){this.focused=!1;this.internalFocusTransfer||(this.onBlur.next(a),N0c(this,null))};
var cGa=function(a){return(new cm('Populate data for table, "{LAYER_TITLE}", on chart, "{CHART_TITLE}"')).format({CHART_TITLE:a.chartTitle||"Untitled",LAYER_TITLE:a.layerTitle})},P0c=function(a){return a.refactorA11yNavInstructions?"Time Series Name":(new cm('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})},O0c=function(a){Q0c(a);if(a.grid){var b=a.grid.columns;a.baseColumnMask=b.map(function(f,g){return g===0||g===b.length-1});a.expansionColumnMask=b.map(function(){return!1});var c=Gl(a.focusedCell,a.numberOfHeaderColumns)[1];a.focusColumnMask=b.map(function(f,g){return g===c});var d=a.grid.rows;a.baseRowMask=d.length<=12?d.map(function(){return!0}):d.map(function(f,g){return g===0||g===d.length-1});a.expansionRowMask=d.map(function(){return!1});var e=Gl(a.focusedCell,
a.numberOfHeaderColumns)[0];a.focusRowMask=d.map(function(f,g){return g===e})}};MH.prototype.ngOnChanges=function(a){if("grid"in a||"gridGenerator"in a)this.gridGenerator&&this.isActive&&(this.grid=this.gridGenerator()),O0c(this);"columnMaskGenerator"in a&&this.columnMaskGenerator&&this.isActive&&(this.columnMask=this.columnMaskGenerator())};
var RFa=function(a,b){var c=a.columnMask||[];return!!(a.baseColumnMask[b]||c[b]||a.expansionColumnMask[b]||a.focusColumnMask[b])},$Fa=function(a,b){var c=a.rowMask||[];return!!(a.baseRowMask[b]||c[b]||a.expansionRowMask[b]||a.focusRowMask[b])};MH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){this.refocusAfterViewChecked=!1;var a=this.focusedCellRef;this.internalFocusTransfer=!0;a&&a.nativeElement.focus();this.internalFocusTransfer=!1}};
var PFa=function(a,b){if(RFa(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&&!RFa(a,c)&&d<10;)a.expansionColumnMask[c]=!0,c++,d++;a.statusUpdate=(new cm("{NUM_COLUMNS, plural, =1 {1 more column shown} other {{NUM_COLUMNS} more columns shown}}")).format({NUM_COLUMNS:d})}a.cdr.markForCheck()};
MH.prototype.toggleRow=function(a){if($Fa(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&&!$Fa(this,b)&&c<10;)this.expansionRowMask[b]=!0,b++,c++;this.statusUpdate=(new cm("{NUM_ROWS, plural, =1 {1 more row shown} other {{NUM_ROWS} more rows shown}}")).format({NUM_ROWS:c})}this.cdr.markForCheck()};
var VFa=function(a,b,c){if(a.audioChartsEnabled){var d=R0c(a);c&&!d&&(c=a.audioChartsService.session,b=a.internalAudioValues[b].audioChartOptions,R0c(a),b&&(c==null||c.play(b)))}},TFa=function(a){var b;return((b=a.audioChartsService.session)==null?void 0:b.getProgress())!==null},R0c=function(a){if(TFa(a)){var b;(b=a.audioChartsService.session)==null||b.stop();return!0}return!1},Q0c=function(a){var b=a.focusedCellRow,c=a.focusedCellColumn,d=a.focusedCell;if(a.grid){var e=a.grid,f=e.rows,g=e.columns,
k=e.values;e=[];for(var m=0;m<f.length;m++){var r=k[m];if(!r)break;e.push([]);for(var w=0;w<g.length;w++){var x=r[w];if(!x)break;e[m].push(Object.assign({},{id:a.id+"-value-"+m+"-"+w,tabindex:-1,visualRowIndex:0},x))}}for(k=0;k<g.length;k++){m=[];for(r=0;r<f.length;r++)m.push(e[r][k]);m=m.sort(function(J,O){return J.value===void 0&&O.value===void 0?0:J.value===void 0?1:O.value===void 0?-1:J.position.y-O.position.y});for(r=0;r<m.length;r++)m[r].visualRowIndex=r+1}var D=[];for(k=0;k<g.length;k++)r=
void 0,m=(r=e[0])==null?void 0:r[k],w=r=void 0,m=Object.assign({},(w=(r=m)==null?void 0:r.position)!=null?w:{},{y:0,height:void 0,width:void 0}),D.push(Object.assign({},{id:a.id+"-column-"+k,tabindex:-1,position:m,visualRowIndex:0},g[k]));g=[];k=[];m=a.grid.audioChartContext;for(r=0;r<f.length;r++){x=void 0;w=Object.assign({},(x=e[r][0])==null?void 0:x.position,{height:void 0,width:void 0});x=void 0;g.push(Object.assign({},{id:a.id+"-row-"+r,tabindex:-1,position:w,visualRowIndex:(x=e[r][0])==null?
void 0:x.visualRowIndex},f[r]));x=null;m&&(x={values:e[r].reduce(function(J,O,R){R=D[R].value;O=O.value;return R===void 0||O===void 0?J:J.concat([{x:R,y:O}])},[]),earcons:D.length>=m.xAxis.ticks.length*5?m.xAxis.ticks.map(function(J){return{x:J,earcon:t0c}}):void 0,xAxis:{density:D.length,min:m.xAxis.min,max:m.xAxis.max},yAxis:{min:m.yAxis.min,max:m.yAxis.max}});var H=void 0;k.push({id:a.id+"-audio-"+r,tabindex:-1,position:w,visualRowIndex:(H=e[r][0])==null?void 0:H.visualRowIndex,audioChartOptions:x})}a.internalValues=
e;a.internalColumns=D;a.internalRows=g;a.internalAudioValues=k}else a.internalValues=[],a.internalColumns=[],a.internalRows=[],a.internalAudioValues=[];S0c(a,d,b,c)},S0c=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;N0c(a,a.focusedCell)}};
MH.prototype.getAriaLabel=function(){return this.grid&&this.internalRows.length?(new cm("{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 cm("No data available for table, {LAYER_TITLE}, on chart, {CHART_TITLE}")).format({CHART_TITLE:this.chartTitle||"Untitled",LAYER_TITLE:this.layerTitle})};
var WFa=function(a,b){var c=a.internalRows[b];return a.internalAudioValues[b].audioChartOptions?(new cm("Play audio overview for {ROW_LABEL}")).format({ROW_LABEL:c.label}):(new cm("No audio overview available for {ROW_LABEL}")).format({ROW_LABEL:c.label})},XFa=function(a,b){if(!a.internalAudioValues[b].audioChartOptions)return"";b=a.internalRows[b];b=[(new cm("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 cm("Y axis ranges from {MIN} to {MAX}.")).format({MIN:Wk(d.min,d.unit),MAX:Wk(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=Pk(a.timezoneOffset,a.timeZoneId),b.push((new cm("X axis ranges from {MIN} to {MAX}.")).format({MIN:DBa(new Date(a.min),e),MAX:DBa(new Date(a.max),e)}))):b.push((new cm("X axis ranges from {MIN} to {MAX}.")).format({MIN:Wk(a.min,a.unit),MAX:Wk(a.max,a.unit)})));
return b.join(" ")},T0c=function(a){if(!a.focusedCell)return!1;var b=l(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===0},NFa=function(a){if(!a.focusedCell||!a.audioChartsEnabled)return!1;var b=l(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===1},N0c=function(a,b){a.onFocusedCellChange.emit({focusedCell:b,focusedGridIndices:Gl(b,a.numberOfHeaderColumns)})};MH.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
da.Object.defineProperties(MH.prototype,{numberOfHeaderColumns:{configurable:!0,enumerable:!0,get:function(){return this.audioChartsEnabled?2:1}},focusedCell:{configurable:!0,enumerable:!0,get:function(){return this.focusedCellInternal},set:function(a){var b=this.focusedCellProps;b&&(b.tabindex=-1);this.focusedCellInternal=a;if(b=this.focusedCellProps)b.tabindex=0;var c=Gl(a,this.numberOfHeaderColumns)[0],d=Gl(a,this.numberOfHeaderColumns)[1],e;this.focusColumnMask=((e=this.grid)==null?void 0:e.columns.map(function(g,
k){return k===d}))||[];var f;this.focusRowMask=((f=this.grid)==null?void 0:f.rows.map(function(g,k){return k===c}))||[];this.focused&&(this.refocusAfterViewChecked=!0)}},focusedValue:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;var b=l(a);a=b.next().value;b=b.next().value;return a<1||b<this.numberOfHeaderColumns?null:[a-1,b-this.numberOfHeaderColumns]}},focusedCellRef:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell)return null;if(T0c(this))return this.topLeftCellRef;
if(NFa(this))return this.audioHeaderRef;var a,b=(a=this.focusedCellProps)==null?void 0:a.id;return b?this.valueRefs.find(function(c){return c.nativeElement.id===b})||this.columnHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.rowHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.audioValueRefs.find(function(c){return c.nativeElement.id===b})||null:null}},focusedCellProps:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell||this.focusedCell.length!==2)return null;
var a=l(this.focusedCell),b=a.next().value;a=a.next().value;return M0c(this,b,a)}},focusedCellRow:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=l(Gl(a,this.numberOfHeaderColumns)).next().value;return a===null?null:this.internalRows[a]}},focusedCellColumn:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=l(Gl(a,this.numberOfHeaderColumns));a.next();a=a.next().value;return a===null?null:this.internalColumns[a]}}});
MH.\u0275fac=function(a){return new (a||MH)(Ye(cG),Ye(LH),Ye(Px),Ye(Tg))};
MH.\u0275cmp=C({type:MH,selectors:[["ac-accessibility-grid"]],viewQuery:function(a,b){a&1&&(jg(C0c,5),jg(D0c,5),jg(E0c,5),jg(F0c,5),jg(G0c,5),jg(H0c,5));if(a&2){var c;ng(c=og())&&(b.topLeftCellRef=c.first);ng(c=og())&&(b.audioHeaderRef=c.first);ng(c=og())&&(b.valueRefs=c);ng(c=og())&&(b.columnHeaderRefs=c);ng(c=og())&&(b.rowHeaderRefs=c);ng(c=og())&&(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:[xx],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(),O0c(b)),b.columnMaskGenerator&&(b.columnMask=b.columnMaskGenerator()),b.statusUpdate=(new cm("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,OFa,4,3,"th",17)(13,SFa,5,10,"ng-container",18);L()();K(14,"tbody",13);E(15,aGa,8,14,"tr",19)(16,bGa,4,0,"tr",20)(17,dGa,4,1,"tr",20);L()();K(18,"p",16);$f(19,7);L();K(20,"p",16);$f(21,8);L();K(22,"p",16);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(" ",cGa(b),"\n"),B(),yg("hidden",!(b.refactorA11yNavInstructions&&b.focused)),Kf("id",b.navInstructionsId),B(),S(" ",b.NAV_INSTRUCTIONS,"\n"),B(),yg("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||T0c(b)?0:-1),B(3),Ag(P0c(b)),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalColumns))("ngForTrackBy",b.trackByIndex),B(2),I("ngForOf",K0c(b,b.internalRows))("ngForTrackBy",b.trackRowById),B(),I("ngIf",K0c(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:[Yy,ey,fy,jy],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 U0c=function(a){this.context=a;this.line=this.t0=this.y1=this.y0=this.x1=this.x0=NaN;this.numPoints=0};U0c.prototype.lineStart=function(){this.x0=this.x1=this.y0=this.y1=this.t0=NaN;this.numPoints=0};U0c.prototype.lineEnd=function(){this.numPoints===2?this.context.lineTo(this.x1,this.y1):this.numPoints===3&&V0c(this,this.t0,W0c(this,this.t0));(this.line||this.line!==0&&this.numPoints===1)&&this.context.closePath();this.line=1-this.line};
U0c.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;V0c(this,W0c(this,c=X0c(this,a,b)),c);break;default:V0c(this,this.t0,c=X0c(this,a,b))}this.x0=this.x1;this.x1=a;this.y0=this.y1;this.y1=b;this.t0=c}};
var X0c=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},W0c=function(a,b){var c=a.x1-a.x0;return c?(3*(a.y1-a.y0)/c-b)/2:b},V0c=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 Y0c={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"},Z0c={globalAlpha:.3,lineWidth:.5},$0c={globalAlpha:.05},a1c=Object.assign({},Y0c,{lineWidth:1.75}),b1c=Object.assign({},Z0c,{globalAlpha:1}),c1c=Object.assign({},$0c,{globalAlpha:.3}),d1c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},e1c=2*Math.PI,f1c=function(a,b){zG.call(this,
a);this.queueService=b;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1};Y(f1c,zG);h=f1c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=window.setTimeout(function(){c.drawInternal(b)},250)))};
h.onYAxisChange=function(a,b){xl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){(DCa(a)||rl(a,b.scope.layerId))&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:m},bodyLeft:m,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,m=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,D=a.bodyTop,H=a.bodyRight,J=a.bodyWidth,O=a.bodyHeight;if(!(g&&m&&k&&r))return null;var R=yl(k,D,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),V=fl(g,x,H,d==null?void 0:d.xAxisUnit),ba=gl(g,x,H,d==null?void 0:d.xAxisUnit);if(!V||!R||!ba||g.min===null||g.max===null)return null;var oa=
(c=m.byLayer.entities[c.layerId])?c.selectedSeries.map(function(qc){return qc.seriesId}):[],ta=c?c.hoveredSeries.map(function(qc){return qc.seriesId}):[],ka=Object.values(m.byLayer.entities).filter(function(qc){return!!qc}).some(function(qc){return pl(qc.selectedSeries).length||pl(qc.hoveredSeries).length});c=f.colorStrategy.getShape?function(qc){var sb,Ob;return b.shouldShowShape((sb=f.clickDotInteraction)!=null?sb:!1,ka,oa.includes(qc.id),ta.includes(qc.id),(Ob=f.multiselectMode)!=null?Ob:!1)?f.colorStrategy.getShape(qc,
e):""}:null;var Ca,ja,ua,xa=(ua=w==null?void 0:(Ca=w.domain)==null?void 0:Ca.multiselectAnchor)!=null?ua:w==null?void 0:(ja=w.domain)==null?void 0:ja.click,Ra,$a=w==null?void 0:(Ra=w.domain)==null?void 0:Ra.hover,pb,Yb;Ca=(Yb=(pb=f.styles)==null?void 0:pb.lineWidth)!=null?Yb:1.25;var lc;pb=((lc=f.styles)==null?0:lc.lineBorderColor)?Ca*2:Ca;lc=Math.ceil(pb/2);pb=new Path2D;pb.rect(x-lc,D-lc,J+2*lc+1,O+2*lc+1);var fc;return Object.assign({},a,{data:d,colorMap:function(qc){return f.colorStrategy.getColor(qc,
e)},shapeMap:c,shapeStateMap:function(qc){if(f.clickDotInteraction&&xa&&oa.includes(qc.id)){var sb=Jl(qc.data||[],ba(xa),null,!0);return{position:qc.data[sb],lineSelectedStatus:1}}return f.clickDotInteraction&&$a&&ta.includes(qc.id)&&!f.multiselectMode?(sb=Jl(qc.data||[],ba($a),null,!0),{position:qc.data[sb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(qc,sb){return[V(qc.valueOf()),R(sb)]},domainMap:V,rangeMap:R,inverseDomainMap:ba,
selectedSeriesIds:oa,hoveredSeriesIds:ta,anySeriesSelectedOrHovered:ka,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,bodyClippingPath:pb,clickDotInteraction:(fc=f.clickDotInteraction)!=null?fc:!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=gl(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),m=[];e.data&&(m=e.data.series.reduce(function(w,x){var D=l(uFa(x,k.valueOf(),0)),H=D.next().value;D=D.next().value;H=x.data[H];D=x.data[D];var J=e.config.pointConnectionMethod;if(!H||!D)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Kl(f,H,D,g).gapDetected)||w.push({series:x,value:al(+H.x,+D.x,H.y,D.y,+k)});J===
"zero_fill"&&Kl(f,H,D,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;m=l(m);for(var r=m.next();!r.done;r=m.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=l(a.data.series),m=k.next();!m.done;m=k.next()){m=m.value;var r=l(uFa(m,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,m.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=m.data[w],D=m.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(D.x,D.y));x<d&&x<=c&&(d=x,e=m.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(xG(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({},Y0c,{lineWidth:e,globalAlpha:a.anySeriesSelectedOrHovered&&!a.brushing?.15:1}),bandLineDrawingOptions:Z0c,bandShadingDrawingOptions:$0c};var f=a.selectedSeriesIds;a.brushing||
(f=f.concat(a.hoveredSeriesIds));var g,k;d=(k=(g=a.data)==null?void 0:g.series)!=null?k:[];g=d.filter(function(D){return!f.includes(D.id)});if(g.length){if(k=a.shapeMap){e=new Set;d=l(d);for(var m=d.next();!m.done;m=d.next())e.add(k(m.value));g.length>e.size&&(k=null)}this.drawLines(g,a.domainMap,a.rangeMap,a.colorMap,k,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,c,a.clickDotInteraction)}var r;c=(r=a.data)==null?void 0:r.series.filter(function(D){return f.includes(D.id)});
if(c==null?0:c.length){var w,x;this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,{lineDrawingOptions:Object.assign({},a1c,{lineWidth:((x=(w=a.config.styles)==null?void 0:w.lineWidth)!=null?x:1.25)+.5}),bandLineDrawingOptions:b1c,bandShadingDrawingOptions:c1c},a.clickDotInteraction)}wG(this,a.xAxisMin,a.xAxisMax);r=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:r});this.enableManualLatencyTracking&&
vG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w,x){this.ctx.save();a=l(a);for(var D=a.next();!D.done;D=a.next()){D=D.value;var H=d(D),J=e&&e(D),O=f&&f(D),R=void 0;if((R=r.styles)==null?0:R.lineBorderColor){var V=R=void 0,ba=void 0,oa=2*((ba=(R=w)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ba:1);R=Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineWidth:oa})});V=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:(V=r.styles)==null?
void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:m,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}R=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:m,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,
useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineDash:(R=r.styles)==null?void 0:R.lineDash})}),lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,m=a.bodyClippingPath,r=a.outputPeriodMs,w=a.pointConnectionMethod,x=a.useLegacyGapDetection,D=a.drawingOptions,H=a.lineInterpolationMethod,J=a.clickDotInteraction,O=a.points;if(O.length){var R=r||Infinity,V=[],ba=[],oa,ta,ka,Ca,ja=typeof((oa=O)==null?void 0:(ta=oa[0])==null?void 0:ta.min)==="number"&&typeof((ka=O)==null?void 0:(Ca=ka[0])==null?void 0:Ca.max)==="number",ua=void 0,
xa=null,Ra=[],$a=[],pb=void 0,Yb=function(Yi,pm){pb?(pb.x=Yi,pb.y=pm):pb={x:Yi,y:pm}},lc=typeof d==="string"?void 0:d,fc=!!lc,qc=[];if(fc){var sb=this.generateMulticolorPoints(O,lc),Ob=sb.linePathsColors;O=sb.multicolorPoints;qc=Ob}for(var ib=0;ib<O.length;ib++){var Zb=O[ib-1]||null,tc=O[ib],ld=b(tc.x.valueOf()),Rb=void 0,mc=l(ll([ld,c(tc.y)],(Rb=D.lineDrawingOptions.lineWidth)!=null?Rb:1)),Mc=mc.next().value,fd=mc.next().value,Nc=Mc,ge=fd,Xe=void 0,Ue=void 0,Gh=void 0;if(ja){var Jw=void 0,bp=void 0,
Ej=void 0,Rm=l(ll([ld,c((Jw=tc.min)!=null?Jw:tc.y),c((bp=tc.max)!=null?bp:tc.y)],(Ej=D.bandLineDrawingOptions.lineWidth)!=null?Ej:1));Xe=Rm.next().value;Ue=Rm.next().value;Gh=Rm.next().value}(!xa||Nc>xa[0])&&Nc>=k.left-1&&Nc<=k.right+1&&ge>=k.top-1&&ge<=k.bottom+1&&(xa=[Nc,ge]);var Hq=!1,Kw=0,ek=!1;if(Zb){if(w==="gap_detection"||w==="zero_fill"){var Dl=Kl(R,Zb,tc,x);Hq=Dl.gapDetected;Kw=Dl.gapWidthMs}if(tc.tileDomain&&Zb.tileDomain&&tc.tileDomain!==Zb.tileDomain){var cp=l(Zb.tileDomain),Lw=cp.next().value,
VK=cp.next().value,El=Lw,aA=VK,gX=l(tc.tileDomain),o9=gX.next().value,p9=gX.next().value,q9=o9;if(El>p9||q9>aA)ek=!0}}if(Hq||ek||w==="never")if(ek||w!=="zero_fill")Ra.length&&V.push(Ra),Ra=[[Nc,ge]],ja&&(ba.push($a),$a=[],Xe!==void 0&&Ue!==void 0&&Gh!==void 0&&$a.push([Xe,Ue,Gh]));else{for(var hX=Kw/R-1,Zx=tc.x.valueOf()>Zb.x.valueOf(),ay=Zx?Zb.x.valueOf()+R:Zb.x.valueOf()-R,cO=0;cO<hX;cO++){var dO=void 0,iX=l(ll([b(ay),c(0)],(dO=D.lineDrawingOptions.lineWidth)!=null?dO:1)),zh=iX.next().value,Hqa=
iX.next().value,jX=zh,r9=Hqa;Ra.push([jX,r9]);ua=nl(ua,jX,r9,pb,k);if(ja){var fIa=l(ll([b(ay),c(0)],D.bandLineDrawingOptions.lineWidth)),gIa=fIa.next().value,kX=fIa.next().value;$a.push([gIa,kX,kX])}Yb(jX,r9);ay=Zx?ay+R:ay-R}Ra.push([Nc,ge]);ua=nl(ua,Nc,ge,pb,k);ja&&Xe!==void 0&&Ue!==void 0&&Gh!==void 0&&$a.push([Xe,Ue,Gh])}else Ra.push([Nc,ge]),ua=nl(ua,Nc,ge,pb,k),ja&&Xe!==void 0&&Ue!==void 0&&Gh!==void 0&&$a.push([Xe,Ue,Gh]);Yb(Nc,ge)}Ra.length&&V.push(Ra);ja&&$a.length&&ba.push($a);if(w==="zero_fill"&&
r&&V.length&&V[0].length&&V[V.length-1].length){var Bv=Math.abs(b(r)-b(0)),qm=V[0],Co=V[V.length-1],lX=qm[0][0]<Co[Co.length-1][0],cC=c(0),by=function(Yi,pm,dC){var Cv=dC?{x:Yi[0][0],y:Yi[0][1]}:{x:Yi[Yi.length-1][0],y:Yi[Yi.length-1][1]},eO;pm=l(ll([pm,cC],(eO=D.lineDrawingOptions.lineWidth)!=null?eO:1));eO=pm.next().value;pm=pm.next().value;if((!lX&&dC||lX&&!dC)&&eO>Cv.x||(!lX&&!dC||lX&&dC)&&eO<Cv.x)ua=nl(ua,eO,pm,Cv,k),dC?Yi.unshift([eO,pm]):Yi.push([eO,pm])};lX?(by(qm,qm[0][0]-Bv,!0),by(qm,k.left,
!0),by(Co,Co[Co.length-1][0]+Bv,!1),by(Co,k.right,!1)):(by(qm,qm[0][0]+Bv,!0),by(qm,k.right,!0),by(Co,Co[Co.length-1][0]-Bv,!1),by(Co,k.left,!1))}this.ctx.save();if(ba.length){fc||(this.ctx.fillStyle=hl(d,this.base),this.ctx.strokeStyle=hl(d,this.base));for(var Iqa=l(ba),Jqa=Iqa.next();!Jqa.done;Jqa=Iqa.next()){var xH=Jqa.value;if(xH.length!==0){var s9=l(xH[0]),Kqa=s9.next().value,yH=s9.next().value,Lqa=s9.next().value,$s=Kqa,mX=yH,fO=Lqa,sn=new Path2D,cy=new Path2D,Do=new Path2D;if(xH.length===1)sn.moveTo($s-
2,mX),sn.lineTo($s+2,mX),cy.moveTo($s-2,fO),cy.lineTo($s+2,fO),Do.moveTo($s-2,fO),Do.lineTo($s+2,fO),Do.lineTo($s+2,mX),Do.lineTo($s-2,mX);else{sn.moveTo($s,mX);cy.moveTo($s,fO);Do.moveTo($s,fO);for(var zH=1;zH<xH.length;zH++){var AH=l(xH[zH]),dy=AH.next().value,Mqa=AH.next().value,Nqa=AH.next().value,Oqa=dy,hIa=Nqa;sn.lineTo(Oqa,Mqa);cy.lineTo(Oqa,hIa);Do.lineTo(Oqa,hIa)}for(var Pqa=xH.length-1;Pqa>=0;Pqa--){var t9=l(xH[Pqa]),iIa=t9.next().value,Qqa=t9.next().value;Do.lineTo(iIa,Qqa)}}Do.closePath();
il(this.ctx,D.bandShadingDrawingOptions,this.base);this.ctx.fill(Do);il(this.ctx,D.bandLineDrawingOptions,this.base);this.ctx.stroke(sn);this.ctx.stroke(cy)}}}il(this.ctx,D.lineDrawingOptions,this.base);var Rqa;this.ctx.lineWidth=(Rqa=D.lineDrawingOptions.lineWidth)!=null?Rqa:1;fc||(this.ctx.strokeStyle=hl(d,this.base),this.ctx.fillStyle=hl(d,this.base));this.applyPathsToCanvas(V,qc,w,H,fc,m);il(this.ctx,d1c,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(ua&&w!=="never"&&this.drawShapeOrInterpolate(ua,k,e,g,f.lineSelectedStatus,J),xa&&(w==="never"||!ua)){var jIa=l(xa),O3a=jIa.next().value,at=jIa.next().value;this.drawShapeWithinBounds(O3a,at,k,e,g,f.lineSelectedStatus,J)}this.ctx.restore()}};
h.applyPathsToCanvas=function(a,b,c,d,e,f){this.ctx.save();this.ctx.clip(f);this.ctx.beginPath();switch(d){case "linear":d=l(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var g=l(a[0]);f=g.next().value;g=g.next().value;this.ctx.moveTo(f,g);if(a.length===1)this.drawSinglePoint(f,g,c);else for(f=1;f<a.length;f++){var k=l(a[f]);g=k.next().value;k=k.next().value;this.ctx.lineTo(g,k);e&&(this.ctx.strokeStyle=hl(b[f-1],this.base),this.ctx.fillStyle=hl(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),
this.ctx.moveTo(g,k))}}break;case "step-before":case "step-after":a=l(a);for(f=a.next();!f.done;f=a.next())if(f=f.value,f[0]){k=l(f[0]);g=k.next().value;var m=k.next().value;k=g;var r=m;this.ctx.moveTo(k,r);if(f.length===1)this.drawSinglePoint(k,r,c);else for(g=1;g<f.length;g++){m=l([k,r]);k=m.next().value;var w=m.next().value;m=k;r=l(f[g]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(m,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=hl(b[g-1],this.base),
this.ctx.fillStyle=hl(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new U0c(this.ctx);e=l(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(f=l(d[0]),a=f.next().value,f=f.next().value,b.lineStart(),b.point(a,f),d.length===1)this.drawSinglePoint(a,f,c);else{for(a=1;a<d.length;a++)g=l(d[a]),f=g.next().value,g=g.next().value,b.point(f,g);b.lineEnd()}break;default: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,e1c),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=xCa(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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=hl("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=hl("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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=hl("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=bl(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=bl(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=bl(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=l(k);for(var m=k.next();!m.done;m=k.next())if(m=m.value,f.x!==g.x&&m.interval.min<=f.y&&f.y<=m.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,m.interval.max):Math.max(g.y,m.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(m.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var g1c={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},h1c={globalAlpha:.3,lineWidth:.5},i1c={globalAlpha:.05},j1c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},k1c=2*Math.PI,l1c=function(a,b){zG.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("Fc");this.shapeCtx=b;this.bandCanvas.setAttribute("aria-hidden","true");this.bandCanvas.style.position="absolute";b=this.bandCanvas.getContext("2d");if(!b)throw Error("Fc");this.bandCtx=b;a.appendChild(this.shapeCanvas)};Y(l1c,zG);h=l1c.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),AG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){xl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){DCa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:m},bodyLeft:m,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,m=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,D=a.bodyRight;if(!(g&&m&&k&&r))return null;var H=yl(k,a.bodyTop,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),J=fl(g,x,D,d==null?void 0:d.xAxisUnit),O=gl(g,x,D,d==null?void 0:d.xAxisUnit);if(!J||!H||!O||g.min===null||g.max===null)return null;var R=(c=m.byLayer.entities[c.layerId])?
c.selectedSeries.map(function(Ra){return Ra.seriesId}):[],V=c?c.hoveredSeries.map(function(Ra){return Ra.seriesId}):[],ba=Object.values(m.byLayer.entities).filter(function(Ra){return!!Ra}).some(function(Ra){return pl(Ra.selectedSeries).length||pl(Ra.hoveredSeries).length});c=f.colorStrategy.getShape?function(Ra){var $a,pb;return b.shouldShowShape(($a=f.clickDotInteraction)!=null?$a:!1,ba,R.includes(Ra.id),V.includes(Ra.id),(pb=f.multiselectMode)!=null?pb:!1)?f.colorStrategy.getShape(Ra,e):""}:null;
var oa,ta,ka,Ca=(ka=w==null?void 0:(oa=w.domain)==null?void 0:oa.multiselectAnchor)!=null?ka:w==null?void 0:(ta=w.domain)==null?void 0:ta.click,ja,ua=w==null?void 0:(ja=w.domain)==null?void 0:ja.hover,xa;return Object.assign({},a,{data:d,colorMap:function(Ra){return f.colorStrategy.getColor(Ra,e)},shapeMap:c,shapeStateMap:function(Ra){if(f.clickDotInteraction&&Ca&&R.includes(Ra.id)){var $a=Jl(Ra.data||[],O(Ca),null,!0);return{position:Ra.data[$a],lineSelectedStatus:1}}return f.clickDotInteraction&&
ua&&V.includes(Ra.id)&&!f.multiselectMode?($a=Jl(Ra.data||[],O(ua),null,!0),{position:Ra.data[$a],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(Ra,$a){return[J(Ra.valueOf()),H($a)]},domainMap:J,rangeMap:H,inverseDomainMap:O,selectedSeriesIds:R,hoveredSeriesIds:V,anySeriesSelectedOrHovered:ba,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=gl(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),m=[];e.data&&(m=e.data.series.reduce(function(w,x){var D=l(uFa(x,k.valueOf(),0)),H=D.next().value;D=D.next().value;H=x.data[H];D=x.data[D];var J=e.config.pointConnectionMethod;if(!H||!D)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Kl(f,H,D,g).gapDetected)||w.push({series:x,value:al(+H.x,+D.x,H.y,D.y,+k)});J===
"zero_fill"&&Kl(f,H,D,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;m=l(m);for(var r=m.next();!r.done;r=m.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=l(a.data.series),m=k.next();!m.done;m=k.next()){m=m.value;var r=l(uFa(m,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,m.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=m.data[w],D=m.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(D.x,D.y));x<d&&x<=c&&(d=x,e=m.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";kl(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(xG(this,this.canvas),xG(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({},g1c,{lineWidth:e,globalAlpha:c?.15:1}),bandLineDrawingOptions:h1c,bandShadingDrawingOptions:i1c};this.shapeCtx.globalAlpha=c?.15:1;var f;c=(f=a.data)==null?void 0:f.series;if(c==null?0:c.length){if(f=a.shapeMap){d=new Set;for(var g=l(c),k=g.next();!k.done;k=g.next())d.add(f(k.value));c.length>d.size&&(f=null)}this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,e,a.clickDotInteraction)}this.ctx.restore();wG(this,
a.xAxisMin,a.xAxisMax);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.enableManualLatencyTracking&&vG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w){this.ctx.save();var x;il(this.ctx,Object.assign({},r.lineDrawingOptions,{lineDash:(x=m.styles)==null?void 0:x.lineDash}),this.base);il(this.shapeCtx,j1c,this.base);x=!1;a=l(a);for(var D=a.next();!D.done;D=a.next()){D=D.value;var H=d(D),J=e&&e(D),O=f&&f(D),R=void 0;if((R=m.styles)==null?0:R.lineBorderColor){var V=R=void 0,ba=void 0,oa=2*((ba=(R=r)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ba:1);R=Object.assign({},r,{lineDrawingOptions:Object.assign({},
r.lineDrawingOptions,{lineWidth:oa})});V=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:(V=m.styles)==null?void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,outputPeriodMs:m.outputPeriodMs,pointConnectionMethod:m.pointConnectionMethod,useLegacyGapDetection:m.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:m.lineInterpolationMethod,clickDotInteraction:w})}D=this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,
bounds:k,outputPeriodMs:m.outputPeriodMs,pointConnectionMethod:m.pointConnectionMethod,useLegacyGapDetection:m.useLegacyGapDetection,drawingOptions:r,lineInterpolationMethod:m.lineInterpolationMethod,clickDotInteraction:w}).drewBands;x||(x=D)}x&&!this.bandCanvasAttached&&(this.base.insertBefore(this.bandCanvas,this.canvas),this.bandCanvasAttached=!0);this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,m=a.outputPeriodMs,r=a.pointConnectionMethod,w=a.useLegacyGapDetection,x=a.drawingOptions,D=a.lineInterpolationMethod,H=a.clickDotInteraction,J=a.points;if(!J.length)return{drewBands:!1};var O=m||Infinity,R=[],V=[],ba,oa,ta,ka,Ca=typeof((ba=J)==null?void 0:(oa=ba[0])==null?void 0:oa.min)==="number"&&typeof((ta=J)==null?void 0:(ka=ta[0])==null?void 0:ka.max)==="number",ja=void 0,
ua=null,xa=[],Ra=[],$a=void 0,pb=function(at,Yi){$a?($a.x=at,$a.y=Yi):$a={x:at,y:Yi}},Yb=typeof d==="string"?void 0:d,lc=!!Yb,fc=[];if(lc){var qc=this.generateMulticolorPoints(J,Yb),sb=qc.linePathsColors;J=qc.multicolorPoints;fc=sb}for(var Ob=0;Ob<J.length;Ob++){var ib=J[Ob-1]||null,Zb=J[Ob],tc=b(Zb.x.valueOf()),ld=void 0,Rb=l(ll([tc,c(Zb.y)],(ld=x.lineDrawingOptions.lineWidth)!=null?ld:1)),mc=Rb.next().value,Mc=Rb.next().value,fd=mc,Nc=Mc,ge=void 0,Xe=void 0,Ue=void 0;if(Ca){var Gh=void 0,Jw=void 0,
bp=void 0,Ej=l(ll([tc,c((Gh=Zb.min)!=null?Gh:Zb.y),c((Jw=Zb.max)!=null?Jw:Zb.y)],(bp=x.bandLineDrawingOptions.lineWidth)!=null?bp:1));ge=Ej.next().value;Xe=Ej.next().value;Ue=Ej.next().value}(!ua||fd>ua[0])&&fd>=k.left-1&&fd<=k.right+1&&Nc>=k.top-1&&Nc<=k.bottom+1&&(ua=[fd,Nc]);var Rm=!1,Hq=0,Kw=!1;if(ib){if(r==="gap_detection"||r==="zero_fill"){var ek=Kl(O,ib,Zb,w);Rm=ek.gapDetected;Hq=ek.gapWidthMs}if(Zb.tileDomain&&ib.tileDomain&&Zb.tileDomain!==ib.tileDomain){var Dl=l(ib.tileDomain),cp=Dl.next().value,
Lw=Dl.next().value,VK=cp,El=Lw,aA=l(Zb.tileDomain),gX=aA.next().value,o9=aA.next().value,p9=gX;if(VK>o9||p9>El)Kw=!0}}if(Rm||Kw||r==="never")if(Kw||r!=="zero_fill")xa.length&&R.push(xa),xa=[[fd,Nc]],Ca&&(V.push(Ra),Ra=[],ge!==void 0&&Xe!==void 0&&Ue!==void 0&&Ra.push([ge,Xe,Ue]));else{for(var q9=Hq/O-1,hX=Zb.x.valueOf()>ib.x.valueOf(),Zx=hX?ib.x.valueOf()+O:ib.x.valueOf()-O,ay=0;ay<q9;ay++){var cO=void 0,dO=l(ll([b(Zx),c(0)],(cO=x.lineDrawingOptions.lineWidth)!=null?cO:1)),iX=dO.next().value,zh=dO.next().value,
Hqa=iX,jX=zh;xa.push([Hqa,jX]);ja=nl(ja,Hqa,jX,$a,k);if(Ca){var r9=l(ll([b(Zx),c(0)],x.bandLineDrawingOptions.lineWidth)),fIa=r9.next().value,gIa=r9.next().value;Ra.push([fIa,gIa,gIa])}pb(Hqa,jX);Zx=hX?Zx+O:Zx-O}xa.push([fd,Nc]);ja=nl(ja,fd,Nc,$a,k);Ca&&ge!==void 0&&Xe!==void 0&&Ue!==void 0&&Ra.push([ge,Xe,Ue])}else xa.push([fd,Nc]),ja=nl(ja,fd,Nc,$a,k),Ca&&ge!==void 0&&Xe!==void 0&&Ue!==void 0&&Ra.push([ge,Xe,Ue]);pb(fd,Nc)}xa.length&&R.push(xa);Ca&&Ra.length&&V.push(Ra);if(r==="zero_fill"&&m&&R.length&&
R[0].length&&R[R.length-1].length){var kX=Math.abs(b(m)-b(0)),Bv=R[0],qm=R[R.length-1],Co=Bv[0][0]<qm[qm.length-1][0],lX=c(0),cC=function(at,Yi,pm){var dC=pm?{x:at[0][0],y:at[0][1]}:{x:at[at.length-1][0],y:at[at.length-1][1]},Cv;Yi=l(ll([Yi,lX],(Cv=x.lineDrawingOptions.lineWidth)!=null?Cv:1));Cv=Yi.next().value;Yi=Yi.next().value;if((!Co&&pm||Co&&!pm)&&Cv>dC.x||(!Co&&!pm||Co&&pm)&&Cv<dC.x)ja=nl(ja,Cv,Yi,dC,k),pm?at.unshift([Cv,Yi]):at.push([Cv,Yi])};Co?(cC(Bv,Bv[0][0]-kX,!0),cC(Bv,k.left,!0),cC(qm,
qm[qm.length-1][0]+kX,!1),cC(qm,k.right,!1)):(cC(Bv,Bv[0][0]+kX,!0),cC(Bv,k.right,!0),cC(qm,qm[qm.length-1][0]-kX,!1),cC(qm,k.left,!1))}this.ctx.save();var by;this.ctx.lineWidth=(by=x.lineDrawingOptions.lineWidth)!=null?by:1;lc||(this.ctx.strokeStyle=hl(d,this.base),this.shapeCtx.fillStyle=hl(d,this.base));this.applyPathsToCanvas(R,fc,r,D,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),ua&&(r==="never"||!ja)){var Iqa=l(ua),Jqa=Iqa.next().value,xH=Iqa.next().value;this.drawShapeWithinBounds(Jqa,xH,k,e,g,f.lineSelectedStatus,H)}if(V.length){lc||(this.bandCtx.fillStyle=hl(d,this.base),this.bandCtx.strokeStyle=hl(d,this.base));for(var s9=l(V),Kqa=s9.next();!Kqa.done;Kqa=s9.next()){var yH=Kqa.value;if(yH.length!==0){var Lqa=l(yH[0]),$s=Lqa.next().value,mX=Lqa.next().value,fO=Lqa.next().value,sn=$s,cy=mX,Do=fO,
zH=new Path2D,AH=new Path2D,dy=new Path2D;if(yH.length===1)zH.moveTo(sn-2,cy),zH.lineTo(sn+2,cy),AH.moveTo(sn-2,Do),AH.lineTo(sn+2,Do),dy.moveTo(sn-2,Do),dy.lineTo(sn+2,Do),dy.lineTo(sn+2,cy),dy.lineTo(sn-2,cy);else{zH.moveTo(sn,cy);AH.moveTo(sn,Do);dy.moveTo(sn,Do);for(var Mqa=1;Mqa<yH.length;Mqa++){var Nqa=l(yH[Mqa]),Oqa=Nqa.next().value,hIa=Nqa.next().value,Pqa=Nqa.next().value,t9=Oqa,iIa=Pqa;zH.lineTo(t9,hIa);AH.lineTo(t9,iIa);dy.lineTo(t9,iIa)}for(var Qqa=yH.length-1;Qqa>=0;Qqa--){var Rqa=l(yH[Qqa]),
jIa=Rqa.next().value,O3a=Rqa.next().value;dy.lineTo(jIa,O3a)}}dy.closePath();il(this.bandCtx,x.bandShadingDrawingOptions,this.base);this.bandCtx.fill(dy);il(this.bandCtx,x.bandLineDrawingOptions,this.base);this.bandCtx.stroke(zH);this.bandCtx.stroke(AH)}}}this.ctx.restore();return{drewBands:!(!Ca||!V.length)}};
h.applyPathsToCanvas=function(a,b,c,d,e){this.ctx.beginPath();switch(d){case "linear":d=l(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var f=l(a[0]),g=f.next().value;f=f.next().value;this.ctx.moveTo(g,f);if(a.length===1)this.drawSinglePoint(g,f,c);else for(g=1;g<a.length;g++){var k=l(a[g]);f=k.next().value;k=k.next().value;this.ctx.lineTo(f,k);e&&(this.ctx.strokeStyle=hl(b[g-1],this.base),this.shapeCtx.fillStyle=hl(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(f,
k))}}break;case "step-before":case "step-after":a=l(a);for(g=a.next();!g.done;g=a.next())if(g=g.value,g[0]){k=l(g[0]);f=k.next().value;var m=k.next().value;k=f;var r=m;this.ctx.moveTo(k,r);if(g.length===1)this.drawSinglePoint(k,r,c);else for(f=1;f<g.length;f++){m=l([k,r]);k=m.next().value;var w=m.next().value;m=k;r=l(g[f]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(m,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=hl(b[f-1],this.base),this.shapeCtx.fillStyle=
hl(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new U0c(this.ctx);e=l(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(g=l(d[0]),a=g.next().value,g=g.next().value,b.lineStart(),b.point(a,g),d.length===1)this.drawSinglePoint(a,g,c);else{for(a=1;a<d.length;a++)f=l(d[a]),g=f.next().value,f=f.next().value,b.point(g,f);b.lineEnd()}break;default: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,k1c),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=xCa(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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=hl("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=hl("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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=hl("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=bl(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=bl(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=bl(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=l(k);for(var m=k.next();!m.done;m=k.next())if(m=m.value,f.x!==g.x&&m.interval.min<=f.y&&f.y<=m.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,m.interval.max):Math.max(g.y,m.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(m.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var m1c=Object.assign({},g1c,{lineWidth:1.75}),n1c=Object.assign({},h1c,{globalAlpha:1}),o1c=Object.assign({},i1c,{globalAlpha:.3}),p1c=function(){l1c.apply(this,arguments)};Y(p1c,l1c);p1c.prototype.onSeriesSelectionChange=function(a,b){rl(a,b.scope.layerId)&&this.drawInternal(b)};
p1c.prototype.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";kl(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};
p1c.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({},m1c,{lineWidth:((f=(e=a.config.styles)==null?void 0:e.lineWidth)!=
null?f:1.25)+.5}),bandLineDrawingOptions:n1c,bandShadingDrawingOptions:o1c},a.clickDotInteraction)}wG(this,a.xAxisMin,a.xAxisMax)}};var kGa="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 OH=function(){var a=a===void 0?kGa:a;var b=b===void 0?E_c:b;var c=c===void 0?F_c:c;this.colorPalette=a;this.shapePalette=b;this.shapeBoundingBox=c},q1c=function(a,b,c,d){var e={},f=new Map,g={};c=l(c);for(var k=c.next();!k.done;k=c.next()){k=l(Object.entries(k.value));for(var m=k.next();!m.done;m=k.next()){var r=l(m.value);m=r.next().value;r=r.next().value;g[m]=r;m=void 0;f.set(r,((m=f.get(r))!=null?m:0)+1)}}c=new Map(f);k=l(Object.entries(d));for(m=k.next();!m.done;m=k.next())r=l(m.value),m=
r.next().value,r=r.next().value,a.includes(m)&&(m=void 0,f.set(r,((m=f.get(r))!=null?m:0)+1));a=l(a);for(k=a.next();!k.done;k=a.next())if(k=k.value,(m=g[k])||!d[k]||c.get(d[k])||(m=d[k]),m)e[k]=m;else if(f.size<b.length)m=b.filter(function(J){return!f.get(J)}),e[k]=m[0],f.set(m[0],1);else{m=b[0];r=Infinity;for(var w=l(b),x=w.next();!x.done;x=w.next()){x=x.value;var D=void 0,H=(D=f.get(x))!=null?D:0;H<r&&(r=H,m=x)}r=void 0;f.set(m,((r=f.get(m))!=null?r:0)+1);e[k]=m}return e};
OH.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:r1c++,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=q1c(b,this.colorPalette,g,(k=e==null?void 0:e.colorMap)!=null?k:{});k=
c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.shapeMap)!=null?w:{}});var m;b=q1c(b,this.shapePalette,k,(m=e==null?void 0:e.shapeMap)!=null?m:{});return{order:f,colorMap:g,shapeMap:b}};OH.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};
OH.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(iGa(a))%this.colorPalette.length]};OH.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(iGa(a))%this.shapePalette.length]};var r1c=0;var s1c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},t1c={lineDash:[],lineWidth:1.25},PH=function(a,b,c,d,e,f,g,k,m){KG.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 OH;this.layerName=
"";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=this.useLegacyGapDetection=!1;this.nearestPoint="default";this.onSelect=new gj;this.dataSubject=new Wj(this.data);this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Wj(null);this.defaultColumnMaskGeneratorSubject=new Wj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.stylesInternal=t1c;this.interactionsInternal=s1c;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 Wj({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),Gk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),Gk(this.ngZone));this.layerType="graphic";m?(this.lineView=new f1c(a.nativeElement,d),this.views.push(this.lineView)):(this.lineView=new l1c(a.nativeElement,d),this.views.push(this.lineView),this.views.push(new p1c(a.nativeElement)));this.bindDrawInstrumentation()};
Y(PH,KG);PH.\u0275dir=KG.\u0275dir;PH.prototype.bindDrawInstrumentation=function(){var a=this;uG(this.lineView,function(b){u1c(a,Object.assign({},b,{hasCompleteData:!a.loading}))})};
var u1c=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;aH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});aH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})};h=PH.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(KH({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(JH({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=KBa(e);(f==null?0:f.xAxis)&&d!==e&&((k=Xk(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=NBa(k)),
Yk(this.yAxisRequirement,k)&&(this.yAxisRequirement=k,g.push(MG(this,this.yAxisRequirement))));d!==e&&(this.xAxisRequirement=LBa(e),g.push(NG(this,this.xAxisRequirement)));if(f&&e){if(d=QG(this.colorStrategy,a,e,f))this.store.dispatch(d),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){var V=R.scope;(R=R.state)&&g.push(c.createSetSeriesColorMetadataAction(V,e,R))});(d=this.updateMostRecentValues(b))&&g.push(d)}var m;if(d=f==null?void 0:(m=f.seriesSelection)==null?void 0:m.byLayer.entities[a.layerId]){m=
d.selectedSeries;d=d.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=m.filter(function(R){return w.has(R.seriesId)});r.length!==m.length&&g.push(jH({chartId:a.chartId,layerId:a.layerId,series:r}));r=d.filter(function(R){return w.has(R.seriesId)});if(r.length!==d.length){var x,D,H=f==null?void 0:(x=f.lastInteraction)==null?void 0:(D=x.domain)==null?void 0:D.hover;H&&(r=r.map(function(R){var V,ba,oa=(f==null?0:(V=f.lastInteraction)==null?0:(ba=V.domain)==
null?0:ba.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:oa})}));g.push(lH({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=[];zk(a)&&(this.updateGridTriggerSubject.next(b),(a=this.updateMostRecentValues(b))&&c.push(a));return c};h.onYAxisChange=function(a,b){xl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(cl(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Xk(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=NBa(e)),Yk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(MG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(cl(a)||dl(a)||el(a))&&this.updateGridTriggerSubject.next(b);if(oCa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(m){k=m&&m()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.lineView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this;a=b.scope;var d=b.data;b=b.state;var e=[];d&&b&&(this.colorRecalculationAttemptsRemaining>0&&(b=QG(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 JH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:0,lineDash:d.styles.lineDash,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var m=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(jH({chartId:g.chartId,layerId:g.layerId,series:m?[{seriesId:m.metadata.seriesId}]:[]})),r!==null||m!==null)&&(b.store.dispatch(TG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),
b.store.dispatch(UG({chartGroupId:g.chartGroupId,locked:!!r})));b.store.dispatch(lH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(RG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(SG({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=LG(this,a),d=!1;this.withLatest(function(e){var f=e.scope,g=e.state,k=e.data;if(g&&k){var m=g.seriesSelection,r=g.brush,w=g.resize;g=g.lastInteraction;if(m&&r&&!r.brushing&&w&&eGa(c,w)){m=(m=m.byLayer.entities[f.layerId])?m.selectedSeries.map(function(H){return H.seriesId}):[];var x=b.lineView.getSeriesIdOfClosestLine(e,c,10);x&&(k=k.series.find(function(H){return H.id===x}))&&b.onSelect.emit(k);if(b.interactions.clickSelect){k=[];r=Fl.ve.LineDeselectToggle;if(x)if(r=
Fl.ve.LineSelectToggle,m.length===1&&m.includes(x))k=[];else if(b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&m.length>0){var D;k=b.lineView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,(D=g==null?void 0:g.domain.multiselectAnchor)!=null?D:c.x)||[x];r=Fl.ve.LineMultiSelectToggle}else b.isPrimaryModifierKeyDown?(k=m.includes(x)?m.filter(function(H){return H!==x}):m.concat([x]),r=Fl.ve.LineSpecificSelectToggle):k=[x];b.shiftSelectingFromSeriesId=x;k.length===0&&(b.store.dispatch(RG({chartId:f.chartId,
lastInteraction:{multiselectAnchor:null}})),b.store.dispatch(B_c({chartId:f.chartId,layerId:f.layerId,series:null})));m.length===0&&k.length===1&&(d=!0,b.store.dispatch(RG({chartId:f.chartId,lastInteraction:{multiselectAnchor:c.x}})),x&&b.store.dispatch(B_c({chartId:f.chartId,layerId:f.layerId,series:{seriesId:x,datumIndices:b.getDatumIndices(e,x,c.x,!0)}})));b.store.dispatch(jH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:k.map(function(H){return{seriesId:H}})}));Cl(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=LG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.lineView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,m){m=m.data;var r=Hl(m,f,Il(d.outputPeriodMs));return(m=m[r])&&(k===null||Math.abs(f-m.x.valueOf())<Math.abs(f-k))?m.x.valueOf():k},null);c=void 0;d.outputPeriodMs&&(c=Math.max(d.outputPeriodMs,3E5));return(a=this.lineView.getValuesAtTime(a,b!=null?b:f,c))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=IH({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)?gl(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Jl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?b.lineView.getSeriesIdOfClosestLine(c,a,10):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];ql(e,g)&&(d=lH({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=fl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=yl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return tFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:qFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:tl({position:R,tickIncrement:r,timeZone:Pk(w,x)}),value:R}},valueFormatter:oFa(g,k),positionMap:sFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?lFa({ticks:a.ticks,grid:b}):[]:[]};
h.ngOnInit=function(){var a=this;KG.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)});eG(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){KG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||fGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(PG(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(PG(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(OG(this,this.loading,"Line"));"error"in a&&b.push(PG(this,this.error,this.hasData()));dG(this.chart,b)};h.getLayerTitle=function(){return this.layerName?"Line "+this.layerName:"Line"};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),NG(this,null),OG(this,!1,"Line"),PG(this,null,!1),kH({chartId:this.chartId,layerId:this.layerId})])};
h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(PH.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 OH},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},s1c,a)},get:function(){return this.interactionsInternal}},
styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},t1c,a)},get:function(){return this.stylesInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ul?this.isMetaKeyDown:this.isCtrlKeyDown}}});PH.\u0275fac=function(a){return new (a||PH)(Ye(Jd),Ye(cG),Ye(qG),Ye(dH),Ye(Fl),Ye($G),Ye(FH),Ye(Tg),Ye(LWc,8))};
PH.\u0275cmp=C({type:PH,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,xx],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:[MH,ly],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 QH=function(){};QH.prototype.getBrushSegment=function(a,b,c,d){d=d===void 0?0:d;return{start:[d,a],end:[d+b,a]}};QH.prototype.getBrushSelectionRect=function(a,b,c,d,e){return{x:e===void 0?0:e,y:a,width:c,height:b-a}};QH.prototype.getRangeMap=function(a,b,c,d){return function(e){return al(a,b,d,0,e)}};var RH=function(){};RH.prototype.getBrushSegment=function(a,b,c,d,e){e=e===void 0?0:e;return{start:[a,e],end:[a,e+c]}};
RH.prototype.getBrushSelectionRect=function(a,b,c,d,e,f){return{x:a,y:f===void 0?0:f,width:b-a,height:d}};RH.prototype.getRangeMap=function(a,b,c){return function(d){return al(a,b,0,c,d)}};var v1c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},w1c=[4,4],x1c=function(a,b){zG.call(this,a);this.brushStrategy=b};Y(x1c,zG);h=x1c.prototype;h.updateStrategy=function(a,b){this.brushStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){zk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onBrushChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.scope,c=a.state;if(!c)return null;a=c.resize;var d=c.yAxis;c=c.brush;if(!(a&&d&&c&&d.min!==null&&d.max)||a.height<=0||a.width<=0)return null;var e=c.yAxes.find(function(m){return m.chartId===b.chartId&&m.yAxisId===b.yAxisId}),f=a.margins.left,g=a.margins.top,k=a.height-a.margins.top-a.margins.bottom;d=this.brushStrategy.getRangeMap(d.min,d.max,a.width-a.margins.left-a.margins.right,k);return{map:d,bodyTopEdge:g,bodyLeftEdge:f,bodyHeight:k,bodyWidth:a.width-a.margins.left-
a.margins.right,brushing:c.brushing&&c.axis===1,brushStart:(e==null?0:e.yPosStart)?d(e.yPosStart):null,brushEnd:(e==null?0:e.yPos)?d(e.yPos):null,brushAxis:c.axis}};
h.drawInternal=function(a){if(a=this.unpack(a)){var b=a.bodyTopEdge,c=a.bodyHeight,d=a.bodyWidth,e=a.brushing,f=a.brushStart,g=a.brushEnd,k=a.brushAxis;this.canvas.style.left=a.bodyLeftEdge+"px";this.canvas.style.top=b+"px";kl(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?v1c:b;this.ctx.save();il(this.ctx,b,this.base);this.ctx.setLineDash(w1c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b){b=b===void 0?v1c:b;this.ctx.save();il(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var y1c={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},z1c={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)"},A1c=Object.assign({},z1c,{textAlign:"left",textBaseline:"middle"}),B1c=Object.assign({},z1c,{textAlign:"right",textBaseline:"middle"});var C1c=[4,4],D1c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},SH=function(a,b,c){zG.call(this,a);this.axisStrategy=b;this.brushStrategy=c};Y(SH,zG);h=SH.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){zk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onConfigChange=function(a,b){this.drawInternal(b)};h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,m=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,D=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;m!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&D!==null?function(V){return nCa(m,w,f,g,V,D)}:function(V){return al(m,w,f,g,V)},r=function(V){return al(f,
g,m,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now(),c=this.unpack(a.state,a.config);if(c){var d=c.map,e=c.chartBodyLeft,f=c.chartBodyRight,g=c.chartBodyTop,k=c.chartBodyBottom,m=c.yAxisTicks,r=c.yAxisHeight,w=c.yAxisCanvasWidth,x=c.offset,D=c.rangeBottom,H=c.rangeTop,J=c.label,O=c.labelAnchorX,R=c.labelAnchorY,V=c.labelRotation,ba=c.chartBodyHeight,oa=c.config.position;m=d?m.map(function(pb){return{label:pb.label,value:d(pb.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,
this.base,r,w);if(oa!=="none"){r=oa==="right"?A1c:oa==="left"?B1c:XG;var ta,ka,Ca,ja;r=Object.assign({},r,{fillStyle:(Ca=(ta=c.config.styles)==null?void 0:ta.textColor)!=null?Ca:r.fillStyle,font:(ja=(ka=c.config.styles)==null?void 0:ka.font)!=null?ja:r.font});ta=y1c;var ua,xa,Ra,$a;ta=Object.assign({},ta,{lineDash:(Ra=(ua=c.config.styles)==null?void 0:ua.lineDash)!=null?Ra:ta.lineDash,strokeStyle:($a=(xa=c.config.styles)==null?void 0:xa.gridLineColor)!=null?$a:ta.strokeStyle});this.drawAxisAndTickLines(D,
H,e,f,g,k,m,ta);this.drawAxisTickLabels(x,m,oa,r);this.drawAxisLabel(J,O,R,V,ba,r);this.drawBrushInternal(a);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();il(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(ll(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll(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();il(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,ml(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(),il(this.ctx,f,this.base),wCa(this.ctx,a,b,c,e,d),this.ctx.restore())};h.onBrushChange=function(a,b){if(a=E1c(this,b)){var c=a.brushAxis;a=!!a.brushEnd&&c===1}else a=!1;a&&this.drawInternal(b)};
var E1c=function(a,b){var c=b.scope,d=b.state;if(!d)return null;b=d.resize;var e=d.yAxis;d=d.brush;if(!(b&&e&&d&&e.min!==null&&e.max)||b.height<=0||b.width<=0)return null;var f=d.yAxes.find(function(r){return r.chartId===c.chartId&&r.yAxisId===c.yAxisId}),g=b.margins.left,k=b.margins.top,m=b.height-b.margins.top-b.margins.bottom;a=a.brushStrategy.getRangeMap(e.min,e.max,b.width-b.margins.left-b.margins.right,m);return{map:a,bodyTopEdge:k,bodyLeftEdge:g,bodyHeight:m,bodyWidth:b.width-b.margins.left-
b.margins.right,brushing:d.brushing&&d.axis===1,brushStart:(f==null?0:f.yPosStart)?a(f.yPosStart):null,brushEnd:(f==null?0:f.yPos)?a(f.yPos):null,brushAxis:d.axis}};
SH.prototype.drawBrushInternal=function(a){var b=E1c(this,a);if(b){a=b.bodyTopEdge;var c=b.bodyLeftEdge,d=b.bodyHeight,e=b.bodyWidth,f=b.brushing,g=b.brushStart,k=b.brushEnd;b=b.brushAxis;var m=a;this.brushStrategy instanceof RH&&(m=c);k&&b===1&&(g&&f&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(m+g,m+k,e,d,c,a)),this.drawBrushLine(this.brushStrategy.getBrushSegment(m+g,e,d,c,a))),this.drawBrushLine(this.brushStrategy.getBrushSegment(m+k,e,d,c,a)))}};
SH.prototype.drawBrushLine=function(a,b){b=b===void 0?D1c:b;this.ctx.save();il(this.ctx,b,this.base);this.ctx.setLineDash(C1c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(ll(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(ll(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};SH.prototype.drawBrushSelection=function(a,b){b=b===void 0?D1c:b;this.ctx.save();il(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var TH=function(){};TH.prototype.getCanvasRange=function(a){return{rangeMin:a.height-a.margins.bottom,rangeMax:a.margins.top}};TH.prototype.getDataValue=function(a,b){return b?b(a.y):null};TH.prototype.generateTickLines=function(a,b,c){return a.map(function(d){d=d.value;return{start:[b,d],end:[c,d]}})};TH.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 F1c=function(){};
F1c.prototype.getCanvasRange=function(a){return{rangeMin:a.margins.left,rangeMax:a.width-a.margins.right}};F1c.prototype.getDataValue=function(a,b){return b?b(a.x):null};F1c.prototype.generateTickLines=function(a,b,c,d,e){return a.map(function(f){f=f.value;return{start:[f,d],end:[f,e]}})};F1c.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 G1c=function(a,b){zG.call(this,a);this.axisStrategy=b};Y(G1c,zG);h=G1c.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){zk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,m=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,D=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;m!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&D!==null?function(V){return nCa(m,w,f,g,V,D)}:function(V){return al(m,w,f,g,V)},r=function(V){return al(f,
g,m,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now();if(a=this.unpack(a.state,a.config)){var c=a.map,d=a.chartBodyLeft,e=a.chartBodyRight,f=a.chartBodyTop,g=a.chartBodyBottom,k=a.yAxisTicks,m=a.yAxisHeight,r=a.yAxisCanvasWidth,w=a.offset,x=a.rangeBottom,D=a.rangeTop,H=a.label,J=a.labelAnchorX,O=a.labelAnchorY,R=a.labelRotation,V=a.chartBodyHeight,ba=a.config.position;k=c?k.map(function($a){return{label:$a.label,value:c($a.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,
this.base,m,r);if(ba!=="none"){m=ba==="right"?A1c:ba==="left"?B1c:XG;var oa,ta,ka,Ca;m=Object.assign({},m,{fillStyle:(ka=(oa=a.config.styles)==null?void 0:oa.textColor)!=null?ka:m.fillStyle,font:(Ca=(ta=a.config.styles)==null?void 0:ta.font)!=null?Ca:m.font});oa=y1c;var ja,ua,xa,Ra;oa=Object.assign({},oa,{lineDash:(xa=(ja=a.config.styles)==null?void 0:ja.lineDash)!=null?xa:oa.lineDash,strokeStyle:(Ra=(ua=a.config.styles)==null?void 0:ua.gridLineColor)!=null?Ra:oa.strokeStyle});this.drawAxisAndTickLines(x,
D,d,e,f,g,k,oa);this.drawAxisTickLabels(w,k,ba,m);this.drawAxisLabel(H,J,O,R,V,m);ja=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:ja})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();il(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(ll(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(ll(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();il(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,ml(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(),il(this.ctx,f,this.base),wCa(this.ctx,a,b,c,e,d),this.ctx.restore())};var H1c={dragZoom:!0,ctrlScrollZoom:!0},I1c=new cm("Data values on this chart range from a minimum of {MIN} to a maximum of {MAX}."),UH=function(a,b,c,d,e,f,g){KG.call(this,a,b,c);this.interactionService=d;this.instrumentationService=e;this.ngZone=f;this.dataSubject=new Wj(null);this.position="right";this.styles={};this.tickStrategy=jCa;this.configSubject=new Wj({position:this.position,styles:this.styles});this.interactionsInternal=H1c;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=
null;this.cachedScrollAmount=0;this.scrollZoomSubject=new wf(1);this.axisDescriptionSubject=new Wj("");this.lastAxisDynamicWidth=0;this.initialized=!1;this.axisDescriptionObservable=this.axisDescriptionSubject.pipe(of(0),Gk(this.ngZone));this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.layerType="axis";g?(this.axisView=new SH(a.nativeElement,new TH,new QH),this.views.push(this.axisView)):(this.axisView=new G1c(a.nativeElement,new TH),this.brushView=
new x1c(a.nativeElement,new QH),this.views.push(this.axisView),this.views.push(this.brushView));this.bindDrawInstrumentation()};Y(UH,KG);UH.\u0275dir=KG.\u0275dir;h=UH.prototype;h.isPrimaryModifierKeyDown=function(a){return ul?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;uG(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;aH(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});aH(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=YBa(g,[1,0]);var m;g=(m=k==null?void 0:k.min)!=null?m:null;var r;m=(r=k==null?void 0:k.max)!=null?r:null;f&&k&&f!==k.unit&&(g=Uk(k.unit,f,k.min),m=Uk(k.unit,f,k.max));g!==null&&m!==null&&a.axisDescriptionSubject.next(I1c.format({MIN:Wk(g,f),MAX:Wk(m,
f)}))}var w;if(c==null?0:(w=c.yAxis)==null?0:w.ticks){var x;r=c==null?void 0:(x=c.yAxis)==null?void 0:x.ticks.reduce(function(H,J){return Math.max(H,a.rulerCanvasCtx.measureText(J.label).width)},0);var D;x=c==null?void 0:(D=c.yAxis)==null?void 0:D.label;D=r+10+8+(x?a.rulerCanvasCtx.measureText(x).fontBoundingBoxAscent:0);a.lastAxisDynamicWidth!==D&&(a.lastAxisDynamicWidth=D,b.push(a.createMarginRequirementAction(d,e,D)))}});return b};
h.onConfigChange=function(a,b){dG(this.chart,[this.createMarginRequirementAction(b.scope,a.currentValue,this.lastAxisDynamicWidth||void 0)])};
h.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.initialized=!0;this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.configSubject.next({position:this.position,styles:this.styles});J1c(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()});eG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);eG(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=[];NWc(a.selectorService,b,a.tickStrategy);c.push(bXc({chartId:b.chartId,yAxisId:b.yAxisId,position:a.position}));var d;c.push(ZWc({chartId:b.chartId,yAxisId:b.yAxisId,label:(d=a.label)!=null?d:""}));var e,f;if(((e=a.includeRange)==null?void 0:
e.min)!==void 0||((f=a.includeRange)==null?void 0:f.max)!==void 0){var g,k,m,r,w,x,D,H,J,O;c.push(MG(a,{priority:1,min:Math.min((x=(g=a.includeRange)==null?void 0:g.min)!=null?x:Infinity,(D=(k=a.includeRange)==null?void 0:k.max)!=null?D:Infinity),max:Math.max((H=(m=a.includeRange)==null?void 0:m.min)!=null?H:-Infinity,(J=(r=a.includeRange)==null?void 0:r.max)!=null?J:-Infinity),unit:(O=(w=a.includeRange)==null?void 0:w.unit)!=null?O:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}var R,
V;if(((R=a.exactRange)==null?void 0:R.min)!==void 0||((V=a.exactRange)==null?void 0:V.max)!==void 0){var ba,oa,ta,ka;c.push(MG(a,{priority:2,min:(ba=a.exactRange)==null?void 0:ba.min,max:(oa=a.exactRange)==null?void 0:oa.max,unit:(ka=(ta=a.exactRange)==null?void 0:ta.unit)!=null?ka:null,cause:2},"exactRange"))}dG(a.chart,c)})};
h.ngOnChanges=function(a){var b=this;KG.prototype.ngOnChanges.call(this,a);var c=[];if(this.initialized){"tickStrategy"in a&&this.withLatest(function(ka){NWc(b.selectorService,ka.scope,b.tickStrategy)});"label"in a&&this.withLatest(function(ka){ka=ka.scope;var Ca;c.push(ZWc({chartId:ka.chartId,yAxisId:ka.yAxisId,label:(Ca=b.label)!=null?Ca:""}))});if("position"in a||"styles"in a)this.configSubject.next({position:this.position,styles:this.styles}),"position"in a&&(this.withLatest(function(ka){var Ca=
ka.scope;ka=ka.config;c.push(bXc({chartId:Ca.chartId,yAxisId:Ca.yAxisId,position:b.position}));c.push(b.createMarginRequirementAction(Ca,ka,b.lastAxisDynamicWidth||void 0))}),J1c(this));if("includeRange"in a){var d,e;if(((d=this.includeRange)==null?void 0:d.min)!==void 0||((e=this.includeRange)==null?void 0:e.max)!==void 0){var f,g,k,m,r,w,x,D,H,J;c.push(MG(this,{priority:1,min:Math.min((w=(f=this.includeRange)==null?void 0:f.min)!=null?w:Infinity,(x=(g=this.includeRange)==null?void 0:g.max)!=null?
x:Infinity),max:Math.max((D=(k=this.includeRange)==null?void 0:k.min)!=null?D:-Infinity,(H=(m=this.includeRange)==null?void 0:m.max)!=null?H:-Infinity),unit:(J=(r=this.includeRange)==null?void 0:r.unit)!=null?J:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}else c.push(MG(this,null,"includeRange"))}if("exactRange"in a){var O,R;if(((O=this.exactRange)==null?void 0:O.min)!==void 0||((R=this.exactRange)==null?void 0:R.max)!==void 0){var V,ba,oa,ta;c.push(MG(this,{priority:2,min:(V=
this.exactRange)==null?void 0:V.min,max:(ba=this.exactRange)==null?void 0:ba.max,unit:(ta=(oa=this.exactRange)==null?void 0:oa.unit)!=null?ta:null,cause:2},"exactRange"))}else this.withLatest(function(){c.push(MG(b,null,"exactRange"))})}dG(this.chart,c)}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;if(g&&k){var m=LG(b,a),r=b.axisView.withinBodyOrAxis(m.x,m.y,b.position,k);r?c.push(SG({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:m.y}})):c.push(SG({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=
LG(b,b.lastMouseDownEvent);var w=b.lastMouseDownEvent;r=a.clientX-w.clientX;w=a.clientY-w.clientY;var x=Math.sqrt(Math.pow(r,2)+Math.pow(w,2));r=Math.abs(w/r)>=1&&x>10;k=b.axisView.withinBodyOrAxis(g.x,g.y,b.position,k);(b.isVertical&&r||!b.isVertical&&!r)&&k&&(m=b.axisView.calculateDataValue(m,f,d),f=b.axisView.calculateDataValue(g,f,d),m&&f&&c.push(SYc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:m,positionStart:f})))}}}});this.lastMouseMoveEvent=a;return c};
h.onDocumentMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;g&&k&&(k=LG(b,a),b.isEventInsideWindow(a)?b.interactions.dragZoom&&b.isMouseDown&&g.brushing&&g.axis===1&&(f=b.axisView.calculateDataValue(k,f,d))&&c.push(UYc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:f})):c.push(TYc({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(TYc({chartGroupId:d.chartGroupId,chartId:d.chartId})),b.isEventInsideWindow(a))){var k=LG(b,a);e=b.axisView.calculateDataValue(k,e,f);var m;g=(m=g.yAxes.find(function(r){return r.chartId===d.chartId&&r.yAxisId===d.yAxisId}))==null?void 0:m.yPosStart;
e&&g&&(m=g<e,b.store.dispatch(YWc({chartId:d.chartId,yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:m?g:e,max:m?e:g,unit:c.unit})),Cl(b.interactionService,"drag",Fl.ve.YZoomZone,b.el.nativeElement))}}})};h.onMouseLeave=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(SG({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=LG(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=LG(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&(b.cachedScrollAmount+=a.deltaY,b.scrollZoomSubject.next(d))}})};
h.scrollZoom=function(a){var b=this;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e&&b.lastMouseMoveEvent&&(c=e.yAxis)&&c.min!==null&&c.max!==null){var g=b.axisView.pxToScaleType(b.cachedScrollAmount,e,f);if(g&&(e=b.axisView.calculateDataValue(a,e,f))){e=(e-c.min)/(c.max-c.min);g=Math.min(g,(c.max-c.min)*.999);f=c.min+g*e;var k=c.max-g*(1-e);g=f;f=k;k=1E-9-Math.abs(f-g);k>0&&(g-=k*e,f+=k*(1-e));e=l([g,f]);f=e.next().value;k=e.next().value;b.store.dispatch(YWc({chartId:d.chartId,
yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:f,max:k,unit:c.unit}));Cl(b.interactionService,"scroll",Fl.ve.YZoomZone,b.el.nativeElement,{debounce:!0});b.cachedScrollAmount=0}}})};h.onClick=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state)if(c=c.resize){var e=LG(b,a);b.axisView.withinBodyOrAxis(e.x,e.y,b.position,c)&&b.store.dispatch(SG({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 sG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:e})};
var J1c=function(a){a.withLatest(function(b){switch(a.position){case "left":case "right":a.axisView.updateStrategy(new TH,b);if(a.axisView instanceof SH){var c=a.axisView;c.brushStrategy=new QH;c.drawBrushInternal(b)}var d;(d=a.brushView)==null||d.updateStrategy(new QH,b);break;case "top":case "bottom":a.axisView.updateStrategy(new F1c,b),a.axisView instanceof SH&&(d=a.axisView,d.brushStrategy=new RH,d.drawBrushInternal(b)),(c=a.brushView)==null||c.updateStrategy(new RH,b)}})};
UH.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[WWc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};da.Object.defineProperties(UH.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({},H1c,a)},get:function(){return this.interactionsInternal}}});
UH.\u0275fac=function(a){return new (a||UH)(Ye(Jd),Ye(cG),Ye(qG),Ye(Fl),Ye($G),Ye(Tg),Ye(LWc,8))};
UH.\u0275cmp=C({type:UH,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,xx],decls:3,vars:3,consts:[[1,"ac-screen-reader-only-content"]],template:function(a,b){a&1&&(Tf(0,"p",0),Q(1),T(2,"async"),Uf());a&2&&(B(),Ag(U(2,1,b.axisDescriptionObservable)))},dependencies:[ly],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 K1c=new ed("deferredTypes");new ed("hadPreloadClick");var VH=function(a,b,c,d){gH.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 Wj(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(VH,gH);VH.\u0275dir=gH.\u0275dir;VH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};VH.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"))}};
VH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};da.Object.defineProperties(VH.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")}}}});
VH.\u0275fac=function(a){return new (a||VH)(Ye(qG),Ye(dH),Ye(Tg),Ye(hH,8))};VH.\u0275cmp=C({type:VH,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,lGa,3,1,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.categoryHeaderObservable))},dependencies:[fy,ly],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 L1c=[[["","prefix",""]],[["","suffix",""]]],M1c=0,N1c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},WH=function(){var a=this;this.acDateTimeFastId=M1c++;this.timeKey=1;this.dateFormatStrategy=eDa;this.numericFormatStrategy=fDa;this.dateTimeSubject=new Wj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Wj(Ok(WAa));this.inputScopeSubject=new Wj({});this.destroyed=new sf;this.queueService=p(dH);this.selectorService=p(qG);this.timeSeriesState=this.lastInteractionState=
this.resizeState=this.xAxisPinState=this.xAxisState=null;this.scope=N1c;var b=p(KG,{optional:!0}),c=p(cG,{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=l(d);d=e.next().value;e=e.next().value;return Object.assign({},N1c,d,e)}));this.formattedDateTimeObservable=le([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;if(d.unit===
"ms_since_epoch"){var f,g,k;return d.cursor?a.dateFormatStrategy(new Date((f=d.cursor)!=null?f:""),d.min?new Date((g=d.min)!=null?g:""):null,d.max?new Date((k=d.max)!=null?k:""):null,e):""}return a.numericFormatStrategy(d.cursor,d.min,d.max)}));(b=p(hH,{optional:!0}))&&b.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(d){a.timeKey=d;a.update()});this.setupStateChangeHandler(this.selectorFactoryToObservable(yYc),function(d){a.onXAxisChange(d)},"xAxis");this.setupStateChangeHandler(this.selectorFactoryToObservable(GVc),
function(d){a.onXAxisPinChange(d)},"xAxisPin");this.setupStateChangeHandler(this.selectorFactoryToObservable(GUc),function(d){a.onResizeChange(d)},"resize");this.setupStateChangeHandler(this.selectorFactoryToObservable(cYc),function(d){a.onLastInteractionChange(d)},"lastInteraction");this.setupStateChangeHandler(this.selectorFactoryToObservable(FVc),function(d){a.onTimeSeriesChange(d)},"timeSeries");this.scopeObservable.subscribe(function(d){a.onScopeChange(d)})};h=WH.prototype;
h.onXAxisChange=function(a){this.xAxisState=a.currentValue;if(dl(a)||el(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Pk(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=vl(this.scope,c);d=gl(a,d.margins.left,d.width-d.margins.right);a:{var f=this.timeKey;switch(f){case 0:var g;d=(g=b==null?void 0:b.xPos)!=null?g:null;break a;case 2:var k;g=(k=c.click)==null?void 0:k.x;d=d&&g?d(g):null;break a;case 1:var m;g=(m=c.hover)==null?void 0:m.x;d=d&&g?d(g):null;break a;case 3:d=a.max;break a;case 4:var r;g=(r=c.multiselectAnchor)==
null?void 0:r.x;d=d&&g?d(g):null;break a;default: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=m=Infinity;if((b==null?0:b.length)&&e)for(b=l(b),c=b.next();!c.done;c=b.next())if((f=e[c.value])&&(f.valueType===1||f.valueType===2)){var w=void 0,x=void 0,D=void 0;c=(w=f)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x0;D=x=w=void 0;f=(w=f)==null?void 0:(x=w.snapshotMetadata)==
null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x;c&&f?(w=Math.abs(f-d)+Math.abs(c-d),w<r&&(k=c,g=f,r=w)):f&&r===Infinity&&(c=Math.abs(f-d),c<m&&(g=f,m=c))}this.dateTimeSubject.next({cursor:d,max:g,min:k,unit:a.unit})}}};h.setupStateChangeHandler=function(a,b,c){var d=this,e=null;a.pipe(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(WH.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()}}});
WH.\u0275fac=function(a){return new (a||WH)};
WH.\u0275cmp=C({type:WH,selectors:[["ac-date-time-fast"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy",scopeInput:[0,"scope","scopeInput"]},features:[xx],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(eg(L1c),F(0,mGa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[ly],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 XH=function(a,b){gH.call(this,a);this.ngZone=b;this.nonblockingErrorMessageSubject=new Wj(null);this.nonblockingErrorMessageObservable=this.nonblockingErrorMessageSubject.pipe(pf(),Gk(this.ngZone));this.setup({})};Y(XH,gH);XH.\u0275dir=gH.\u0275dir;XH.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)};
XH.\u0275fac=function(a){return new (a||XH)(Ye(qG),Ye(Tg))};
XH.\u0275cmp=C({type:XH,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,nGa,5,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.nonblockingErrorMessageObservable))},dependencies:[Yy,fy,ly],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 YH=function(a,b,c,d){gH.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 Wj(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(YH,gH);
YH.\u0275dir=gH.\u0275dir;YH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};YH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
YH.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"))}};YH.\u0275fac=function(a){return new (a||YH)(Ye(qG),Ye(dH),Ye(Tg),Ye(hH,8))};
YH.\u0275cmp=C({type:YH,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,oGa,8,5,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.thresholdInfoObservable))},dependencies:[fy,ly],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 ZH=function(){this.streamActions=[];this.filteredStreamActions=[]};ZH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};ZH.\u0275fac=function(a){return new (a||ZH)};
ZH.\u0275cmp=C({type:ZH,selectors:[["ac-streams-legend-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[xx],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,pGa,
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:[ty,fy,$y,Yy,mC,lC,tH,pH,sH,uH],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 O1c=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(O1c.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 P1c=function(){O1c.apply(this,arguments);this.valueType=1};Y(P1c,O1c);var Q1c=function(){O1c.apply(this,arguments);this.valueType=2};Y(Q1c,O1c);var EGa=function(){return[]},CGa=function(a){return{"min-width":a}},rGa=function(a,b){return{$implicit:a,name:b}},wGa=function(a){return{$implicit:a}},R1c=["right","left"],$H=function(){var a=p(qG);gH.call(this,a);var b=this;this.AC_SYS_COLOR_CHART_ON_SURFACE="var(--ac-sys-color-chart-on-surface, #000)";this.queueService=p(dH);this.formatterService=p(pG);this.cdr=p(Px);this.enclosingHovercard=p(hH,{optional:!0});this.timeKey=1;this.hideThresholds=!1;this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=
this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=V_c;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 Wj([]);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(GGa)}));this.relativeYPosSubject=new Wj(null);this.centerStreamIndexObservable=le([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),pf());this.streamsObservable=this.sortedStreamsObservable;this.timeshiftColumnLabelSubject=new Wj("");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,m;return(m=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?m:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y($H,gH);$H.\u0275dir=gH.\u0275dir;h=$H.prototype;
h.ngOnChanges=function(a){gH.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(kk(DG),Bf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=R1c.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(IG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(pk),we(function(d){return xl(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=R1c.map(function(d){return b.scopeObservable.pipe(Af(function(e){return b.selectorService.getSelection(IG,Object.assign({},e,{yAxisId:d}))}))});le(c).pipe(nf(1)).subscribe(function(d){for(var e=new Map,f=0;f<R1c.length;f++)e.set(R1c[f],d[f]);b.withLatest(function(g){var k=g.scope;var m=g.state;if(k&&m&&m.timeSeries&&m.brush&&m.resize){g=m.colorScale;var r=m.seriesSelection,w=m.timeSeries,x=m.resize;if(!m.brush.panning){a&&b.deselectAllSeries(k,r);m=b.getInteractedSeries(r);
r=new Map;for(var D=l(R1c),H=D.next();!H.done;H=D.next()){H=H.value;var J=e.get(H);if(J){J=yl(J,x.margins.top,x.height-x.margins.bottom,J.unit);var O=void 0;r.set(H,(O=J)!=null?O:null)}else r.set(H,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);k=b.buildStreams(k,w,m,r,e,g);b.allStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,m=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Nk((m=(e=a)==null?void 0:e.chartGroupId)!=null?m:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?QCa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Gc");}return c||""};h.trackByIndex=function(a){return a};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){rl(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(vl(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(kH({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,m;return(m=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?m:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new Bl(a.legendTemplate):this.labelTemplate&&(b=new Bl(this.labelTemplate));var d=NDa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,m=new Map;b=l(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$14:void 0,yAxisState$jscomp$8:void 0,layerColorScale$jscomp$1:void 0,labelFormatter$jscomp$5:void 0,labelFormatter$jscomp$6:void 0},r=b.next())if(w.layer$jscomp$14=r.value,w.yAxisState$jscomp$8=e.get(w.layer$jscomp$14.yAxisId),w.yAxisState$jscomp$8){var x=void 0,D=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Nk((O=(x=a)==null?void 0:x.chartGroupId)!=
null?O:"",(R=(D=a)==null?void 0:D.chartId)!=null?R:"",w.layer$jscomp$14.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$14.valueType===2)for(x=void 0,w.layerColorScale$jscomp$1=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$14.layerId],x=Object.values(w.layer$jscomp$14.bySeries.entities),D=void 0,w.labelFormatter$jscomp$5=this.getCachedLabelFormatter(x,(D=w.layer$jscomp$14.legendTemplate)!=null?D:this.labelTemplate),x=l(x),H=x.next(),D={};!H.done;D={series$jscomp$53:void 0,
getDisplayValueAndBucketCount$jscomp$1:void 0},H=x.next())(D.series$jscomp$53=H.value,!D.series$jscomp$53||this.hideThresholds&&D.series$jscomp$53.drawnAs===6||(H=D.series$jscomp$53.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(D.getDisplayValueAndBucketCount$jscomp$1=function(ja,ua){return function(){return g.formatDistributionValue(ja.series$jscomp$53,ua.layer$jscomp$14.unit,ua.layer$jscomp$14.yAxisId,ua.yAxisState$jscomp$8.min,ua.yAxisState$jscomp$8.max,ua.yAxisState$jscomp$8.unit,ua.yAxisState$jscomp$8.maximumFractionDigits)}}(D,
w),H=void 0,J=new Q1c({getColor:function(ja,ua){return function(){var xa=(0,ja.getDisplayValueAndBucketCount$jscomp$1)().bucketCount;xa=ua.layerColorScale$jscomp$1?g.distributionColorStrategy.getColor(xa!=null?xa:ua.layerColorScale$jscomp$1.min,ua.layerColorScale$jscomp$1):"var(--ac-sys-color-chart-on-surface, #000)";return typeof xa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":xa}}(D,w),getDisplayValue:function(ja){return function(){return(0,ja.getDisplayValueAndBucketCount$jscomp$1)().displayValue}}(D),
getIsInteracted:function(ja){return function(){return c.map(function(ua){return ua.seriesId}).includes(ja.series$jscomp$53.seriesId)}}(D),getName:function(ja,ua){return function(){return g.displayName(ja.series$jscomp$53,ua.labelFormatter$jscomp$5)}}(D,w),getMetadata:function(ja){return function(){return ja.series$jscomp$53.dataSeriesMetadata}}(D),drawnAs:D.series$jscomp$53.drawnAs,lineDash:D.series$jscomp$53.lineDash,rawValue:(H=D.series$jscomp$53.atTimeKey[this.timeKey])!=null?H:void 0}),r?m.set(D.series$jscomp$53.seriesId,
J):k.set(D.series$jscomp$53.seriesId,J));else if(w.layer$jscomp$14.valueType===1||w.layer$jscomp$14.valueType===3)if(x=d.get(w.layer$jscomp$14.yAxisId))for(D=Object.values(w.layer$jscomp$14.bySeries.entities),H=void 0,w.labelFormatter$jscomp$6=this.getCachedLabelFormatter(D,(H=w.layer$jscomp$14.legendTemplate)!=null?H:this.labelTemplate),D=l(D),J=D.next(),H={};!J.done;H={series$jscomp$54:void 0,value$jscomp$8666:void 0,getName$jscomp$4:void 0},J=D.next())if(H.series$jscomp$54=J.value,H.series$jscomp$54&&
(!this.hideThresholds||H.series$jscomp$54.drawnAs!==6)&&(H.value$jscomp$8666=H.series$jscomp$54.atTimeKey[this.timeKey],!this.hideUndefinedValues||H.value$jscomp$8666)){O=function(ja){return function(){return ja.series$jscomp$54.color}}(H);H.getName$jscomp$4=function(ja,ua){return function(){return g.displayName(ja.series$jscomp$54,ua.labelFormatter$jscomp$6)}}(H,w);R=function(ja,ua){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8666)==null?void 0:xa.y,ua.layer$jscomp$14.unit,
ua.layer$jscomp$14.yAxisId,ua.yAxisState$jscomp$8.min,ua.yAxisState$jscomp$8.max,ua.yAxisState$jscomp$8.unit,ua.yAxisState$jscomp$8.maximumFractionDigits,ua.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w);var V=void 0;J=((V=H.value$jscomp$8666)==null?void 0:V.min)!==void 0?function(ja,ua){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8666)==null?void 0:xa.min,ua.layer$jscomp$14.unit,ua.layer$jscomp$14.yAxisId,ua.yAxisState$jscomp$8.min,ua.yAxisState$jscomp$8.max,
ua.yAxisState$jscomp$8.unit,ua.yAxisState$jscomp$8.maximumFractionDigits,ua.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var ba=void 0;V=((ba=H.value$jscomp$8666)==null?void 0:ba.max)!==void 0?function(ja,ua){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8666)==null?void 0:xa.max,ua.layer$jscomp$14.unit,ua.layer$jscomp$14.yAxisId,ua.yAxisState$jscomp$8.min,ua.yAxisState$jscomp$8.max,ua.yAxisState$jscomp$8.unit,ua.yAxisState$jscomp$8.maximumFractionDigits,
ua.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var oa=function(ja){return function(){return c.map(function(ua){return ua.seriesId}).includes(ja.series$jscomp$54.seriesId)}}(H),ta=function(ja){return function(){return ja.series$jscomp$54.dataSeriesMetadata}}(H),ka=void 0;ba=H.value$jscomp$8666!==void 0&&H.value$jscomp$8666!==null?(ka=Uk(w.layer$jscomp$14.unit,w.yAxisState$jscomp$8.unit,H.value$jscomp$8666.y))!=null?ka:H.value$jscomp$8666.y:void 0;var Ca=ka=void 0;
O=new P1c({getColor:O,getDisplayValue:R,getIsInteracted:oa,getName:H.getName$jscomp$4,getMetadata:ta,drawnAs:H.series$jscomp$54.drawnAs,lineDash:H.series$jscomp$54.lineDash,rawValue:(Ca=(ka=H.value$jscomp$8666)==null?void 0:ka.y)!=null?Ca:void 0,scaledValue:ba,pxValue:H.value$jscomp$8666!==void 0&&H.value$jscomp$8666!==null?x(H.value$jscomp$8666.y):void 0,shape:H.series$jscomp$54.shape,stackingIndex:H.series$jscomp$54.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:V});r?m.set(H.series$jscomp$54.seriesId,
O):k.set(H.series$jscomp$54.seriesId,O)}}a=l(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$3:void 0},e=a.next())f=l(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$3=m.get(e),d.shiftedStream$jscomp$3&&(f.getTimeshiftDisplayValue=function(ja){return function(){return ja.shiftedStream$jscomp$3.displayValue}}(d),m.delete(e));return Array.from(k.values()).concat(Array.from(m.values()))};
h.getCachedLabelFormatter=function(a,b){a=ODa(a);var c=PDa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==null?void 0:(r=m.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==
null?void 0:(r=m.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,m=a.atTimeKey[this.timeKey];if(m&&m.bucketIndex!==void 0){var r=m.bucketIndex;a=m.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/m.y.count).toFixed(),D=l(zl(m.y,r)),H=D.next().value;D=D.next().value;r===m.y.bucketCounts.length&&(D=null);H===-Infinity&&(H=null);r=l([H,D].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Uk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Wk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));m=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,m,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,m){var r,w=(r=this.valueFormatter)!=null?r:Wk;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=Uk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(m){var D;c=Object.assign({},(D=c)!=null?D:{},{displayName:m})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new cm("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new cm("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new cm("{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(){gH.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties($H.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()}}});$H.\u0275fac=function(a){return new (a||$H)};
$H.\u0275cmp=C({type:$H,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,xx],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,FGa,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:[mH,ZH,jy,ky,Sz,Kz,Qz,Pz,ly],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 S1c=["content"],T1c=[[["","header",""]],"*"],U1c=function(a){return{transform:a,"z-index":"1",height:"unset"}},HGa=function(a){return{height:a}},aI=function(a,b,c){this.element=a;this.renderer=b;this.changeDetector=c;this.items=[];this.hasHeader=!1;this.update=new gj;this.change=new gj;this.start=new gj;this.end=new gj;this.scroll$=new sf;this.startupLoop=!0;this.buriedHeader=!1};h=aI.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=V1c(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 V1c=function(a){var b=a.element.nativeElement,c=a.contentElementRef.nativeElement,d=(a.items||[]).length+(a.hasHeader?1:0),e=b.clientWidth-a.scrollbarWidth,f=b.clientHeight-a.scrollbarHeight;if(a.childWidth==void 0||a.childHeight==void 0)var g=c.children[0]?c.children[0].getBoundingClientRect():{width:e,height:f};c=a.childWidth||g.width;g=a.childHeight||g.height;var k,m=a.contentElementRef.nativeElement.children;for(k=0;k<m.length&&(r==void 0||r===m[k].offsetTop);k++)var r=m[k].offsetTop;r=Math.max(1,
k);k=Math.max(1,Math.floor(e/c));m=Math.max(1,Math.floor(f/g));b=Math.max(0,a.scrollTop||b.scrollTop);m===1&&Math.floor(b/a.scrollHeight*d)+k>=d&&(r=k);return{itemCount:d,viewWidth:e,viewHeight:f,childWidth:c,childHeight:g,itemsPerRow:r,itemsPerCol:m,itemsPerRowByCalc:k}};aI.\u0275fac=function(a){return new (a||aI)(Ye(Jd),Ye(fi),Ye(Px))};
aI.\u0275cmp=C({type:aI,selectors:[["virtual-scroll"],["","virtualScroll",""]],viewQuery:function(a,b){a&1&&jg(S1c,5,Jd);if(a&2){var c;ng(c=og())&&(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:[xx],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&&(eg(T1c),M(0,"div",1),K(1,"div",2),fg(2),L(),K(3,"div",3,0),E(5,IGa,1,3,"div",4),fg(6,1),L());a&2&&(xg("height",b.scrollHeight+"px"),B(),I("ngStyle",Kg(6,U1c,"translateY("+b.scrollTop+"px)")),B(2),xg("transform","translateY("+
b.topPadding+"px)"),B(2),I("ngIf",b.buriedHeader))},dependencies:[fy,jy],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 bI=function(){};
bI.\u0275fac=function(a){return new (a||bI)};bI.\u0275mod=cf({type:bI});bI.\u0275inj=Gc({imports:[ty]});var W1c=["trigger"],X1c=["panel"],Y1c=[[["mat-select-trigger"]],"*"],Z1c=new ed("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a)}}}),$1c=new ed("MAT_SELECT_CONFIG"),a2c=new ed("MatSelectTrigger"),b2c=function(a,b){this.source=a;this.value=b},cI=function(){var a=this;this._viewportRuler=p(Th);this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._dir=p(ei,{optional:!0});this._idGenerator=p(di);this._renderer=p(fi);this._parentFormField=
p(XQc,{optional:!0});this.ngControl=p(oE,{self:!0,optional:!0});this._liveAnnouncer=p(sz);this._defaultOptions=p($1c,{optional:!0});this._animationsDisabled=pi();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(Z1c);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=pg.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 gj;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 gj;this.valueChange=new gj;this._trackedModal=null;this._skipPredicate=function(r){return a.panelOpen?!1:r.disabled};b=p(rA);c=p(vE,{optional:!0});d=p(FE,{optional:!0});e=p(new yx("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var m;((m=this._defaultOptions)==null?void 0:m.typeaheadDebounceInterval)!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);
this._errorStateTracker=new pFc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};h=cI.prototype;h._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=osa(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:psa(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};
h._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};h._getChangeEvent=function(a){return new b2c(this,a)};h.ngOnInit=function(){var a=this;this._selectionModel=new Mz(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&&CEc(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()});nFc(this._overlayDir);Dz(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&&Sh(this._trackedModal,"aria-owns",b);Qra(a,"aria-owns",b);this._trackedModal=a}};
h._clearFromModal=function(){this._trackedModal&&(Sh(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};h.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),Dz(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(){oFc(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||Jh(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||Jh(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||Jh(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))?Fz(this._keyManager,a):this.panelOpen||Fz(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 jA?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};h._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
h._initKeyManager=function(){var a=this;this._keyManager=BEc(DEc(Ez(Dz(Cz(CEc(new Gz(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=Mh(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(cI.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:Lwa(b._rawValidators,Gj))!=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}}});cI.\u0275fac=function(a){return new (a||cI)};
cI.\u0275cmp=C({type:cI,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(kg(c,a2c,5),kg(c,xA,5),kg(c,tFc,5));if(a&2){var d;ng(d=og())&&(b.customTrigger=d.first);ng(d=og())&&(b.options=d);ng(d=og())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(jg(W1c,5),jg(X1c,5),jg(kA,5));if(a&2){var c;ng(c=og())&&(b.trigger=c.first);ng(c=og())&&(b.panel=c.first);ng(c=og())&&(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()),yg("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",
b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple)("mat-select-open",b.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",
bh],placeholder:"placeholder",required:[2,"required","required",bh],multiple:[2,"multiple","multiple",bh],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",bh],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ch],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",
canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",bh]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ig([{provide:YD,useExisting:cI},{provide:sFc,useExisting:cI}]),xx],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();eg(Y1c);K(0,"div",2,0);N("click",function(){u(c);return v(b.open())});K(3,"div",3);F(4,JGa,2,1,"span",4)(5,MGa,3,1,"span",5);L();K(6,"div",6)(7,
"div",7);Bd();K(8,"svg",8);M(9,"path",9);L()()()();E(10,NGa,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=sg(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:[jA,kA,Yx],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 dI=function(){};dI.\u0275fac=function(a){return new (a||dI)};dI.\u0275dir=df({type:dI,selectors:[["mat-select-trigger"]],features:[Ig([{provide:a2c,useExisting:dI}])]});var eI=function(){};eI.\u0275fac=function(a){return new (a||eI)};eI.\u0275mod=cf({type:eI});eI.\u0275inj=Gc({imports:[lA,AA,Zy,Rz,dE,AA]});var c2c=["matSelect"],fI=function(){this.ve={ChartLegendMenu:68533,ColumnMenuToggle:68546,ChartLegendMenuItem:68534};this.VALUE_COLUMN_UNIQUE_ID=-1;this.TIMESHIFT_COLUMN_UNIQUE_ID=-2;this.selectedColumnsChanged=new gj;this.columnsModel=[]};fI.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])};
fI.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()};fI.\u0275fac=function(a){return new (a||fI)};
fI.\u0275cmp=C({type:fI,selectors:[["ac-column-selector"]],viewQuery:function(a,b){a&1&&jg(c2c,5);if(a&2){var c;ng(c=og())&&(b.matSelect=c.first)}},inputs:{labelsModel:"labelsModel",timeshiftName:"timeshiftName",valueName:"valueName"},outputs:{selectedColumnsChanged:"selectedColumnsChanged"},features:[xx],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,OGa,2,2,"mat-option",9);K(6,"mat-option",10);$f(7,2);L();E(8,PGa,3,2,"ng-container",11)(9,RGa,1,1,"ng-template",null,1,Og);L()()}a&2&&(a=sg(10),B(),I("value",b.columnsModel)("panelClass","ac-legend-column-selector-panel")("ve",b.ve.ChartLegendMenu),B(2),I("ve",b.ve.ColumnMenuToggle)("veClick",!0),B(2),I("ngIf",b.timeshiftName),B(),
I("value",b.VALUE_COLUMN_UNIQUE_ID),B(),ag(b.valueName),sna(34),B(),I("ngIf",(b.labelsModel.selectableColumns==null?null:b.labelsModel.selectableColumns.length)===1)("ngIfElse",a))},dependencies:[Yy,xA,cI,dI,DA,ey,fy,rD],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 d2c=function(a,b,c){this.baseKey=a;this.defaultValue=b;this.inputKeys=c},e2c=function(a,b,c){this._options=a;this._mediaMonitor=b;this._onMediaChanges=c;this._subscribers=[];this._registryMap=this._buildRegistryMap();this._subscribers=this._configureChangeObservers()};h=e2c.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 Ql({},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(e2c.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 f2c=new ed("Token (@angular/flex-layout) Breakpoints");var gI=function(a){this._registry=a},g2c=function(a,b){return a._registry.find(function(c){return c.alias==b})},h2c=function(a,b){return a._registry.find(function(c){return c.mediaQuery==b})};
da.Object.defineProperties(gI.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})}}});gI.\u0275fac=function(a){return new (a||gI)(Zc(f2c))};gI.\u0275prov=Fc({token:gI,factory:gI.\u0275fac});var i2c=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};i2c.prototype.clone=function(){return new i2c(this.matches,this.mediaQuery,this.mqAlias,this.suffix)};var hI=function(a,b){this._zone=a;this._document=b;this._registry=new Map;this._source=new Wj(new i2c(!0));this._observable$=this._source.asObservable()};hI.prototype.isActive=function(a){return this._registry.has(a)?this._registry.get(a).matches:!1};hI.prototype.observe=function(a){j2c(this,a);return this._observable$.pipe(we(function(b){return a?b.mediaQuery===a:!0}))};
var j2c=function(a,b){b=typeof b==="undefined"?[]:typeof b==="string"?[b]:VGa(b);b.length>0&&(UGa(b,a._document),b.forEach(function(c){var d=a._registry.get(c),e=function(f){a._zone.run(function(){a._source.next(new i2c(f.matches,c))})};d||(d=a._buildMQL(c),d.addListener(e),a._registry.set(c,d));d.matches&&e(d)}))};hI.prototype._buildMQL=function(a){return SGa()&&window.matchMedia("all").addListener?window.matchMedia(a):{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}};
hI.\u0275fac=function(a){return new (a||hI)(Zc(Tg),Zc(Uh))};hI.\u0275prov=Fc({token:hI,factory:hI.\u0275fac});var TGa={};var iI=function(a,b){this._breakpoints=a;this._matchMedia=b;this._registerBreakpoints()};iI.prototype.isActive=function(a){var b=g2c(this._breakpoints,a)||h2c(this._breakpoints,a);return this._matchMedia.isActive(b?b.mediaQuery:a)};iI.prototype.observe=function(a){var b=g2c(this._breakpoints,a)||h2c(this._breakpoints,a);return this._matchMedia.observe(b?b.mediaQuery:a).pipe(A(function(c){return WGa(c,b)}),we(function(c){return b?c.mqAlias!=="":!0}))};
iI.prototype._registerBreakpoints=function(){var a=this._breakpoints.sortedItems.map(function(b){return b.mediaQuery});j2c(this._matchMedia,a)};
da.Object.defineProperties(iI.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)}}});iI.\u0275fac=function(a){return new (a||iI)(Zc(gI),Zc(hI))};iI.\u0275prov=Fc({token:iI,factory:iI.\u0275fac});var ZGa=["row","column","row-reverse","column-reverse"];var jI=function(a,b,c){this._mediaMonitor=a;this._elementRef=b;this._renderer=c;this._inputMap={};this._hasInitialized=!1};h=jI.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("Ic`"+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 fHa(a||this.nativeElement,"display")};h._getAttributeValue=function(a,b){b=(b=b===void 0?this.nativeElement:b)||this.nativeElement;return cHa()?b.getAttribute(a):""};
h._getFlowDirection=function(a,b){b=b===void 0?!1:b;var c="row";a&&(c=fHa(a,"flex-direction")||"row",cHa()&&a.style["flex-direction"]||!b||eHa(this._renderer,YGa(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=bHa(a);dHa(e,c,d)};h._applyStyleToElements=function(a,b){eHa(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 e2c(new d2c(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(jI.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}}});jI.\u0275fac=function(a){return new (a||jI)(Ye(iI),Ye(Jd),Ye(fi))};jI.\u0275dir=df({type:jI,features:[xx]});var kI=function(a,b,c){jI.call(this,a,b,c);this._announcer=new Wj("row");this.layout$=this._announcer.asObservable()};Y(kI,jI);kI.prototype.ngOnChanges=function(a){(a.layout!=null||this._mqActivation)&&this._updateWithDirection()};kI.prototype.ngOnInit=function(){var a=this;jI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("layout","row",function(b){a._updateWithDirection(b.value)});this._updateWithDirection()};
kI.prototype._updateWithDirection=function(a){a=a||this._queryInput("layout")||"row";this._mqActivation&&(a=this._mqActivation.activatedInput);a=YGa(a);this._applyStyleToElement(a);this._announcer.next(a["flex-direction"])};
da.Object.defineProperties(kI.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)}}});kI.\u0275fac=function(a){return new (a||kI)(Ye(iI),Ye(Jd),Ye(fi))};
kI.\u0275dir=df({type:kI,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,xx]});var lI=function(a,b,c,d){jI.call(this,a,b,c);this._layout="row";d&&(this._layoutWatcher=d.layout$.subscribe(this._onLayoutChange.bind(this)))};Y(lI,jI);h=lI.prototype;h.ngOnChanges=function(a){(a.wrap!=null||this._mqActivation)&&this._updateWithValue()};h.ngOnInit=function(){var a=this;jI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("wrap","wrap",function(b){a._updateWithValue(b.value)});this._updateWithValue()};
h.ngOnDestroy=function(){jI.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){var b=this;this._layout=(a||"").toLowerCase().replace("-reverse","");ZGa.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=$Ga(a||"wrap");this._applyStyleToElement(this._buildCSS(a))};
h._buildCSS=function(a){return{display:"flex","flex-wrap":a,"flex-direction":this.flowDirection}};
da.Object.defineProperties(lI.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)}}});lI.\u0275fac=function(a){return new (a||lI)(Ye(iI),Ye(Jd),Ye(fi),Ye(kI,10))};
lI.\u0275dir=df({type:lI,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,
xx]});var mI=function(a,b,c,d,e){jI.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(mI,jI);h=mI.prototype;h.ngOnChanges=function(a){(a.flex!=null||this._mqActivation)&&this._updateStyle()};
h.ngOnInit=function(){var a=this;jI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("flex","",function(b){a._updateStyle(b.value)});this._updateStyle()};h.ngOnDestroy=function(){jI.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]=gHa(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]=gHa(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=Ql(e,{flex:"1 1 0.000000001px"});break;case "initial":case "nogrow":a=0;e=Ql(e,{flex:"0 1 auto"});break;case "grow":e=Ql(e,{flex:"1 1 100%"});break;case "noshrink":b=0;e=Ql(e,{flex:"1 0 auto"});break;case "auto":e=Ql(e,{flex:a+" "+b+" auto"});break;case "none":b=
a=0;e=Ql(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=Ql(e,{flex:a+" "+b+" "+(f||this._wrap?c:"100%")})}g=aHa(d)?"max-width":"max-height";d=aHa(d)?"min-width":"min-height";f=String(c).indexOf("calc")>-1||c=="auto";var k=String(c).indexOf("px")>-1||f,m=!a&&!b;e[d]=c=="0%"?0:m||
k&&a?c:null;e[g]=c=="0%"?0:m||!f&&b?c:null;return Ql(e,{"box-sizing":"border-box"})};
da.Object.defineProperties(mI.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)}}});mI.\u0275fac=function(a){return new (a||mI)(Ye(iI),Ye(Jd),Ye(fi),Ye(kI,12),Ye(lI,12))};
mI.\u0275dir=df({type:mI,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,xx]});var iHa=[{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 jHa=/(\.|-|_)/g;var k2c={provide:f2c,useFactory:function(){return kHa()}};var l2c=function(){},nI=function(a,b){this.breakpoints=a;this.mediaWatcher=b;this._registerBreakPoints();this.observable$=this._buildObservable()};h=nI.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});j2c(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=h2c(a.breakpoints,b.mediaQuery))?!b.overlapping:!0}),A(function(b){return WGa(b,a._findByQuery(b.mediaQuery))}))};h._findByAlias=function(a){return g2c(this.breakpoints,a)};h._findByQuery=function(a){return h2c(this.breakpoints,a)};h._toMediaQuery=function(a){var b=this._findByAlias(a)||this._findByQuery(a);return b?b.mediaQuery:a};
nI.\u0275fac=function(a){return new (a||nI)(Zc(gI),Zc(hI))};nI.\u0275prov=Fc({token:nI,factory:nI.\u0275fac});var m2c={provide:l2c,deps:[[new HAc,new IAc,l2c],hI,gI],useFactory:function(a,b,c){return a||new nI(c,b)}};var oI=function(){};oI.\u0275fac=function(a){return new (a||oI)};oI.\u0275mod=cf({type:oI});oI.\u0275inj=Gc({providers:[k2c,gI,hI,iI,m2c]});var n2c={provide:iI,deps:[[new HAc,new IAc,iI],gI,hI],useFactory:function(a,b,c){return a||new iI(b,c)}};var pI=function(){};pI.\u0275fac=function(a){return new (a||pI)};pI.\u0275mod=cf({type:pI});pI.\u0275inj=Gc({providers:[n2c,k2c,m2c],imports:[oI,Zy,oI]});var o2c=["valueHeader"],KHa=function(a){return{transform:a}},EHa=function(a,b){return{transform:a,width:b}},lHa=function(a){return{hidden:a}},p2c={category:"",id:null,direction:null},qI=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 gj;this.setAndSnapXAxisPin=new gj;this.currentSortColumn=
p2c;this.hoveredColumn=null;this.ve={ColumnSortButton:68547};this.sortBySelectedTooltip="Sort by selected";this.streamActionsMenuTooltip="Actions";this.isXAxisPinSet=!0;this.prevSortColumn=p2c;this.destroyed=new sf};qI.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()})})};
qI.prototype.ngOnInit=function(){var a=this;this.defaultSortingColumn==="VALUE"&&(q2c(this,this.defaultSortingColumn,1E3,this.defaultSortingDirection),sHa(this));this.xAxisPinEnabled&&this.xAxisPinUpdated&&this.xAxisPinUpdated.pipe(Bf(this.destroyed)).subscribe(function(b){b[0]&&b[1]?(a.isXAxisPinSet||q2c(a,"VALUE",1E3,-1),a.isXAxisPinSet=!0):(a.currentSortColumn=Object.assign({},a.prevSortColumn),a.isXAxisPinSet=!1);r2c(a)})};qI.prototype.ngOnDestroy=function(){this.destroyed.next()};
var sHa=function(a){a.prevSortColumn=Object.assign({},a.currentSortColumn)},r2c=function(a){if(a.currentSortColumn.id)switch(a.currentSortColumn.category){case "MAIN":a.sortFunc.emit(JEa(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(KEa(b,a.currentSortColumn.direction));break;case "VALUE":a.sortFunc.emit(LEa(a.currentSortColumn.direction));
break;case "IS_SELECTED":a.sortFunc.emit(MEa(a.currentSortColumn.direction))}else a.sortFunc.emit(JEa(a.currentSortColumn.direction))},rHa=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 q2c(a,b,c,-1);r2c(a)},q2c=function(a,
b,c,d){a.currentSortColumn={category:b,id:c,direction:d};r2c(a)},s2c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)>0},t2c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)<0};qI.prototype.getColIndexOffset=function(){var a,b=(a=this.labelsModel.labelHeaders)==null?void 0:a.length;return b?b-1:0};qI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};
qI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshiftName&&(a+=1);return a+this.getColIndexOffset()};qI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshiftName&&(a+=1);this.statsModeSummaryColumnLabel&&(a+=1);return a+this.getColIndexOffset()};
var yHa=function(a,b){return AHa(a,b)?"ascending":BHa(a,b)?"descending":"none"},zHa=function(a,b){return AHa(a,b)?"Sort in descending order.":BHa(a,b)?"Sort in ascending order.":"Sort in descending order."},AHa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)>0},BHa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)<0},u2c=function(a){return a.currentSortColumn.id===1E3&&(a.currentSortColumn.direction||0)>0},v2c=function(a){return a.currentSortColumn.id===
1E3&&(a.currentSortColumn.direction||0)<0};qI.\u0275fac=function(a){return new (a||qI)(Ye(bz),Ye(Tg),Ye(Px))};
qI.\u0275cmp=C({type:qI,selectors:[["ac-table-legend-header"]],viewQuery:function(a,b){a&1&&jg(o2c,5);if(a&2){var c;ng(c=og())&&(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);rHa(b,"IS_SELECTED",2);sHa(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,mHa,1,3,"mat-icon",5)(5,nHa,1,0,"mat-icon",6)(6,oHa,1,0,"mat-icon",7);M(7,"mat-icon",8);L()()();E(8,uHa,2,1,"div",9);K(9,"div",10);E(10,DHa,2,1,"ng-container",11);L();E(11,FHa,2,10,"span",12)(12,GHa,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?rHa(b,"VALUE",1E3):b.setAndSnapXAxisPin.emit());return v()});K(16,"span",16);E(17,HHa,1,3,"mat-icon",5)(18,IHa,1,0,"mat-icon",17)(19,JHa,1,0,"mat-icon",18);K(20,"span",19);Q(21);L()()()();E(22,LHa,1,3,"span",20)(23,MHa,3,4,"span",21);L()}a&
2&&(B(),I("ngStyle",Kg(30,KHa,"translateX("+b.scrollLeft+"px)")),Kf("aria-sort",s2c(b)?"ascending":t2c(b)?"descending":"none"),B(),I("ve",b.ve.ColumnSortButton)("veClick",!0)("matTooltip",b.sortBySelectedTooltip),Kf("aria-label",b.sortBySelectedTooltip)("title",s2c(b)?"Sort in descending order.":t2c(b)?"Sort in ascending order.":"Sort in descending order."),B(2),I("ngIf",!(s2c(b)||t2c(b))),B(),I("ngIf",s2c(b)),B(),I("ngIf",t2c(b)),B(2),I("ngIf",!(b.labelsModel==null?0:b.labelsModel.labelHeaders==
null?0:b.labelsModel.labelHeaders.length)),B(2),I("ngIf",b.labelsModel&&b.labelsModel.labelPercents&&b.labelsModel.selectedColumns),B(),I("ngIf",b.timeshiftName),B(),I("ngIf",b.statsModeSummaryColumnLabel),B(),I("ngStyle",Lg(32,EHa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px")),Kf("aria-sort",u2c(b)?"ascending":v2c(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",u2c(b)?"Sort in descending order.":"Sort in ascending order."),B(3),I("ngIf",!(u2c(b)||v2c(b))),B(),I("ngIf",u2c(b)),B(),I("ngIf",v2c(b)),B(),I("matTooltip",Fg(b.valueName)),Kf("aria-label",b.valueName),B(),Ag(b.valueName),B(),I("ngIf",b.streamActions.length===0),B(),I("ngIf",b.streamActions.length>0))},dependencies:[pI,kI,mI,Yy,DA,Yx,ey,fy,jy,rD],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 w2c={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},x2c=new ed("mat-checkbox-default-options",{providedIn:"root",factory:function(){return w2c}});var y2c=["input"],z2c=["label"],A2c=function(){},rI=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._ngZone=p(Tg);this._animationsDisabled=pi();this._options=p(x2c,{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 gj;this.indeterminateChange=new gj;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._disabled=this._checked=!1;this._indeterminate=pg.apply(null,[!1].concat(q([])));p(bi).load(sA);var a=p(new yx("tabindex"),
{optional:!0});this._options=this._options||w2c;this.color=this._options.color||w2c.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=p(di).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};h=rI.prototype;h.focus=function(){this._inputElement.nativeElement.focus()};h._createChangeEvent=function(a){var b=new A2c;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(rI.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)}}});rI.\u0275fac=function(a){return new (a||rI)};
rI.\u0275cmp=C({type:rI,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(jg(y2c,5),jg(z2c,5));if(a&2){var c;ng(c=og())&&(b._inputElement=c.first);ng(c=og())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Sf("id",b.id),Kf("tabindex",null)("aria-label",null)("aria-labelledby",null),zg(b.color?"mat-"+b.color:"mat-accent"),yg("_mat-animation-noopable",b._animationsDisabled)("mdc-checkbox--disabled",b.disabled)("mat-mdc-checkbox-disabled",
b.disabled)("mat-mdc-checkbox-checked",b.checked)("mat-mdc-checkbox-disabled-interactive",b.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",bh],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",bh],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:ch(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh],checked:[2,"checked","checked",bh],disabled:[2,"disabled","disabled",bh],indeterminate:[2,"indeterminate","indeterminate",bh]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ig([{provide:lE,useExisting:Xc(function(){return rI}),multi:!0},
{provide:mE,useExisting:rI,multi:!0}]),xx],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();eg();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);Bd();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);fg(14);L()()}a&2&&(a=sg(2),I("labelPosition",b.labelPosition),B(4),yg("mdc-checkbox--selected",b.checked),I("checked",b.checked)("indeterminate",b.indeterminate)("disabled",
b.disabled&&!b.disabledInteractive)("id",b.inputId)("required",b.required)("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex),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:[vA,tA],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 sI=function(){};sI.\u0275fac=function(a){return new (a||sI)};sI.\u0275mod=cf({type:sI});sI.\u0275inj=Gc({imports:[rI,Zy]});var B2c=function(a){return{strong:a}},THa=function(a){return{transform:a}},QHa=function(a,b){return{transform:a,width:b}},C2c=function(a){return[a]},OHa=function(){return{"user-select":"text"}},tI=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"};tI.prototype.getColIndexOffset=function(){var a=this.stream.labels.length;return a?a-1:0};tI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};tI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshift&&(a+=1);return a+this.getColIndexOffset()};
var D2c=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=BBa({min:0,max:a,unit:c},{idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)}),a=Uk(c,b.unit,a),a=a===null?"":Wk(a,b.unit));return a};tI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshift&&(a+=1);this.showStatsModeSummaryColumn&&(a+=1);return a+this.getColIndexOffset()};
tI.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(tI.prototype,{filteredStreamActions:{configurable:!0,enumerable:!0,get:function(){var a=this.stream.dataSeriesMetadata;return a?this.streamActions.filter(function(b){return b.relevant(a)}):[]}}});tI.\u0275fac=function(a){return new (a||tI)(Ye(sz))};
tI.\u0275cmp=C({type:tI,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,NHa,3,3,"div",8);K(8,"div",9);E(9,PHa,2,9,"span",10);L();E(10,RHa,2,9,"div",11)(11,SHa,2,9,"div",12);K(12,"div",13);Q(13);L();E(14,UHa,1,3,"div",14)(15,VHa,3,6,"div",15);K(16,"mat-menu",16,0);M(18,"ac-stream-action-menu",17);L()()}a&2&&(I("ngClass",Kg(25,B2c,b.stream.isInteracted)),B(),I("ngStyle",Kg(27,THa,"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",
D2c(b))("ngStyle",Lg(29,QHa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px"))("ngClass",Kg(32,C2c,!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:[mH,uH,pI,kI,mI,rI,Yy,lC,pH,sH,DA,Yx,ey,fy,jy,rD],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 E2c=["scrollingDiv"],F2c=["virtualScroll"],uI=function(a,b,c,d,e,f,g,k){CH.call(this,a,b,c,d,e);var m=this;this.cdRef=b;this.elementRef=c;this.focusMonitor=f;this.ngZone=g;this.interactionService=k;this.viewPortStreams=[];this.columnKeys=["Name"];this.divComputedStyle=this.contentComputedStyle=null;this.widthDifference=this.scrollTop=this.scrollLeft=0;this.scale=100;this.ve={ChartLegendPane:68535};this.isOnSdDashboard=!1;this.height=210;this.defaultSortingColumn="";this.defaultSortingDirection=
null;this.streamActions=[];this.labelsModel={columnsModel:[],selectedColumns:[],selectableColumns:[],labelHeaders:[],labelWidths:[],labelPercents:[],scale:100,nextColumnId:1};this.labelsModelSubject=new Wj(this.labelsModel);this.preventAveScrollEvents=!1;this.lastSelected=null;this.updatePercentsWithLabelsSubject=new sf;this.scrollResizeObserver=this.streamRowIndexMap=null;this.updatePercentsWithLabelsSubject.pipe(nla(this.updatePercentsWithLabelsSubject.pipe(lf(0))),Bf(this.destroyed)).subscribe(function(r){var w=
G2c(m);m.labelsModel.labelWidths=[];r=l(r);for(var x=r.next();!x.done;x=r.next())T_c.updatePercents(m.labelsModel,x.value,100,w);m.labelsModel=Object.assign({},m.labelsModel);m.labelsModelSubject.next(m.labelsModel);m.cdRef.markForCheck()})};Y(uI,CH);uI.\u0275dir=CH.\u0275dir;
uI.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)};uI.prototype.ngOnDestroy=function(){CH.prototype.ngOnDestroy.call(this);var a;(a=this.scrollResizeObserver)==null||a.disconnect()};
uI.prototype.onMapChange=function(a,b){CH.prototype.onMapChange.call(this,a,b);H2c(this)};uI.prototype.update=function(){CH.prototype.update.call(this);H2c(this);I2c(this);this.streams&&(this.streams=this.streams.slice().sort(this.sortFunc));this.streamRowIndexMap=new Map;if(this.streams)for(var a=l(this.streams.entries()),b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.streamRowIndexMap.set(c,b+2)}this.bringLastSelectedIntoView();this.cdRef.markForCheck()};
var G2c=function(a){if(!a.divComputedStyle&&!a.scrollingDiv)return 0;a.divComputedStyle=a.divComputedStyle||getComputedStyle(a.scrollingDiv.nativeElement);return+a.divComputedStyle.getPropertyValue("width").replace("px","")};
uI.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 H2c=function(a){if(a.labelsModel){var b,c,d=g0c(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=HDa());d&&d.length>0&&(b=T_c.updateLabelsModel(a.labelsModel,d),a.labelsModel=Object.assign({},a.labelsModel),a.labelsModelSubject.next(a.labelsModel),b&&a.selectedColumnsChanged())}},I2c=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)})};
uI.prototype.onScroll=function(a){if(this.scrollingDiv&&this.scrollingDiv.nativeElement&&this.scrollingDiv.nativeElement.children&&this.scrollingDiv.nativeElement.children.length){a&&!this.preventAveScrollEvents&&(Cl(this.interactionService,"scroll",Fl.ve.AwesomeChartLegendPane,this.elementRef.nativeElement,{debounce:!0}),this.preventAveScrollEvents=!0);this.contentComputedStyle=this.contentComputedStyle||getComputedStyle(this.scrollingDiv.nativeElement.children[0]);a=+this.contentComputedStyle.getPropertyValue("width").replace("px",
"");var b=G2c(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()}};
uI.prototype.onSeriesSelectionChange=function(a,b){var c=this;this.lastSelected=FCa(a,b.scope.layerId);this.lastSeriesSelectedInLegend&&(this.lastSelected=this.lastSelected.filter(function(d){return d!==c.lastSeriesSelectedInLegend}));this.lastSeriesSelectedInLegend=null;CH.prototype.onSeriesSelectionChange.call(this,a,b)};
uI.prototype.bringLastSelectedIntoView=function(){CH.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=V1c(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}};uI.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 J2c=function(a,b){a.scale!==b&&requestAnimationFrame(function(){a.onScroll(!1)});a.scale=b;return{width:b+"%",height:a.height+"px"}};uI.prototype.trackByStreamName=function(a,b){return b.name};
var K2c=function(a){return!!a.streams&&a.streams.length>0},YHa=function(a,b){var c;return(c=a.streamRowIndexMap)==null?void 0:c.get(b)},WHa=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)};
uI.\u0275fac=function(a){return new (a||uI)(Ye(qG),Ye(Px),Ye(Jd),Ye(dH),Ye(pG),Ye(bz),Ye(Tg),Ye(Fl))};
uI.\u0275cmp=C({type:uI,selectors:[["ac-table-legend"],["cola-table-legend"]],viewQuery:function(a,b){a&1&&(jg(E2c,5),jg(F2c,5));if(a&2){var c;ng(c=og())&&(b.scrollingDiv=c.first);ng(c=og())&&(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,XHa,5,17,"div",6)(6,$Ha,2,2,
"div",7);L()()()}a&2&&(B(),I("draggable",b.isOnSdDashboard)("ve",b.ve.ChartLegendPane),Kf("role",K2c(b)?"table":"presentation")("aria-label",K2c(b)?"Legend":void 0)("aria-rowcount",b.streams&&K2c(b)?b.streams.length+1:void 0),B(2),I("items",b.streams)("childHeight",42)("ngStyle",J2c(b,b.labelsModel.scale))("scrollTop",b.scrollTop)("hasHeader",!0),B(2),I("ngIf",K2c(b)),B(),I("ngIf",b.viewPortStreams.length>0))},dependencies:[fI,qI,tI,ey,fy,jy,rD,bI,aI,ly],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 L2c=function(){};var cIa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,oIa=RegExp("{{\\s*(.+?)\\s*}}","g"),qIa=/-+([a-z0-9])/g;var M2c=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(" ")),N2c=function(){};Y(N2c,L2c);
var uIa=function(a,b,c){var d="",e=b.toString().trim();M2c.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Uc(3005,!1)));return e+d};var AIa=typeof document==="undefined"?null:document.documentElement;var O2c=function(){};var GIa=new Set(["true","1"]),HIa=new Set(["false","0"]);var IIa=RegExp("s*:selfs*,?","g"),P2c=function(a){this._driver=a};h=P2c.prototype;h.build=function(a,b){b=new Q2c(b);this._resetContextStyleTimingState(b);return Vl(this,lIa(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 Uc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var m=k.name;m.toString().split(/\s*,\s*/).forEach(function(r){k.name=r;f.push(c.visitState(k,b))});k.name=m}else k.type==1?(m=c.visitTransition(k,b),d+=m.queryCount,e+=m.depCount,g.push(m)):b.errors.push(new Uc(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){mIa(k).forEach(function(m){f.hasOwnProperty(m)||e.add(m)})})});e.size&&b.errors.push(aIa([].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=Vl(this,lIa(a.animation),b);return{type:1,matchers:FIa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Zl(a.options)}};h.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Vl(c,d,b)}),options:Zl(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=Vl(c,g,b);e=Math.max(e,b.currentTime);return g});b.currentTime=e;return{type:3,steps:f,options:Zl(a.options)}};
h.visitAnimate=function(a,b){var c=LIa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:ij({});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=ij(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};h.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
h._makeStyleAst=function(a,b){for(var c=[],d=l(Array.isArray(a.styles)?a.styles:[a.styles]),e=d.next();!e.done;e=d.next())e=e.value,typeof e==="string"?e==="*"?c.push(e):b.errors.push(new Uc(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,g=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(g=k.get("easing"),k.delete("easing")),!f)){k=l(k.values());for(var m=k.next();!m.done;m=k.next())if(m.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:g,offset:a.offset,
containsDynamicStyles:f,options:null}};h._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&e>0&&(e-=c.duration+c.delay);a.styles.forEach(function(f){typeof f!=="string"&&f.forEach(function(g,k){var m=b.collectedStyles.get(b.currentQuerySelector),r=m.get(k),w=!0;r&&(e!=d&&e>=r.startTime&&d<=r.endTime&&(b.errors.push(new Uc(3010,!1)),w=!1),e=r.startTime);w&&m.set(k,{startTime:e,endTime:d});b.options&&nIa(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 Uc(3011,!1)),d;var e=0,f=[],g=!1,k=!1,m=0,r=a.steps.map(function(O){O=c._makeStyleAst(O,b);var R=O.offset!=null?O.offset:KIa(O.styles),V=0;R!=null&&(e++,V=O.offset=R);k=k||V<0||V>1;g=g||V<m;m=V;f.push(V);return O});k&&b.errors.push(new Uc(3012,!1));g&&b.errors.push(new Uc(3200,!1));a=a.steps.length;var w=0;e>0&&e<a?b.errors.push(new Uc(3202,!1)):e==0&&(w=1/(a-1));var x=
a-1,D=b.currentTime,H=b.currentAnimateTimings,J=H.duration;r.forEach(function(O,R){R=w>0?R==x?1:w*R:f[R];var V=R*J;b.currentTime=D+H.delay+V;H.duration=V;c._validateStyleAst(O,b);O.offset=R;d.styles.push(O)});return d};h.visitReference=function(a,b){return{type:8,animation:Vl(this,lIa(a.animation),b),options:Zl(a.options)}};h.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Zl(a.options)}};
h.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Zl(a.options)}};
h.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=l(JIa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Yl(b.collectedStyles,b.currentQuerySelector,new Map);var g=Vl(this,lIa(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:Zl(a.options)}};
h.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Uc(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:dIa(a.timings,b.errors,!0);return{type:12,animation:Vl(this,lIa(a.animation),b),timings:c,options:null}};var Q2c=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 vI=function(){this._map=new Map};vI.prototype.get=function(a){return this._map.get(a)||[]};vI.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,q(b))};vI.prototype.has=function(a){return this._map.has(a)};vI.prototype.clear=function(){this._map.clear()};var R2c=RegExp(":enter","g"),S2c=RegExp(":leave","g"),NIa=function(){};h=NIa.prototype;
h.buildKeyframes=function(a,b,c,d,e,f,g,k,m,r){r=r===void 0?[]:r;m=m||new vI;a=new T2c(a,b,m,d,e,r,[]);a.options=k;d=k.delay?Sl(k.delay):0;a.currentTimeline.delayNextStep(d);a.currentTimeline.setStyles([f],null,a.errors,k);Vl(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()}):
[MIa(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=wI(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&xI(b,c)}b.previousNode=a};
h.visitAnimateRef=function(a,b){var c=wI(b,a.options);xI(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);xI(b,c.currentTimeline.currentTime);b.previousNode=a};h._applyAnimationRefDelays=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(e=d)==null?void 0:e.delay;if(f){var g=e=void 0;d=typeof f==="number"?f:Sl(pIa(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?Sl(c.duration):null,f=c.delay!=null?Sl(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 U2c(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){V2c(b,a.options,!0);Vl(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=wI(b,f),xI(e),f.delay!=null&&(e.previousNode.type==6&&(W2c(e.currentTimeline),e.previousNode=X2c),e.delayNextStep(Sl(f.delay))));a.steps.length&&(a.steps.forEach(function(g){return Vl(c,g,e)}),yI(e.currentTimeline),e.subContextCount>d&&xI(e));b.previousNode=a};
h.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Sl(a.options.delay):0;a.steps.forEach(function(g){var k=wI(b,a.options);f&&k.delayNextStep(f);Vl(c,g,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(g){return Y2c(b.currentTimeline,g)});xI(b,e);b.previousNode=a};
h._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?pIa(a,b.params,b.errors):a,dIa(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&&(Z2c(b.currentTimeline,b.currentTimeline.duration+c.delay),W2c(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(Z2c(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),yI(d));b.currentAnimateTimings=null;b.previousNode=a};
h.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&c._currentKeyframe.size>0&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=l(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else c.setStyles(a.styles,d,b.errors,b.options);b.previousNode=
a};h.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=wI(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(g){Z2c(f,(g.offset||0)*e);f.setStyles(g.styles,g.easing,b.errors,b.options);yI(f)});Y2c(b.currentTimeline,f);xI(b,d+e);b.previousNode=a};
h.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Sl(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&(W2c(b.currentTimeline),b.previousNode=X2c);var g=d;d=$2c(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(m,r){b.currentQueryIndex=r;r=wI(b,a.options,m);f&&r.delayNextStep(f);m===b.element&&(k=r.currentTimeline);Vl(c,a.animation,r);yI(r.currentTimeline);
g=Math.max(g,r.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;xI(b,g);k&&(Y2c(b.currentTimeline,k),W2c(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;Vl(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var X2c={},T2c=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=X2c;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new zI(this._driver,b,0);g.push(this.currentTimeline)},V2c=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
Sl(b.duration));b.delay!=null&&(d.delay=Sl(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]=pIa(e[g],f,a.errors))})}}};T2c.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 wI=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new T2c(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();V2c(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},xI=function(a,b){a.previousNode=X2c;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};T2c.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var $2c=function(a,b,c,d,e,f){var g=[];d&&g.push(a.element);b.length>0&&(b=b.replace(R2c,"."+a._enterClassName),b=b.replace(S2c,"."+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 Uc(3014,!1));return g};
da.Object.defineProperties(T2c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var zI=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()};zI.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};zI.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(Z2c(this,this.currentTime+a),b&&W2c(this)):this.startTime+=a};
zI.prototype.fork=function(a,b){yI(this);return new zI(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};zI.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 Z2c=function(a,b){yI(a);a.duration=b;a._loadKeyframe()};
zI.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
zI.prototype.setStyles=function(a,b,c,d){b&&this._previousKeyframe.set("easing",b);b=d&&d.params||{};a=PIa(a,this._globalTimelineStyles);a=l(a);for(d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=pIa(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 yI=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)}))},W2c=function(a){for(var b=l(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},Y2c=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)})};
zI.prototype.buildKeyframes=function(){var a=this;yI(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,D){x==="!"?b.add(D):x==="*"&&c.add(D)});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],m=new Map(k);k.set("offset",0);m.set("offset",1);e=[k,m]}return MIa(this.element,e,f,g,this.duration,this.startTime,
this.easing,!1)};da.Object.defineProperties(zI.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 U2c=function(a,b,c,d,e,f,g){g=g===void 0?!1:g;zI.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(U2c,zI);U2c.prototype.containsAnimation=function(){return this.keyframes.length>1};
U2c.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,g=new Map(a[0]);g.set("offset",0);b.push(g);g=new Map(a[0]);g.set("offset",Math.round(f*100)/100);b.push(g);f=a.length-1;for(g=1;g<=f;g++){var k=new Map(a[g]),m=k.get("offset");k.set("offset",Math.round((c+m*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return MIa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var a3c={},TIa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};TIa.prototype.match=function(a,b,c,d){return RIa(this.ast.matchers,a,b,c,d)};TIa.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};
TIa.prototype.build=function(a,b,c,d,e,f,g,k,m,r){var w=[],x=this.ast.options&&this.ast.options.params||a3c;g=this.buildStyles(c,g&&g.params||a3c,w);var D=k&&k.params||a3c;k=this.buildStyles(d,D,w);var H=new Set,J=new Map,O=new Map,R=d==="void",V;x={params:SIa(D,x),delay:(V=this.ast.options)==null?void 0:V.delay};a=r?[]:OIa(a,b,this.ast.animation,e,f,g,k,x,m,w);var ba=0;a.forEach(function(oa){ba=Math.max(oa.duration+oa.delay,ba)});if(w.length)return QIa(b,this._triggerName,c,d,R,g,k,[],[],J,O,ba,
w);a.forEach(function(oa){var ta=oa.element,ka=Yl(J,ta,new Set);oa.preStyleProps.forEach(function(ja){return ka.add(ja)});var Ca=Yl(O,ta,new Set);oa.postStyleProps.forEach(function(ja){return Ca.add(ja)});ta!==b&&H.add(ta)});return QIa(b,this._triggerName,c,d,R,g,k,a,[].concat(q(H.values())),J,O,ba)};var b3c=function(a,b){this.styles=a;this.defaultParams=b};
b3c.prototype.buildStyles=function(a,b){var c=new Map,d=SIa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,g){f&&(f=pIa(f,d,b));var k=kIa(g);f=uIa(k,f,b);c.set(g,f)})});return c};var c3c=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 b3c(e.style,e.options&&e.options.params||{}))});VIa(this.states,"true","1");VIa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new TIa(a,e,d.states))});this.fallbackTransition=UIa(a,this.states)},d3c=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var e3c=new vI,f3c=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};h=f3c.prototype;h.register=function(a,b){var c=[];b=(new P2c(this._driver)).build(b,c,[]);if(c.length)throw new Uc(3503,!1);this._animations.set(a,b)};h._buildPlayer=function(a,b,c){var d=a.element;b=vIa(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=OIa(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,e3c,e),b.forEach(function(k){var m=Yl(g,k.element,new Map);k.postStyleProps.forEach(function(r){return m.set(r,null)})})):(e.push(new Uc(3300,!1)),b=[]);if(e.length)throw new Uc(3504,!1);g.forEach(function(k,m){k.forEach(function(r,w){k.set(w,rIa(m,w))})});e=b.map(function(k){var m=g.get(k.element);return d._buildPlayer(k,new Map,m)});
e=Xl(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 Uc(3301,!1);return a};h.listen=function(a,b,c,d){b=yIa(b,"","","");xIa(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 g3c=[],h3c={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},YIa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},i3c=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={})},j3c=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(i3c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var k3c=new i3c("void"),AI=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;$l(b,this._hostClassName)};h=AI.prototype;
h.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Uc(3302,!1);if(c==null||c.length==0)throw new Uc(3303,!1);if(c!="start"&&c!="done")throw new Uc(3400,!1);var f=Yl(this._elementListeners,a,[]),g={name:b,phase:c,callback:d};f.push(g);var k=Yl(this._engine.statesByElement,a,new Map);k.has(b)||($l(a,"ng-trigger"),$l(a,"ng-trigger-"+b),k.set(b,k3c));return function(){l3c(e._engine,function(){var m=f.indexOf(g);m>=0&&f.splice(m,1);e._triggers.has(b)||k.delete(b)})}};
h.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};h._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Uc(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 m3c(this.id,b,a),k=this._engine.statesByElement.get(a);k||($l(a,"ng-trigger"),$l(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var m=k.get(b),r=new i3c(c,this.id);c&&c.hasOwnProperty("value")||!m||j3c(r,m.options);k.set(b,r);m||(m=k3c);if(r.value!=="void"&&m.value===r.value){if(!eJa(m.params,r.params)){d=[];var w=f.fallbackTransition.buildStyles(m.value,m.params,d),x=f.fallbackTransition.buildStyles(r.value,
r.params,d);d.length?this._engine.reportError(d):l3c(this._engine,function(){Ul(a,w);Tl(a,x)})}}else{c=Yl(this._engine.playersByElement,a,[]);c.forEach(function(H){H.namespaceId==e.id&&H.triggerName==b&&H.queued&&H.destroy()});k=d3c(f,m.value,r.value,a,r.params);var D=!1;if(!k){if(!d)return;k=f.fallbackTransition;D=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:m,toState:r,player:g,isFallbackTransition:D});D||($l(a,"ng-animate-queued"),g.onStart(function(){am(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 n3c=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))};
AI.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=o3c(c._engine,e);f.size?f.forEach(function(g){return p3c(g,e,b,!1,!0)}):n3c(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return n3c(c,e)})})};
var p3c=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),g=new Map;if(f){var k=[];f.forEach(function(m,r){g.set(r,m.value);a._triggers.has(r)&&(m=a.trigger(b,r,"void",e))&&k.push(m)});if(k.length){q3c(a._engine,a.id,b,!0,c,g);if(d)Xl(k).onDone(function(){return aJa(a._engine,b)});return!0}}return!1},r3c=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)||k3c,m=new i3c("void"),r=new m3c(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:g,fromState:k,toState:m,player:r,isFallbackTransition:!0})}})}};
AI.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!p3c(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}}r3c(this,a);e?q3c(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==h3c||(l3c(d,function(){return n3c(c,a)}),s3c(d,a),d._onRemovalComplete(a,b)))}};
AI.prototype.insertNode=function(a){$l(a,this._hostClassName)};
var t3c=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,g=a._elementListeners.get(f);g&&g.forEach(function(k){if(k.name==d.triggerName){var m=yIa(f,d.triggerName,d.fromState.value,d.toState.value);m._data=b;xIa(d.player,k.phase,m,k.callback)}});e.markedForDestroy?l3c(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:CIa(d.element,
e.element)?1:-1})};AI.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var BI=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=BI.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 AI(a,b,this),this.bodyNode&&CIa(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&&(l3c(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 o3c=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=l(b.values());for(var d=b.next();!d.done;d=b.next())d=d.value,d.namespaceId&&(d=a._fetchNamespace(d.namespaceId))&&c.add(d)}return c};BI.prototype.trigger=function(a,b,c,d){return WIa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
BI.prototype.insertNode=function(a,b,c,d){if(WIa(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 u3c=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),$l(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),am(b,"ng-animate-disabled"))};
BI.prototype.removeNode=function(a,b,c){if(WIa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):q3c(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var q3c=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};BI.prototype.listen=function(a,b,c,d,e){return WIa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
BI.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 s3c=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return v3c(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return w3c(a,d)}))},v3c=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},w3c=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},aJa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
h3c;if(c.namespaceId){s3c(a,b);var d=a._fetchNamespace(c.namespaceId);d&&n3c(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&u3c(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){u3c(a,f,!1)})};
BI.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++)$l(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++)aJa(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)Xl(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
BI.prototype.reportError=function(){throw new Uc(3402,!1);};
BI.prototype._flushAnimations=function(a,b){var c=this,d=new vI,e=[],f=new Map,g=[],k=new Map,m=new Map,r=new Map,w=new Set;this.disabledNodes.forEach(function(ib){w.add(ib);ib=c.driver.query(ib,".ng-animate-queued",!0);for(var Zb=0;Zb<ib.length;Zb++)w.add(ib[Zb])});var x=this.bodyNode,D=Array.from(this.statesByElement.keys()),H=$Ia(D,this.collectedEnterElements),J=new Map,O=0;H.forEach(function(ib,Zb){var tc="ng-enter"+O++;J.set(Zb,tc);ib.forEach(function(ld){return $l(ld,tc)})});for(var R=[],V=
new Set,ba=new Set,oa=0;oa<this.collectedLeaveElements.length;oa++){var ta=this.collectedLeaveElements[oa],ka=ta.__ng_removed;ka&&ka.setForRemoval&&(R.push(ta),V.add(ta),ka.hasAnimation?this.driver.query(ta,".ng-star-inserted",!0).forEach(function(ib){return V.add(ib)}):ba.add(ta))}var Ca=new Map,ja=$Ia(D,Array.from(V));ja.forEach(function(ib,Zb){var tc="ng-leave"+O++;Ca.set(Zb,tc);ib.forEach(function(ld){return $l(ld,tc)})});a.push(function(){H.forEach(function(ib,Zb){var tc=J.get(Zb);ib.forEach(function(ld){return am(ld,
tc)})});ja.forEach(function(ib,Zb){var tc=Ca.get(Zb);ib.forEach(function(ld){return am(ld,tc)})});R.forEach(function(ib){aJa(c,ib)})});var ua=[],xa=[];for(a=this._namespaceList.length-1;a>=0;a--)t3c(this._namespaceList[a],b).forEach(function(ib){var Zb=ib.player,tc=ib.element;ua.push(Zb);if(c.collectedEnterElements.length){var ld=tc.__ng_removed;if(ld&&ld.setForMove){if(ld.previousTriggersValues&&ld.previousTriggersValues.has(ib.triggerName)){ld=ld.previousTriggersValues.get(ib.triggerName);var Rb=
c.statesByElement.get(ib.element);if(Rb&&Rb.has(ib.triggerName)){var mc=Rb.get(ib.triggerName);mc.value=ld;Rb.set(ib.triggerName,mc)}}Zb.destroy();return}}ld=!x||!CIa(x,tc);Rb=Ca.get(tc);mc=J.get(tc);var Mc=c._buildInstruction(ib,d,mc,Rb,ld);if(Mc.errors&&Mc.errors.length)xa.push(Mc);else if(ld)Zb.onStart(function(){return Ul(tc,Mc.fromStyles)}),Zb.onDestroy(function(){return Tl(tc,Mc.toStyles)}),e.push(Zb);else if(ib.isFallbackTransition)Zb.onStart(function(){return Ul(tc,Mc.fromStyles)}),Zb.onDestroy(function(){return Tl(tc,
Mc.toStyles)}),e.push(Zb);else{var fd=[];Mc.timelines.forEach(function(Nc){Nc.stretchStartingKeyframe=!0;c.disabledNodes.has(Nc.element)||fd.push(Nc)});Mc.timelines=fd;d.append(tc,Mc.timelines);g.push({instruction:Mc,player:Zb,element:tc});Mc.queriedElements.forEach(function(Nc){return Yl(k,Nc,[]).push(Zb)});Mc.preStyleProps.forEach(function(Nc,ge){if(Nc.size){var Xe=m.get(ge);Xe||m.set(ge,Xe=new Set);Nc.forEach(function(Ue,Gh){return Xe.add(Gh)})}});Mc.postStyleProps.forEach(function(Nc,ge){var Xe=
r.get(ge);Xe||r.set(ge,Xe=new Set);Nc.forEach(function(Ue,Gh){return Xe.add(Gh)})})}});if(xa.length){var Ra=[];xa.forEach(function(){Ra.push(new Uc(3505,!1))});ua.forEach(function(ib){return ib.destroy()});this.reportError(Ra)}var $a=new Map,pb=new Map;g.forEach(function(ib){var Zb=ib.element;d.has(Zb)&&(pb.set(Zb,Zb),c._beforeAnimationBuild(ib.player.namespaceId,ib.instruction,$a))});e.forEach(function(ib){var Zb=ib.element;c._getPreviousPlayers(Zb,!1,ib.namespaceId,ib.triggerName,null).forEach(function(tc){Yl($a,
Zb,[]).push(tc);tc.destroy()})});var Yb=R.filter(function(ib){return fJa(ib,m,r)}),lc=new Map;ZIa(lc,ba,r).forEach(function(ib){fJa(ib,m,r)&&Yb.push(ib)});var fc=new Map;H.forEach(function(ib){ZIa(fc,new Set(ib),m)});Yb.forEach(function(ib){var Zb=lc.get(ib),tc=fc.get(ib),ld,Rb;lc.set(ib,new Map([].concat(q((ld=Zb==null?void 0:Zb.entries())!=null?ld:[]),q((Rb=tc==null?void 0:tc.entries())!=null?Rb:[]))))});var qc=[],sb=[],Ob={};g.forEach(function(ib){var Zb=ib.element,tc=ib.player,ld=ib.instruction;
if(d.has(Zb))if(w.has(Zb))tc.onDestroy(function(){return Tl(Zb,ld.toStyles)}),tc.disabled=!0,tc.totalTime=ld.totalTime,e.push(tc);else{var Rb=Ob;if(pb.size>1){ib=Zb;for(var mc=[];ib=ib.parentNode;){var Mc=pb.get(ib);if(Mc){Rb=Mc;break}mc.push(ib)}mc.forEach(function(fd){return pb.set(fd,Rb)})}ib=c._buildAnimation(tc.namespaceId,ld,$a,f,fc,lc);x3c(tc,ib);Rb===Ob?qc.push(tc):((ib=c.playersByElement.get(Rb))&&ib.length&&(tc.parentPlayer=Xl(ib)),e.push(tc))}else Ul(Zb,ld.fromStyles),tc.onDestroy(function(){return Tl(Zb,
ld.toStyles)}),sb.push(tc),w.has(Zb)&&e.push(tc)});sb.forEach(function(ib){var Zb=f.get(ib.element);Zb&&Zb.length&&(Zb=Xl(Zb),x3c(ib,Zb))});e.forEach(function(ib){ib.parentPlayer?y3c(ib,ib.parentPlayer):ib.destroy()});for(b=0;b<R.length;b++)if(ba=R[b],a=ba.__ng_removed,am(ba,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((D=k.get(ba))&&D.length&&a.push.apply(a,q(D)),D=this.driver.query(ba,".ng-animating",!0),oa=0;oa<D.length;oa++)(ta=k.get(D[oa]))&&ta.length&&a.push.apply(a,q(ta));a=a.filter(function(ib){return!ib.destroyed});
a.length?bJa(this,ba,a):aJa(this,ba)}R.length=0;qc.forEach(function(ib){c.players.push(ib);ib.onDone(function(){ib.destroy();var Zb=c.players.indexOf(ib);c.players.splice(Zb,1)});ib.play()});return qc};var l3c=function(a,b){a._flushFns.push(b)};h=BI.prototype;h.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
h._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var g=!e||e=="void";a.forEach(function(k){k.queued||(g||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
h._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f=l(b.timelines),g=f.next(),k={};!g.done;k={players$jscomp$10:void 0},g=f.next()){g=g.value.element;var m=g!==e;k.players$jscomp$10=Yl(c,g,[]);this._getPreviousPlayers(g,m,a,d,b.toState).forEach(function(r){return function(w){var x=w._player;x.beforeDestroy&&x.beforeDestroy();w.destroy();r.players$jscomp$10.push(w)}}(k))}Ul(e,b.fromStyles)};
h._buildAnimation=function(a,b,c,d,e,f){var g=this,k=b.triggerName,m=b.element,r=[],w=new Set,x=new Set,D=b.timelines.map(function(J){var O=J.element;w.add(O);var R=O.__ng_removed;if(R&&R.removedBeforeQueried)return new Wl(J.duration,J.delay);R=O!==m;var V=dJa((c.get(O)||g3c).map(function(ta){return ta._player})).filter(function(ta){return ta.element?ta.element===O:!1}),ba=e.get(O),oa=f.get(O);ba=vIa(J.keyframes,ba,oa);V=g._buildPlayer(J,ba,V);J.subTimeline&&d&&x.add(O);R&&(J=new m3c(a,k,O),x3c(J,
V),r.push(J));return V});r.forEach(function(J){Yl(g.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var O=g.playersByQueriedElement,R=J.element,V=O.get(R);if(V){if(V.length){var ba=V.indexOf(J);V.splice(ba,1)}V.length==0&&O.delete(R)}return V})});w.forEach(function(J){return $l(J,"ng-animating")});var H=Xl(D);H.onDestroy(function(){w.forEach(function(J){return am(J,"ng-animating")});Tl(m,b.toStyles)});x.forEach(function(J){Yl(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 Wl(a.duration,a.delay)};
var m3c=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Wl;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},x3c=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return xIa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
y3c=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=m3c.prototype;h._queueEvent=function(a,b){Yl(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 CI=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new BI(a.body,b,c);this._timelineEngine=new f3c(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};h=CI.prototype;
h.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new P2c(this._driver)).build(e,c,[]);if(c.length)throw new Uc(3404,!1);c=new c3c(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){u3c(this._transitionEngine,a,b)};
h.process=function(a,b,c,d){c.charAt(0)=="@"?(c=l(zIa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};h.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=l(zIa(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(CI.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._transitionEngine.players),q(this._timelineEngine.players))}}});var hJa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=z3c.get(a);d||z3c.set(a,d=new Map);this._initialStyles=d};hJa.prototype.start=function(){this._state<1&&(this._startStyles&&Tl(this._element,this._startStyles,this._initialStyles),this._state=1)};hJa.prototype.finish=function(){this.start();this._state<2&&(Tl(this._element,this._initialStyles),this._endStyles&&(Tl(this._element,this._endStyles),this._endStyles=null),this._state=1)};
hJa.prototype.destroy=function(){this.finish();this._state<3&&(z3c.delete(this._element),this._startStyles&&(Ul(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ul(this._element,this._endStyles),this._endStyles=null),Tl(this._element,this._initialStyles),this._state=3)};var z3c=new WeakMap;var A3c=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=A3c.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:rIa(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(A3c.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var B3c=function(){};B3c.prototype.getParentElement=function(a){return BIa(a)};B3c.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
B3c.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 A3c});c!==0&&d!==0||e.forEach(function(r){r.currentSnapshot.forEach(function(w,x){return k.set(x,w)})});var m=eIa(b).map(function(r){return new Map(r)});m=sIa(a,m,k);b=iJa(a,m);return new A3c(a,m,g,b)};var C3c=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};h=C3c.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(C3c.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var D3c=function(a,b,c,d,e){C3c.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Y(D3c,C3c);
D3c.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)};
D3c.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=jJa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=l(kJa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){E3c(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var F3c=function(){var a=p(Fy),b=p(CI),c=p(Tg);this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;b.onRemovalComplete=function(d,e){e==null||e.removeChild(null,d)}};
F3c.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 C3c("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var g=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var m=function(r){Array.isArray(r)?r.forEach(m):c.engine.registerTrigger(g,k,a,r.name,r)};b.data.animation.forEach(m);return new D3c(this,k,d,this.engine)};
F3c.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};F3c.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var E3c=function(a,b,c,d){if(b>=0&&b<a._microtaskId)a._zone.run(function(){return c(d)});else{var e=a._animationCallbacksBuffer;e.length==0&&queueMicrotask(function(){a._zone.run(function(){e.forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;f(g)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
F3c.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 DI=function(a,b,c){CI.call(this,a,b,c)};Y(DI,CI);DI.prototype.ngOnDestroy=function(){this.flush()};DI.\u0275fac=function(a){return new (a||DI)(Zc(Uh),Zc(O2c),Zc(L2c))};DI.\u0275prov=Fc({token:DI,factory:DI.\u0275fac});var G3c=[{provide:L2c,useFactory:function(){return new N2c}},{provide:CI,useClass:DI},{provide:af,useFactory:function(){return new F3c}}];q(G3c);var H3c=[{provide:O2c,useFactory:function(){return new B3c}},{provide:mi,useFactory:function(){return"BrowserAnimations"}}].concat(q(G3c));var EI=function(){};EI.\u0275fac=function(a){return new (a||EI)};EI.\u0275mod=cf({type:EI});EI.\u0275inj=Gc({providers:H3c,imports:[Wy]});nJa(function(){});Kh({passive:!0,capture:!0});Kh({passive:!0,capture:!0});lJa(function(a){this._elementRef=a},"primary");var I3c=new ed("mat-progress-spinner-default-options",{providedIn:"root",factory:oJa});var J3c=lJa(function(a){this._elementRef=a},"primary"),FI=function(a,b,c,d,e,f,g,k,m){var r=J3c.call(this,a)||this;r._document=c;r._nonce=m;r._diameter=100;r._value=0;r._resizeSubscription=Rd.EMPTY;r.mode="determinate";var w=FI._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(FI,J3c);h=FI.prototype;h.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Ira(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=FI._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(FI.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Rh(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=Rh(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,Rh(a)))}}});FI._diameters=new WeakMap;FI.\u0275fac=function(a){return new (a||FI)(Ye(Jd),Ye(Yh),Ye(Uh,8),Ye(mi,8),Ye(I3c),Ye(Px),Ye(Th),Ye(Tg),Ye(NAc,8))};
FI.\u0275cmp=C({type:FI,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),xg("width",b.diameter,"px")("height",b.diameter,"px"),yg("_mat-animation-noopable",b._noopAnimations))},
inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],standalone:!1,features:[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&&(Bd(),K(0,"svg",1,0),E(2,pJa,1,11,"circle",2)(3,qJa,1,9,"circle",3),L());a&2&&(xg("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:[gy,hy],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 GI=function(a,b){this.elementRef=a;this.renderer=b;this.iconset="common";this.icon="";this.size="small";K3c(this)};GI.prototype.ngOnChanges=function(a){this.icon==="working"?this.iconSpec={kind:"mat-spinner",sizePx:vJa(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&&K3c(this)};
var K3c=function(a){var b=a.elementRef.nativeElement;if(b.tagName.toUpperCase()==="FOREIGNOBJECT"){var c=String(vJa(a.size));a.renderer.setAttribute(b,"height",c);a.renderer.setAttribute(b,"width",c)}};da.Object.defineProperties(GI.prototype,{classes:{configurable:!0,enumerable:!0,get:function(){return["ace-icon","ace-icon-size-"+this.size,this.icon?"ace-icon-"+this.icon:""].join(" ")}}});GI.\u0275fac=function(a){return new (a||GI)(Ye(Jd),Ye(fi))};
GI.\u0275cmp=C({type:GI,selectors:[["ace-icon"],["foreignObject","ace-icon",""]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.classes)},inputs:{iconset:"iconset",icon:"icon",size:"size"},standalone:!1,features:[xx],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,uJa,4,3,"ng-container",0);a&2&&I("ngIf",b.iconSpec)},dependencies:[fy,Yy,FI],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 L3c=Gw(["//ssl.gstatic.com/pantheon/images/","/icons-","_v",".svg"]),HI=function(a){this.mdIconRegistry=a},M3c=function(a,b){var c=Ih(L3c,"common",b,77);a.mdIconRegistry._addSvgIconSetConfig("common-"+b,new XDc(c,null))};HI.\u0275fac=function(a){return new (a||HI)(Zc(Xy))};HI.\u0275prov=Fc({token:HI,factory:HI.\u0275fac,providedIn:"root"});var N3c=["determinateSpinner"],O3c=new ed("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),II=function(){this._elementRef=p(Jd);this._defaultColor="primary";this._value=0;this._diameter=100;var a=p(O3c),b=jsa(),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=II.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(II.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}}});II.\u0275fac=function(a){return new (a||II)};
II.\u0275cmp=C({type:II,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&jg(N3c,5);if(a&2){var c;ng(c=og())&&(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),zg("mat-"+b.color),xg("width",b.diameter,"px")("height",b.diameter,"px")("--mat-progress-spinner-size",
b.diameter+"px")("--mat-progress-spinner-active-indicator-width",b.diameter+"px"),yg("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ch],diameter:[2,"diameter","diameter",ch],strokeWidth:[2,"strokeWidth","strokeWidth",ch]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(E(0,wJa,2,8,"ng-template",null,0,Og),K(2,"div",2,1),Bd(),K(4,"svg",3),M(5,"circle",4),L()(),Cd(),K(6,"div",5)(7,"div",6)(8,"div",7),Yf(9,8),L(),K(10,"div",9),Yf(11,8),L(),K(12,"div",10),Yf(13,8),L()()());a&2&&(a=sg(1),B(4),Kf("viewBox",b._viewBox()),B(),xg("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:[ky],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 JI=function(){};JI.\u0275fac=function(a){return new (a||JI)};JI.\u0275mod=cf({type:JI});JI.\u0275inj=Gc({imports:[Zy]});var KI=function(){};KI.\u0275fac=function(a){return new (a||KI)};KI.\u0275mod=cf({type:KI});KI.\u0275inj=Gc({imports:[ty,Zy]});var LI=function(a){this.iconService=a;M3c(this.iconService,"small");M3c(this.iconService,"medium")};LI.\u0275fac=function(a){return new (a||LI)(Zc(HI))};LI.\u0275mod=cf({type:LI});LI.\u0275inj=Gc({imports:[ty,$y,KI]});var P3c=Gw(["aria-"]),Q3c="ace-labelledby-message-container-goog_"+xJa++,MI=new Map,NI=null,AJa=function(a){var b=[a].concat(q(ad.apply(1,arguments)));return function(c,d,e){xsa(b,c,d,e)}}(new wsa(P3c[0].toLowerCase())),OI=function(a){this.document=a};OI.prototype.ngOnDestroy=function(){for(var a=this.document.querySelectorAll("[ace-labelledby-host]"),b=0;b<a.length;b++)R3c(a[b]),a[b].removeAttribute("ace-labelledby-host");NI&&S3c();MI.clear()};
var S3c=function(){NI&&NI.parentNode&&(NI.parentNode.removeChild(NI),NI=null)},R3c=function(a){var b=zJa(a).filter(function(c){return c.indexOf("ace-labelledby-message")!==0});a.setAttribute("aria-labelledby",b.join(" "))},T3c=function(a,b){a=zJa(a);b=(b=MI.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!==-1};OI.\u0275fac=function(a){return new (a||OI)(Zc(Uh))};OI.\u0275prov=Fc({token:OI,factory:OI.\u0275fac,providedIn:"root"});var U3c=function(a){this.overlayRef=a;this.ariaHiddenSiblings=new Map},PI=function(a){this.overlayContainer=a;this.overlayContextStack=[]},W3c=function(a,b){b=new U3c(b);V3c(a,b);a.overlayContextStack.push(b)},X3c=function(){var a=document;return a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||null},V3c=function(a,b){var c=b.overlayRef.hostElement,d=gsa(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=X3c())&&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")}})},Y3c=function(a){a.ariaHiddenSiblings.forEach(function(b,
c){b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")})};PI.\u0275fac=function(a){return new (a||PI)(Zc(Zh))};PI.\u0275prov=Fc({token:PI,factory:PI.\u0275fac,providedIn:"root"});var Z3c=new ed("ace-overlay-default-config");var $3c=["mat-button",""],a4c=["*"],b4c=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"},
c4c="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),d4c=lJa(nJa(mJa(function(a){this._elementRef=a}))),QI=function(a,b,c){var d=d4c.call(this,a)||this;d._focusMonitor=b;d._animationMode=c;d.isRoundButton=d._hasHostAttributes("mat-fab","mat-mini-fab");d.isIconButton=d._hasHostAttributes("mat-icon-button");for(var e=l(c4c),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(QI,d4c);h=QI.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.focus=function(a,b){a?cz(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 ad.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};QI.\u0275fac=function(a){return new (a||QI)(Ye(Jd),Ye(bz),Ye(mi,8))};
QI.\u0275cmp=C({type:QI,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&&jg(vA,5);if(a&2){var c;ng(c=og())&&(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),yg("_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:$3c,ngContentSelectors:a4c,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&&(eg(),K(0,"span",0),fg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),yg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[vA],styles:[b4c()],encapsulation:2,changeDetection:0});var RI=function(a,b,c,d){var e=QI.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};Y(RI,QI);
RI.prototype.ngAfterViewInit=function(){var a=this;QI.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};RI.prototype.ngOnDestroy=function(){QI.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
RI.\u0275fac=function(a){return new (a||RI)(Ye(bz),Ye(Jd),Ye(mi,8),Ye(Tg,8))};
RI.\u0275cmp=C({type:RI,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),yg("_mat-animation-noopable",b._animationMode==="NoopAnimations")("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],standalone:!1,features:[Gf],attrs:$3c,ngContentSelectors:a4c,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&&(eg(),K(0,"span",0),fg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),yg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[vA],styles:[b4c()],encapsulation:2,changeDetection:0});var SI=function(){};SI.prototype.ngOnInit=function(){};var DJa=function(a){a.action.kind==="executable"&&a.action.executeCallback()};SI.\u0275fac=function(a){return new (a||SI)};
SI.\u0275cmp=C({type:SI,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),Wf(1,1),E(2,EJa,2,2,"button",2)(3,FJa,2,4,"a",2),Xf(),L());a&2&&(B(),I("ngSwitch",b.action.kind),B(),I("ngSwitchCase","executable"),B(),I("ngSwitchCase","link"))},dependencies:[gy,hy,
QI,RI],styles:["[_nghost-%COMP%]   .ace-tooltip-action-button[_ngcontent-%COMP%]{margin:12px 0 -12px -12px}"],changeDetection:0});var TI=function(a,b,c,d,e){this.tooltipRef=a;this.triggerElement=b;this.ariaDescriber=c;this.elementRef=d;this.id=TI.uniqueIdCounter++;this.overlayId="tooltip_overlay_"+this.id;this.tooltipContentId="tooltip_content_"+this.id;this.destroy=new sf;this.tooltipRef.onChange.pipe(Bf(this.destroy)).subscribe(function(){e.markForCheck()})};
TI.prototype.ngAfterViewInit=function(){this.tooltipRef.aceTooltipInteractive||typeof this.tooltipRef.content!=="string"&&this.tooltipRef.ariaRelationship==="description"&&vz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement)};TI.prototype.isString=function(){return typeof this.tooltipRef.content==="string"};TI.prototype.ngOnDestroy=function(){this.tooltipRef.ariaRelationship==="description"&&wz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement);this.destroy.next()};
TI.uniqueIdCounter=0;TI.\u0275fac=function(a){return new (a||TI)(Ye("tooltipRef"),Ye("triggerElement"),Ye(uz),Ye(Jd),Ye(Px))};
TI.\u0275cmp=C({type:TI,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),yg("ace-tooltip-overlay-rich",b.tooltipRef.aceTooltipRich||b.tooltipRef.aceTooltipInteractive)("ace-tooltip-overlay-simple",!b.tooltipRef.aceTooltipRich&&
!b.tooltipRef.aceTooltipInteractive))},standalone:!1,decls:7,vars:5,consts:function(){return[["tooltipWithTemplate",""],["mat-icon-button","","class","mat-icon-button ace-tooltip-close-button","aria-label","Close",4,"ngIf"],[1,"ace-tooltip-content",3,"id"],[4,"ngIf"],["mat-icon-button","","aria-label","Close",1,"mat-icon-button","ace-tooltip-close-button"],["icon","close","size","medium"],[3,"action",4,"ngIf"],[3,"action"],[3,"innerHTML"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]]},
template:function(a,b){a&1&&(E(0,GJa,2,0,"button",1),K(1,"div",2),E(2,IJa,3,2,"ng-container",3)(3,KJa,3,2,"ng-container",3)(4,MJa,2,1,"ng-container",3),L(),E(5,OJa,1,2,"ng-template",null,0,Og));a&2&&(I("ngIf",b.tooltipRef.showCloseButton||b.tooltipRef.aceTooltipInteractive),B(),I("id",b.tooltipContentId),B(),I("ngIf",b.isString()),B(),I("ngIf",!1),B(),I("ngIf",b.tooltipRef.content instanceof gg))},dependencies:[fy,ky,GI,QI,SI],styles:['ace-tooltip-overlay[_nghost-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]{color:rgba(0,0,0,.66);font-family:"Roboto";font-size:12px;font-weight:400;line-height:16px;display:flex;flex-direction:row-reverse;border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0)}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]{color:#fff;background:#757575;max-width:320px;padding:4px 8px}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{color:#fff}ace-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%]{background:#fff;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);max-height:384px;max-width:384px;overflow-y:auto;padding:16px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{margin:-12px;margin-bottom:-11.9px;margin-left:8px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%]{overflow-wrap:anywhere}@media screen and (hover: none){ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}}'],
changeDetection:0});var UI=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}],VI=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"}],WI=[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"start",originY:"top",
overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],e4c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],XI=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],
f4c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],g4c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"}],h4c={top:[].concat(q(WI),q(XI),q(UI),q(VI)),topleft:[].concat(q(e4c),q(f4c),q(UI),q(VI)),
bottom:[].concat(q(XI),q(WI),q(VI),q(UI)),bottomleft:[].concat(q(f4c),q(e4c),q(VI),q(UI)),left:[].concat(q(UI),q(VI),q(WI),q(XI)),right:[].concat(q(VI),q(UI),q(XI),q(WI)),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(UI),q(XI),q(WI)),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(UI),q(XI),q(VI)),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(XI),q(g4c),q(WI)),rightbottom:[].concat(q(g4c),q(XI),q(UI),q(WI))};var YI=function(a,b){this.overlay=a;this.scrollDispatcher=b},i4c=function(a,b,c){c=Uz(Wz($z(a.overlay.position(),b),!1),c);dFc(c,LEc(a.scrollDispatcher,b));b=new gi;b.positionStrategy=c;b.scrollStrategy=a.overlay.scrollStrategies.reposition();return b};YI.\u0275fac=function(a){return new (a||YI)(Zc(iA),Zc(Vh))};YI.\u0275prov=Fc({token:YI,factory:YI.\u0275fac,providedIn:"root"});var ZI=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=l(g.eventsToListen),m=k.next();!m.done;m=k.next())document.addEventListener(m.value,g)})};ZI.prototype.ngOnDestroy=function(){for(var a=l(this.tooltips.values()),b=a.next();!b.done;b=a.next())b=b.value,b.disabledTooltip&&b.disableChangeSubscription.unsubscribe();a=l(this.eventsToListen);for(b=a.next();!b.done;b=a.next())document.removeEventListener(b.value,this);j4c(this);this.onDestroy.next();this.onDestroy.complete()};
var k4c=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))},l4c=function(a,b){if(b=DLc(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}};ZI.prototype.isDisabled=function(a){return a.disabled||a instanceof Element&&(a.getAttribute("aria-disabled")==="true"||a.classList.contains("ace-disabled"))};
ZI.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&&DDb(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")&&ELc(a.target)&&
(a.preventDefault(),a.stopPropagation(),b.hideTooltip()):m4c(b)});else{var c=l4c(this,a);c?this.ngZone.run(function(){a.type==="mouseout"?c.modal||(c.aceTooltipRich||c.aceTooltipInteractive||c.aceTooltipVisibleOnOverlayHover?m4c(b):b.hideTooltip()):a.type==="mouseover"?b.showTooltip(c,a):a.type!=="focusin"||c.aceTooltipInteractive&&!c.aceTooltipAlwaysShowOnFocus?a.type==="focusout"?b.overlayRef&&DDb(b.overlayRef.hostElement,a.relatedTarget)||b.hideTooltip():a.type==="touchstart"?n4c(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),o4c(b)):b.showTooltip(c,a)}):this.visibleTooltipRef&&a.type==="click"&&!this.visibleTooltipRef.modal&&this.ngZone.run(function(){b.hideTooltip()})}};
var o4c=function(a){var b=a.visibleTooltipRef,c=a.overlayRef;b.modal||(b.modal=!0,b.onChange.next(),W3c(a.accessibleModalManager,c),p4c(a),j4c(a),a.focusTrap=a.focusTrapFactory.create(c.hostElement),setTimeout(function(){var d;(d=a.focusTrap)==null||qEc(d)}))},n4c=function(a,b,c){a.lastTouchTimestamp=Date.now();clearTimeout(a.touchStartSetTimeoutId);a.touchStartSetTimeoutId=setTimeout(function(){a.showTooltip(c,b)},251)},m4c=function(a){clearTimeout(a.tooltipHideTimeoutId);a.tooltipHideTimeoutId=
setTimeout(function(){a.hideTooltip()},100)};
ZI.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(){q4c(c,a,b)},a.aceTooltipRenderDebounceMs)):q4c(this,a,b)))};
var q4c=function(a,b,c){b.onShow.next();var d=i4c(a.connectedOverlayHelper,b.elementRef,h4c[b.aceTooltipPosition]);a.overlayRef=a.overlay.create(d);var e;((e=a.defaultConfig)==null?0:e.panelClass)&&a.overlayRef.addPanelClass(a.defaultConfig.panelClass);b.aceTooltipPanelClass&&a.overlayRef.addPanelClass(b.aceTooltipPanelClass);c=$g({providers:[{provide:"tooltipRef",useValue:b},{provide:"triggerElement",useValue:c.target}]});a.overlayRef.attach(new cA(TI,void 0,c));a.overlayRef.keydownEvents().pipe(Bf(a.onDestroy)).subscribe(function(f){f.key===
"Escape"&&a.hideTooltip()});a.visibleTooltipRef=b},p4c=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};
ZI.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 Y3c(b.overlayContextStack.pop()),c=b.overlayContextStack[b.overlayContextStack.length-
1];while(c&&!c.overlayRef.hasAttached())}j4c(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 j4c=function(a){a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0)};ZI.\u0275fac=function(a){return new (a||ZI)(Zc(iA),Zc(YI),Zc(PI),Zc(zz),Zc(Tg),Zc(Z3c,8))};
ZI.\u0275prov=Fc({token:ZI,factory:ZI.\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 TJa=[[],[]],UJa=0,VJa=!1,SJa=0;var $I=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};$I.prototype.ngOnDestroy=function(){k4c(this.tooltipManager,this)};$I.prototype.ngOnChanges=function(){this.onChange.next()};
$I.prototype.ngAfterViewInit=function(){var a=this.elementRef.nativeElement;this.isInitialized=!0;r4c(this);if(this.acePreventEventPropagation)for(var b=l(["click","keydown"]),c=b.next();!c.done;c=b.next())a.addEventListener(c.value,function(d){if(!(d instanceof KeyboardEvent&&d.key!=="Enter"&&d.key!=="Space")){d.preventDefault();d.stopPropagation();var e=new d.constructor(d.type,d);Object.defineProperty(e,"target",{writable:!1,value:d.target});document.dispatchEvent(e)}})};
var r4c=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))&&RJa(f))){var g=g===void 0?!1:g;for(var k=[],m=f.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button"),
r=0;r<m.length;++r){var w=m[r];(RJa(w)||g)&&k.push(w)}f=k[0]||f}d=f};var e=function(){if(typeof b==="string"){wz(a.ariaDescriber,d,b);var f=d;if(T3c(f,b)){var g=MI.get(b);g.referenceCount--;CJa(f,g.messageElement.id);f.removeAttribute("ace-labelledby-host")}typeof b==="string"&&(f=MI.get(b))&&f.referenceCount===0&&(f=(f=MI.get(b))&&f.messageElement,NI&&f&&NI.removeChild(f),MI.delete(b));NI&&NI.childNodes.length===0&&S3c()}if(a.ariaRelationship==="description")a.aceTooltipInteractive||typeof a.content!==
"string"||vz(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")yJa(k),MI.set(k,{messageElement:k,referenceCount:0});else if(!MI.has(k)){var m=g.document.createElement("div");yJa(m);m.textContent=k;m.setAttribute("aria-hidden","false");if(!NI){var r=g.document.getElementById(Q3c);r&&r.parentNode.removeChild(r);NI=g.document.createElement("div");NI.id=Q3c;NI.setAttribute("aria-hidden","true");NI.style.display=
"none";g.document.body.appendChild(NI)}NI.appendChild(m);MI.set(k,{messageElement:m,referenceCount:0})}T3c(f,k)||(g=MI.get(k),BJa(f,g.messageElement.id),f.setAttribute("ace-labelledby-host",""),g.referenceCount++)}};a.shouldMockAnimationFrames?(c(),e()):XJa({measure:c,mutate:e})()}};
da.Object.defineProperties($I.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 gg||typeof a==="string")this.content=a;else for(c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,this[d]=a[d];r4c(this,b)}else k4c(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")}}});$I.\u0275fac=function(a){return new (a||$I)(Ye(ZI),Ye(uz),Ye(OI),Ye(Jd),Ye(DWc,8),Ye(EWc,8),Ye(FWc,8),Ye(GWc,8))};
$I.\u0275dir=df({type:$I,selectors:[["","aceTooltip",""],["","cfcTooltip",""]],hostVars:6,hostBindings:function(a,b){a&2&&yg("cfc-tooltip",!0)("ace-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)("cfc-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)},inputs:{aceTooltip:"aceTooltip",aceTooltipTemplateData:"aceTooltipTemplateData",aceTooltipRich:"aceTooltipRich",aceTooltipDisabled:"aceTooltipDisabled",aceTooltipPosition:"aceTooltipPosition",aceTooltipTapToShow:"aceTooltipTapToShow",
aceTooltipInteractive:"aceTooltipInteractive",aceTooltipInteractiveDialogAriaLabel:"aceTooltipInteractiveDialogAriaLabel",acePreventEventPropagation:"acePreventEventPropagation",aceTooltipAlwaysShowOnFocus:"aceTooltipAlwaysShowOnFocus",aceTooltipAction:"aceTooltipAction",aceTooltipPanelClass:"aceTooltipPanelClass"},standalone:!1,features:[xx]});var aJ=function(){};aJ.\u0275fac=function(a){return new (a||aJ)};aJ.\u0275mod=cf({type:aJ});aJ.\u0275inj=Gc({imports:[ty,lA]});var bJ=function(){};bJ.\u0275fac=function(a){return new (a||bJ)};bJ.\u0275mod=cf({type:bJ});bJ.\u0275inj=Gc({imports:[yA,Zy]});var cJ=function(){};cJ.\u0275fac=function(a){return new (a||cJ)};cJ.\u0275mod=cf({type:cJ});cJ.\u0275inj=Gc({imports:[ty,aJ,LI,bJ,lA,sD]});var s4c=function(){yG.apply(this,arguments)};Y(s4c,yG);
s4c.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",kl(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=hl("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);this.ctx.strokeStyle=
hl("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?dKa(this.ctx,b,e):ZJa(this.ctx,b,d,e))}}else jl(this.canvas,void 0,this.base)}};var t4c=new rk({getKey:function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},getSelector:function(a,b){return le([b.getSelector(SUc,a),b.getSelector(EG,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return jk(c,d,function(e,f){if(e!==void 0&&f!==void 0&&(f=fl(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 u4c=function(){yG.apply(this,arguments);this.lastAnnotationSpans=[];this.lastBodyBottom=this.lastBodyTop=null;this.minAnnotationWidth=0};Y(u4c,yG);
u4c.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";kl(this.canvas,this.base,a.chartHeight,a.chartWidth);var g=[],k;c=(k=c==null?void 0:c.sort(function(R,V){return R.start-V.start}))!=null?k:[];k=void 0;c=l(c);for(var m=c.next();!m.done;m=c.next()){var r=m.value,w=r.start,x=r.end,D=r.isOngoing;
m=r.annotationId;var H=d.styleProvider.getStyle(r.style);r=w=a.domainMap(w);H=H.color;this.ctx.fillStyle=hl(H,this.base);this.ctx.strokeStyle=hl(H,this.base);w>f.right||(x!==void 0||D?(r=D?a.bodyRight+1:a.domainMap(x),r-w<this.minAnnotationWidth&&w<f.right&&r>f.left&&(x=(this.minAnnotationWidth-r+w)/2,w-x<f.left?(x=w-f.left+x,w=f.left,r=Math.min(r+x,f.right)):r+x>f.right?(x=f.right-r+x,r=f.right,w=Math.max(w-x,f.left)):(w-=x,r+=x)),d.newVisuals?YJa(this.ctx,w,r,f):$Ja(this.ctx,this.base,w,r,f)):d.newVisuals?
d.pointClustering?k!==void 0&&w-k.x0<3?(k.count++,k.x1=w):(D=x=void 0,e=Math.max(e,(D=(x=k)==null?void 0:x.count)!=null?D:1),k={count:1,colors:new Set([H]),x0:w,x1:w},b.push(k)):bKa(this.ctx,w,f):aKa(this.ctx,this.base,w,f),g.push({annotationId:m,left:Math.max(w-2,a.bodyLeft),right:Math.min(r+2,a.bodyRight)}))}if(d.newVisuals&&d.pointClustering){var J,O;e=Math.max(e,(O=(J=k)==null?void 0:J.count)!=null?O:1);J=l(b);for(O=J.next();!O.done;O=J.next())O=O.value,e===1&&bKa(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,cKa(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 v4c=function(a,b){var c=b.x;b=b.y;if(!a.lastBodyTop||b<a.lastBodyTop||!a.lastBodyBottom||b>a.lastBodyBottom)return[];b=[];a=l(a.lastAnnotationSpans);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.annotationId,f=d.right;c>=d.left&&c<=f&&b.push(e)}return b};var w4c={style:"default",color:"var(--ac-sys-color-annotation-on-surface, #202124)",icon:"info"},dJ=function(){this.fallbackAnnotationStyle=w4c;this.annotationStyleRegistry=new Map;this.annotationIconRegistry=new Map;this.stylesUpdated$=this.stylesUpdated=new sf;this.setStyles(HWc);for(var a=l(IWc.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.annotationIconRegistry.set(b,IWc.get(b));this.stylesUpdated.next()};h=dJ.prototype;h.setIcon=function(a,b){this.annotationIconRegistry.set(a,b);this.stylesUpdated.next()};
h.getIcon=function(a){var b;return(b=this.annotationIconRegistry.get(a))!=null?b:""};h.setStyle=function(a,b){this.annotationStyleRegistry.set(a,b);this.stylesUpdated.next()};h.setStyles=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.annotationStyleRegistry.set(b.style,b);this.stylesUpdated.next()};h.getStyle=function(a){var b;return(b=this.annotationStyleRegistry.get(a))!=null?b:this.fallbackAnnotationStyle};dJ.\u0275fac=function(a){return new (a||dJ)};
dJ.\u0275prov=Fc({token:dJ,factory:dJ.\u0275fac,providedIn:"root"});var x4c=["projectedContent"],oKa=function(a,b){return{left:a,top:b}},pKa=function(a){return{$implicit:a}},qKa=function(a){return{width:a}},jKa=function(a,b){return{fill:a,left:b}},eJ=function(a,b,c,d,e){KG.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 Wj(this.data);this.iconStrokeColor="var(--ac-sys-color-annotation-surface, #FFF)";this.configSubject=new Wj({newVisuals:this.newVisuals,
pointClustering:this.pointClustering,styleProvider:this.annotationStyleService});this.highlightedAnnotationSubject=new Wj(null);this.annotationClusterSubject=new Wj([]);this.annotationClusterObservable=this.annotationClusterSubject.pipe(of(0),Gk(this.ngZone));this.iconSize=20;this.groupedIconOffset=8;this.ve={AnnotationButton:213894};this.annotationView=new u4c(a.nativeElement);this.annotationHighlightView=new s4c(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(eJ,KG);eJ.\u0275dir=KG.\u0275dir;
eJ.prototype.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});var b=this.selectorFactoryToObservable(t4c);le([this.dataObservable,b,this.configObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;var f;return{data:c.currentValue,config:(f=d.currentValue)!=null?f:null,state:e!=null?e:null}}),zf(null),vf(),A(pk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=
l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.annotationView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.dataObservable,b,this.highlightedAnnotationSubject,this.configObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,
config:d.currentValue,state:e?Object.assign({},e,{highlightedAnnotation:f}):null}}),zf(null),vf(),A(pk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.newVisuals&&a.annotationHighlightView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.dataObservable,
this.scopeObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return{data:c.currentValue,scope:d}}),zf(null),vf(),A(pk),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=[sG({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=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,config:f.currentValue,scope:d,state:e!=null?e:null}}),zf(null),
vf(),A(pk),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=fKa(f,a.annotationStyleService,a.severityMap),a.annotationClusterSubject.next(f)):(f=hKa(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}})});eG(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed)};eJ.prototype.onMouseMove=function(a){var b=[];a=LG(this,a);a=v4c(this.annotationView,a);var c;b.push(D_c({chartId:this.chartId,layerId:this.layerId,annotations:(c=a==null?void 0:a.map(function(d){return{annotationId:d}}))!=null?c:[]}));return b};
var nKa=function(a,b,c){c===void 0?(mKa(a,b),b.annotationIds.length===1&&(a.highlightedAnnotation=b.annotationIds[0])):a.highlightedAnnotation=b.annotationIds[c]},mKa=function(a,b){a.scopeObservable.pipe(nf(1)).subscribe(function(c){a.store.dispatch(C_c({chartId:c.chartId,layerId:c.layerId,annotations:b.annotationIds.map(function(d){return{annotationId:d}})}))})};eJ.prototype.ngAfterViewInit=function(){for(var a=l(this.data||[]),b=a.next();!b.done&&!b.value.annotationContent;b=a.next());};
eJ.prototype.ngOnChanges=function(a){KG.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})};
eJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[WWc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};
da.Object.defineProperties(eJ.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)}}});eJ.\u0275fac=function(a){return new (a||eJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(dJ),Ye(Tg))};
eJ.\u0275cmp=C({type:eJ,selectors:[["ac-annotation"]],viewQuery:function(a,b){a&1&&jg(x4c,5);if(a&2){var c;ng(c=og())&&(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,xx],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&&(eg(),E(0,rKa,6,22,"button",3),T(1,"async"),E(2,EKa,3,2,"ng-template",null,0,Og)(4,FKa,1,0,"ng-template",null,1,Og));a&2&&I("ngForOf",U(1,1,b.annotationClusterObservable))},dependencies:[jC,ey,fy,jy,gy,hy,iy,ky,cJ,$I,rD,ly],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 fJ=function(a,b,c){KG.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("Fc");this.ctx=b;a.nativeElement.appendChild(this.canvas)};Y(fJ,KG);fJ.\u0275dir=KG.\u0275dir;h=fJ.prototype;h.ngOnInit=function(){KG.prototype.ngOnInit.call(this);this.setup({})};
h.drawInternal=function(){this.canvas.style.left=this.marginLeft+"px";this.canvas.style.top=this.marginTop+"px";kl(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){KG.prototype.ngOnChanges.call(this,a);"color"in a&&this.drawInternal()};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this)};fJ.\u0275fac=function(a){return new (a||fJ)(Ye(Jd),Ye(cG),Ye(qG))};fJ.\u0275cmp=C({type:fJ,selectors:[["ac-background"]],inputs:{color:"color"},features:[Gf,xx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var y4c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalCompositeOperation:"source-over"},gJ=function(){zG.apply(this,arguments);this.fullDrawDebounceId=null};Y(gJ,zG);h=gJ.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){xG(c,c.canvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){xl(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.xAxis,f=c.yAxis;c=c.brush;if(!(d&&e&&f&&c))return null;var g=d.width,k=d.height,m=d.margins.top,r=d.height-d.margins.bottom,w=d.margins.left,x=d.width-d.margins.right,D=yl(f,m,r,b?b.unit:null),H=fl(e,w,x,b==null?void 0:b.xAxisUnit);e=gl(e,w,x,b==null?void 0:b.xAxisUnit);return H&&D&&e?{data:b,config:a,colorMap:function(){return"var(--ac-sys-color-chart-on-surface, #000)"},marginTop:d.margins.top,marginLeft:d.margins.left,
canvasWidth:g,canvasHeight:k,bodyTop:m,bodyBottom:r,bodyLeft:w,bodyRight:x,bodyWidth:x-w,bodyHeight:r-m,dataMap:function(J){var O=J.x,R=J.y0,V=J.y1;if(R==null||V==null)throw Error("Kc`"+JSON.stringify(J));return[H(O.valueOf()),D(R),D(V)]},inverseDomainMap:e,brushing:c.brushing||!1}:null};
h.drawInternal=function(a){if(a=this.unpack(a)){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.data&&a.data.series.length>0&&a.data.series.length<=2){b=a.data;a:{var c=b.series;switch(c.length){case 1:c=l(c).next().value;c=GKa(HKa(c),c);break a;
case 2:var d=l(c);c=d.next().value;d=d.next().value;c=GKa(c,d);break a;default:throw Error("Jc");}}b=Object.assign({},b,{series:[c]}).series}b.length&&z4c(this,b,a.dataMap,a.colorMap,a.config)}};
var z4c=function(a,b,c,d,e){a.ctx.save();il(a.ctx,y4c,a.base);if(e.showBand){b=l(b);for(var f=b.next(),g={};!f.done;g={color$jscomp$20:void 0},f=b.next())switch(f=f.value,g.color$jscomp$20=d(f),e.pointConnectionMethod){case "always":A4c(f,function(k){return function(m){a.drawLineAlwaysConnect(m,c,k.color$jscomp$20)}}(g),e.outputPeriodMs||Infinity,IKa);break;case "zero_fill":A4c(f,function(k){return function(m){a.drawLineZeroFill(m,c,k.color$jscomp$20,e.outputPeriodMs)}}(g),e.outputPeriodMs||Infinity,
IKa);break;case "never":throw Error("Lc");default:a.drawLineGapDetection(f,c,g.color$jscomp$20,e.outputPeriodMs)}}a.ctx.restore()};gJ.prototype.drawLineGapDetection=function(a,b,c,d){var e=this;A4c(a,function(f){e.drawLineAlwaysConnect(f,b,c)},d||Infinity,function(f,g,k){return bm(f,g,k)||IKa(f,g,k)})};
var A4c=function(a,b,c,d){d=d===void 0?bm:d;c=c!=null?c:Infinity;c=c===void 0?Infinity:c;d=d===void 0?bm:d;var e=a.shiftedData;d=JKa(a.data,c,d);c=e&&JKa(e,c);c=c===void 0?[]:c;d=l(d);for(e=d.next();!e.done;e=d.next())b(Object.assign({},a,{data:e.value}));d=l(c);for(c=d.next();!c.done;c=d.next())b(Object.assign({},a,{shiftedData:c.value}))};gJ.prototype.drawLineAlwaysConnect=function(a,b,c){this.drawLineZeroFill(a,b,c,Infinity)};
gJ.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=hl(c,this.base);typeof f==="string"&&f.length===7?(this.ctx.strokeStyle=f+"60",this.ctx.fillStyle=f+"20"):(this.ctx.strokeStyle=c,this.ctx.fillStyle=c);c=a[0];f=l(ll(b(c),e.lineWidth));c=f.next().value;f.next();f=f.next().value;this.ctx.moveTo(c,f);for(var g=1;g<a.length;g++){var k=a[g-1];c=a[g];var m=l(ll(b(c),e.lineWidth));f=m.next().value;m.next();m=
m.next().value;if(k&&bm(k,c,d)){k=new Date(k.x.valueOf()+d);for(var r={x:k,y:0,y0:0,y1:0};k<c.x;k.setMilliseconds(k.getMilliseconds()+d)){var w=l(ll(b(r),e.lineWidth)),x=w.next().value;w=w.next().value;this.ctx.lineTo(x,w)}}this.ctx.lineTo(f,m)}for(c=a.length-1;c>=0;c--){k=a[c+1];f=a[c];m=l(ll(b(f),e.lineWidth));g=m.next().value;m=m.next().value;if(k&&bm(k,f,d))for(k=new Date(k.x.valueOf()-d),r={x:k,y:0,y0:0,y1:0};k>f.x;k.setMilliseconds(k.getMilliseconds()-d))w=l(ll(b(r),e.lineWidth)),x=w.next().value,
w=w.next().value,this.ctx.lineTo(x,w);this.ctx.lineTo(g,m)}this.ctx.stroke();this.ctx.fill();this.ctx.restore()}};gJ.prototype.getValuesAtPosition=function(a,b){a=this.unpack(a);if(a==null||!a.data)return null;var c;b=(c=a.inverseDomainMap(b.x-a.marginLeft))==null?void 0:c.valueOf();return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection)};
gJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection):null};var hJ=function(a,b,c){KG.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 Wj({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});this.dataSubject=new Wj(null);this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=
new wf(1);this.bandView=new gJ(a.nativeElement);this.views.push(this.bandView)};Y(hJ,KG);hJ.\u0275dir=KG.\u0275dir;h=hJ.prototype;
h.ngOnInit=function(){var a=this;KG.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)});eG(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){KG.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(OG(this,this.loading,"Band"));"error"in a&&b.push(PG(this,this.error,this.hasData()));dG(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=HBa(c,g.min,g.max))}this.xAxisRequirement=LBa(a.currentValue);f.push(MG(this,this.yAxisRequirement));f.push(NG(this,this.xAxisRequirement));f.push(KH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}))}var k,
m;(e==null?0:(k=e.xAxisPin)==null?0:k.xPos)&&(e==null?0:(m=e.xAxisPin)==null?0:m.locked)&&(a=this.bandView.getValuesAtTime(b,e.xAxisPin.xPos),(a=this.updateTimeSeriesValues(a,0))&&f.push(a));f.length&&this.store.dispatch(nk({actions:f}))};h.onXAxisChange=function(a,b){b=b.data;var c=a.currentValue,d=[];cl(a)&&c&&(this.yAxisRequirement=HBa(b,c.min,c.max),d.push(MG(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=LG(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=LG(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=IH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:a.values,timeRange:a.timeRange}))});return c};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),NG(this,null),PG(this,null,!1),OG(this,!1,"Band")])};
da.Object.defineProperties(hJ.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}}});hJ.\u0275fac=function(a){return new (a||hJ)(Ye(Jd),Ye(cG),Ye(qG))};
hJ.\u0275cmp=C({type:hJ,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,xx],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 B4c={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},C4c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},iJ=function(a,b){zG.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("Fc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(iJ,zG);h=iJ.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),AG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){xG(c,c.canvas);xG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){xl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){DCa(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=D4c(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 D4c=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};
iJ.prototype.getValuesAtXPosition=function(a,b){a:{a=this.drawnRects;for(var c=0,d=a.length-1;c<=d;){var e=Math.floor((d+c)/2),f=a[e],g=Math.ceil(this.halfGutterInverseRatio*f.width),k=f.left+f.width+g;if(b>=f.left-g){if(b<k){b=a[e];break a}c=e+1}else d=e-1}b=null}b=b?this.getStackForRect(b):null;if(!b)return null;var m,r,w;return{values:E4c(b),timeRange:{x:(m=b[0])==null?void 0:m.metadata.point.x.valueOf(),x0:(r=b[0])==null?void 0:(w=r.metadata.point.x0)==null?void 0:w.valueOf()}}};
var E4c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=iJ.prototype;h.getRectAtPosition=function(a){return LKa(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnStacks.get(a.left)||null};
h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpackForClearing=function(a){var b=a.data,c=a.state,d=a.config;if(!c||!d)return null;var e=c.resize;if(!e)return null;a=e.width;var f=e.height,g=e.margins.top,k=e.height-e.margins.bottom,m=e.margins.left;e=e.width-e.margins.right;c=!b||!d.colorStrategy.isReady||d.colorStrategy.isReady(b,c);return{data:b,canvasWidth:a,canvasHeight:f,bodyLeft:m,bodyTop:g,bodyBottom:k,bodyRight:e,bodyWidth:e-m,bodyHeight:k-g,bounds:{top:g,right:e,bottom:k,left:m},isColorMapReady:c}};
h.unpackForDrawing=function(a){var b=this.unpackForClearing(a),c=a.scope,d=a.data,e=a.state,f=a.config;if(!e||!f||!b)return null;a=e.xAxis;var g=e.yAxis,k=e.brush,m=e.seriesSelection,r=b.bodyLeft,w=b.bodyRight;if(!(a&&g&&k&&m))return null;var x=yl(g,b.bodyTop,b.bodyBottom,d?d.unit:null);g=fl(a,r,w,d==null?void 0:d.xAxisUnit);r=gl(a,r,w,d==null?void 0:d.xAxisUnit);if(a.min===null||a.max===null||!g||!x||!r)return null;c=m.byLayer.entities[c.layerId];x=this.createPointToRectMap(g,x);var D=f.colorStrategy;
d=D.getShape&&(d==null?0:d.series.length)&&d.series.length>1?function(O){return D.getShape(O,e)}:null;m=Object.values(m.byLayer.entities).filter(function(O){return!!O}).some(function(O){return O.selectedSeries.length||O.hoveredSeries.length});var H,J;return Object.assign({},b,{colorMap:function(O){return Pl(f.colorStrategy.getColor(O,e))},shapeMap:d,shapeBoundingBox:f.colorStrategy.shapeBoundingBox,hideSymbolShapes:f.hideSymbolShapes,pointToRectMap:x,brushing:k.brushing||!1,hoveredSeries:(c==null?
void 0:c.hoveredSeries)||[],selectedSeries:(c==null?void 0:c.selectedSeries)||[],anySeriesSelectedOrHovered:m,inverseDomainMap:r,domainMap:g,xAxisMin:(H=a==null?void 0:a.min)!=null?H:null,xAxisMax:(J=a==null?void 0:a.max)!=null?J:null,gutterRatio:f.gutterRatio,verticalBarPadding:f.verticalBarPadding})};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(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({},B4c,{globalAlpha:c?.15:1});this.shapeCtx.globalAlpha=c?.15:1;var e;c=(e=a.data)==null?void 0:e.series;if(c==null?0:c.length){if(e=a.shapeMap){for(var f=new Set,g=l(c),k=g.next();!k.done;k=
g.next())f.add(e(k.value));c.length>f.size&&(e=null)}this.drawBars(c,a.pointToRectMap,a.colorMap,e,a.shapeBoundingBox,a.bounds,d,void 0,a.verticalBarPadding,a.hideSymbolShapes)}d=Array.from(this.drawnStacks.keys()).sort(function(m,r){return m-r});d=l(d);for(c=d.next();!c.done;c=d.next())c=c.value,e=this.drawnStacks.get(c)||[],e.sort(function(m,r){return m.top-r.top}),this.drawnStacks.set(c,e),this.drawnRects=this.drawnRects.concat(e);a.xAxisMin!==null&&a.xAxisMax!==null&&wG(this,a.xAxisMin,a.xAxisMax);
a=performance.now();this.enableManualLatencyTracking&&vG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,m,r){this.ctx.save();il(this.ctx,g,this.base);il(this.shapeCtx,C4c,this.base);g=a.map(function(ta){return[ta.id,ta.data.map(function(ka,Ca){return b(ka,ta,Ca)})]});NKa(MKa(g),m);a=k?a.filter(function(ta){return k.has(ta.id)}):a;a=l(a);m=a.next();for(var w={};!m.done;w={series$jscomp$67:void 0,rects:void 0},m=a.next()){w.series$jscomp$67=m.value;m=c(w.series$jscomp$67);this.ctx.fillStyle=hl(m,this.base);this.shapeCtx.fillStyle=hl(m,this.base);m=d&&d(w.series$jscomp$67);
w.rects=[];var x=g.findIndex(function(ta){return function(ka){return l(ka).next().value===ta.series$jscomp$67.id}}(w));x>-1&&(w.rects=g[x][1],g.splice(x,1));if(k){x=k.get(w.series$jscomp$67.id);var D=void 0,H=void 0;if((D=x)==null?0:(H=D.datumIndices)==null?0:H.length)w.rects=x.datumIndices.map(function(ta){return function(ka){return ta.rects[ka.index]}}(w))}D=void 0;x=!((D=k)==null||!D.get(w.series$jscomp$67.id));H=D=null;w=l(w.rects);for(var J=w.next();!J.done;J=w.next()){J=J.value;this.ctx.fillRect(J.left,
J.top,J.width,J.height);if(m){var O=KKa(J,e),R=O.x,V=O.y,ba=O.shapeWidth,oa=O.shapeHeight;O=O.scalingFactor;D===null&&(D=ba<=10);D||r||!(x||oa<J.height)||this.drawShapeWithinBounds(R,V,f,m,O)}R=J.left+J.width;R<=f.right&&(H===null||H.left+H.width<R)&&(H=J);this.drawnStacks.set(J.left,(this.drawnStacks.get(J.left)||[]).concat([J]))}m&&D&&H&&!r&&this.drawShape(H.left+H.width+8,H.top+H.height/2,m,e?16.8/e.width:1)}this.ctx.restore()};
h.createPointToRectMap=function(a,b){var c=this;return function(d,e,f){var g=d.y1||d.y,k=d.y0||0;if(g<k){var m=l([g,k]);k=m.next().value;g=m.next().value}m=Math.round(b(g));var r=Math.round(b(k))-m;r<c.forceMinHeight&&g!==k&&(m-=c.forceMinHeight-r,r=c.forceMinHeight);var w;k=a(((w=d.x0)!=null?w:d.x).valueOf());w=a(d.x.valueOf());g=w-k;k=Math.round(k+g*c.halfGutterRatio);return{top:m,left:k,height:r,width:Math.max(Math.round(w-g*c.halfGutterRatio)-k,1),metadata:{point:d,series:e,index:f}}}};
h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=xCa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=hl("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(iJ.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 F4c=function(){iJ.apply(this,arguments)};Y(F4c,iJ);F4c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
F4c.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,B4c,b,a.verticalBarPadding);a.xAxisMin!==null&&a.xAxisMax!==null&&wG(this,a.xAxisMin,a.xAxisMax)}};var G4c={clickSelect:!0,hoverHighlight:!0},jJ=function(a,b,c,d,e,f,g,k){KG.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 OH;this.enableManualLatencyTracking=this.refactorA11yNavInstructions=this.hideSymbolShapes=!1;this.forceMinHeight=0;this.isBucketedData=!1;this.onSelect=new gj;this.dataSubject=new Wj(this.data);
this.configSubject=new Wj({colorStrategy:this.colorStrategy,hideSymbolShapes:this.hideSymbolShapes,gutterRatio:this.gutterRatio,isBucketedData:this.isBucketedData});this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Wj(null);this.defaultColumnMaskGeneratorSubject=new Wj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=G4c;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),Gk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),Gk(this.ngZone));this.layerType="graphic";this.barView=new iJ(a.nativeElement,g);this.views.push(this.barView);this.views.push(new F4c(a.nativeElement));this.bindDrawInstrumentation()};
Y(jJ,KG);jJ.\u0275dir=KG.\u0275dir;
jJ.prototype.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b?QKa(b,!1):null}),Jla(),Tha()),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)});eG(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)})};
jJ.prototype.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=KBa(e);if(d!==e){if(g==null?0:g.xAxis)d=Xk(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),Yk(this.yAxisRequirement,d)&&(this.yAxisRequirement=d,k.push(MG(this,this.yAxisRequirement)));this.xAxisRequirement=this.isBucketedData?H4c(this,e):LBa(a.currentValue);k.push(MG(this,this.yAxisRequirement));
k.push(NG(this,this.xAxisRequirement));k.push(KH({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(JH({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=QG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(H){(H=H.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,H))});(a=this.updateMostRecentValues(b))&&k.push(a)}var m;if(a=g==null?void 0:(m=g.seriesSelection)==null?void 0:m.byLayer.entities[f.layerId]){m=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:
e.series.map(function(H){return H.id}))!=null?r:[]);r=m.filter(function(H){return w.has(H.seriesId)});r.length!==m.length&&k.push(jH({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(H){return w.has(H.seriesId)});r.length!==a.length&&k.push(lH({chartId:f.chartId,layerId:f.layerId,series:r}))}this.updateGridTriggerSubject.next(b)}var x,D;(g==null?0:(x=g.xAxisPin)==null?0:x.xPos)&&(g==null?0:(D=g.xAxisPin)==null?0:D.locked)&&(b=this.barView.getValuesAtTime(b,g.xAxisPin.xPos),(b=this.updateTimeSeriesValues(b,
0))&&k.push(b));return k};var H4c=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=jJ.prototype;
h.bindDrawInstrumentation=function(){var a=this;uG(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;aH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});aH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};h.onResizeChange=function(a,b){zk(a)&&this.updateGridTriggerSubject.next(b)};
h.onYAxisChange=function(a,b){xl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(cl(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)e=Xk(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),Yk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(MG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(cl(a)||dl(a)||el(a))&&this.updateGridTriggerSubject.next(b);if(oCa(a)){var g=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=
null;g===void 0&&(c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(m){k=m&&m()}),g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.barView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=b.scope,e=b.data;a=b.state;var f=[];e&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=QG(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){KG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||fGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(PG(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(PG(this,this.dataTypeError,!1))));"isBucketedData"in a&&(this.xAxisRequirement=this.isBucketedData?H4c(this,this.data):LBa(this.data),b.push(NG(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(OG(this,this.loading,"Bar"));"forceMinHeight"in a&&(this.barView.forceMinHeight=Math.max(0,this.forceMinHeight));"error"in a&&b.push(PG(this,this.error,this.hasData()));dG(this.chart,b)};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;var k=f.config;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(m){if(m=m&&m()){var r=d!==null?m.rows[d]:null,w=e!==null?m.columns[e]:null;if(a.focusedCell){b.store.dispatch(jH({chartId:g.chartId,layerId:g.layerId,series:r?[{seriesId:r.metadata.seriesId}]:[]}));var x;r=(x=w==null?void 0:w.metadata.timeMs)!=null?x:null;r!==null&&(k==null?0:k.outputPeriodMs)&&
(r-=((k==null?void 0:k.outputPeriodMs)||0)/2);var D;b.store.dispatch(TG({chartGroupId:g.chartGroupId,position:(D=r)!=null?D:null}));b.store.dispatch(UG({chartGroupId:g.chartGroupId,locked:!!w}))}b.store.dispatch(lH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(x=m.values[d][e],b.store.dispatch(RG({chartId:g.chartId,lastInteraction:{focus:x.position.x}})),b.store.dispatch(SG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:x.position.y}})))}})})};
h.onGridCellActivate=function(a){this.modalService.focus(0,a)};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.barView.getValuesAtXPosition(c,a.x);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.config,d,e,f=(d=a.state)==null?void 0:(e=d.xAxis)==null?void 0:e.max;if(!f||!c)return null;b=b==null?void 0:b.series.reduce(function(g,k){k=k.data;var m,r=Hl(k,f,Il((m=c.outputPeriodMs)!=null?m:null));return(m=k[r])&&(g===null||Math.abs(f-m.x.valueOf())<Math.abs(f-g.x.valueOf()))?m:g},null);return(a=this.barView.getValuesAtTime(a,b&&b.x0!==void 0?(b.x.valueOf()+b.x0.valueOf())/2:f))?this.updateTimeSeriesValues(a,3):null};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=IH({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=LG(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=LG(this,a),d=!1;this.withLatest(function(e){var f=e.state,g=e.data;if(f&&g){var k=f.seriesSelection,m=f.brush;f=f.resize;if(k&&m&&!m.brushing&&f&&eGa(c,f)){k=k.byLayer.entities[e.scope.layerId];var r=b.barView.getRectAtPosition(c);k=k?k.selectedSeries.map(function(w){return w.seriesId}):[];if(r==null?0:r.metadata.series.id)g=g.series.find(function(w){return w.id===r.metadata.series.id}),b.onSelect.emit(g);b.interactions.clickSelect&&(g=[],m=Fl.ve.LineDeselectToggle,
r&&(m=Fl.ve.LineSelectToggle,k.length===1&&k.includes(r.metadata.series.id)?(g=[],m=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&k.length>0?(g=b.barView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,r.metadata.series.id,c)||[r.metadata.series.id],m=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(g=k.includes(r.metadata.series.id)?k.filter(function(w){return w!==r.metadata.series.id}):k.concat([r.metadata.series.id]),m=Fl.ve.LineSpecificSelectToggle):(g=[r.metadata.series.id],
m=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(r==null?void 0:r.metadata.series.id)||null,k.length===0&&g.length===1&&(d=!0),b.store.dispatch(jH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:g.map(function(w){return{seriesId:w}})})),Cl(b.interactionService,"click",m,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(e){e=b.barView.getValuesAtXPosition(e,c.x);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=fl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=yl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return tFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:qFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:tl({position:R,tickIncrement:r,timeZone:Pk(w,x)}),value:R}},valueFormatter:oFa(g,k),positionMap:sFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0,centerInOutputPeriod:!0,widthMultiplier:1-this.barView.gutterRatio}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=
null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?lFa({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}]}]:[];ql(c,g)&&(d=lH({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 JH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};h.getLayerTitle=function(){return this.layerName?"Bar "+this.layerName:"Bar"};
h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),NG(this,null),PG(this,null,!1),OG(this,!1,"Bar")])};
da.Object.defineProperties(jJ.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({},G4c,
a)},get:function(){return this.interactionsInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ul?this.isMetaKeyDown:this.isCtrlKeyDown}}});jJ.\u0275fac=function(a){return new (a||jJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(FH),Ye(Fl),Ye($G),Ye(dH),Ye(Tg))};
jJ.\u0275cmp=C({type:jJ,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,xx],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:[MH,ly],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 I4c=tk(uk,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},NXc,TF,GG),J4c=tk(uk,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}})},NXc,I4c,GG,KUc,JUc),K4c=tk(vk,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}},TF,J4c,tk(nAa,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},MUc,RUc),MXc,GG);var L4c=function(){yG.apply(this,arguments);this.lastDrawnState=null};Y(L4c,yG);
L4c.prototype.drawInternal=function(a){var b=a.currentValue;if(b&&(a=b.state,b=b.config,a&&b)){var c=a.bodyLeft,d=a.bodyRight,e=a.bodyBottom,f=a.bodyTop,g=a.chartHeight,k=a.chartWidth,m=a.ticks,r=a.axisTopEdge;if(a.yAxisOrientation==="vertical"){this.canvas.style.left="0px";this.canvas.style.top=r+"px";var w=M4c(this,m,k);e=!b.hideLabels&&w.some(function(x){return x.drawOnSecondRow});kl(this.canvas,this.base,e?33:20,k);b.hideLabels?N4c(this,c,d,m):(O4c(this,w),N4c(this,c,d,w))}else this.canvas.style.left=
"0px",this.canvas.style.top="0px",kl(this.canvas,this.base,g,k),c=(w=b.actualWidth)!=null?w:50,b.hideLabels||P4c(this,m,g,c),Q4c(this,e,f,c,m);this.lastDrawnState=a}};
var Q4c=function(a,b,c,d,e){var f=B1c;f=f===void 0?{}:f;a.ctx.save();il(a.ctx,f,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(ll([d,b],f.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(ll([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=l(e.length?e:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,a.ctx.moveTo.apply(a.ctx,q(ll([d-5,c],f.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(ll([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore()},
N4c=function(a,b,c,d){var e=XG;e=e===void 0?{}:e;a.ctx.save();il(a.ctx,e,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(ll([b,0],e.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(ll([c,0],e.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value,d=c.drawOnSecondRow?18:5,a.ctx.moveTo.apply(a.ctx,q(ll([c.value,0],e.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(ll([c.value,d],e.lineWidth)));
a.ctx.stroke();a.ctx.restore()},P4c=function(a,b,c,d){var e=B1c;e=e===void 0?{}:e;var f=[];a.ctx.save();il(a.ctx,e,a.base);d=d-5-8;e=0;b=l(b);for(var g=b.next();!g.done;g=b.next()){var k=g=g.value,m=k.label;k=k.value;var r=a.ctx.measureText(m);r.width>d&&(m=R4c(a,m,r.width,d));var w=r.actualBoundingBoxAscent-r.actualBoundingBoxDescent;r=k-w/2;w=k+w/2;r<0||r<e+6||w>c||(ml(a.ctx,m,d,k),e=w,f.push(g))}a.ctx.restore()},R4c=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)+"..."},O4c=function(a,b){var c=XG;c=c===void 0?{}:c;a.ctx.save();il(a.ctx,c,a.base);b=l(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d=c.labelCenterValue,e=c.truncatedLabel;c.drawOnSecondRow?ml(a.ctx,e,d,21):ml(a.ctx,e,d,8)}a.ctx.restore()},M4c=function(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e-1],g=b[e+1],k=b[e],m=k.label;k=k.value;var r=a.ctx.measureText(m).width,w=Math.min(f?Math.abs(k-
f.value)/2:k,g?Math.abs(g.value-k)/2:c-k)*2-6,x=void 0,D=k;if(r>w){var H=void 0;x=void 0;var J=(x=(H=f)==null?void 0:H.value)!=null?x:0,O=x=void 0;H=(O=(x=g)==null?void 0:x.value)!=null?O:c;f=f?Math.abs(k-f.value):k;x=g?Math.abs(g.value-k):c-k;g=Math.min(f,x)*2-6;x=R4c(a,m,r,f+x-6);r>g&&(D=(J+H)/2)}J=void 0;d.push({label:m,value:k,labelCenterValue:D,widerThanCollisionSafeWidth:r>w,truncatedLabel:(J=x)!=null?J:m,drawOnSecondRow:!1})}for(a=0;a<d.length;a++)b=d[a-1],c=d[a+1],m=e=void 0,d[a].drawOnSecondRow=
!(a%2===0||!(((e=b)==null?0:e.widerThanCollisionSafeWidth)||((m=c)==null?0:m.widerThanCollisionSafeWidth)));return d},S4c=function(a,b,c){return M4c(a,b,c).some(function(d){return d.drawOnSecondRow})};L4c.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};
L4c.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 kJ=function(a,b,c){KG.call(this,a,b,c,!0);this.tickStrategy=XBa;this.hideTickLabels=!1;this.dataSubject=new Wj(null);this.configSubject=new Wj({});this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.yAxisOrientationSubject=new Wj("vertical");this.maxVerticalAxisWidth=50;this.initialized=!1;this.layerType="axis";this.axisView=new L4c(a.nativeElement);this.redrawableViews=[this.axisView]};Y(kJ,KG);kJ.\u0275dir=KG.\u0275dir;
kJ.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};
kJ.prototype.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.initialized=!0;var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});eG(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.gutterRatio!==void 0&&this.withLatest(function(e){e=e.scope;e=JXc({chartGroupId:e.chartGroupId,chartId:e.chartId,xAxisId:a.xAxisId,gutterRatio:a.gutterRatio});b.push(e)});this.selectorFactoryToObservable(GG).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;RWc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},(c=this.tickStrategy)!=null?c:XBa,this.tickOptions);c=this.selectorFactoryToObservable(K4c);le([c,this.configObservable]).pipe(A(function(e){var f=l(e);e=f.next().value;return{data:null,config:f.next().value.currentValue,
state:e!=null?e:null}}),zf(null),vf(),A(pk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(e){var f=l(e);e=f.next().value;f=f.next().value;a.chart.scheduleChangeHandler({mergeKey:(f.layerId||a.layerId)+"-drawFromSelection",changes:e,viewHandler:function(g){a.axisView.draw(g)},scope:f||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(zf(null),vf(),A(pk),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)&&dG(a.chart,[QF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f==null?void 0:f.layerId,currentLayerId:e.layerId})])});c=this.selectorFactoryToObservable(OUc);var d=this.selectorFactoryToObservable(J4c);le([this.scopeObservable,this.yAxisOrientationSubject,c,d]).pipe(Bf(this.destroyed)).subscribe(function(e){var f=l(e);e=f.next().value;var g=f.next().value;var k=f.next().value;if(f=f.next().value)a.lastVerticalAxisDynamicWidth=
T4c(a,f);f&&k!==void 0&&(a.lastUseDoubleHeightCheck=S4c(a.axisView,f,k));a.maxVerticalAxisWidth=k?Math.round(k*.3):50;dG(a.chart,[a.createMarginRequirementAction(e,g,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck)])});dG(this.chart,b)};kJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);var a=NG(this,null);this.store.dispatch(nk({actions:[WWc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
kJ.prototype.onMouseMove=function(a){var b=[];a=LG(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(VYc({chartId:this.chartId,lastInteraction:{hover:d}}))}else b.push(VYc({chartId:this.chartId,lastInteraction:{hover:null}}));return b};var T4c=function(a,b){return b.reduce(function(c,d){return Math.max(c,a.rulerCanvasCtx.measureText(d.label).width)},0)+10+8};
kJ.prototype.ngOnChanges=function(a){var b=this;KG.prototype.ngOnChanges.call(this,a);var c=[];this.initialized&&(("tickStrategy"in a||"tickOptions"in a)&&RWc(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=JXc({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))}),dG(this.chart,c))};
kJ.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 sG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:b})};
da.Object.defineProperties(kJ.prototype,{yAxisOrientation:{configurable:!0,enumerable:!0,get:function(){return this.yAxisOrientationSubject.value}}});kJ.\u0275fac=function(a){return new (a||kJ)(Ye(Jd),Ye(cG),Ye(qG))};
kJ.\u0275cmp=C({type:kJ,selectors:[["ac-categorical-axis"]],hostAttrs:[1,"composable-layer","ac-catgorical-axis"],inputs:{tickStrategy:"tickStrategy",tickOptions:"tickOptions",gutterRatio:"gutterRatio",hideTickLabels:"hideTickLabels"},features:[Gf,xx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var U4c={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},V4c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},lJ=function(a,b){zG.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("Fc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(lJ,zG);h=lJ.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;zk(a)&&(rAa(a)||Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),AG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){xG(c,c.canvas);xG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onSeriesSelectionChange=function(a,b){DCa(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){xl(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:W4c(a!=null?a:[]),category:b}};var W4c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=lJ.prototype;
h.getRectAtPosition=function(a){return this.barsStrategy.getBarAtPosition(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnCategories.get(a.metadata.point.x)||null};h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpack=function(a){var b=a.scope,c=a.data,d=a.state,e=a.config;if(!c||!d||!e)return null;var f=d.resize,g=d.categoricalAxis,k=d.yAxis;a=d.brush;var m=d.seriesSelection;if(!(f&&g&&k&&a&&m))return null;g=f.width;var r=f.height,w=f.margins.top,x=f.height-f.margins.bottom,D=f.margins.left;f=f.width-f.margins.right;k=this.barsStrategy.getRangeMap(k,w,x,D,f,c?c.unit:null);if(!e.categoryMap||!k||!e.laneWidth)return null;k=this.barsStrategy.createPointToRectMap(c,e.categoryMap,k,e.laneWidth,e.gutterRatio);
var H=e.colorStrategy.getShape,J=H&&(c==null?0:c.series.length)&&c.series.length>1?function(R){return H(R,d)}:null;b=m.byLayer.entities[b.layerId];var O=!c||!e.colorStrategy.isReady||e.colorStrategy.isReady(c,d);m=Object.values(m.byLayer.entities).filter(function(R){return!!R}).some(function(R){return R.selectedSeries.length||R.hoveredSeries.length});return{data:c,colorMap:function(R){return Pl(e.colorStrategy.getColor(R,d))},isColorMapReady:O,shapeMap:J,shapeBoundingBox:e.colorStrategy.shapeBoundingBox,
reverseCategoryMap:e.reverseCategoryMap,canvasWidth:g,canvasHeight:r,bodyLeft:D,bodyTop:w,bodyWidth:f-D,bodyHeight:x-w,bounds:{top:w,right:f,bottom:x,left:D},brushing:a.brushing||!1,hoveredSeries:(b==null?void 0:b.hoveredSeries)||[],selectedSeries:(b==null?void 0:b.selectedSeries)||[],anySeriesSelectedOrHovered:m,pointToRectMap:k,verticalBarPadding:e.verticalBarPadding,hideSymbolShapes:e.hideSymbolShapes}};
h.drawInternal=function(a){var b=performance.now();if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(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({},U4c,{globalAlpha:d?.5:1});this.shapeCtx.globalAlpha=d?.5:1;var e,f=(e=a.data)==null?void 0:e.series;if(f==null?0:f.length){if(e=a.shapeMap){d=new Set;f=l(f);for(var g=f.next();!g.done;g=f.next())d.add(e(g.value))}this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,c,void 0,a.verticalBarPadding,a.hideSymbolShapes)}this.ctx.restore();this.barsStrategy.sortDrawnCategories(this.drawnCategories);this.drawnRects=this.barsStrategy.getSortedFlattenedRects(this.drawnCategories);
a=performance.now();this.enableManualLatencyTracking&&vG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,m,r){this.ctx.save();il(this.ctx,g,this.base);il(this.shapeCtx,V4c,this.base);g=k?a==null?void 0:a.series.filter(function(Ca){return k.has(Ca.id)}):a==null?void 0:a.series;g=l(g!=null?g:[]);for(var w=g.next(),x={};!w.done;x={series$jscomp$84:void 0,rects$jscomp$2:void 0},w=g.next()){x.series$jscomp$84=w.value;w=c(x.series$jscomp$84);this.ctx.fillStyle=hl(w,this.base);this.shapeCtx.fillStyle=hl(w,this.base);w=d&&d(x.series$jscomp$84);x.rects$jscomp$2=x.series$jscomp$84.data.map(function(Ca){return function(ja,
ua){return b(ja,Ca.series$jscomp$84,ua)}}(x));if(k){var D=k.get(x.series$jscomp$84.id),H=void 0,J=void 0;if((H=D)==null?0:(J=H.datumIndices)==null?0:J.length)x.rects$jscomp$2=D.datumIndices.map(function(Ca){return function(ja){return Ca.rects$jscomp$2[ja.index]}}(x))}H=void 0;D=!((H=k)==null||!H.get(x.series$jscomp$84.id));J=H=null;for(var O=l(x.rects$jscomp$2),R=O.next();!R.done;R=O.next())if(R=R.value){var V=void 0;m&&m<R.height&&x.series$jscomp$84.id!==((V=a)==null?void 0:V.series[0].id)?this.ctx.fillRect(R.left,
R.top+m,R.width,R.height-m):this.ctx.fillRect(R.left,R.top,R.width,R.height);if(w){var ba=this.barsStrategy.getShapeParams(R,e);V=ba.x;var oa=ba.y,ta=ba.shapeWidth,ka=ba.shapeHeight;ba=ba.scalingFactor;H===null&&(H=ta<=10);H||r||!D&&!this.barsStrategy.isBarLongEnoughForShape(R,ta,ka)||this.drawShapeWithinBounds(V,oa,f,w,ba)}J=this.barsStrategy.lastRectWithinBounds(R,J,f);X4c(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=xCa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=hl("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 X4c=function(a,b){var c=b.metadata.point.x;a.drawnCategories.set(c,(a.drawnCategories.get(c)||[]).concat([b]))};lJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var Y4c=function(){lJ.apply(this,arguments)};Y(Y4c,lJ);Y4c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
Y4c.prototype.drawInternal=function(a){if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(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,U4c,b,a.verticalBarPadding,a.hideSymbolShapes)}};var Z4c=function(){this.gutterRatioInternal=.35};h=Z4c.prototype;h.getRangeMap=function(a,b,c,d,e,f){return yl(a,e,d,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,m){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(w=l([w,r]),r=w.next().value,w=w.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;r=Math.round(c(r));w=Math.round(c(w))-r;var D=b(g.x);return D===null?null:{top:Math.round(D-x/2),left:r,height:x,width:w,metadata:{point:g,series:k,index:m}}}};
h.getCategory=function(a,b){var c;return(c=b(a.y))!=null?c:null};h.getBarAtPosition=function(a,b){var c=this.halfGutterInverseRatio;c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],m=k.left,r=k.top,w=k.height;k=k.width;var x=Math.ceil(c*w);w=r+w+x;if(b.y>=r-x)if(b.y<w)if(b.x>=m)if(b.x<m+k){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f};
h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].top-a.get(f)[0].top}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};
h.getShapeParams=function(a,b){var c=Math.min(16.8,a.height*.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width/2,y:a.top+a.height+8,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b){return a.width>b};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.top+a.height<=c.bottom?b===null||b.top+b.height>c.bottom?a:a.top+a.height>b.top+b.height?a:b:b!==null&&b.top+b.height<=c.bottom?b:null};
da.Object.defineProperties(Z4c.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 mJ=function(){this.gutterRatioInternal=.35};h=mJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return yl(a,b,c,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,m){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(x=l([w,r]),r=x.next().value,w=x.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;w=Math.round(c(w));r=Math.round(c(r))-w;var D=b(g.x);return D===null?null:{top:w,left:Math.round(D-x/2),height:r,width:x,metadata:{point:g,series:k,index:m}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return LKa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.top-f.top});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return KKa(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(mJ.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 nJ=function(){this.gutterRatioInternal=.35};h=nJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return yl(a,b,c,f)};
h.createPointToRectMap=function(a,b,c,d,e){function f(m){return a.series.findIndex(function(r){return r.id===m.id})}var g=this,k=a.series.length;return function(m,r,w){g.gutterRatio=e!=null?e:.35;var x=d-g.gutterRatio*d,D=Math.round(c(m.y)),H=Math.round(c(0));D>H&&(D=l([D,H]),H=D.next().value,D=D.next().value);H-=D;var J=b(m.x);if(J===null)return null;J=Math.round(J-x/2);x=x/k-1;var O=f(r);return{top:D,left:J+O*(x+1),height:H,width:x,metadata:{point:m,series:r,index:w}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return LKa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return KKa(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(nJ.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 $4c={clickSelect:!0,hoverHighlight:!0},oJ=function(a,b,c,d){KG.call(this,a,b,c);var e=this;this.interactionService=d;this.data=null;this.loading=!1;this.unstackedSubject=new Wj(!1);this.colorStrategyInternal=new OH;this.enableManualLatencyTracking=this.hideSymbolShapes=!1;this.onSelect=new gj;this.dataSubject=new Wj(this.data);this.configSubject=new Wj({colorStrategy:this.colorStrategy});this.userConfigSubject=new Wj({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes});this.categoricalAxisRequirement=this.yAxisRequirement=null;this.interactionsInternal=$4c;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 lJ(a.nativeElement,this.unstacked?new nJ:new mJ);this.views.push(this.categoricalBarView);
this.categoricalBarSelectedView=new Y4c(a.nativeElement,this.unstacked?new nJ:new mJ);this.views.push(this.categoricalBarSelectedView);this.stackedDataObservable=this.dataSubject.pipe(A(function(f){return f?QKa(f,!1):null}),xf({bufferSize:1,refCount:!0}));a=this.selectorFactoryToObservable(GG);le([this.unstackedSubject,a]).pipe(Bf(this.destroyed)).subscribe(function(f){f=l(f);var g=f.next().value;var k=f.next().value;e.withLatest(function(m){var r=k==="horizontal"?new Z4c:g?new nJ:new mJ;e.categoricalBarView.updateStrategy(r,
m);e.categoricalBarSelectedView.updateStrategy(r,m)})});this.unstackedSubject.pipe(Bf(this.destroyed)).subscribe(function(f){e.withLatest(function(g){e.categoricalBarView.updateStrategy(f?new nJ:new mJ,g);e.categoricalBarSelectedView.updateStrategy(f?new nJ:new mJ,g)})})};Y(oJ,KG);oJ.\u0275dir=KG.\u0275dir;h=oJ.prototype;
h.ngOnChanges=function(a){KG.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(OG(this,this.loading,"Categorical Bar"));dG(this.chart,b)};
h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),MYc(this,null),PG(this,null,!1),OG(this,!1,"Categorical Bar")])};
h.ngOnInit=function(){var a=this;KG.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(J4c),c=this.selectorFactoryToObservable(I4c),d=this.selectorFactoryToObservable(MXc);le([b,c,d,this.userConfigSubject]).pipe(Bf(this.destroyed)).subscribe(function(e){e=
l(e);var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;a.configSubject.next(Object.assign({},e,{categoryMap:function(m){var r,w;return(w=(r=f==null?void 0:f.find(function(x){return x.label===m}))==null?void 0:r.value)!=null?w:null},reverseCategoryMap:function(m){if(!g)return null;var r,w;return(w=(r=f==null?void 0:f.find(function(x){return Math.abs(x.value-m)<=g*(1-(k!=null?k:0))/2}))==null?void 0:r.label)!=null?w:null},laneWidth:g,gutterRatio:k}))});this.updateHoverValuesTriggerSubject.pipe(Df(10),
Bf(this.destroyed)).subscribe(function(e){a.updateHoverValues(e)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(e){a.onMouseEnter(e)});eG(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=PBa(c),Yk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,e.push(MG(this,this.yAxisRequirement))),this.categoricalAxisRequirement=OBa(c),e.push(MYc(this,this.categoricalAxisRequirement)),e.push(KH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:3,unit:(c==null?void 0:c.unit)||null})),e.push(JH({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=QG(this.colorStrategy,d,c,b))e.push(a),this.colorRecalculationAttemptsRemaining=2;e.push(this.createSetSeriesColorMetadataAction(d,c,b))}dG(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=QG(this.colorStrategy,a,c,b);e&&(d.push(e),this.colorRecalculationAttemptsRemaining--)}d.push(this.createSetSeriesColorMetadataAction(a,c,b))}return d};var a5c=function(a,b){var c=null;a.withLatest(function(d){d=d.scope;var e;c=IH({chartId:d.chartId,layerId:d.layerId,valueType:3,timeKey:2,values:(e=b==null?void 0:b.values)!=null?e:[]})});return c};h=oJ.prototype;
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=LG(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=LG(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&&eGa(c,e)){g=g.byLayer.entities[d.scope.layerId];var m=b.categoricalBarView.getRectAtPosition(c);g=g?g.selectedSeries.map(function(r){return r.seriesId}):[];(m==null?0:m.metadata.series.id)&&(f=f.series.find(function(r){return r.id===m.metadata.series.id}))&&b.onSelect.emit(Object.assign({},f,{point:m.metadata.point}));b.interactions.clickSelect&&
(f=[],k=Fl.ve.LineDeselectToggle,m&&(k=Fl.ve.LineSelectToggle,g.length===1&&g.includes(m.metadata.series.id)?(f=[],k=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&g.length>0?(f=b.categoricalBarView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,m.metadata.series.id,c)||[m.metadata.series.id],k=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=g.includes(m.metadata.series.id)?g.filter(function(r){return r!==m.metadata.series.id}):g.concat([m.metadata.series.id]),
k=Fl.ve.LineSpecificSelectToggle):(f=[m.metadata.series.id],k=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(m==null?void 0:m.metadata.series.id)||null,b.store.dispatch(jH({chartId:d.scope.chartId,layerId:d.scope.layerId,series:f.map(function(r){return{seriesId:r}})})),Cl(b.interactionService,"click",k,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(d){d=b.categoricalBarView.getValuesAtPosition(d,c);(d=a5c(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}]}]:[];ql(e,f)&&(d=lH({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 JH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};
h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.categoricalBarView.getValuesAtPosition(c,a),e,f;c=IH({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(oJ.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({},$4c,a)},get:function(){return this.interactionsInternal}},
isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ul?this.isMetaKeyDown:this.isCtrlKeyDown}}});oJ.\u0275fac=function(a){return new (a||oJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(Fl))};
oJ.\u0275cmp=C({type:oJ,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,xx],decls:0,vars:0,template:function(){},styles:["/*# sourceMappingURL=ac_categorical_bar.css.map */"],
changeDetection:0});var b5c={useNonBlockingErrors:!1},pJ=function(a,b,c,d,e,f){KG.call(this,a,b,c,!0);this.ngZone=d;this.instrumentationService=e;this.changeDetectorRef=f;this.errorsSubject=new Wj([]);this.signalTimeoutId=null;this.installAgentHandled=!1;this.data=null;this.errorsObservable=this.errorsSubject.pipe(of(0),Gk(this.ngZone));this.stylesSubject=new Wj(b5c);this.resizeStateSubject=new wf(1);this.isAgentMetricObservable=this.selectorFactoryToObservable(kYc).pipe(A(function(g){var k,m,r,w,x,D,H,J,O,R,V,ba,oa,
ta,ka,Ca,ja,ua,xa,Ra;return(g==null?void 0:(k=g.dataSets)==null?void 0:(m=k[0])==null?void 0:(r=m.timeSeriesFilter)==null?void 0:(w=r.filter)==null?void 0:w.includes("agent.googleapis.com"))||(g==null?void 0:(x=g.dataSets)==null?void 0:(D=x[0])==null?void 0:(H=D.timeSeriesQuery)==null?void 0:H.includes("agent.googleapis.com"))||(g==null?void 0:(J=g.dataSets)==null?void 0:(O=J[0])==null?void 0:(R=O.timeSeriesFilterRatio)==null?void 0:(V=R.numeratorFilter)==null?void 0:(ba=V.filter)==null?void 0:ba.includes("agent.googleapis.com"))||
(g==null?void 0:(oa=g.dataSets)==null?void 0:(ta=oa[0])==null?void 0:(ka=ta.timeSeriesFilterRatio)==null?void 0:(Ca=ka.denominatorFilter)==null?void 0:(ja=Ca.filter)==null?void 0:ja.includes("agent.googleapis.com"))||(g==null?void 0:(ua=g.dataSets)==null?void 0:(xa=ua[0])==null?void 0:(Ra=xa.prometheusQuery)==null?void 0:Ra.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 Wj(!1);this.errorDismissedObservable=ve(this.errorDismissedSubject,this.errorsSubject.pipe(A(function(){return!1}),yf(1)));this.useNonBlockingStylingObservable=ee(!1);this.installAgentRequest=new gj;c5c(this)};Y(pJ,KG);pJ.\u0275dir=KG.\u0275dir;
var c5c=function(a){a.selectorFactoryToObservable(ZXc).pipe(Bf(a.destroyed)).subscribe(function(b){var c;b=(c=b==null?void 0:b.statuses)!=null?c:[];a.errorsSubject.next(XKa(b).filter(function(d){return d.details.dashboardError!=="DASHBOARD_FILTER_APPLICATION_FAILED"}));d5c(a,b.filter(function(d){return!d.success}))});a.selectorFactoryToObservable(GUc).pipe(zf(null),A(function(b){return b!=null?b:null}),vf(),A(pk),Bf(a.destroyed)).subscribe(function(b){b&&zk(b)&&(a.resizeStateSubject.next(b.currentValue),
a.changeDetectorRef.detectChanges())})};pJ.prototype.ngOnChanges=function(a){KG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(b=b.concat(e5c(this,this.data)));dG(this.chart,b)};
var f5c=function(a){a.signalTimeoutId!=null&&(clearTimeout(a.signalTimeoutId),a.signalTimeoutId=null)},d5c=function(a,b){f5c(a);a.signalTimeoutId=setTimeout(function(){f5c(a);for(var c=performance.now(),d=l(b),e=d.next();!e.done;e=d.next())if(e=e.value,e.layerId&&e.layerId!==a.layerId){var f=void 0,g=void 0,k=void 0,m=void 0;aH(a.instrumentationService,{type:"error-display",timestamp:c,layerId:e.layerId,chartId:a.chartId,layerType:"graphic",metadata:{name:((f=e)==null?void 0:(g=f.error)==null?void 0:
g.name)||"unknown",message:((k=e)==null?void 0:(m=k.error)==null?void 0:m.message)||"unknown"}})}},0)};
pJ.prototype.ngOnInit=function(){var a=this;KG.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=l(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=l(b);var c=b.next().value;
var d=b.next().value;return(c==null?0:c.margins)?(b=c.margins,c=a.chartGroupId==="tex-chart-group"&&c.width<736||a.chartGroupId!=="tex-chart-group"&&c.width-b.left-b.right<160,d&&!c?(c=a.chartGroupId==="tex-chart-group"?Math.max(184,b.left+32):b.left+32,d=b.right+(c-b.left),{marginLeft:c+"px",marginRight:d+"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(c+d)+"px)",height:"auto",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{marginLeft:b.left+"px",marginRight:b.right+
"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(b.left+b.right)+"px)",height:"calc(100% - "+(b.top+b.bottom)+"px)",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{}}),Gk(this.ngZone))};pJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);f5c(this);this.store.dispatch(nk({actions:e5c(this,null)}))};
var e5c=function(a,b){var c=[];if(b&&b.length){b=l(b);for(var d=b.next();!d.done;d=b.next())c.push(UXc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:d.value}))}else c.push(VXc({chartId:a.chartId,sourceId:a.objectiveLayerId}));return c};da.Object.defineProperties(pJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesSubject.next(Object.assign({},b5c,a))},get:function(){return this.stylesSubject.getValue()}}});
pJ.\u0275fac=function(a){return new (a||pJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(Tg),Ye($G),Ye(Px))};
pJ.\u0275cmp=C({type:pJ,selectors:[["ac-error"]],hostAttrs:[1,"composable-layer","ac-error"],inputs:{data:"data",styles:"styles"},outputs:{installAgentRequest:"installAgentRequest"},features:[Gf,xx],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,cLa,3,3,"ng-container",2),T(1,"async"));a&2&&I("ngIf",U(1,1,b.errorsObservable))},dependencies:[jC,lC,Yy,fy,jy,rD,ly],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 qJ=function(a){yG.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(qJ,yG);
var g5c=function(a){return(a.arcRadius-.14*a.arcRadius)*2},i5c=function(a,b,c){var d=[];if(!c||!b||c.minValue>a.maxThresholdValue)return d;var e=a.arcRadius,f=Math.PI,g=0,k=a.maxThresholdValue-c.minValue;b.forEach(function(m){g=(m.upperBound-m.lowerBound)/k*Math.PI;m={arcRadius:e,startAngle:f,endAngle:f+g,arcData:m,filledColor:h5c(m.category)};f+=g;d.push(m)});return d},h5c=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)"}},j5c=function(a,b){var c=new Map;if(b==null)return c;b=b.thresholds;if(b.length===0)return c;b.forEach(function(f){c.set(f.upperBound,f.category)});b=Array.from(c.keys()).sort(function(f,g){return f-g});if(b.length===0)return c;a.maxThresholdValue=b[b.length-1];a=new Map;
b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c.get(d);e&&a.set(d,e)}return a},k5c=function(a){a=a.series[0];if(!a||a.data.length===0)throw Error("Mc");var b=a.id.toString(),c=a.data[0].y;if(isNaN(c))throw Error("Nc");return{id:b,ref:a,value:c,name:a.name||""}},m5c=function(a,b,c){var d=[];if(!c||!b)return d;var e=c.thresholds;if(e.length===0)return d;var f=l5c(e);try{var g=k5c(b),k=g.id,m=g.ref,r=c.minValue;a.thresholdsDict.forEach(function(w,x){var D=f.get(x)||"";d.push({id:k,lowerBound:r,
upperBound:x,label:D,ref:m,category:w});r=x});return d}catch(w){return[]}},l5c=function(a){var b=new Map;a.forEach(function(c){b.set(c.upperBound,c.label)});return b};qJ.prototype.clearWithBackground=function(a){jl(this.canvas,a,this.base)};qJ.prototype.updateCanvasSize=function(){xG(this,this.canvas);kl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var n5c=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()}},o5c=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=hl(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=hl("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()},p5c=function(a,b,c){a.ctx.save();a.ctx.beginPath();a.ctx.fillStyle=hl("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()},q5c=function(a){a.currentValueRenderedContexts.forEach(function(b){o5c(a,b,.03*a.arcRadius*2)})},r5c=function(a){a.thresholdRenderedContexts.forEach(function(b){o5c(a,b,0)})},s5c=function(a,b){qJ.call(this,a);this.afterRenderHook=b;this.canvas.className="ac-gauge-view__canvas"};Y(s5c,qJ);
var t5c=function(a,b,c){var d=null,e=Math.sqrt(Math.pow(b-a.centerX,2)+Math.pow(c-a.centerY,2));if(e>a.arcRadius)return d;var f=a.arcRadius-a.arcRadius*.02*2;a.thresholdRenderedContexts.forEach(function(g){var k=a.centerX;if(f<=e&&e<=a.arcRadius){var m=Math.atan2(Math.abs(c-a.centerY),Math.abs(b-k));k=b<=k?m+Math.PI:2*Math.PI-m;k=k>=g.startAngle&&k<=g.endAngle}else k=!1;k&&(d=g)});return d};
s5c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.config;if(b.state&&c){n5c(this,a);if(b){this.thresholdsDict=j5c(this,b.config);a:{a=b.data;c=b.config;var d=[];if(a==null)var e=d;else{try{var f=k5c(a),g=f.id,k=f.ref,m=f.value,r=f.name,w=m>this.maxThresholdValue?this.maxThresholdValue:m,x=c.minValue;b:{for(var D=this.thresholdsDict.keys(),H=l(D),J=H.next();!J.done;J=H.next()){var O=J.value;if(w<=O){var R=this.thresholdsDict.get(O)||0;break b}}R=0}var V={id:g,lowerBound:w,upperBound:this.maxThresholdValue,
label:r,ref:k,category:4};d.push({id:g,lowerBound:x,upperBound:w,label:r,ref:k,category:R});d.push(V);e=d;break a}catch(oa){e=[];break a}e=void 0}}this.currentValueRenderedContexts=i5c(this,e,b.config)}this.currentValueRenderedContexts=this.currentValueRenderedContexts;b&&(this.thresholdsDict=j5c(this,b.config),this.thresholdRenderedContexts=i5c(this,m5c(this,b.data,b.config),b.config));this.thresholdRenderedContexts=this.thresholdRenderedContexts;r5c(this);p5c(this,.02*this.arcRadius*2);q5c(this);
p5c(this,.14*this.arcRadius*2);vG(this);var ba;(ba=this.afterRenderHook)==null||ba.call(this)}}};var u5c=function(a){return a.currentValueRenderedContexts.length===0?null:a.currentValueRenderedContexts[0].arcData.category};var v5c=function(a){qJ.call(this,a);this.canvas.className="ac-gauge-view__selected-canvas"};Y(v5c,qJ);
v5c.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",n5c(this,a),kl(this.canvas,this.base,c.chartHeight,c.chartWidth),p5c(this,0,.6),o5c(this,c.selectedThreshold,0),a=.02*this.arcRadius*2,this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=hl("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(),p5c(this,a,.6)):jl(this.canvas,void 0,this.base))}};var w5c=tk(vk,function(a){if(a&&a.chartWidth>0&&a.chartHeight>0)return{chartWidth:a.chartWidth,chartHeight:a.chartHeight}},TF);var x5c=["labelBodyRef"],y5c=["labelViewRef"],z5c=["labelUnitRef"],rJ=function(a,b,c,d){KG.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 gj;this.dataSubject=new Wj(null);this.selectedThresholdSubject=new Wj(null);this.layerType="graphic";this.gaugeView=new s5c(this.el.nativeElement,this.updateLabels.bind(this));
this.configSubject=new Wj({thresholds:this.thresholds,minValue:this.minValue});this.gaugeSelectedView=new v5c(this.el.nativeElement);this.redrawableViews=[this.gaugeView,this.gaugeSelectedView]};Y(rJ,KG);rJ.\u0275dir=KG.\u0275dir;
rJ.prototype.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});eG(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(w5c);le([b,this.configObservable,this.dataObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;return{data:d.next().value.currentValue,
config:e.currentValue,state:c!=null?c:null}}),zf(null),vf(),A(pk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.gaugeView.draw(e);a.currentValueThresholdCategory.emit(u5c(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=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:e.currentValue,config:c.currentValue,state:f?Object.assign({},f,{selectedThreshold:d}):null}}),zf(null),vf(),A(pk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.gaugeSelectedView.draw(e)},
scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(zf(null),vf(),A(pk),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)&&dG(a.chart,[QF({chartGroupId:c.chartGroupId,chartId:c.chartId,previousLayerId:d==null?void 0:d.layerId,currentLayerId:c.layerId})])});this.updateLabels()};
rJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};rJ.prototype.ngOnChanges=function(a){KG.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(OG(this,this.loading,"Gauge"));"error"in a&&b.push(PG(this,this.error,this.hasData()));dG(this.chart,b)};
rJ.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=GBa(e,a);if(e.value){if(this.currentValueLabel=e.value,this.unitLabel=e.unit&&!EBa(e.unit)?" "+e.unit:e.unit,this.currentValueLabel.length+this.unitLabel.length>7&&this.unitLabel&&!EBa(this.unitLabel)?this.showUnitAboveValue=!0:this.showUnitAboveValue=!1,e=u5c(this.gaugeView))this.statusColor=
h5c(e)}else this.unitLabel=this.currentValueLabel="";this.cdRef.markForCheck();a:{if(this.labelViewRef){if(g5c(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=g5c(this.gaugeView)+"px"}this.cdRef.detectChanges()}};
var A5c=function(a,b){if(b===""||b==="{not_a_unit}")b="1";var c=BBa({min:0,max:a,unit:b},FBa).unit,d=!c||mBa(c)?"":(Rk(c)&&Qk(c)||aBa("")).key||"unitless";if(a===0)d=Wk(0,d);else{a=Uk(b,c,a);if(!a)return"";d=Wk(a,d)}return d};
rJ.prototype.onMouseMove=function(a){var b=[];a=LG(this,a);if(a=t5c(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:B5c(a.arcData.category),lowerBound:A5c(a.arcData.lowerBound,e!=null?e:""),upperBound:A5c(a.arcData.upperBound,e!=null?e:"")};this.selectedThreshold=a;b.push(WYc({chartId:this.chartId,lastInteraction:{hover:c}}))}else this.selectedThreshold=null,b.push(WYc({chartId:this.chartId,lastInteraction:{hover:null}}));
return b};rJ.prototype.onMouseLeave=function(){this.selectedThreshold=null};var B5c=function(a){switch(a){case 2:return"Warning";case 3:return"Danger";case 1:return"Normal";default:return""}};rJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this)};da.Object.defineProperties(rJ.prototype,{selectedThreshold:{configurable:!0,enumerable:!0,set:function(a){this.selectedThresholdSubject.next(a)},get:function(){return this.selectedThresholdSubject.value}}});
rJ.\u0275fac=function(a){return new (a||rJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(Px))};
rJ.\u0275cmp=C({type:rJ,selectors:[["ac-gauge"]],viewQuery:function(a,b){a&1&&(jg(x5c,5),jg(y5c,5),jg(z5c,5));if(a&2){var c;ng(c=og())&&(b.labelBodyRef=c.first);ng(c=og())&&(b.labelViewRef=c.first);ng(c=og())&&(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,xx],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,dLa,3,1,"span",4)(3,fLa,4,3,"span",5),L());a&2&&(xg("color",b.statusColor),B(2),I("ngIf",b.showUnitAboveValue),B(),I("ngIf",b.currentValueLabel))},dependencies:[fy],
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 C5c=fk("[AC] Set layer colorScale",gk());var sJ=function(a,b,c){AXc.call(this,a,b);this.queueService=c};Y(sJ,AXc);h=sJ.prototype;h.onXAxisChange=function(a,b){cl(a)&&((a=yXc(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;(xl(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";kl(a,this.base,d,c)}};
var D5c=function(a){var b=a.state,c=a.config;if(!b||!c)return{};c=b.resize;var d=b.xAxis;b=b.yAxis;if(!c||!d||!b)return{};var e=c.width-c.margins.left-c.margins.right,f=c.height-c.margins.top-c.margins.bottom,g=d.min,k=d.max,m=b.min,r=b.max;c=b.scaleType;var w=b.absoluteMin;if(g===null||k===null||m===null||r===null)return{};var x,D=Tk(b.unit||"1",((x=a.data)==null?void 0:x.unit)||"1")||1;return{xMap:function(H){return al(g,k,0,e,H.valueOf())},yMap:c===1?function(H){return H===-Infinity?f:H===Infinity?
0:nCa(m,r,f,0,H,w,D)}:function(H){return al(m*D,r*D,f,0,H)}}},E5c=function(a,b,c,d){d=l(zl(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 F5c={globalAlpha:1,globalCompositeOperation:"source-over"},G5c=[[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]],tJ=function(a,b){sJ.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("Fc");this.bgCtx=
b;a.insertBefore(this.bgCanvas,this.canvas)};Y(tJ,sJ);tJ.prototype.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawScheduler.schedule(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx,!0),AG(this,b,this.bgCanvas,this.bgCtx,!0),this.fullDrawDebounceId=setTimeout(function(){xG(c,c.canvas);xG(c,c.bgCanvas);c.drawScheduler.schedule(b)},250)))};
tJ.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=gl(f,e.margins.left,e.width-e.margins.right);b=hDa(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 H5c=function(a,b,c){a=a.unpack(b);if(!a)return null;if(!a.points.length)return[];b=a.inverseDomainMap(c.x);c=a.inverseRangeMap(c.y);if(!b||!c)return null;b=Hl(a.points,b.valueOf(),Il(null));var d=a.points[b];if(!d||!d.y.bucketCounts)return null;c=hLa(d,c);return[{seriesId:a.series.id,datumIndices:[{index:b,bucketIndex:c}],ignoreSeriesForHighlighting:!0}]};
tJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);if(b===null||!a)return null;if(!a.points.length)return{values:[],timeRange:null};b=Hl(a.points,b,Il(null));return{values:[{seriesId:a.series.id,value:a.points[b]}],timeRange:{x:a.points[b].x.valueOf()}}};tJ.prototype.getValuesAtXPosition=function(a,b){var c=this.unpack(a);return c?this.getValuesAtTime(a,c.inverseDomainMap(b)):null};
var I5c=function(a,b,c){if(a=a.unpack(b))if(b=a.inverseDomainMap(c.x),c=a.inverseRangeMap(c.y),b&&c&&(b=Hl(a.points,b.valueOf(),Il(null)),(a=a.points[b])&&a.y.bucketCounts))return hLa(a,c)};
tJ.prototype.drawInternal=function(a){var b=performance.now(),c=a.data,d=a.state,e=a.config,f=a.scope;if(d&&e){var g=d.xAxis,k=d.colorScale;if(d.resize&&k){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);var m,r=(m=k.byLayer.entities[f.layerId])!=null?m:{layerId:f.layerId,max:0,min:0,colorPivots:[[38,50,56]]};this.fullDrawDebounceId&&clearTimeout(this.fullDrawDebounceId);this.resizeCanvas(this.canvas,a);this.resizeCanvas(this.bgCanvas,a);d=function(H){return Pl(e.colorStrategy.getColor(H,
r))};e.skipZeroValues||J5c(this,d(0));f=D5c(a);a=f.xMap;f=f.yMap;if(a&&f){c=c==null?void 0:c.series;this.ctx.save();il(this.ctx,F5c,this.base);if(c&&c.length>0){var w,x,D;K5c(this,c[0],a,f,d,(x=e.skipZeroValues)!=null?x:!1,(D=(w=e.styles)==null?void 0:w.renderBucketGap)!=null?D:!1)}this.ctx.restore();g&&g.min!==null&&g.max!==null&&wG(this,g.min,g.max);g=performance.now();this.enableManualLatencyTracking&&vG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:g})}}}};
var J5c=function(a,b){il(a.bgCtx,F5c,a.base);jl(a.bgCanvas,b,a.base)},K5c=function(a,b,c,d,e,f,g){if(b.data.length){a.ctx.save();var k=g?function(D){return{x:D.x+1,y:D.y+1,width:D.width-1,height:D.height-1,color:D.color}}:function(D){return Object.assign({},D,{x:Math.floor(D.x),width:Math.ceil(D.width)})};b=b.data.flatMap(function(D){for(var H=[],J=D.y.bucketCounts,O=0;J&&O<J.length;O++)if(!(f&&J[O]<=0)){var R=E5c(D,O,c,d);H.push(Object.assign({},R,{color:e(J[O])}))}return H.map(k)});b=l(b);for(g=
b.next();!g.done;g=b.next()){g=g.value;var m=g.x,r=g.y,w=g.width,x=g.height;a.ctx.fillStyle=hl(g.color,a.base);a.ctx.fillRect(m,r,w,x)}a.ctx.restore()}};tJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var L5c=Object.freeze({lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)"}),M5c=function(a,b,c){sJ.call(this,a,b,c)};Y(M5c,sJ);
M5c.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),jl(this.canvas,"transparent",this.base),a=this.unpack(a))b=a.rect,il(this.ctx,a.drawingOptions,this.base),this.ctx.strokeRect(b.x,b.y,b.width,b.height)};M5c.prototype.onSeriesSelectionChange=function(a,b){this.drawScheduler.schedule(b)};
M5c.prototype.unpack=function(a){var b=a.scope.layerId,c,d,e=(c=a.data)==null?void 0:(d=c.series)==null?void 0:d[0],f,g,k,m,r,w,x,D;c=a==null?void 0:(f=a.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer)==null?void 0:(m=k.entities)==null?void 0:(r=m[b])==null?void 0:(w=r.selectedSeries)==null?void 0:(x=w[0])==null?void 0:(D=x.datumIndices)==null?void 0:D[0];if(!c){var H,J,O,R,V,ba,oa,ta;c=a==null?void 0:(H=a.state)==null?void 0:(J=H.seriesSelection)==null?void 0:(O=J.byLayer)==
null?void 0:(R=O.entities)==null?void 0:(V=R[b])==null?void 0:(ba=V.hoveredSeries)==null?void 0:(oa=ba[0])==null?void 0:(ta=oa.datumIndices)==null?void 0:ta[0]}if(e&&c&&(f=c.bucketIndex,f!==void 0&&(e=e.data[c.index],k=D5c(a),g=k.xMap,k=k.yMap,g&&k))){e=E5c(e,f,g,k);var ka,Ca,ja,ua;f=(ka=a.state)==null?void 0:(Ca=ka.colorScale)==null?void 0:(ja=Ca.byLayer)==null?void 0:(ua=ja.entities)==null?void 0:ua[b];var xa;a=f?(xa=a.config)==null?void 0:xa.colorStrategy.getColor(0,f):void 0;xa=Object.assign({},
L5c);a&&!Array.isArray(a)&&(xa.strokeStyle=a,xa.filter="invert()");return{drawingOptions:xa,rect:e}}};var N5c=Object.freeze({renderBucketGap:!1}),O5c=Object.freeze({clickSelect:!1,hoverHighlight:!1}),uJ=function(a,b,c,d,e,f,g){KG.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=G5c;this.colorStrategy=V_c;this.layerName="";this.enableManualLatencyTracking=this.skipZeroValues=this.refactorA11yNavInstructions=!1;this.onSelect=new gj;this.dataSubject=new Wj(this.data);this.configSubject=new Wj({colorStrategy:this.colorStrategy,
skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Wj(null);this.maxBucketCount=this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.syncActionsBuffer=this.dataTypeError=null;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(of(0),Gk(this.ngZone));this.defaultColumnMaskGeneratorSubject=new Wj(function(){return[]});this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),
Gk(this.ngZone));this.updateHoverSelectionTriggerSubject=new wf(1);this.updateHoverValuesTriggerSubject=new wf(1);this.stylesInternal=N5c;this.interactionsInternal=O5c;this.layerType="graphic";this.heatmapView=new tJ(a.nativeElement,this.ngZone,f);this.heatmapViewSelected=new M5c(a.nativeElement,this.ngZone,f);this.views.push(this.heatmapView,this.heatmapViewSelected);this.bindDrawInstrumentation()};Y(uJ,KG);uJ.\u0275dir=KG.\u0275dir;h=uJ.prototype;
h.ngOnInit=function(){var a=this;KG.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){P5c(a,b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});eG(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;uG(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;aH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});aH(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(KH({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(JH({chartId:c.chartId,layerId:c.layerId,series:(e==null?void 0:e.series.map(function(m){var r;return{seriesId:m.id,name:(r=m.name)!=null?r:m.id,drawnAs:3,dataSeriesMetadata:m.metadata}}))||
[]})),e?(this.yAxisRequirement=Q5c(e),f.push(MG(this,this.yAxisRequirement)),this.xAxisRequirement=R5c(e),f.push(NG(this,this.xAxisRequirement)),a=S5c(e),a!==this.maxBucketCount&&f.push(T5c(this,a))):f.push(T5c(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));dG(this.chart,f)};h.onResizeChange=function(a,b){zk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){xl(a)&&this.updateGridTriggerSubject.next(b)};h.onColorScaleChange=function(a,b){a=b.scope;var c,d,e=(c=b.state)==null?void 0:(d=c.colorScale)==null?void 0:d.byLayer.entities[a.layerId];if(e&&e.max!==this.maxBucketCount)for(this.maxBucketCount=e.max,c=l(this.views),d=c.next();!d.done;d=c.next())d.value.draw({currentValue:b.data,previousValue:b.data},b)};
h.onXAxisChange=function(a,b){var c=this;(cl(a)||dl(a)||el(a))&&this.updateGridTriggerSubject.next(b);if(oCa(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,m;(f=this.updateTimeSeriesValues((k=a==null?void 0:a.values)!=null?k:null,(m=a==null?void 0:a.timeRange)!=null?m:null,0))&&c.push(f)}return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=LG(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(lH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[]}))})};
h.onClick=function(a){var b=this,c=LG(this,a);this.withLatest(function(d){var e=b.heatmapView.getValuesAtXPosition(d,c.x),f=I5c(b.heatmapView,d,c),g,k,m=b.updateTimeSeriesValues((g=e==null?void 0:e.values)!=null?g:null,(k=e==null?void 0:e.timeRange)!=null?k:null,2,f);m&&b.store.dispatch(m);var r;if((r=b.interactions)==null?0:r.clickSelect){e=H5c(b.heatmapView,d,c);var w,x,D,H,J;f=(w=d.state)==null?void 0:(x=w.seriesSelection)==null?void 0:(D=x.byLayer)==null?void 0:(H=D.entities)==null?void 0:(J=
H[d.scope.layerId])==null?void 0:J.selectedSeries;if(pLa(e,f))b.store.dispatch(kH({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(jH(w));var O,R;if(w.series&&((O=d.data)==null?0:O.series)&&((R=w.series[0].datumIndices)==null?void 0:R[0].bucketIndex)!==void 0){var V,ba,oa;b.onSelect.emit({series:(V=d.data.series)==null?void 0:V[0],bucketIndex:(ba=w.series[0].datumIndices)==null?
void 0:ba[0].bucketIndex,index:(oa=w.series[0].datumIndices)==null?void 0:oa[0].index})}}}})};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var m=e!==null?k.columns[e]:null,r=e!==null?k.columns[e-1]:null;if(a.focusedCell){var w,x=(w=m==null?void 0:m.metadata.timeMs)!=null?w:null,D;w=(D=r==null?void 0:r.metadata.timeMs)!=null?D:null;x!==null&&w!==null&&(x=(x+w)/2);b.store.dispatch(TG({chartGroupId:g.chartGroupId,position:x}));
b.store.dispatch(UG({chartGroupId:g.chartGroupId,locked:!!m}))}d!==null&&e!==null&&(D=k.values[d][e],b.store.dispatch(RG({chartId:g.chartId,lastInteraction:{focus:D.position.x}})),b.store.dispatch(SG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:D.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.generateGrid=function(a){var b=a.data;var c=a.state;if(!b||!c)return null;a=c.xAxis;var d=c.resize;c=c.yAxis;if(!a||!d||!c)return null;var e=fl(a,d.margins.left,d.width-d.margins.right,b.xAxisUnit),f=b.unit,g=c.unit;d=yl(c,d.margins.top,d.height-d.margins.bottom,f);var k=a.tickIncrement||null,m=a.timezoneOffset,r=a.timeZoneId;return e&&d?oLa({data:b,xAxisState:a,yAxisState:c,rowFormatter:jLa(f,g,c.maximumFractionDigits),columnFormatter:function(w){return{label:tl({position:w,tickIncrement:k,timeZone:Pk(m,
r)}),value:w}},valueFormatter:nLa(),positionMap:lLa(e,d)}):null};var P5c=function(a,b){a.withLatest(function(c){var d=H5c(a.heatmapView,c,b);c=lH({chartId:c.scope.chartId,layerId:c.scope.layerId,series:d||[]});a.syncActionsBuffer?a.syncActionsBuffer.push(c):a.store.dispatch(c)})};
uJ.prototype.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.heatmapView.getValuesAtXPosition(c,a.x);c=I5c(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))})};
uJ.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=IH({chartId:f.chartId,layerId:f.layerId,valueType:2,timeKey:c,values:g,timeRange:b!=null?b:void 0})});return e};
var Q5c=function(a){if(!a)return null;for(var b=-Infinity,c=Infinity,d=Infinity,e=l(a.series),f=e.next();!f.done;f=e.next()){f=l(f.value.data);for(var g=f.next();!g.done;g=f.next()){var k=g.value.y,m=k.bucketCounts;g=void 0;if((g=m)==null?0:g.length){var r=zl(k,m.length-1);g=r[1];if(g===Infinity){var w=l(zl(k,m.length-2)),x=w.next().value;w=w.next().value;x!==null&&w!==null?g=w+(w-x)*2:g=r[0]}m.length&&m[0]>0?(m=zl(k,0),r=m[0],r===-Infinity&&(x=l(zl(k,1)),k=x.next().value,x=x.next().value,k!==null&&
x!==null?r=k-(x-k)/2:r=m[1])):(m=zl(k,1),r=m[0]);k=void 0;b=Math.max(b,(k=g)!=null?k:b);g=void 0;c=Math.min(c,(g=r)!=null?g:c);d=Math.min(d,Math.abs(r||m[1]||d))}}}return b===-Infinity||c===Infinity?null:{priority:1,absoluteMin:d,min:c,max:b,unit:a.unit||null}},R5c=function(a){if(!a)return null;var b=-Infinity,c=Infinity,d=!1;a=l(a.series);for(var e=a.next();!e.done;e=a.next())e=e.value.data,e.length!==0&&(d=e[e.length-1],b=Math.max(b,e[0].x.valueOf()),c=Math.min(c,(d.x0||d.x).valueOf()),d=!0);return d?
{priority:1,min:c,max:b,unit:"ms_since_epoch"}:null},S5c=function(a){var b=1;a=l(a.series);for(var c=a.next();!c.done;c=a.next()){c=l(c.value.data);for(var d=c.next();!d.done;d=c.next())d=d.value,d.y&&d.y.bucketCounts&&(b=Math.max(b,Math.max.apply({},d.y.bucketCounts)))}return b};uJ.prototype.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?lFa({ticks:a.ticks,grid:b}):[]:[]};
uJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
uJ.prototype.ngOnChanges=function(a){KG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||gGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(PG(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(PG(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?S5c(this.data):0;b.push(T5c(this,c))}"loading"in a&&b.push(OG(this,this.loading,"Heatmap"));"error"in a&&b.push(PG(this,this.error,
this.hasData()));dG(this.chart,b)};var T5c=function(a,b){return C5c({chartId:a.chartId,layerId:a.layerId,max:b,min:0,colorPivots:a.colorPivots})};uJ.prototype.getLayerTitle=function(){return this.layerName?"Heatmap "+this.layerName:"Heatmap"};uJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),NG(this,null),PG(this,null,!1),OG(this,!1,"Heatmap")])};
da.Object.defineProperties(uJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},N5c,a)},get:function(){return this.stylesInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},O5c,a)},get:function(){return this.interactionsInternal}}});uJ.\u0275fac=function(a){return new (a||uJ)(Ye(Jd),Ye(cG),Ye(qG),Ye($G),Ye(FH),Ye(dH),Ye(Tg))};
uJ.\u0275cmp=C({type:uJ,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,xx],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:[MH,ly],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 U5c=new ed("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new ed("mat-progress-bar-location",{providedIn:"root",factory:function(){var a=p(Uh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}});
var vJ=function(){var a=this;this._elementRef=p(Jd);this._ngZone=p(Tg);this._changeDetectorRef=p(Px);this._renderer=p(fi);this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new gj;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=jsa(),c=p(U5c,{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=vJ.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(vJ.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()}}});vJ.\u0275fac=function(a){return new (a||vJ)};
vJ.\u0275cmp=C({type:vJ,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),zg("mat-"+b.color),yg("_mat-animation-noopable",b._isNoopAnimation)("mdc-linear-progress--animation-ready",!b._isNoopAnimation)("mdc-linear-progress--indeterminate",b._isIndeterminate()))},inputs:{color:"color",
value:[2,"value","value",ch],bufferValue:[2,"bufferValue","bufferValue",ch],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],
template:function(a,b){a&1&&(Tf(0,"div",0),Vf(1,"div",1),F(2,qLa,1,0,"div",2),Uf(),Tf(3,"div",3),Vf(4,"span",4),Uf(),Tf(5,"div",5),Vf(6,"span",4),Uf());a&2&&(B(),xg("flex-basis",b._getBufferBarFlexBasis()),B(),G(b.mode==="buffer"?2:-1),B(),xg("transform",b._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],
encapsulation:2,changeDetection:0});var wJ=function(){};wJ.\u0275fac=function(a){return new (a||wJ)};wJ.\u0275mod=cf({type:wJ});wJ.\u0275inj=Gc({imports:[Zy]});var V5c={fillStyle:"var(--ac-sys-color-chart-primary, #3367D6)",globalAlpha:.1},xJ=function(a){zG.call(this,a)};Y(xJ,zG);xJ.prototype.drawV1=function(a){this.drawInternal(a)};xJ.prototype.onResizeChange=function(a,b){zk(a)&&this.drawInternal(b)};xJ.prototype.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};
xJ.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=fl(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";kl(this.canvas,this.base,a,f);this.ctx.save();il(this.ctx,V5c,
this.base);if(c.paused||typeof c.domains==="boolean"&&c.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,f,a),this.ctx.fill();else if(Array.isArray(c.domains))for(c=l(c.domains),d=c.next();!d.done;d=c.next())e=d.value,d=b(e.start.valueOf()),e=b(e.end.valueOf()),this.ctx.beginPath(),this.ctx.rect(d,0,e-d,a),this.ctx.fill();this.ctx.restore()}}}}else if((c=a.state)==null?0:c.categoricalAxis)if(b=a.data,c=a.state,a=a.config,b&&c&&(c=c.resize)){d=Math.max(0,c.width-c.margins.left-c.margins.right);
e=(a==null?0:a.coverTopMargin)?c.height:Math.max(0,c.height-c.margins.top-c.margins.bottom);this.canvas.style.left=c.margins.left+"px";this.canvas.style.top=((a==null?0:a.coverTopMargin)?0:c.margins.top)+"px";kl(this.canvas,this.base,e,d);this.ctx.save();il(this.ctx,V5c,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 W5c=new cm("Loading {chartTitle}"),yJ=function(a,b,c,d,e){KG.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 Wj({domains:[],paused:!1});this.configSubject=new Wj({coverTopMargin:!1});this.showObservable=this.showSubject=new Wj(!1);this.hasShownForData=!1;this.loadingIndicatorLabel=W5c.format({chartTitle:"chart"});a=new xJ(a.nativeElement);
this.views.push(a);this.ngZoneDataObservable=this.dataObservable.pipe(of(0),Gk(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(yJ,KG);yJ.\u0275dir=KG.\u0275dir;
yJ.prototype.ngOnInit=function(){KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
yJ.prototype.ngOnChanges=function(a){var b=this;KG.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))};
yJ.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()})};
yJ.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=X5c(b==null?void 0:b.sourceToLoadingMap,b==null?void 0:b.sourceToDescriptionMap);if(typeof c==="boolean")this.dataSubject.next({domains:c,paused:a});else{b=[];c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({start:d.start,end:d.end,loadingDescription:d.layerNames});this.dataSubject.next({domains:b,
paused:a})}}else this.dataSubject.next({domains:[],paused:a})};
var X5c=function(a,b){for(var c=[],d=l(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=e.value;var f=a[e];if(typeof f==="boolean"){if(f===!0)return!0}else{e=b[e];f=l(f);for(var g=f.next();!g.done;g=f.next())g=g.value,c.push({start:g[0],end:g[1],layerNames:[e]})}}c.sort(function(k,m){return m.start.getTime()-k.start.getTime()});a=c.pop();for(b=[];c.length!==0;)if(a){if(d=c.pop())a.start.getTime()<=d.start.getTime()&&a.end.getTime()>=d.start.getTime()?a={start:a.start,end:d.end.getTime()>a.end.getTime()?
d.end:a.end,layerNames:Array.from(new Set(a.layerNames.concat(d.layerNames)))}:(b.push(a),a=d)}else a=c.pop();a&&b.push(a);return b};da.Object.defineProperties(yJ.prototype,{chartTitle:{configurable:!0,enumerable:!0,set:function(a){a&&(this.loadingIndicatorLabel=W5c.format({chartTitle:a}))}}});yJ.\u0275fac=function(a){return new (a||yJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(Px),Ye(Tg))};
yJ.\u0275cmp=C({type:yJ,selectors:[["ac-loading"]],hostAttrs:[1,"composable-layer","loading"],inputs:{chartTitle:"chartTitle",showPausedBeforeFirstLoad:"showPausedBeforeFirstLoad",useProgressBar:"useProgressBar",coverTopMargin:"coverTopMargin",showImmediately:"showImmediately"},features:[Gf,xx],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,tLa,3,10,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.showObservable))},dependencies:[vJ,II,fy,ly],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 zJ=function(a,b){zG.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(zJ,zG);var Z5c=function(a,b){return b?Y5c(a,b):[].concat(q(a.renderedContexts))};zJ.prototype.clearWithBackground=function(a,b){jl(this.canvas,a,this.base,void 0,b)};
zJ.prototype.onResizeChange=function(a,b){var c=this;zk(a)&&(a.currentValue!=null&&(this.canvasWidth=a.currentValue.width,this.canvasHeight=a.currentValue.height),Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};
var $5c=function(a,b){if(a==null)return[];var c=[],d=new Map,e=new Map,f=0;a=a.series;if(a.length===0)return[];a.forEach(function(r){if(r.data.length!==0){var w=r.id.toString(),x=r.data[0].y,D=d.get(w);x<=0||isNaN(x)||(f+=x,e.set(w,r),D!==void 0?d.set(w,D+x):d.set(w,x))}});a=l(d);for(var g=a.next();!g.done;g=a.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=e.get(g);if(m==null)throw Error("Pc");c.push({id:g,value:k/f,rawValue:k,ref:m})}b&&c.sort(function(r,w){return r.value-w.value});
return c};zJ.prototype.drawV1=function(a){this.drawInternal(a)};zJ.prototype.onConfigChange=function(a,b){this.drawInternal(b)};zJ.prototype.onColorMapChange=function(a,b){this.drawInternal(b)};
var a6c=function(a,b){var c=b.sliceRadius;var d=b.filledColor;var e=b.startAngle;var f=b.angle;b=b.drawLine;var g=a.centerX,k=a.centerY;a.ctx.save();var m=new Path2D;a.ctx.fillStyle=hl(d,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);a.ctx.beginPath();c=Math.max(c,0);m.moveTo(g,k);m.arc(g,k,c,e,e+f);a.ctx.fill(m);a.ctx.closePath();b&&(a.ctx.beginPath(),a.ctx.strokeStyle=hl("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()};zJ.prototype.updateCanvasSize=function(){xG(this,this.canvas);this.canvas.style.left="0px";this.canvas.style.top="0px";kl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var Y5c=function(a,b){var c=[],d=b.data,e=b.state,f=b.config,g,k=(g=b.state)==null?void 0:g.colorMap;g=f?f.startAngle:0;var m=!(f==null?0:f.useOrderGiven);g+=Math.PI;m=$5c(b.data,m);a=a.defaultSliceRadius;d=!d||!f||!f.colorStrategy.isReady||f.colorStrategy.isReady(d,e);for(e=0;e<m.length;e++){var r=m[e].id;var w=m[e].value,x=void 0,D=void 0,H=f&&d?Pl(f.colorStrategy.getColor(m[e].ref,b.state)):(D=(x=k)==null?void 0:x.colorMap[r])!=null?D:"var(--ac-sys-color-chart-unfilled, #F1F3F4)";D=void 0;x=(D=
k)==null?void 0:D.shapeMap[r];r=2*Math.PI*w;H={sliceRadius:a,filledColor:H,startAngle:g,angle:r,shape:x,drawLine:m.length>1,data:m[e]};g+=r;c.push(H)}return c},b6c=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)},c6c=function(a){var b=b6c(a),c=a.centerX,d=a.centerY;a.defaultSliceRadius>
b&&(a.ctx.save(),a.ctx.beginPath(),a.ctx.fillStyle=hl("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())};
zJ.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=Y5c(this,a);this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null)};var d6c=function(a,b){zJ.call(this,a);this.afterRenderHook=b;this.cachePiePaths=new Map;this.isDonut=!1;this.canvas.className="ac-pie-view__canvas"};
Y(d6c,zJ);
var e6c=function(a,b,c){var d=a.canvas.getBoundingClientRect();b-=d.left;c-=d.top;d=l(a.cachePiePaths);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;var g=f=f.next().value,k=b,m=c;f=g.startAngle;var r=g.startAngle+g.angle,w=a.centerX,x=a.centerY;g=a.defaultSliceRadius;var D=a.isDonut?a.defaultSliceRadius-b6c(a):0;D===void 0&&(D=0);var H=f+(r-f)/2;var J=g*Math.cos(H);H=-g*Math.sin(H);var O=k-w,R=x-m,V=Math.sqrt(J*J+H*H),ba=Math.sqrt(O*O+R*R);J=V===0||ba===0?0:Math.acos((J*O+
H*R)/(V*ba));k=Math.sqrt(Math.pow(k-w,2)+Math.pow(m-x,2));f=(r-f)/2;if((Math.abs(J-f)<=Number.EPSILON||J<=f)&&k<=g&&k>=D)return e}return null},f6c=function(a){return a.renderedContexts.reduce(function(b,c){return b+c.data.rawValue},0)};
d6c.prototype.drawInternal=function(a){zJ.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]),a6c(this,c[b]);c.length===0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=hl("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&&c6c(this);vG(this);var d;(d=this.afterRenderHook)==null||d.call(this)};var g6c=function(a){zJ.call(this,a);this.selectedIds=[];this.hoveredId=null;this.canvas.className="ac-pie-view__selected-canvas"};Y(g6c,zJ);
g6c.prototype.onSeriesSelectionChange=function(a,b){var c,d,e;a=(c=b.state)==null?void 0:(d=c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.hoveredSeries[0];var f,g,k;c=(f=b.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer.entities[b.scope.layerId])==null?void 0:k.selectedSeries;var m;this.hoveredId=(m=a==null?void 0:a.seriesId)!=null?m:null;var r;this.selectedIds=(r=c==null?void 0:c.map(function(w){return w.seriesId}))!=null?r:[];this.hoveredId===
null&&this.selectedIds.length===0?this.canvas.style.display="none":(this.canvas.style.display="block",this.drawInternal(b))};
g6c.prototype.drawInternal=function(a){zJ.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)&&a6c(this,b[d]);a&&c6c(this)}};var h6c=["summaryBodyRef"],i6c=["summaryViewRef"],AJ=function(a,b,c,d){KG.call(this,a,b,c);this.cdRef=d;this.hoveredSlice=new gj;this.selectedSlice=new gj;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 OH;
this.startAngle=0;this.donutThickness="";this.dataSubject=new Wj(null);this.selectedSliceId=null;this.configSubject=new Wj({isDonut:this.isDonut,startAngle:this.startAngle,colorStrategy:this.colorStrategyInternal,useOrderGiven:this.useOrderGiven});this.pieView=new d6c(this.el.nativeElement,this.onPieViewRendered.bind(this));this.selectedPieView=new g6c(this.el.nativeElement);this.views.push(this.pieView);this.views.push(this.selectedPieView)};Y(AJ,KG);AJ.\u0275dir=KG.\u0275dir;
AJ.prototype.onPieViewRendered=function(){j6c(this);k6c(this)};AJ.prototype.onResizeChange=function(){j6c(this)};
var j6c=function(a){if(a.isDonut&&a.summaryBodyRef){var b=a.pieView;b=b.defaultSliceRadius-b6c(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"}}};AJ.prototype.onColorMapChange=function(a,b){var c=b.scope,d=b.data,e=b.state;a=[];if(d&&e&&this.colorRecalculationAttemptsRemaining>0){if(c=QG(this.colorStrategy,c,d,e))a.push(c),this.store.dispatch(c),this.colorRecalculationAttemptsRemaining--;this.store.dispatch(l6c(this,b))}return a};
var m6c=function(a){a=Math.max(a,0);a=Math.min(a,360);return a*Math.PI/180},l6c=function(a,b){var c=b.scope,d=Z5c(a.pieView,b);return JH({chartId:c.chartId,layerId:c.layerId,series:d.map(function(e){return{seriesId:e.data.id,name:e.data.ref.name||e.data.id,shape:e.shape,drawnAs:7,dataSeriesMetadata:e.data.ref.metadata,color:Pl(a.colorStrategy.getColor(e.data.ref,b.state))}})})},k6c=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)&&mBa(b)&&(b=nBa(b));if(b===""||b==="{not_a_unit}")b="1";b&&EBa(b)?(e="Average",f=a.pieView,f=f.renderedContexts.length===0?0:f6c(f)/f.renderedContexts.length):(e="Total",f=f6c(a.pieView));f=GBa(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()},n6c=function(a,b){var c=b.scope;a=Z5c(a.pieView,b);return IH({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}})},o6c=function(a,b){var c=[],d=b.scope,e,f;if(b=(e=b.state)==null?void 0:(f=e.seriesSelection)==null?void 0:
f.byLayer.entities[d.layerId]){e=b.selectedSeries;f=b.hoveredSeries;var g,k=new Set((g=a==null?void 0:a.series.map(function(m){return m.id}))!=null?g:[]);a=e.filter(function(m){return k.has(m.seriesId)});a.length!==e.length&&c.push(jH({chartId:d.chartId,layerId:d.layerId,series:a}));a=f.filter(function(m){return k.has(m.seriesId)});a.length!==f.length&&c.push(lH({chartId:d.chartId,layerId:d.layerId,series:a}))}return c};
AJ.prototype.onDataChange=function(a,b){var c=[];a=a.currentValue;var d=b.scope,e=b.state;e&&a&&(d=QG(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(KH({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(MG(this,{min:0,max:1,unit:d,priority:0}));c.push(l6c(this,b));c.push(n6c(this,b));return c=c.concat(o6c(a,b))};
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){var b=this;KG.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=QG(b.colorStrategy,e,b.data,d))&&c.push(e)});this.configSubject.next({isDonut:this.isDonut,donutThickness:uLa(this.donutThickness),colorStrategy:this.colorStrategy,startAngle:m6c(this.startAngle),useOrderGiven:this.useOrderGiven});"loading"in a&&c.push(OG(this,this.loading,
"Pie"));"error"in a&&c.push(PG(this,this.error,this.hasData()));dG(this.chart,c)};
var p6c=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(jH({chartId:c.chartId,layerId:c.layerId,series:a.selectedSliceId==null?[]:[{seriesId:a.selectedSliceId}]}))})},q6c=function(a,b){a.hoveredSlice.emit(b);a.withLatest(function(c){var d=c.scope;c=lH({chartId:d.chartId,layerId:d.layerId,series:b==null?[]:[{seriesId:b}]});var e=Z5c(a.pieView);d=IH({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))})};
AJ.prototype.onChartMouseMove=function(a){var b=[];this.syncActionsBuffer=[];a=e6c(this.pieView,a.pageX,a.pageY);this.updateHoveredSliceTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};AJ.prototype.onChartMouseClick=function(a){a=e6c(this.pieView,a.pageX,a.pageY);p6c(this,a)};
AJ.prototype.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.updateHoveredSliceTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){q6c(a,b)});eG(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(){q6c(a,
null)})};AJ.prototype.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null)])};da.Object.defineProperties(AJ.prototype,{customizedSummary:{configurable:!0,enumerable:!0,set:function(a){this.internalCustomizedSummary=a;k6c(this)}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new OH},get:function(){return this.colorStrategyInternal}}});AJ.\u0275fac=function(a){return new (a||AJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(Px))};
AJ.\u0275cmp=C({type:AJ,selectors:[["ac-pie"]],viewQuery:function(a,b){a&1&&(jg(h6c,5),jg(i6c,5));if(a&2){var c;ng(c=og())&&(b.summaryBodyRef=c.first);ng(c=og())&&(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,xx],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,yLa,
5,3,"div",2);a&2&&I("ngIf",b.isDonut&&b.showSummary)},dependencies:[fy],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 r6c=["popupContent"],BJ=function(a,b,c,d,e){KG.call(this,a,b,c);this.overlay=d;this.viewContainerRef=e;this.positionStrategy=this.overlay.position().global();this.overlayRef=this.overlay.create(new gi({positionStrategy:this.positionStrategy}))};Y(BJ,KG);BJ.\u0275dir=KG.\u0275dir;h=BJ.prototype;h.ngOnInit=function(){var a=this;KG.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 dA(this.popupContent,this.viewContainerRef))};
h.detachHovercard=function(){this.overlayRef.hasAttached()&&this.overlayRef.detach()};BJ.\u0275fac=function(a){return new (a||BJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(iA),Ye(hg))};
BJ.\u0275cmp=C({type:BJ,selectors:[["ac-popup-card"]],viewQuery:function(a,b){a&1&&jg(r6c,5);if(a&2){var c;ng(c=og())&&(b.popupContent=c.first)}},hostAttrs:[1,"composable-layer","ac-popup-card"],features:[Ig([{provide:KG,useExisting:BJ}]),Gf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["popupContent",""],[1,"ac-popup-container"]],template:function(a){a&1&&(eg(),If(0,zLa,2,0,"ng-template",null,0,Og))},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}div.ac-popup-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--ac-sys-color-extensions-surface, #fff);opacity:.9;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}/*# sourceMappingURL=ac_popup_card.css.map */"],
changeDetection:0});var s6c=[-Infinity,Infinity],t6c=Number("0x60")/255,u6c={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"},v6c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},CJ=function(a,b){zG.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("Fc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(CJ,zG);h=CJ.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){cl(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;zk(a)&&(Ak(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),AG(this,b,this.canvas,this.ctx),AG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=window.setTimeout(function(){xG(c,c.canvas);xG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){xl(a)&&this.drawInternal(b)};
h.onSeriesSelectionChange=function(a,b){DCa(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=gl(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null};h.getValuesAtXPosition=function(a,b,c){a=this.unpackForGetValues(a);return a?(b=a.inverseDomainMap(b))?Nl(a.data,b==null?void 0:b.valueOf(),a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null:null};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d)return null;var e=d.width,f=d.height,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left;d=d.width-d.margins.right;return{isColorMapReady:!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c),bounds:{top:g,right:d,bottom:k,left:m},canvasWidth:e,canvasHeight:f,bodyTop:g,bodyBottom:k,bodyLeft:m,bodyRight:d,bodyWidth:d-m,bodyHeight:k-g}};
h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=this.unpackForClearing(a),d=a.scope,e=a.data,f=a.state,g=a.config;if(!f||!g||!c)return null;var k=c.bodyTop,m=c.bodyBottom,r=c.bodyLeft,w=c.bodyRight;a=f.xAxis;var x=f.yAxis,D=f.seriesSelection,H=f.brush,J=f.lastInteraction;if(!(a&&D&&x&&H))return null;var O=e?e.unit:null,R=yl(x,k,m,O),V=fl(a,r,w,e==null?void 0:e.xAxisUnit),ba=gl(a,r,w,e==null?void 0:e.xAxisUnit);if(a.min===null||a.max===null||!V||!R||!ba)return null;var oa=(d=D.byLayer.entities[d.layerId])?
d.selectedSeries.map(function(qc){return qc.seriesId}):[],ta=d?d.hoveredSeries.map(function(qc){return qc.seriesId}):[],ka=Object.values(D.byLayer.entities).filter(function(qc){return!!qc}).some(function(qc){return qc.selectedSeries.length||qc.hoveredSeries.length}),Ca=function(qc){var sb=qc.x,Ob=qc.y0,ib=qc.y1;if(Ob==null||ib==null)throw Error("Qc`"+JSON.stringify(qc));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:m,bodyLeft:r,bodyRight:w,dataUnit:O};if(!ALa(d,this.dataMapping)||BLa(e,this.cachedRawData)){this.dataMapping=d;this.cachedRawData=e;var ja,ua;this.cachedMappedData=(ua=e==null?void 0:(ja=e.series)==null?void 0:ja.map(function(qc){return{data:qc.data.map(Ca),id:qc.id}}))!=null?ua:null}ja=this.cachedMappedData;ua=g.colorStrategy.getShape?function(qc){var sb,Ob;return b.shouldShowShape((sb=g.clickDotInteraction)!=null?sb:!1,ka,oa.includes(qc.id),
ta.includes(qc.id),(Ob=g.multiselectMode)!=null?Ob:!1)?g.colorStrategy.getShape(qc,f):""}:null;var xa,Ra,$a,pb=($a=J==null?void 0:(xa=J.domain)==null?void 0:xa.multiselectAnchor)!=null?$a:J==null?void 0:(Ra=J.domain)==null?void 0:Ra.click,Yb,lc=J==null?void 0:(Yb=J.domain)==null?void 0:Yb.hover,fc;return Object.assign({},c,{data:e,mappedData:ja,config:g,colorMap:function(qc){return Pl(g.colorStrategy.getColor(qc,f))},shapeMap:ua,shapeStateMap:function(qc){if(g.clickDotInteraction&&pb&&oa.includes(qc.id)){var sb=
Jl(qc.data||[],ba(pb),null,!0);return{position:qc.data[sb],lineSelectedStatus:1}}return g.clickDotInteraction&&lc&&ta.includes(qc.id)&&!g.multiselectMode?(sb=Jl(qc.data||[],ba(lc),null,!0),{position:qc.data[sb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:g.colorStrategy.shapeBoundingBox,dataMap:Ca,inverseDomainMap:ba,selectedSeriesIds:oa,hoveredSeriesIds:ta,anySeriesSelectedOrHovered:ka,brushing:H.brushing||!1,xAxisMin:a.min,xAxisMax:a.max,clickDotInteraction:(fc=
g.clickDotInteraction)!=null?fc:!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";kl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";kl(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({},u6c,{globalAlpha:e?.15:1});this.shapeCtx.globalAlpha=e?.15:1;var f;e=(f=
a.data)==null?void 0:f.series;if(e==null?0:e.length){if(f=a.shapeMap){for(var g=new Set,k=l(e),m=k.next();!m.done;m=k.next())g.add(f(m.value));e.length>g.size&&(f=null)}this.drawLines(e,a.dataMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,c,d,a.clickDotInteraction)}wG(this,a.xAxisMin,a.xAxisMax);a=performance.now();this.enableManualLatencyTracking&&vG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w){this.ctx.save();il(this.ctx,r,this.base);il(this.shapeCtx,v6c,this.base);a=l(a);for(r=a.next();!r.done;r=a.next()){r=r.value;var x=c(r),D=d&&d(r),H=e&&e(r);switch(k.pointConnectionMethod){case "always":this.drawLineAlwaysConnect(r,b,x,D,H,f,g,m,k.lineInterpolationMethod,w);break;case "zero_fill":this.drawLineZeroFill(r,b,x,D,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,m,k.lineInterpolationMethod,w);break;case "never":throw Error("Rc");default:this.drawLineGapDetection(r,
b,x,D,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,m,k.lineInterpolationMethod,w)}}this.ctx.restore()};
h.drawLineGapDetection=function(a,b,c,d,e,f,g,k,m,r,w,x){k=k!=null?k:Infinity;var D=m;k=k===void 0?Infinity:k;D=D===void 0?!1:D;var H=a.shiftedData;m=DLa(a.data,k,D);k=H&&DLa(H,k,D);k=k===void 0?[]:k;D=w6c(m,b,g);for(H=0;H<m.length;H++)this.drawLineAlwaysConnect(Object.assign({},a,{data:m[H]}),b,c,D===H?d:null,e,f,g,r,w,x);m=w6c(k,b,g);for(D=0;D<k.length;D++)this.drawLineAlwaysConnect(Object.assign({},a,{shiftedData:k[D]}),b,c,m===D?d:null,e,f,g,r,w,x)};
h.drawLineAlwaysConnect=function(a,b,c,d,e,f,g,k,m,r){this.drawLineZeroFill(a,b,c,d,e,f,g,Infinity,!1,k,m,r)};
h.drawLineZeroFill=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=D===void 0?{}:D;a=a.data;if(a.length){k=k||Infinity;this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=hl(c,this.base);var H=this.ctx,J=hl(c,this.base);H.fillStyle=typeof J!=="string"?J:J.startsWith("#")&&J.length===7?J+"60":J.startsWith("rgb(")?"rgba("+J.substring(4,J.length-1)+", "+t6c+")":J;this.shapeCtx.fillStyle=hl(c,this.base);this.ctx.clip(r.line);var O=null;J=H=void 0;for(var R=0;R<a.length;R++){var V=a[R-1],ba=a[R],oa=l(ll(b(ba),
D.lineWidth));c=oa.next().value;oa.next();var ta=oa.next().value;oa=c;var ka=void 0;c=(ka=ba.tileDomain)!=null?ka:s6c;if(CLa(O,c)){if(V&&Kl(k,V,ba,m).gapDetected)for(O=new Date(V.x.valueOf()+k),ka={x:O,y:0,y0:0,y1:0};O<ba.x;O.setMilliseconds(O.getMilliseconds()+k)){var Ca=l(ll(b(ka),D.lineWidth)),ja=Ca.next().value;Ca=Ca.next().value;this.ctx.lineTo(ja,Ca);J=nl(J,ja,Ca,H,g);H={x:ja,y:Ca}}switch(w){case "linear":this.ctx.lineTo(oa,ta);break;case "step-before":case "step-after":V&&(V=l(ll(b(V),D.lineWidth)),
O=V.next().value,V.next(),V=V.next().value,w==="step-before"?this.ctx.lineTo(O,ta):this.ctx.lineTo(oa,V));this.ctx.lineTo(oa,ta);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}J=nl(J,oa,ta,H,g)}else this.ctx.moveTo(oa,ta);H={x:oa,y:ta};O=c}this.ctx.stroke();x&&d&&e.position&&e.lineSelectedStatus!==0?this.drawShapeWithinBounds(b(e.position)[0],b(e.position)[2],g,d,f,e.lineSelectedStatus,x):this.drawShapeOrInterpolate(J,g,d,f,e.lineSelectedStatus,x);this.ctx.clip(r.area);
for(d=a.length-1;d>=0;d--){g=a[d+1];r=a[d];e=l(ll(b(r),D.lineWidth));c=e.next().value;f=e.next().value;e=c;x=void 0;c=(x=r.tileDomain)!=null?x:s6c;if(CLa(O,c,!0)){if(g&&Kl(k,g,r,m).gapDetected)for(x=new Date(g.x.valueOf()-k),H={x:x,y:0,y0:0,y1:0};x>r.x;x.setMilliseconds(x.getMilliseconds()-k))R=l(ll(b(H),D.lineWidth)),J=R.next().value,R=R.next().value,this.ctx.lineTo(J,R);switch(w){case "linear":this.ctx.lineTo(e,f);break;case "step-before":case "step-after":g&&(r=l(ll(b(g),D.lineWidth)),g=r.next().value,
r=r.next().value,w==="step-before"?this.ctx.lineTo(e,r):this.ctx.lineTo(g,f));this.ctx.lineTo(e,f);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}}else this.ctx.moveTo(e,f);O=c}this.ctx.fill();this.ctx.restore()}};
var x6c=function(a,b,c){a=a.unpackForDrawing(b);if(a==null||!a.data||a==null||!a.mappedData)return null;var d=a.config;b=d.outputPeriodMs;d=d.useLegacyGapDetection;for(var e=a.inverseDomainMap(c.x).valueOf(),f=0;f<a.data.series.length;f++){var g=a.data.series[f],k=a.mappedData[f].data,m=Hl(g.data,e,Il(b)),r=m+1,w=g.data[m],x=g.data[r];if(x&&(!b||!Kl(b,w,x,d).gapDetected)){x=l(k[m]);m=x.next().value;w=x.next().value;x=x.next().value;r=l(k[r]);var D=r.next().value;k=r.next().value;r=r.next().value;
k=al(m,D,w,k,c.x);if(al(m,D,x,r,c.x)<c.y&&c.y<k)return g.id}}return null};CJ.prototype.getSeriesIdsBetween=function(a,b,c){var d=this.unpackForDrawing(a);if(d==null||!d.data)return null;b=l([b,c].map(function(e){return d.data.series.findIndex(function(f){return f.id===e})}).sort(function(e,f){return e-f}));a=b.next().value;b=b.next().value;return d.data.series.slice(a,b+1).map(function(e){return e.id})};
var w6c=function(a,b,c){for(var d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.length){var k=b(g[0]),m=g[g.length-1]?b(g[g.length-1]):null;if(g.some(function(w){var x=l(b(w));w=x.next().value;x=x.next().value;return w<c.left-1||w>c.right+1||x<c.top-1||x>c.bottom+1?!1:!0})){var r=g=void 0;k=Math.max(k[0],(r=(g=m)==null?void 0:g[0])!=null?r:-Infinity);if(d===null||e===null||k>e)d=f,e=k}}}return d};
CJ.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=xCa(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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=hl("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=hl("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=hl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=hl("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};CJ.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)};
CJ.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=bl(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=b.top,g=bl(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=b.bottom,g=bl(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)}};CJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var y6c=Object.assign({},u6c,{lineWidth:1.75}),z6c=function(){CJ.apply(this,arguments)};Y(z6c,CJ);z6c.prototype.onSeriesSelectionChange=function(a,b){rl(a,b.scope.layerId)&&this.drawInternal(b)};
z6c.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,y6c,a.clickDotInteraction);wG(this,a.xAxisMin,a.xAxisMax)}};var A6c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},DJ=function(a,b,c,d,e,f,g,k){KG.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 OH;this.layerName="";this.enableManualLatencyTracking=
this.useLegacyGapDetection=!1;this.onSelect=new gj;this.onHover=new gj;this.onHoverEnd=new gj;this.closestLineId=null;var m;this.configSubject=new Wj({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(m=this.interactions)==null?void 0:m.clickDot,multiselectMode:!1});this.dataSubject=new Wj(null);this.updateGridTriggerSubject=
new sf;this.gridGeneratorSubject=new Wj(null);this.defaultColumnMaskGeneratorSubject=new Wj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=A6c;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),Gk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),Gk(this.ngZone));this.layerType="graphic";this.stackedAreaView=new CJ(this.el.nativeElement,g);this.views.push(this.stackedAreaView);this.views.push(new z6c(a.nativeElement));this.bindDrawInstrumentation()};Y(DJ,KG);DJ.\u0275dir=KG.\u0275dir;h=DJ.prototype;
h.ngOnInit=function(){var a=this;KG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b&&QKa(b)}),A(function(b){return b?Object.assign({},b,{version:a.nextVersion++}):null}),Jla(),Tha()),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)});eG(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){KG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||fGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(PG(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(PG(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(OG(this,this.loading,"Stacked Area"));"error"in a&&b.push(PG(this,this.error,this.hasData()));dG(this.chart,b)};
h.bindDrawInstrumentation=function(){var a=this;uG(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;aH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});aH(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=KBa(e);if(d!==e){if(g==null?0:g.xAxis)(a=Xk(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=NBa(a)),Yk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,k.push(MG(this,this.yAxisRequirement)));this.xAxisRequirement=LBa(e);k.push(NG(this,this.xAxisRequirement));
k=k.concat(B6c(this,f,e));if(g&&e){if(a=QG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){(R=R.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,R))});(a=this.updateMostRecentValues(b))&&k.push(a)}var m;if(a=g==null?void 0:(m=g.seriesSelection)==null?void 0:m.byLayer.entities[f.layerId]){m=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=m.filter(function(R){return w.has(R.seriesId)});
r.length!==m.length&&k.push(jH({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(R){return w.has(R.seriesId)});if(r.length!==a.length){var x,D,H=g==null?void 0:(x=g.lastInteraction)==null?void 0:(D=x.domain)==null?void 0:D.hover;H&&(r=r.map(function(R){var V,ba,oa=(g==null?0:(V=g.lastInteraction)==null?0:(ba=V.domain)==null?0:ba.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:oa})}));k.push(lH({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){zk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){xl(a)&&this.updateGridTriggerSubject.next(b)};
var B6c=function(a,b,c){return[KH({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}),JH({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=DJ.prototype;
h.onXAxisChange=function(a,b){var c=this,d=[];if(cl(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Xk(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=NBa(e)),Yk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(MG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(cl(a)||dl(a)||el(a))&&this.updateGridTriggerSubject.next(b);if(oCa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(m){k=m&&m()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.stackedAreaView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null,this.hoverRadiusMs);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=[],e=b.scope,f=b.data;a=b.state;f&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=QG(this.colorStrategy,e,f,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&d.push(c.createSetSeriesColorMetadataAction(e,f,g))}));return d};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var m=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(jH({chartId:g.chartId,layerId:g.layerId,series:m?[{seriesId:m.metadata.seriesId}]:[]})),b.store.dispatch(TG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),b.store.dispatch(UG({chartGroupId:g.chartGroupId,
locked:!!r})));b.store.dispatch(lH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(RG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(SG({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)?gl(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Jl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?x6c(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}]:[];ql(e,g)&&(d=lH({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=LG(this,a),d=!1;this.withLatest(function(e){var f=e.config,g=e.scope,k=e.state,m=e.data;if(k&&m){var r=k.seriesSelection,w=k.resize;if(r&&w&&eGa(c,w)){var x=x6c(b.stackedAreaView,e,c);r=(r=r.byLayer.entities[g.layerId])?r.selectedSeries.map(function(J){return J.seriesId}):[];if(x&&(m=m.series.find(function(J){return J.id===x}))){if(f){var D,H;m.color=(H=(D=f.colorStrategy)==null?void 0:D.getColor(m,k))!=null?H:void 0}b.onSelect.emit(m)}b.interactions.clickSelect&&
(f=[],k=Fl.ve.LineDeselectToggle,x&&(r.length===1&&r.includes(x)?(f=[],k=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&r.length>0?(f=b.stackedAreaView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,c.x)||f,k=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=r.includes(x)?r.filter(function(J){return J!==x}):[].concat(q(r),[x]),k=Fl.ve.LineSpecificSelectToggle):(f=[x],k=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=x,f.length===0&&b.store.dispatch(RG({chartId:g.chartId,
lastInteraction:{multiselectAnchor:null}})),r.length===0&&f.length===1&&(d=!0,b.store.dispatch(RG({chartId:g.chartId,lastInteraction:{multiselectAnchor:c.x}}))),b.store.dispatch(jH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:f.map(function(J){return{seriesId:J}})})),Cl(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 C6c=function(a,b){var c=LG(a,b);a.withLatest(function(d){var e=d.config,f=d.state,g=d.data;if(f&&g&&(d=x6c(a.stackedAreaView,d,c),d!==a.closestLineId))if(a.closestLineId=d,a.closestLineId){if(g=g.series.find(function(r){return r.id===a.closestLineId})){if(e){var k,m;g.color=(m=(k=e.colorStrategy)==null?void 0:k.getColor(g,f))!=null?m:""}a.onHover.emit(g)}}else a.onHoverEnd.emit()})};h=DJ.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=LG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(c);this.updateHoverValuesTriggerSubject.next(c);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;C6c(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=fl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=yl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return tFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:qFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:tl({position:R,tickIncrement:r,timeZone:Pk(w,x)}),value:R}},valueFormatter:oFa(g,k),positionMap:sFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?lFa({ticks:a.ticks,grid:b}):[]:[]};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.stackedAreaView.getValuesAtXPosition(c,a.x,b.hoverRadiusMs);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,m){m=m.data;var r=Hl(m,f,Il(d.outputPeriodMs));return(m=m[r])&&(k===null||Math.abs(f-m.x.valueOf())<Math.abs(f-k))?m.x.valueOf():k},null);c=3E5;d.outputPeriodMs&&d.outputPeriodMs<=c&&(c=void 0);return(a=this.stackedAreaView.getValuesAtTime(a,b!=null?b:f))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=IH({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 JH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:1,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};h.getLayerTitle=function(){return this.layerName?"Stacked Area "+this.layerName:"Stacked Area"};
h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null),NG(this,null),OG(this,!1,"Stacked Area"),PG(this,null,!1),kH({chartId:this.chartId,layerId:this.layerId})])};h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(DJ.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},A6c,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 ul?this.isMetaKeyDown:this.isCtrlKeyDown}}});DJ.\u0275fac=function(a){return new (a||DJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(FH),Ye(Fl),Ye($G),Ye(dH),Ye(Tg))};
DJ.\u0275cmp=C({type:DJ,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,xx],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:[MH,ly],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 D6c=[4,4],E6c={globalAlpha:1,lineWidth:2,lineCap:"square",font:'10px "Roboto", sans-serif'},F6c=function(a){zG.call(this,a)};Y(F6c,zG);h=F6c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onSeriesSelectionChange=function(a,b){var c;rl(a)&&((c=b.data)==null?0:c.relatedSeriesId)&&this.drawInternal(b)};h.onResizeChange=function(a,b){zk(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;(xl(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",kl(this.canvas,this.base,b.canvasHeight,b.canvasWidth),b.threshold||b.threshold===0)){this.ctx.save();il(this.ctx,Object.assign({},E6c,{globalAlpha:b.alpha}),this.base);this.ctx.fillStyle=hl(b.color,this.base);this.ctx.strokeStyle=hl(b.color,this.base);this.ctx.setLineDash(D6c);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=hl("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=yl(e,0,d.height-d.margins.top-d.margins.bottom,(b==null?0:b.unit)?b.unit:null);if(!k)return null;var m,r=(m=a.valueFormatter)!=null?m:Wk;m="";b&&(b.label!==void 0?m=b.label:(m=Uk(b.unit,e.unit,b.threshold),m=m!==null?r(m,e.unit||"1",{maximumFractionDigits:9},e.min!==null&&e.max!==null&&e.unit!==null?{domain:{min:e.min,max:e.max,unit:e.unit}}:void 0):
r(b.threshold,b.unit||e.unit||"1")));r=k(b?b.threshold:0)+d.margins.top;var w=f-d.margins.right;k=ll([d.margins.left,r],E6c.lineWidth);r=ll([w,r],E6c.lineWidth);return{color:a.color,labelPosition:a.labelPosition,label:m,threshold:b==null?void 0:b.threshold,lineStart:k,lineEnd:r,canvasWidth:f,canvasHeight:g,yAxisPosition:e.position,marginWidth:e.position==="left"?d.margins.left:d.margins.right,alpha:G6c(b,c)}};
var G6c=function(a,b){var c=[];if(a==null?0:a.relatedSeriesId){var d,e=l(((d=b.seriesSelection)==null?void 0:d.byLayer.ids)||[]);for(d=e.next();!d.done;d=e.next()){d=d.value;var f=void 0,g=void 0,k=void 0,m=void 0;c=c.concat(((f=b.seriesSelection)==null?void 0:(g=f.byLayer.entities[d])==null?void 0:g.hoveredSeries.map(function(r){return r.seriesId}))||[],((k=b.seriesSelection)==null?void 0:(m=k.byLayer.entities[d])==null?void 0:m.selectedSeries.map(function(r){return r.seriesId}))||[])}}return c.length===
0||c.some(function(r){return r===(a==null?void 0:a.relatedSeriesId)})?1:.15};var H6c=0,EJ=function(a,b,c,d){KG.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-"+H6c++;this.dataSubject=new Wj(this.data);this.configSubject=new Wj({color:this.color,labelPosition:this.labelPosition});this.yAxisRequirement=null;this.thresholdLineView=new F6c(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(EJ,KG);EJ.\u0275dir=KG.\u0275dir;h=EJ.prototype;h.ngOnInit=function(){KG.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(JH({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(MG(this,this.yAxisRequirement));d.push(KH({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(JH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:a?[{seriesId:this.seriesId,name:a.label||"Threshold",color:b.config.color,
drawnAs:6}]:[]}));if(a){b=l([1,0,2]);for(var e=b.next();!e.done;e=b.next())d.push(IH({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){KG.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);("color"in a||"labelPosition"in a)&&this.updateConfig()};h.ngOnDestroy=function(){KG.prototype.ngOnDestroy.call(this);dG(this.chart,[MG(this,null)])};
h.updateConfig=function(){this.configSubject.next({color:this.color,labelPosition:this.labelPosition,valueFormatter:this.valueFormatter})};EJ.\u0275fac=function(a){return new (a||EJ)(Ye(Jd),Ye(cG),Ye(qG),Ye(pG))};
EJ.\u0275cmp=C({type:EJ,selectors:[["ac-threshold-line"]],hostAttrs:[1,"composable-layer","ac-threshold-line"],inputs:{data:"data",color:"color",labelPosition:"labelPosition"},features:[Gf,xx],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 I6c=Gw(['<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>']),J6c=uh(I6c).firstElementChild;var K6c=Gw(['<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>']),L6c=uh(K6c).firstElementChild;var M6c=Gw(['<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>']),N6c=uh(M6c).firstElementChild;var O6c=Gw(['<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>']),P6c=uh(O6c).firstElementChild;var Q6c=Gw(['<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>']),R6c=uh(Q6c).firstElementChild;var S6c=Gw(['<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>']),T6c=uh(S6c).firstElementChild;var U6c=Gw(['<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>']),V6c=uh(U6c).firstElementChild;var W6c=Gw(['<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>']),X6c=uh(W6c).firstElementChild;var Y6c=Gw(['<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>']),Z6c=uh(Y6c).firstElementChild;var $6c=Gw(['<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>']),a7c=uh($6c).firstElementChild;var b7c=Gw(['<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>']),c7c=uh(b7c).firstElementChild;var d7c=Gw(['<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>']),e7c=uh(d7c).firstElementChild;var f7c=Gw(['<svg data-icon-name="filterListIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>']),g7c=uh(f7c).firstElementChild;var h7c=Gw(['<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>']),i7c=uh(h7c).firstElementChild;var j7c=Gw(['<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>']),k7c=uh(j7c).firstElementChild;var l7c=Gw(['<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>']),m7c=uh(l7c).firstElementChild;var n7c=Gw(['<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>']),o7c=uh(n7c).firstElementChild;var p7c=Gw(['<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>']),q7c=uh(p7c).firstElementChild;var r7c=Gw(['<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>']),s7c=uh(r7c).firstElementChild;var t7c=Gw(['<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>']),u7c=uh(t7c).firstElementChild;var v7c=Gw(['<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>']),w7c=uh(v7c).firstElementChild;var x7c=Gw(['<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>']),y7c=uh(x7c).firstElementChild;var z7c=Gw(['<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>']),A7c=uh(z7c).firstElementChild;var B7c=Gw(['<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>']),C7c=uh(B7c).firstElementChild;var D7c=Gw(['<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>']),E7c=uh(D7c).firstElementChild;var F7c=Gw(['<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>']),G7c=uh(F7c).firstElementChild;var H7c=Gw(['<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>']),I7c=uh(H7c).firstElementChild;var J7c=Gw(['<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>']),K7c=uh(J7c).firstElementChild;var L7c=Gw(['<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>']),M7c=uh(L7c).firstElementChild;var N7c=Gw(['<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>']),O7c=uh(N7c).firstElementChild;var P7c=Gw(['<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>']),
Q7c=uh(P7c).firstElementChild;var R7c=Gw(['<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>']),
S7c=uh(R7c).firstElementChild;var T7c=Gw(['<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>']),U7c=uh(T7c).firstElementChild;var V7c=Gw(['<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>']),W7c=uh(V7c).firstElementChild;var X7c=Gw(['<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>']),Y7c=uh(X7c).firstElementChild;var Z7c=Gw(['<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>']),$7c=uh(Z7c).firstElementChild;var a8c=Gw(['<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>']),b8c=uh(a8c).firstElementChild;var c8c=Gw(['<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>']),d8c=uh(c8c).firstElementChild;var e8c=Gw(['<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>']),f8c=uh(e8c).firstElementChild;var FJ=function(a){this.mdIconRegistry=a;a=l(Object.entries(g8c));for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;var d=c.next().value;c=this.mdIconRegistry;var e=document.createElement("span");e.appendChild(d);d=(new XMLSerializer).serializeToString(e);d=d.slice(d.indexOf(">")+1,d.lastIndexOf("</"));d=rh(d);e=c._sanitizer.sanitize(1,d);if(!e)throw Error("Ta`"+d);d=vra(e);c._addSvgIconConfig("ac",b,new XDc("",d))}};FJ.\u0275fac=function(a){return new (a||FJ)(Zc(Xy))};
FJ.\u0275mod=cf({type:FJ});FJ.\u0275inj=Gc({});
var g8c={alert:J6c,arrow_drop_down:L6c,arrow_right:N6c,baseline_calendar_today_24px:P6c,call_made:R6c,call_received:T6c,check_circle:V6c,clear:X6c,close:Z6c,code:a7c,copy_file:c7c,error:e7c,filter_list:g7c,filter_small:i7c,help_outline:k7c,highlight_off:m7c,info:o7c,info_active:q7c,keyboard_arrow_down:s7c,keyboard_arrow_up:u7c,lens:w7c,lightbulb:y7c,list:A7c,more_vert:C7c,music_note:E7c,music_off:G7c,offline_bolt:I7c,open_in_new:K7c,pin_outline:M7c,play_arrow:O7c,query_stats:Q7c,selected_series:S7c,
subtitle_down_chevron:U7c,subtitle_left_chevron:W7c,time_pin_set:Y7c,time_pin_unset:$7c,view_column:b8c,warning:d8c,zoom_out:f8c};var GJ=em({selectId:MAa}),h8c=mk(GJ.getInitialState({}),lk(NF,NAa(GJ,rG)),lk(wUc,OAa(GJ)),lk(PF,Kk(GJ,rG)),lk(NYc,function(a,b){var c=b.chartGroupId;return GJ.upsertOne(Object.assign({},a.entities[c]||rG,{chartGroupId:c,axis:0,brushing:!0,xPos:b.position,xPosStart:b.positionStart,panning:!1}),a)}),lk(OYc,function(a,b){b=b.chartGroupId;return GJ.upsertOne(Object.assign({},a.entities[b]||rG,{chartGroupId:b,axis:0,brushing:!1,xPos:null,xPosStart:null,panning:!1}),a)}),lk(PYc,function(a,b){var c=b.chartGroupId;
return GJ.upsertOne(Object.assign({},a.entities[c]||rG,{chartGroupId:c,xPos:b.position}),a)}),lk(QYc,function(a,b){b=b.chartGroupId;return GJ.upsertOne(Object.assign({},a.entities[b]||rG,{chartGroupId:b,axis:0,brushing:!1,panning:!0}),a)}),lk(RYc,function(a,b){b=b.chartGroupId;return GJ.upsertOne(Object.assign({},a.entities[b]||rG,{chartGroupId:b,axis:0,brushing:!1,panning:!1}),a)}),lk(SYc,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:GJ.upsertOne(Object.assign({},f||rG,{chartGroupId:c,axis:1,brushing:!0,yAxes:(f?f.yAxes:[]).concat([{chartId:d,yAxisId:e,yPos:b.position,yPosStart:b.positionStart}]),chartId:d}),a)}),lk(TYc,function(a,b){var c=b.chartGroupId;b=b.chartId;var d=a.entities[c];return!d||d.chartId&&d.chartId===b?GJ.upsertOne(Object.assign({},d||rG,{chartGroupId:c,axis:0,brushing:!1,yAxes:[],chartId:null}),a):a}),lk(UYc,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 GJ.upsertOne(Object.assign({},b||rG,{chartGroupId:c,yAxes:g.concat(f)}),a)})),ILa=ok(h8c);var i8c={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],categories:void 0};var HJ=em({selectId:RAa}),j8c=mk(HJ.getInitialState({}),lk(PF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=l(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=HJ.mapOne({id:String(g),map:function(m){return Object.assign({},m,{chartId:e})}},b))}return b}),lk(zUc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Nk(c,d,b)]?a:HJ.addOne(Object.assign({},
i8c,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),lk(AUc,function(a,b){return HJ.removeOne(Nk(b.chartGroupId,b.chartId,b.xAxisId),a)}),lk(HXc,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[Nk(c,d,e)],k=[];k=g?(f?g.requirements.filter(function(m){return m.id===void 0||m.id!==f}):g.requirements).concat([b]):[b];return HJ.upsertOne(Object.assign({},g||i8c,{chartGroupId:c,chartId:d,xAxisId:e,requirements:k}),a)}),lk(IXc,function(a,
b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b=Nk(c,d,e);c=a.entities[b];if(!c||!c.requirements)return a;var g,k;c=(k=(g=c.requirements)==null?void 0:g.filter(function(m){return m.id!==f}))!=null?k:[];return HJ.updateOne({id:b,changes:{requirements:c}},a)}),lk(JXc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return HJ.upsertOne(Object.assign({},a.entities[Nk(c,d,e)]||i8c,{chartGroupId:c,chartId:d,xAxisId:e,gutterRatio:b.gutterRatio}),a)})),KLa=ok(j8c);var k8c={chartId:"",projectId:void 0,yAxisOrientation:"vertical"};var l8c=em({selectId:Hk}),m8c=mk(l8c.getInitialState(),lk(PF,Kk(l8c,k8c)),lk(TWc,function(a,b){var c=b.chartId;b=b.projectId;var d;return l8c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:k8c,{chartId:c,projectId:b}),a)}),lk(UWc,function(a,b){var c=b.chartId;b=b.yAxisOrientation;var d;return l8c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:k8c,{chartId:c,yAxisOrientation:b}),a)})),MLa=ok(m8c);var n8c={layerId:"",order:0,colorMap:{},shapeMap:{}},o8c={chartId:"",byLayer:{ids:[],entities:{}},colorMap:{},shapeMap:{}};var IJ=em({selectId:Hk}),p8c=em({selectId:Lk}),q8c=mk(IJ.getInitialState({}),lk(NF,Ik(IJ,o8c)),lk(OF,Jk(IJ)),lk(PF,Kk(IJ,o8c)),lk(QF,LAa(IJ,p8c)),lk(PXc,function(a,b){var c=b.chartId;var d=b.layerId;var e=a.entities[c]||o8c;b=p8c.upsertOne(Object.assign({},e.byLayer.entities[d]||n8c,{layerId:d,order:b.order,colorMap:b.colorMap,shapeMap:b.shapeMap}),e.byLayer);d={};for(var f={},g=l(Object.values(b.entities)),k=g.next();!k.done;k=g.next())if(k=k.value){for(var m=l(Object.entries(k.colorMap)),r=m.next();!r.done;r=
m.next()){var w=l(r.value);r=w.next().value;w=w.next().value;d[r]=w}k=l(Object.entries(k.shapeMap));for(m=k.next();!m.done;m=k.next())r=l(m.value),m=r.next().value,r=r.next().value,f[m]=r}return IJ.upsertOne(Object.assign({},e,{chartId:c,byLayer:b,colorMap:d,shapeMap:f}),a)})),OLa=ok(q8c);var r8c={chartId:"",byLayer:{ids:[],entities:{}}},s8c={layerId:"",min:0,max:1,colorPivots:[]};var JJ=em({selectId:Hk}),t8c=em({selectId:Lk}),u8c=function(a){return Object.assign({},r8c,{chartId:a||"",byLayer:t8c.getInitialState({})})},v8c=mk(JJ.getInitialState({}),lk(NF,Ik(JJ,u8c())),lk(OF,Jk(JJ)),lk(PF,Kk(JJ,u8c())),lk(QF,LAa(JJ,t8c,u8c())),lk(C5c,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=u8c(c));(c=g.byLayer.entities[d])||(c=Object.assign({},s8c,{layerId:d,min:0,max:1,colorPivots:[]}));d=g;e=Object.assign({},c,{min:e,
max:f,colorPivots:b});e=Object.assign({},d,{byLayer:t8c.upsertOne(e,d.byLayer)});return JJ.upsertOne(e,a)})),QLa=ok(v8c);var w8c=mk({chartIdToDashboardId:{}},lk(JZc,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})})),SLa=ok(w8c);var x8c={chartId:"",statuses:[],nonblockingErrors:[]};var KJ=em({selectId:Hk}),y8c=mk(KJ.getInitialState({}),lk(NF,Ik(KJ,x8c)),lk(OF,Jk(KJ)),lk(PF,Kk(KJ,x8c)),lk(QF,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;return(b=a.entities[c])?KJ.upsertOne(Object.assign({},b,{statuses:b.statuses.map(function(f){return f.layerId!==d?f:Object.assign({},f,{layerId:e})})}),a):a}),lk(UXc,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 KJ.upsertOne(Object.assign({},x8c,b,{chartId:c,statuses:d}),a)}),lk(VXc,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 KJ.updateOne({id:c,changes:{statuses:b}},a)}),lk(WXc,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 KJ.upsertOne(Object.assign({},x8c,b,{chartId:c,nonblockingErrors:d}),a)}),lk(XXc,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 KJ.updateOne({id:c,changes:{nonblockingErrors:b}},a)})),ULa=ok(y8c);var z8c=fk("[AC] Set selected exemplar for chart and layer",gk()),A8c=fk("[AC] Set hovered exemplar for chart and layer",gk());var fm=em({selectId:Hk}),XLa=em({selectId:Lk}),WLa=function(a){return{chartId:a||"",byLayer:XLa.getInitialState({})}},B8c=mk(fm.getInitialState({}),lk(NF,Ik(fm,WLa())),lk(OF,Jk(fm)),lk(PF,Kk(fm,WLa())),lk(QF,LAa(fm,XLa,WLa())),lk(z8c,function(a,b){return YLa(a,b.chartId,b.layerId,{selectedExemplar:b.exemplarPoint})}),lk(A8c,function(a,b){return YLa(a,b.chartId,b.layerId,{hoveredExemplar:b.exemplarPoint})})),ZLa=ok(B8c);var C8c=Object.assign({},{requirements:[]},{chartGroupId:null,chartId:null,layerId:null});var D8c=mk(C8c,lk(PF,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({},C8c,{requirements:a},a[a.length-1])}),lk(QF,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({},C8c,{requirements:a},
a[a.length-1])}),lk($Xc,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({},C8c,{requirements:a},a[a.length-1])}),lk(aYc,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({},
C8c,{requirements:a},a[a.length-1])})),aMa=ok(D8c);var E8c=mk({chartsByGroup:{},layersByGroup:{}},lk(PF,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})}),lk(QF,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.previousLayerId;var f=b.currentLayerId;b=a.layersByGroup[c];var g=b==null?void 0:b[d];if(!e||!g||!g.graphicLayerIds.has(e)&&!g.axisLayerIds.has(e))return a;var k=
g.graphicLayerIds;k.has(e)&&(k=new Set(k),k.delete(e),k.add(f));var m=g.axisLayerIds;m.has(e)&&(m=new Set(m),m.delete(e),m.add(f));e={};f={};return Object.assign({},a,{layersByGroup:Object.assign({},a.layersByGroup,(f[c]=Object.assign({},b,(e[d]=Object.assign({},g,{graphicLayerIds:k,axisLayerIds:m}),e)),f))})}),lk(NF,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})}),lk(OF,
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})}),lk(BUc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},a.layersByGroup);var g=b[e]?
Object.assign({},b[e]):{};if(g[d]){var k=g[d],m=k.graphicLayerIds;k=k.axisLayerIds;f==="graphic"?(m=new Set(m),m.add(c)):(k=new Set(k),k.add(c));g[d]=Object.assign({},g[d],{graphicLayerIds:m,axisLayerIds:k})}else f==="graphic"?(f=new Set([c]),c=new Set):(f=new Set,c=new Set([c])),g[d]={graphicLayerIds:f,axisLayerIds:c};b[e]=g;return Object.assign({},a,{layersByGroup:b})}),lk(CUc,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})})),cMa=ok(E8c);var F8c=fk("[AC] Set hover disabled",gk());var G8c={disabled:!1};var H8c=mk(G8c,lk(F8c,function(a,b){return Object.assign({},G8c,{disabled:b.disabled})})),eMa=ok(H8c);var I8c={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}},J8c={yAxisId:"right",hover:null,click:null,focus:null,multiselectAnchor:null};var K8c={hover:null,click:null},LJ=em({selectId:Hk}),L8c=em({selectId:function(a){return a.yAxisId}}),M8c=mk(LJ.getInitialState({}),lk(NF,Ik(LJ,I8c)),lk(OF,Jk(LJ)),lk(PF,Kk(LJ,I8c)),lk(RG,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},I8c,c,{domain:Object.assign({},K8c,c.domain,b.lastInteraction)});return LJ.upsertOne(b,a)}),lk(SG,function(a,b){var c=b.chartId;var d=b.yAxisId;c=a.entities[c];if(!c)return a;b=Object.assign({},J8c,c.byYAxis.entities[d],{yAxisId:d},b.lastInteraction);
b=Object.assign({},c,{byYAxis:L8c.upsertOne(b,c.byYAxis)});return LJ.upsertOne(b,a)}),lk(VYc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},I8c,c,{category:Object.assign({},K8c,c.category,b.lastInteraction)});return LJ.upsertOne(b,a)}),lk(WYc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},I8c,c,{threshold:Object.assign({},K8c,c.threshold,b.lastInteraction)});return LJ.upsertOne(b,a)})),gMa=ok(M8c);var N8c={chartId:"",sourceToLoadingMap:{},sourceToDescriptionMap:{},loading:!1,loadingDescription:"default",hasLoadingEverOccurred:!1};var MJ=em({selectId:Hk}),O8c=mk(MJ.getInitialState({}),lk(NF,Ik(MJ,N8c)),lk(OF,Jk(MJ)),lk(PF,Kk(MJ,N8c)),lk(dYc,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 MJ.upsertOne(Object.assign({},N8c,b,{chartId:c,sourceToLoadingMap:g,sourceToDescriptionMap:d,loading:iMa(g),hasLoadingEverOccurred:(Array.isArray(e)?
!!e.length:!!e)||!(b==null||!b.hasLoadingEverOccurred)}),a)}),lk(eYc,function(a,b){var c=b.chartId;var d=b.sourceId;var e=a.entities[c];if(!e)return a;b=Object.keys(e.sourceToLoadingMap).filter(function(g){return g!==d}).reduce(function(g,k){var m={};return Object.assign({},g,(m[k]=e.sourceToLoadingMap[k],m))},{});var f=iMa(b);return MJ.updateOne({id:c,changes:{sourceToLoadingMap:b,loading:f}},a)})),jMa=ok(O8c);var P8c=fk("[AC] Sets the group ID to name map",gk()),Q8c=fk("[AC] Sets the instance ID to name map",gk());var R8c={chartGroupId:"",group:{},instance:{}};var NJ=em({selectId:MAa}),S8c=mk(NJ.getInitialState({}),lk(NF,NAa(NJ,R8c)),lk(wUc,OAa(NJ)),lk(PF,Kk(NJ,R8c)),lk(P8c,function(a,b){var c=b.chartGroupId;return NJ.upsertOne(Object.assign({},a.entities[c]||R8c,{chartGroupId:c,group:b.map}),a)}),lk(Q8c,function(a,b){var c=b.chartGroupId;return NJ.upsertOne(Object.assign({},a.entities[c]||R8c,{chartGroupId:c,instance:b.map}),a)})),lMa=ok(S8c);var OJ={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 PJ=em({selectId:Hk}),gm=em({selectId:Lk}),T8c=mk(PJ.getInitialState({}),lk(NF,function(a,b){var c=b.chartGroupId;b=b.chartId;return a.entities[b]?a:PJ.addOne(Object.assign({},OJ,{chartId:b,chartGroupId:c}),a)}),lk(OF,Jk(PJ)),lk(PF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;return d?PJ.mapOne({id:d,map:function(f){return Object.assign({},f,{chartId:e})}},a):a.entities[e]?a:PJ.addOne(Object.assign({},OJ,{chartId:e,chartGroupId:c}),a)}),lk(QF,function(a,b){var c=
b.previousLayerId;var d=b.currentLayerId;return PJ.map(function(e){return Object.assign({},e,{requirements:e.requirements.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f}),reservedMarginsByLayer:gm.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f},e.reservedMarginsByLayer)})},a)}),lk(XWc,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=nMa((g=e==null?void 0:e.requirements)!=
null?g:[]);g=k.margins;k=k.reservedMarginsByLayer;var m=rMa(a,c,d);if(b){m=oMa(g.left,g.right,m);var r=m.right;g.left=m.left;g.right=r}return PJ.upsertOne(Object.assign({},OJ,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)}),lk(VWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;return PJ.upsertOne(Object.assign({},
a.entities[d]||OJ,{chartGroupId:c,chartId:d,height:Math.ceil(b.height),width:Math.ceil(b.width),offsets:b.offsets}),a)}),lk(sG,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=nMa(f),m=k.margins;b=Object.assign({},OJ,b,{chartGroupId:c,chartId:d,requirements:f,margins:m.top===
(g==null?void 0:g.top)&&m.bottom===(g==null?void 0:g.bottom)&&m.left===(g==null?void 0:g.left)&&m.right===(g==null?void 0:g.right)?g:m,reservedMarginsByLayer:k.reservedMarginsByLayer});c=rMa(a,c,d);return PJ.upsertMany(qMa(b,c).concat([b]),a)}),lk(WWc,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=nMa(g),m=k.margins;b=Object.assign({},OJ,b,{chartGroupId:c,chartId:d,requirements:g,
margins:m.top===f.top&&m.bottom===f.bottom&&m.left===f.left&&m.right===f.right?f:m,reservedMarginsByLayer:k.reservedMarginsByLayer});c=rMa(a,c,d);return PJ.upsertMany(qMa(b,c).concat([b]),a)})),sMa=ok(T8c);var U8c={chartId:"",byLayer:{ids:[],entities:{}}},vMa={layerId:"",selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null,tooltipAnnotations:[],hoveredAnnotations:[]};var QJ=em({selectId:Hk}),RJ=em({selectId:Lk}),uMa=function(a){return Object.assign({},U8c,{chartId:a||"",byLayer:RJ.getInitialState({})})},V8c=mk(QJ.getInitialState({}),lk(NF,Ik(QJ,uMa())),lk(OF,Jk(QJ)),lk(PF,Kk(QJ,uMa())),lk(QF,LAa(QJ,RJ,uMa())),lk(jH,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=hm(a,c,d);c=d.chartState;d=d.layerState;if(!ql(d.selectedSeries,b))return a;b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,
a)}),lk(kH,function(a,b){var c=hm(a,b.chartId,b.layerId);b=c.chartState;c=Object.assign({},c.layerState,{selectedSeries:[]});b=Object.assign({},b,{byLayer:RJ.upsertOne(c,b.byLayer)});return QJ.upsertOne(b,a)}),lk(y_c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=hm(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:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,a)}),lk(z_c,function(a,b){var c=
b.chartId;var d=b.layerId;var e=b.series;c=hm(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:RJ.upsertOne(c,b.byLayer)});return QJ.upsertOne(b,a)}),lk(lH,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=hm(a,c,d);c=d.chartState;d=d.layerState;if(!ql(d.hoveredSeries,b))return a;b=Object.assign({},d,{hoveredSeries:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,
c.byLayer)});return QJ.upsertOne(b,a)}),lk(A_c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=hm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{lastClickedSeries:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,a)}),lk(B_c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=hm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{multiselectAnchorSeries:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,
a)}),lk(C_c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=hm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{tooltipAnnotations:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,a)}),lk(D_c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=hm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{hoveredAnnotations:b});b=Object.assign({},c,{byLayer:RJ.upsertOne(b,c.byLayer)});return QJ.upsertOne(b,a)})),wMa=ok(V8c);var W8c=fk("[AC] Set Chart Spec State",gk());var X8c=em({selectId:Hk}),Y8c={chartId:"",dataSets:[]},Z8c=mk(X8c.getInitialState({}),lk(NF,Ik(X8c,Y8c)),lk(OF,Jk(X8c)),lk(PF,Kk(X8c,Y8c)),lk(W8c,function(a,b){return X8c.upsertOne(Object.assign({},b||Y8c),a)})),yMa=ok(Z8c);var im=em({selectId:Hk}),BMa=em({selectId:Lk}),$8c=em({selectId:function(a){return a.seriesId}}),a9c=mk(im.getInitialState(),lk(NF,Ik(im,AMa)),lk(OF,Jk(im)),lk(PF,Kk(im,AMa)),lk(QF,LAa(im,BMa)),lk(CUc,function(a,b){return CMa(a,b.chartId,b.layerId,function(){})}),lk(KH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.yAxisId;var f=b.xAxisId;var g=b.valueType;var k=b.unit;var m=b.legendTemplate;var r=b.pointConnectionMethod;var w=b.alignmentPeriodMs;var x=b.outputPeriodMs;return CMa(a,c,d,function(D){return Object.assign({},
p_c,D,{layerId:d,yAxisId:e,xAxisId:f,valueType:g,unit:k,legendTemplate:m,pointConnectionMethod:r||(D==null?void 0:D.pointConnectionMethod),alignmentPeriodMs:w,outputPeriodMs:x})})}),lk(JH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.series;return CMa(a,c,d,function(f){if(!f)return f;var g=e.map(function(k){return Object.assign({},q_c,f==null?void 0:f.bySeries.entities[k.seriesId],k)});return Object.assign({},f,{bySeries:$8c.addMany(g,$8c.getInitialState({})),layerId:d})})}),lk(IH,function(a,
b){var c=b.chartId;var d=b.layerId;var e=b.valueType;var f=b.timeKey;var g=b.values;var k=b.timeRange;var m=b.category;return CMa(a,c,d,function(r){if(!r||r.valueType!==e)return r;var w,x=(w=r.snapshotMetadata)!=null?w:{};w=DMa(x,f,k,m);var D=Object.values(r.bySeries.entities).filter(function(J){return!!J}),H=EMa(D,g,f);return x===w&&D===H?r:Object.assign({},p_c,r,{snapshotMetadata:w,bySeries:$8c.upsertMany(H,(r==null?void 0:r.bySeries)||$8c.getInitialState({})),layerId:d})})})),FMa=ok(a9c);var SJ=em({selectId:RAa}),b9c=mk(SJ.getInitialState({}),lk(PF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=l(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=SJ.mapOne({id:String(g),map:function(m){return Object.assign({},m,{chartId:e})}},b))}return b}),lk(xUc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Nk(c,d,b)]?a:SJ.addOne(Object.assign({},
rYc,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),lk(yUc,function(a,b){return SJ.removeOne(Nk(b.chartGroupId,b.chartId,b.xAxisId),a)}),lk(wUc,function(a,b){var c=b.chartGroupId;b=Object.values(a.entities).reduce(function(d,e){return e&&e.chartGroupId===c?d.concat([Nk(e.chartGroupId,e.chartId,e.xAxisId)]):d},[]);return SJ.removeMany(b,a)}),lk(lYc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.priority;var k=b.absoluteMin;var m=b.min;var r=b.max;var w=b.unit;var x=
b.bucketWidth;var D=b.cause;b={id:f,priority:g,absoluteMin:k,min:m,max:r,unit:w,bucketWidth:x,constraints:b.constraints};k=a.entities[Nk(c,d,e)];m=[];m=k?(f?k.requirements.filter(function(H){return H.id===void 0||H.id!==f||H.priority!==g}):k.requirements).concat([b]):[b];return SJ.upsertOne(Object.assign({},k||rYc,{chartGroupId:c,chartId:d,xAxisId:e,requirements:m,lastUpdateCausedBy:D||0}),a)}),lk(mYc,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=Nk(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.priority!==f});return SJ.updateOne({id:c,changes:Object.assign({},{requirements:d},b?{}:{lastUpdateCausedBy:g||0})},a)}),lk(nYc,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=Nk(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.id!==f});return SJ.updateOne({id:c,changes:Object.assign({},{requirements:d},
b?{}:{lastUpdateCausedBy:g||0})},a)}),lk(oYc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return SJ.upsertOne(Object.assign({},a.entities[Nk(c,d,e)]||rYc,{chartGroupId:c,chartId:d,xAxisId:e,relativeTo:{xAxisId:b.relativeToId,shift:b.shift}}),a)}),lk(pYc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return SJ.upsertOne(Object.assign({},a.entities[Nk(c,d,e)]||rYc,{chartGroupId:c,chartId:d,xAxisId:e,timezoneOffset:b.timezoneOffset}),a)}),lk(qYc,function(a,b){var c=
b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return SJ.upsertOne(Object.assign({},a.entities[Nk(c,d,e)]||rYc,{chartGroupId:c,chartId:d,xAxisId:e,timeZoneId:b.timeZoneId}),a)})),HMa=ok(b9c);var TJ=em({selectId:MAa}),c9c=mk(TJ.getInitialState({}),lk(NF,NAa(TJ,r_c)),lk(wUc,OAa(TJ)),lk(TG,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 TJ.upsertOne(Object.assign({},d||r_c,{chartGroupId:c,xPos:b,directionOfTravel:e}),a)}),lk(UG,function(a,b){var c=b.chartGroupId;return TJ.upsertOne(Object.assign({},a.entities[c]||r_c,{chartGroupId:c,locked:b.locked}),a)}),lk(VG,function(a,b){var c=
b.chartGroupId;return TJ.upsertOne(Object.assign({},a.entities[c]||r_c,{chartGroupId:c,trackingNow:b.trackingNow}),a)})),JMa=ok(c9c);var Mk=em({selectId:function(a){return a.chartId+","+a.yAxisId}}),d9c=mk(Mk.getInitialState({}),lk(PF,function(a,b){var c=b.previousChartId;var d=b.currentChartId;return c?Mk.map(function(e){return e.chartId===c?Object.assign({},e,{chartId:d}):e},a):a}),lk(YWc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.id;var f=b.priority;var g=b.absoluteMin;var k=b.min;var m=b.max;var r=b.unit;var w=b.cause;b=b.constraints;r==="{not_a_unit}"&&(r="1");if(d==="right"||d==="left"){var x=d==="left"?"right":
"left",D=a.entities[c+","+x];if(D){var H=e?D.requirements.filter(function(J){return J.id===void 0||J.id!==e}):D.requirements;H.length!==D.requirements.length&&(a=Mk.upsertOne(Object.assign({},D||PAa,{chartId:c,yAxisId:x,requirements:H,lastUpdateCausedBy:w||0}),a))}}f={id:e,priority:f,absoluteMin:g,min:k,max:m,unit:r,constraints:b};g=a.entities[c+","+d];k=[];k=g?(e?g.requirements.filter(function(J){return J.id===void 0||J.id!==e}):g.requirements).concat([f]):[f];return Mk.upsertOne(Object.assign({},
g||PAa,{chartId:c,yAxisId:d,requirements:k,lastUpdateCausedBy:w||0}),a)}),lk($Wc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.priority;b=b.cause;var f=d?[c+","+d]:a.ids.filter(function(m){return m.startsWith(c)});d=[];f=l(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&(k=k.requirements.filter(function(m){return m.priority!==e}),d.push({id:g,changes:{requirements:k,lastUpdateCausedBy:b||0}}))}return Mk.updateMany(d,a)}),lk(aXc,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 QAa()(a,{chartId:c,yAxisId:d});c=g.requirements.filter(function(k){return k.id!==e});return Mk.updateOne({id:f,changes:{requirements:c,lastUpdateCausedBy:b||0}},a)}),lk(bXc,function(a,b){var c=b.chartId;var d=b.yAxisId;return Mk.upsertOne(Object.assign({},a.entities[c+","+d]||PAa,{chartId:c,yAxisId:d,position:b.position}),a)}),lk(ZWc,function(a,b){var c=b.chartId;var d=b.yAxisId;b=b.label;return Mk.upsertOne(Object.assign({},
a.entities[c+","+d]||PAa,{chartId:c,yAxisId:d,label:b&&b!=="y1Axis"&&b!=="y2Axis"?b:""}),a)})),LMa=ok(d9c);var UJ=function(){};UJ.\u0275fac=function(a){return new (a||UJ)};UJ.\u0275mod=cf({type:UJ});var e9c,f9c=void 0;f9c=f9c===void 0?{}:f9c;var g9c=[],h9c=g9c.concat,i9c,j9c=function(a,b){return Rza({brush:JLa,categoricalAxis:LLa,chart:NLa,colorMap:PLa,chartSpec:zMa,colorScale:RLa,dashboard:TLa,error:VLa,exemplarSelection:$La,focus:bMa,hierarchy:dMa,hoverDisabled:fMa,lastInteraction:hMa,loading:kMa,map:mMa,resize:tMa,seriesSelection:xMa,xAxisPin:KMa,timeSeries:GMa,xAxis:IMa,yAxis:MMa})(a,b)},VJ=f9c;
VJ=VJ===void 0?{}:VJ;
i9c=[{provide:bUc,multi:!0,useValue:VJ},{provide:ZTc,multi:!0,useValue:{key:"awesomecharts",reducerFactory:VJ instanceof ed||!VJ.reducerFactory?Rza:VJ.reducerFactory,metaReducers:VJ instanceof ed||!VJ.metaReducers?[]:VJ.metaReducers,initialState:VJ instanceof ed||!VJ.initialState?void 0:VJ.initialState}},{provide:cUc,deps:[bUc,ZTc],useFactory:function(a,b){return b.map(function(c,d){return a[d]instanceof ed?(d=p(a[d]),{key:c.key,reducerFactory:d.reducerFactory?d.reducerFactory:Rza,metaReducers:d.metaReducers?
d.metaReducers:[],initialState:d.initialState}):c})}},{provide:aUc,multi:!0,useValue:j9c},{provide:dUc,multi:!0,useExisting:j9c instanceof ed?j9c:aUc},{provide:eUc,multi:!0,deps:[aUc,[new GAc(dUc)]],useFactory:function(a){return a.map(function(b){return b instanceof ed?p(b):b})}},fAa()];e9c={ngModule:MF,providers:h9c.call(g9c,q(i9c))};UJ.\u0275inj=Gc({imports:[e9c]});var k9c=[eJ,fJ,hJ,jJ,oJ,kJ,VH,fH,iH,WH,pJ,rJ,uJ,HH,uI,EH,$H,PH,yJ,XH,BJ,BH,DJ,YH,EJ,bH,UH,AJ,lA],WJ=function(){EF.setWhitelist("chart-analytics-events",!0);EF.setWhitelist("chart-loading-timings",!0);EF.setThrowPartials&&EF.setThrowPartials(!1)};WJ.\u0275fac=function(a){return new (a||WJ)};WJ.\u0275mod=cf({type:WJ,id:"pm_awesomecharts_module"});WJ.\u0275inj=Gc({providers:[{provide:K1c,useValue:{AcChart:fH}}],imports:[k9c,UJ,FJ,lA]});var l9c=WBc.get("pm_awesomecharts_module")||null;
if(l9c&&l9c!==WJ)throw Error("Ja`pm_awesomecharts_module`"+Sc(l9c)+"`"+Sc(l9c.name));WBc.set("pm_awesomecharts_module",WJ);var m9c=["chartContainer"],XJ=function(){var a=this;this.X_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1,ctrlDragPan:!1,clickTimePin:!1,hoverTimePin:!1};this.Y_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1};this.chartContainer=Rg.apply(null,["chartContainer"].concat(q([{read:Jd}])));this.chart=Qg.required.apply(Qg,q([]));this.chartTitle=ah.apply(null,[function(){var b;return(b=a.chart().getTitle())!=null?b:""}].concat(q([])));ah.apply(null,[function(){var b=a.chart();b=xi(b,4);return b!=null?
b:""}].concat(q([])));this.yAxisLabel=ah.apply(null,[function(){var b=a.chart();b=xi(b,5);return b!=null?b:""}].concat(q([])));this.data=ah.apply(null,[function(){var b=a.chart();b=Ni(b,SGc,3,Oi());return QMa(b!=null?b:[])}].concat(q([])));this.legendScope=ah.apply(null,[function(){return{chartId:a.chartTitle(),yAxisId:"left"}}].concat(q([])))};XJ.\u0275fac=function(a){return new (a||XJ)};
XJ.\u0275cmp=C({type:XJ,selectors:[["interactive-element-chart"]],viewQuery:function(a,b){a&1&&qg(b.chartContainer,m9c,Jd);a&2&&rg()},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(),Ag(b.chartTitle()),B(3),I("chartId",b.chartTitle())("disableZoomAndPan",!0),B(),I("label",b.yAxisLabel())("interactions",b.Y_AXIS_INTERACTIONS),B(),I("interactions",b.X_AXIS_INTERACTIONS),B(),I("data",b.data()),B(4),I("condensed",!0)("scope",b.legendScope()))},dependencies:[ty,WJ,fH,iH,HH,EH,PH,BH,bH,UH],styles:["[_nghost-%COMP%]{display:block}ac-chart[_ngcontent-%COMP%]{height:180px}"],changeDetection:0});var YJ=function(){};YJ.\u0275fac=function(a){return new (a||YJ)};YJ.\u0275prov=Fc({token:YJ,factory:YJ.\u0275fac,providedIn:"root"});var ZJ=function(){var a=this;this.interactiveElements=Qg.apply(null,q([]));this.threadService=p(RD);p(YJ);this.validatedInteractiveElements=ah.apply(null,[function(){var b;return(b=a.interactiveElements())==null?void 0:b.filter(function(){return!0})}].concat(q([])))};ZJ.prototype.handleButtonClick=function(a){xQc(this.threadService,a.getButton().getPrompt())};ZJ.prototype.getButton=function(a){return a.getButton()};ZJ.prototype.getChart=function(a){return a.getChart()};
ZJ.\u0275fac=function(a){return new (a||ZJ)};
ZJ.\u0275cmp=C({type:ZJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"has-action-key","matTooltip"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","matTooltip"]],template:function(a,b){a&1&&(K(0,"div"),F(1,UMa,2,0),L());if(a&2){var c;B();G((c=b.validatedInteractiveElements())?1:-1,c)}},dependencies:[ty,pC,
nC,jC,XJ,DA,sD,AF],styles:[".interactive-element-button[_ngcontent-%COMP%]{display:block;border-radius:32px;margin-right:8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.interactive-element-button.has-action-key[_ngcontent-%COMP%]{background-color:var(--xap-color-tonal-fill-green);color:var(--xap-color-tonal-green)}"],changeDetection:0});var $J=function(){this.isRecentSessionsVisibleSubject=new Wj(!1);this.isRecentSessionsVisible$=this.isRecentSessionsVisibleSubject.asObservable();this.messageQueue$=new sf};$J.prototype.sendMessage=function(a,b){this.messageQueue$.next({message:a,contextMap:b})};$J.\u0275fac=function(a){return new (a||$J)};$J.\u0275prov=Fc({token:$J,factory:$J.\u0275fac,providedIn:"root"});var n9c={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?"}]}]},
lOa=Object.assign({},n9c,{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 o9c=new ed("InteractiveElementsTemplate"),aK=function(){this.ve={DuckieChatInteractiveElementButton:263888};this.interactiveElements=Qg.apply(null,q([]));this.threadService=p(RD);p(YJ)};aK.prototype.handleButtonClick=function(a){xQc(this.threadService,a.getButton().getPrompt())};aK.prototype.getButton=function(a){return a.getButton()};aK.prototype.getChart=function(a){return a.getChart()};aK.\u0275fac=function(a){return new (a||aK)};
aK.\u0275cmp=C({type:aK,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,YMa,2,0),L());if(a&2){var c;B();G((c=b.interactiveElements())?1:-1,c)}},dependencies:[ty,
pC,nC,jC,XJ,sD,rD],styles:[".interactive-element-button[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}"],changeDetection:0});var p9c=new ed("GM2_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var bK=function(){VB.apply(this,arguments);this.gmatDialogOptions=p(p9c);this.defaultOptions=p(AJc,{optional:!0});this.additionalClasses=["gmat-mdc-dialog"]};Y(bK,VB);bK.prototype.open=function(a,b){b=Object.assign({},this.defaultOptions||new uJc,b);if(this.gmatDialogOptions.disableGmatStyle)throw Error("wb");b.panelClass=Nh(b.panelClass||[]).concat(this.additionalClasses);return VB.prototype.open.call(this,a,b)};bK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bK)))(b||bK)}}();
bK.\u0275prov=Fc({token:bK,factory:bK.\u0275fac,providedIn:"root"});var cK=function(){};cK.\u0275fac=function(a){return new (a||cK)};cK.\u0275mod=cf({type:cK});cK.\u0275inj=Gc({providers:[{provide:VB,useClass:bK}],imports:[aC]});var cNa=function(a){return{$implicit:a}},dK=function(){this.data=p(UB);if(!this.data)throw Error("Sc");this.iconType=this.data.dialogType;this.confirmButtonLabel=this.data.confirmButtonLabel||"OK";this.cancelButtonLabel=this.data.cancelButtonLabel||"CANCEL"};dK.prototype.ngOnInit=function(){};dK.\u0275fac=function(a){return new (a||dK)};
dK.\u0275cmp=C({type:dK,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,ZMa,2,4,"mat-icon",2),F(3,$Ma,2,1,"span",3),L(),K(4,"mat-dialog-content",4),F(5,aNa,2,1,"div",5),F(6,dNa,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:[ty,ky,pC,nC,jC,cK,WB,YB,$B,ZB,$y,Yy],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 q9c=new ed("GM2_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var eK=function(){this.gmatOptions=p(q9c)},r9c=function(a,b){if(a.gmatOptions.disableGmatStyle)throw Error("wb");b&&(b.overlayPanelClass=Nh(b.overlayPanelClass||[]).concat("gmat-mdc-menu"))};da.Object.defineProperties(eK.prototype,{deprecatedPanel:{configurable:!0,enumerable:!0,set:function(a){r9c(this,a)}},panel:{configurable:!0,enumerable:!0,set:function(a){r9c(this,a)}}});eK.\u0275fac=function(a){return new (a||eK)};
eK.\u0275dir=df({type:eK,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],inputs:{deprecatedPanel:[0,"mat-menu-trigger-for","deprecatedPanel"],panel:[0,"matMenuTriggerFor","panel"]},standalone:!1});var fK=function(){};fK.\u0275fac=function(a){return new (a||fK)};fK.\u0275mod=cf({type:fK});fK.\u0275inj=Gc({imports:[tH]});var s9c=new ed("SessionActionsTemplate"),gK=function(){this.sessionSummary=Qg.required.apply(Qg,q([]));this.sessionState=nKc;this.sessionSummaryService=p(zC);this.experimentsService=p(GA);this.changeDetectorRef=p(Px);this.dialog=p(VB);this.isSessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.isHovered=!1;this.menuTrigger=Rg.apply(null,[sH].concat(q([])))};
gK.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};
gK.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};
gK.prototype.deleteSession=function(a){var b=this;a.stopPropagation();a.preventDefault();TB(this.dialog.open(dK,{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())}})};gK.\u0275fac=function(a){return new (a||gK)};
gK.\u0275cmp=C({type:gK,selectors:[["session-actions"]],viewQuery:function(a,b){a&1&&qg(b.menuTrigger,sH);a&2&&rg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:10,vars:9,consts:[["actionsMenu","matMenu"],["mat-icon-button","","aria-label","toggle session actions menu",1,"session-actions-menu-button",3,"mouseenter","mouseleave","matMenuTriggerFor"],["mat-menu-item","",1,"pin-thread-toggle",3,"click"],["mat-menu-item","",1,"delete-thread-toggle"],["mat-menu-item","",1,"archive-thread-toggle"],
["mat-menu-item","",1,"delete-thread-toggle",3,"click"],["mat-menu-item","",1,"archive-thread-toggle",3,"click"]],template:function(a,b){if(a&1){var c=t();bg(0);K(1,"button",1);N("mouseenter",function(){u(c);return v(b.isHovered=!0)})("mouseleave",function(){u(c);return v(b.isHovered=!1)});K(2,"mat-icon");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,eNa,2,0,"button",3)(9,fNa,2,1,"button",4);L()}if(a&2){a=sg(5);var d=
b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_PINNED;cg(b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_ARCHIVED);B();yg("pinned",d)("is-hovered",b.isHovered);I("matMenuTriggerFor",a);B(2);Ag(d&&!b.isHovered?"keep_outline":"more_vert");B(4);S(" ",d?"Unpin thread":"Pin thread"," ");B();G(b.isSessionDeletionEnabled?8:9)}},dependencies:[ty,pC,nC,lC,fK,eK,pH,nH,sH,$y,Yy],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 t9c=["customSessionActions"],hK=function(){this.sessionSummary=Qg.required.apply(Qg,q([]));this.sessionActionsTemplate=p(s9c,{optional:!0});this.customSessionActions=Rg.apply(null,["customSessionActions"].concat(q([{read:hg}])))};hK.prototype.ngAfterViewInit=function(){this.sessionActionsTemplate&&this.customSessionActions()&&(this.componentRef=this.customSessionActions().createComponent(this.sessionActionsTemplate),this.componentRef.instance.sessionSummary=pg.apply(null,[this.sessionSummary()].concat(q([]))))};
hK.\u0275fac=function(a){return new (a||hK)};hK.\u0275cmp=C({type:hK,selectors:[["session-actions-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customSessionActions,t9c,hg);a&2&&rg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:2,vars:1,consts:[["customSessionActions",""],[3,"sessionSummary"]],template:function(a,b){a&1&&F(0,gNa,2,0,"ng-container")(1,hNa,1,1,"session-actions",1);a&2&&G(b.sessionActionsTemplate?0:1)},dependencies:[ty,gK],encapsulation:2,changeDetection:0});var u9c=new ed("GM2_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var iK=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};iK.\u0275fac=function(a){return new (a||iK)(Ye(u9c))};iK.\u0275dir=df({type:iK,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostAttrs:[1,"gmat-mdc-list"],standalone:!1});var v9c=new ed("ListOption");var jK=function(){this._elementRef=p(Jd)};jK.\u0275fac=function(a){return new (a||jK)};jK.\u0275dir=df({type:jK,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var kK=function(){this._elementRef=p(Jd)};kK.\u0275fac=function(a){return new (a||kK)};kK.\u0275dir=df({type:kK,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var lK=function(){};
lK.\u0275fac=function(a){return new (a||lK)};lK.\u0275dir=df({type:lK,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var mK=function(){this._listOption=p(v9c,{optional:!0})};mK.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};mK.\u0275fac=function(a){return new (a||mK)};
mK.\u0275dir=df({type:mK,hostVars:4,hostBindings:function(a,b){a&2&&yg("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var nK=function(){mK.apply(this,arguments)};Y(nK,mK);nK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nK)))(b||nK)}}();nK.\u0275dir=df({type:nK,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Gf]});var oK=function(){mK.apply(this,arguments)};Y(oK,mK);
oK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(oK)))(b||oK)}}();oK.\u0275dir=df({type:oK,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Gf]});var w9c=new ed("MAT_LIST_CONFIG");var pK=function(){this._isNonInteractive=!0;this._disableRipple=!1;this._disabled=pg.apply(null,[!1].concat(q([])));this._defaultOptions=p(w9c,{optional:!0})};da.Object.defineProperties(pK.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Oh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(Oh(a))}}});pK.\u0275fac=function(a){return new (a||pK)};
pK.\u0275dir=df({type:pK,hostVars:1,hostBindings:function(a,b){a&2&&Kf("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var qK=function(){this._elementRef=p(Jd);this._ngZone=p(Tg);this._listBase=p(pK,{optional:!0});this._platform=p(Yh);this._noopAnimations=pi();this._explicitLines=null;this._disableRipple=!1;this._disabled=pg.apply(null,[!1].concat(q([])));this._subscriptions=new Rd;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;p(bi).load(sA);this.rippleConfig=p(uA,{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=qK.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 DFc(this,this._ngZone,this._hostElement,this._platform,p(Ae));GFc(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(qK.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=Rh(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=Oh(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(Oh(a))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});qK.\u0275fac=function(a){return new (a||qK)};
qK.\u0275dir=df({type:qK,contentQueries:function(a,b,c){a&1&&(kg(c,nK,4),kg(c,oK,4));if(a&2){var d;ng(d=og())&&(b._avatars=d);ng(d=og())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(Kf("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),yg("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var rK=function(){this._inset=this._vertical=!1};da.Object.defineProperties(rK.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Oh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Oh(a)}}});rK.\u0275fac=function(a){return new (a||rK)};
rK.\u0275cmp=C({type:rK,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Kf("aria-orientation",b.vertical?"vertical":"horizontal"),yg("mat-divider-vertical",b.vertical)("mat-divider-horizontal",!b.vertical)("mat-divider-inset",b.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],
encapsulation:2,changeDetection:0});var sK=function(){};sK.\u0275fac=function(a){return new (a||sK)};sK.\u0275mod=cf({type:sK});sK.\u0275inj=Gc({imports:[Zy]});var x9c=["unscopedContent"],y9c=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],z9c=new ed("SelectionList"),tK=function(){qK.apply(this,arguments);this._selectionList=p(z9c);this._changeDetectorRef=p(Px);this.selectedChange=new gj;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Y(tK,qK);tK.\u0275dir=qK.\u0275dir;h=tK.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;qK.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(tK.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=Oh(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});tK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tK)))(b||tK)}}();
tK.\u0275cmp=C({type:tK,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(kg(c,kK,5),kg(c,jK,5));if(a&2){var d;ng(d=og())&&(b._lines=d);ng(d=og())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&jg(x9c,5);if(a&2){var c;ng(c=og())&&(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),yg("mdc-list-item--selected",b.selected&&!b._selectionList.multiple&&b._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",b._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",b._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",b._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",b._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",b._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",
b._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",b._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",b._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("mat-accent",b.color!=="primary"&&b.color!=="warn")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},
exportAs:["matListOption"],features:[Ig([{provide:qK,useExisting:tK},{provide:v9c,useExisting:tK}]),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();eg(y9c);E(0,iNa,1,0,"ng-template",null,0,Og)(2,jNa,6,4,"ng-template",null,1,Og)(4,kNa,5,4,"ng-template",null,2,Og);F(6,mNa,2,1,"span",4)(7,oNa,2,1,"span",5);F(8,qNa,1,1,null,6);K(9,"span",7);fg(10);fg(11,1);K(12,"span",8,3);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});fg(14,2);L()();F(15,sNa,2,1,"span",9)(16,uNa,2,1,"span",9);F(17,wNa,1,1,null,6);fg(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:[ky,qz],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 A9c=["unscopedContent"],B9c=["text"],C9c=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new ed("MatList");var uK=function(){pK.apply(this,arguments)};Y(uK,pK);uK.\u0275dir=pK.\u0275dir;uK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(uK)))(b||uK)}}();
uK.\u0275cmp=C({type:uK,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ig([{provide:pK,useExisting:uK}]),Gf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 vK=function(){qK.apply(this,arguments);this._activated=!1};Y(vK,qK);vK.\u0275dir=qK.\u0275dir;vK.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};vK.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
da.Object.defineProperties(vK.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=Oh(a)}}});vK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(vK)))(b||vK)}}();
vK.\u0275cmp=C({type:vK,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(kg(c,kK,5),kg(c,jK,5),kg(c,lK,5));if(a&2){var d;ng(d=og())&&(b._lines=d);ng(d=og())&&(b._titles=d);ng(d=og())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(jg(A9c,5),jg(B9c,5));if(a&2){var c;ng(c=og())&&(b._unscopedContent=c.first);ng(c=og())&&(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()),yg("mdc-list-item--activated",b.activated)("mdc-list-item--with-leading-avatar",b._avatars.length!==0)("mdc-list-item--with-leading-icon",b._icons.length!==0)("mdc-list-item--with-trailing-meta",b._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("_mat-animation-noopable",b._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[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();eg(C9c);fg(0);K(1,"span",1);fg(2,1);fg(3,2);K(4,"span",2,0);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});fg(6,3);L()();fg(7,4);fg(8,5);M(9,"div",3)}},dependencies:[qz],encapsulation:2,changeDetection:0});new ed("MatNavList");var wK=function(){pK.apply(this,arguments);this._isNonInteractive=!1};Y(wK,pK);wK.\u0275dir=pK.\u0275dir;wK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wK)))(b||wK)}}();
wK.\u0275cmp=C({type:wK,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ig([{provide:pK,useExisting:wK}]),Gf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 D9c={provide:lE,useExisting:Xc(function(){return xK}),multi:!0},E9c=function(a,b){this.source=a;this.options=b},xK=function(){pK.call(this);var a=this;this._element=p(Jd);this._ngZone=p(Tg);this._renderer=p(fi);this._initialized=!1;this._destroyed=new sf;this._onChange=function(){};this.selectionChange=new gj;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 Mz(this._multiple);this._onTouched=function(){};this._changeDetectorRef=p(Px);this._selectionListDisabled=pg.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(xK,pK);xK.\u0275dir=pK.\u0275dir;h=xK.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 E9c(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=l(b.added),d=c.next();!d.done;d=c.next())d.value.selected=!0;b=l(b.removed);for(c=b.next();!c.done;c=b.next())c.value.selected=!1;a._containsFocus()||a._resetActiveOption()})};
h._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};h._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};h._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
h._setAllOptionsSelected=function(a,b){var c=[];this.options.forEach(function(d){b&&d.disabled||!d._setSelected(a)||c.push(d)});c.length&&this._reportValueChange();return c};
h._handleKeydown=function(a){var b=this._keyManager.activeItem;if(a.keyCode!==13&&a.keyCode!==32||this._keyManager.isTyping()||!b||b.disabled)if(a.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Jh(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=Bz(CEc(Ez(new Hz(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)});Fz(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=Lh();return a&&this._element.nativeElement.contains(a)};
da.Object.defineProperties(xK.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Oh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new Mz(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=Oh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled()},
set:function(a){this._selectionListDisabled.set(Oh(a));if(this._selectionListDisabled()){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});xK.\u0275fac=function(a){return new (a||xK)};
xK.\u0275cmp=C({type:xK,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&kg(c,tK,5);if(a&2){var d;ng(d=og())&&(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:[Ig([D9c,{provide:pK,useExisting:xK},{provide:z9c,useExisting:xK}]),Gf,xx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 F9c=function(){};F9c.\u0275fac=function(a){return new (a||F9c)};F9c.\u0275dir=df({type:F9c,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]});var yK=function(){};yK.\u0275fac=function(a){return new (a||yK)};yK.\u0275mod=cf({type:yK});yK.\u0275inj=Gc({imports:[rz,yA,zA,Zy,sK]});var zK=function(){};zK.\u0275fac=function(a){return new (a||zK)};zK.\u0275mod=cf({type:zK});zK.\u0275inj=Gc({imports:[yK]});var G9c=new jG(3);var H9c=new ed("GM2_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var AK=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("wb");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");this.hasAriaLabelAndRole||xNa(b._elementRef.nativeElement).pipe(Bf(this.destroyed)).subscribe(function(d){I9c(c,d[0],d[1])})};
AK.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:"";I9c(this,c,a)}};AK.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};
var I9c=function(a,b,c){b=c==="indeterminate"?b:b+" "+G9c.format(Number(c)/100);a.labelElement.textContent=b};
da.Object.defineProperties(AK.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"}}});
AK.\u0275fac=function(a){return new (a||AK)(Ye(H9c),Ye(II,10))};AK.\u0275dir=df({type:AK,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 BK=function(){};BK.\u0275fac=function(a){return new (a||BK)};BK.\u0275mod=cf({type:BK});BK.\u0275inj=Gc({imports:[JI]});var J9c=["searchInput"],ONa=function(a,b){return b.sessionId},K9c=new ed("RecentSessionsTemplate"),CK=function(a,b,c,d){this.backendModelService=a;this.userStateService=b;this.duckieEventTrackerService=c;this.sessionSummaryService=d;this.showFilter=this.isShowingMoreNavItems=!1;this.navItemClicked=Pg();this.inputEl=Rg.apply(null,["searchInput"].concat(q([])));this.routingService=p(NB);this.experimentsService=p(GA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.userStateLoaded$=
this.userStateService.userStateLoaded$;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.sessionSummaries$=this.sessionSummaryService.sessionSummaries$;this.PrivacyMode=gKc;this.SessionState=nKc;this.searchText$=new Wj("");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=l(e);var f=e.next().value;return e.next().value.filter(function(g){return g.title.toLowerCase().includes(f.toLowerCase())})}));
this.isLoadingSessionSummaries$=this.sessionSummaryService.isLoadingSessionSummaries$;this.numDisplayedItems=this.initialNavItems=5;this.ve={DuckieFilterRecentSessionsButton:223452};this.isGeminiModelSelected$=this.backendModelService.currentModelId$.pipe(A(function(e){return e==="duckie_on_gemini_flash_32k"}));this.currentThreadId$=this.routingService.state$.pipe(A(function(e){return e.params.id}),pf())};
CK.prototype.clearSearch=function(){this.searchText$.next("");this.inputEl()&&(this.inputEl().nativeElement.value="")};var ANa=function(a){a.clearSearch();setTimeout(function(){var b;(b=a.inputEl())==null||b.nativeElement.focus()})},HNa=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)})},MNa=function(a,b){return!!b&&b===a.sessionId};
CK.\u0275fac=function(a){return new (a||CK)(Ye(xC),Ye(yC),Ye(tD),Ye(zC))};
CK.\u0275cmp=C({type:CK,selectors:[["recent-sessions"]],viewQuery:function(a,b){a&1&&qg(b.inputEl,J9c);a&2&&rg()},outputs:{navItemClicked:"navItemClicked"},decls:5,vars:6,consts:[["searchInput",""],["mode","indeterminate",1,"align-self-center",3,"diameter"],[1,"nav-list","duckie-left-nav",3,"has-top-banner"],[1,"nav-list","duckie-left-nav"],["mat-subheader","",1,"nav-header","flex-row","align-items-center","text-secondary","font-google-sans","justify-content-space-between"],[1,"nav-header-left","flex-row",
"align-items-center","gap-s"],[1,"icon-m"],[1,"nav-header-right"],["mat-icon-button","","aria-label","Show filter",1,"toggle-filter-button",3,"click","ve","veClick"],[1,"search","flex-row","margin-s-y"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],["appearance","outline",1,
"full-width"],["matInput","","aria-label","Search thread titles",3,"input"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button",3,"click"],["disabled",""],["mat-list-item","","color","primary",3,"click","activated","title"],[1,"nav-item-title","flex-row","align-items-center"],[1,"title-text"],[1,"privacy-icon","padded-xxs","icon-m"],["matListItemMeta",""],[3,"click","sessionSummary"],["mat-button",
"",1,"show-more-nav-toggle"],["mat-button","",1,"show-more-nav-toggle",3,"click"]],template:function(a,b){a&1&&(bg(0),T(1,"async"),F(2,yNa,1,1,"mat-progress-spinner",1),T(3,"async"),Nf(4,QNa,17,15,"mat-nav-list",2));a&2&&(cg(U(1,1,b.isIncognitoMode$)),B(2),G(U(3,4,b.isLoadingSessionSummaries$)?2:4))},dependencies:[ty,PE,pC,nC,jC,lC,zK,iK,wK,vK,F9c,rK,lK,BK,AK,II,sK,dE,cE,VD,XD,RE,QE,$y,Yy,sD,rD,uF,hK,ly],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 L9c=["customRecentSessions"],DK=function(){this.navItemClicked=Pg();this.recentSessionsTemplate=p(K9c,{optional:!0});this.customRecentSessions=Rg.apply(null,["customRecentSessions"].concat(q([{read:hg}])))};DK.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()}))};
DK.\u0275fac=function(a){return new (a||DK)};DK.\u0275cmp=C({type:DK,selectors:[["recent-sessions-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customRecentSessions,L9c,hg);a&2&&rg()},outputs:{navItemClicked:"navItemClicked"},decls:2,vars:1,consts:[["customRecentSessions",""],[3,"navItemClicked"]],template:function(a,b){a&1&&F(0,RNa,2,0,"ng-container")(1,SNa,1,0,"recent-sessions");a&2&&G(b.recentSessionsTemplate?0:1)},dependencies:[ty,CK],encapsulation:2,changeDetection:0});var EK=function(){};EK.\u0275fac=function(a){return new (a||EK)};EK.\u0275mod=cf({type:EK});EK.\u0275inj=Gc({imports:[CK,gK,hK,DK]});var M9c=new ed("GM2_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var FK=function(){if(p(M9c).disableGmatStyle)throw Error("wb");var a=p(DA,{self:!0,optional:!0});a&&(a._overlayPanelClass=["gmat-mdc-tooltip"])};FK.\u0275fac=function(a){return new (a||FK)};FK.\u0275dir=df({type:FK,selectors:[["","matTooltip",""]]});var GK=function(){};GK.\u0275fac=function(a){return new (a||GK)};GK.\u0275mod=cf({type:GK});GK.\u0275inj=Gc({imports:[EA]});var N9c=new ed("NewTopicButtonTemplate"),HK=function(){this.ve={DuckieChatSideNavigationPaneNewChatButton:201125};this.threadService=p(RD);this.overridesService=p(RA);this.canStartNewThread$=this.threadService.canStartNewThread$};HK.prototype.startNewThread=function(a){a.metaKey||a.ctrlKey?qi(window,hra("http://duckie"),"_blank"):this.threadService.startNewThread("","")};HK.\u0275fac=function(a){return new (a||HK)};
HK.\u0275cmp=C({type:HK,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:[ty,pC,kC,oC,cK,GK,FK,DA,$y,Yy,sD,rD,ly],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 O9c=["customNewTopicButton"],IK=function(){this.newTopicButtonTemplate=p(N9c,{optional:!0});this.customNewTopicButton=Rg.apply(null,["customNewTopicButton"].concat(q([{read:hg}])))};IK.prototype.ngAfterViewInit=function(){this.newTopicButtonTemplate&&this.customNewTopicButton()&&(this.componentRef=this.customNewTopicButton().createComponent(this.newTopicButtonTemplate))};IK.\u0275fac=function(a){return new (a||IK)};
IK.\u0275cmp=C({type:IK,selectors:[["new-topic-button-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customNewTopicButton,O9c,hg);a&2&&rg()},decls:2,vars:1,consts:[["customNewTopicButton",""]],template:function(a,b){a&1&&F(0,TNa,2,0,"ng-container")(1,UNa,1,0,"new-topic-button");a&2&&G(b.newTopicButtonTemplate?0:1)},dependencies:[ty,HK],encapsulation:2,changeDetection:0});var JK=function(){};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275mod=cf({type:JK});JK.\u0275inj=Gc({imports:[HK,IK]});var P9c={BANNER_TYPE_UNSPECIFIED:0,INFO:1,WARNING:2,ERROR:3};var Q9c={DISMISSAL_TYPE_UNSPECIFIED:0,DISMISSABLE:1,NOT_DISMISSABLE:2};var KK=function(){this.bannerType=Qg.apply(null,q([]));this.bannerText=Qg.apply(null,q([]));this.dismissalType=Qg.apply(null,q([]));this.duckieBannerType=P9c;this.duckieDissmissalType=Q9c;this.isVisible=!0};KK.prototype.onCloseBannerButtonClicked=function(){this.isVisible=!1};KK.\u0275fac=function(a){return new (a||KK)};
KK.\u0275cmp=C({type:KK,selectors:[["banner"]],inputs:{bannerType:[1,"bannerType"],bannerText:[1,"bannerText"],dismissalType:[1,"dismissalType"]},decls:1,vars:1,consts:[[1,"banner-wrapper",3,"info-banner","warning-banner","error-banner"],[1,"banner-wrapper"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&F(0,WNa,4,8,"div",0);a&2&&G(b.isVisible?0:-1)},dependencies:[ty,pC,nC,lC,$y,Yy],styles:['.banner-wrapper[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*14);font-weight:700;min-height:48px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;gap:1em;padding:.25em 1em .25em 4em;margin:0 -24px}.banner-wrapper[_ngcontent-%COMP%]:before{content:"info";font-family:Google Symbols;font-weight:300;font-size:calc(var(--base-px, 1rem)*24);font-optical-sizing:auto;font-variation-settings:"FILL" 0;color:var(--tonal-icon-grey);position:absolute;left:1em}@media (max-width:800px){.banner-wrapper[_ngcontent-%COMP%]{display:none}}.info-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-cyan);border-bottom:var(--custom-border,1px solid var(--tonal-icon-cyan))}.info-banner[_ngcontent-%COMP%]:before{content:"info";color:var(--tonal-icon-cyan)}.warning-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-orange);border-bottom:var(--custom-border,1px solid var(--tonal-icon-orange))}.warning-banner[_ngcontent-%COMP%]:before{content:"warning";color:var(--tonal-icon-orange)}.error-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-pink);border-bottom:var(--custom-border,1px solid var(--tonal-icon-pink))}.error-banner[_ngcontent-%COMP%]:before{content:"dangerous";color:var(--tonal-icon-red)}.banner-close-button[_ngcontent-%COMP%]{-webkit-transform:scale(.8);transform:scale(.8)}'],
changeDetection:0});var R9c=new ed("BigBirdOutageTemplate"),LK=function(){};LK.prototype.onCloseBannerButtonClicked=function(){};LK.\u0275fac=function(a){return new (a||LK)};
LK.\u0275cmp=C({type:LK,selectors:[["big-bird-outage"]],decls:6,vars:0,consts:[[1,"big-bird-outage"],["href","http://go/duckie-big-bird","target","_blank"]],template:function(a){a&1&&(Tf(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. ("),Tf(3,"a",1),Q(4,"go/duckie-big-bird"),Uf(),Q(5,"). "),Uf()())},dependencies:[ty],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 S9c=["customBigBirdOutage"],MK=function(){this.bigBirdOutageTemplate=p(R9c,{optional:!0});this.customBigBirdOutage=Rg.apply(null,["customBigBirdOutage"].concat(q([{read:hg}])))};MK.prototype.ngAfterViewInit=function(){this.bigBirdOutageTemplate&&this.customBigBirdOutage()&&(this.componentRef=this.customBigBirdOutage().createComponent(this.bigBirdOutageTemplate))};MK.\u0275fac=function(a){return new (a||MK)};
MK.\u0275cmp=C({type:MK,selectors:[["big-bird-outage-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customBigBirdOutage,S9c,hg);a&2&&rg()},decls:2,vars:1,consts:[["customBigBirdOutage",""]],template:function(a,b){a&1&&F(0,XNa,2,0,"ng-container")(1,YNa,1,0,"big-bird-outage");a&2&&G(b.bigBirdOutageTemplate?0:1)},dependencies:[ty,LK],encapsulation:2,changeDetection:0});var T9c=new ed("GeneralAnnouncementTemplate"),NK=function(){this.userStateService=p(yC)};NK.prototype.onCloseBannerButtonClicked=function(){iKc(this.userStateService)};NK.\u0275fac=function(a){return new (a||NK)};
NK.\u0275cmp=C({type:NK,selectors:[["general-announcement"]],decls:9,vars:0,consts:[[1,"banner","chat-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-s-right"],["href","http://b/395969863","target","_blank"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span"),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:[ty,$y,Yy],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 U9c=["customGeneralAnnouncement"],OK=function(){this.generalAnnouncementTemplate=p(T9c,{optional:!0});this.customGeneralAnnouncement=Rg.apply(null,["customGeneralAnnouncement"].concat(q([{read:hg}])))};OK.prototype.ngAfterViewInit=function(){this.generalAnnouncementTemplate&&this.customGeneralAnnouncement()&&(this.componentRef=this.customGeneralAnnouncement().createComponent(this.generalAnnouncementTemplate))};OK.\u0275fac=function(a){return new (a||OK)};
OK.\u0275cmp=C({type:OK,selectors:[["general-announcement-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customGeneralAnnouncement,U9c,hg);a&2&&rg()},decls:2,vars:1,consts:[["customGeneralAnnouncement",""]],template:function(a,b){a&1&&F(0,ZNa,2,0,"ng-container")(1,$Na,1,0,"general-announcement");a&2&&G(b.generalAnnouncementTemplate?0:1)},dependencies:[ty,NK],encapsulation:2,changeDetection:0});var V9c=new ed("IncognitoBannerTemplate"),PK=function(){};PK.\u0275fac=function(a){return new (a||PK)};
PK.\u0275cmp=C({type:PK,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:[ty,$y,Yy],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 W9c=["customIncognitoBanner"],QK=function(){this.incognitoBannerTemplate=p(V9c,{optional:!0});this.customIncognitoBanner=Rg.apply(null,["customIncognitoBanner"].concat(q([{read:hg}])))};QK.prototype.ngAfterViewInit=function(){this.incognitoBannerTemplate&&this.customIncognitoBanner()&&(this.componentRef=this.customIncognitoBanner().createComponent(this.incognitoBannerTemplate))};QK.\u0275fac=function(a){return new (a||QK)};
QK.\u0275cmp=C({type:QK,selectors:[["incognito-banner-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customIncognitoBanner,W9c,hg);a&2&&rg()},decls:2,vars:1,consts:[["customIncognitoBanner",""]],template:function(a,b){a&1&&F(0,aOa,2,0,"ng-container")(1,bOa,1,0,"incognito-banner");a&2&&G(b.incognitoBannerTemplate?0:1)},dependencies:[ty,PK],encapsulation:2,changeDetection:0});var X9c=[{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"}],Y9c=[{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?'}],Z9c=[{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 gOa=function(a,b){return b.title},eOa=function(a,b){return b.label},$9c=new ed("OnboardingExamplesTemplate"),RK=function(){var a=this;this.overridesService=p(RA);this.ve={ZeroStateSuggestionChipButton:201127};this.defaultOnboardingSections=[{title:"Coding",examples:cOa(X9c)},{title:"Planning",examples:cOa(Y9c)},{title:"Learning",examples:cOa(Z9c)}];this.clientConfiguration=Qg.apply(null,q([]));this.exampleQuery=Pg();this.overrideOnboardingExamples=zua(this.overridesService.overrideOnboardingExamplesList$.asObservable());
this.onboardingExamples=ah.apply(null,[function(){if(a.overrideOnboardingExamples())return a.overrideOnboardingExamples();var b;return((b=a.clientConfiguration())==null?0:b.onboardingExamples)?a.clientConfiguration().onboardingExamples:a.defaultOnboardingSections}].concat(q([])))};RK.prototype.setExampleQuery=function(a){this.exampleQuery.emit(a)};RK.\u0275fac=function(a){return new (a||RK)};
RK.\u0275cmp=C({type:RK,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,hOa,2,0),L());if(a&2){var c;B();G((c=b.onboardingExamples())?1:-1,c)}},dependencies:[ty,pC,nC,jC,sD,rD],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 a$c=["customOnboardingExamples"],SK=function(){this.clientConfiguration=Qg.apply(null,q([]));this.exampleQuery=Pg();this.onboardingExamplesTemplate=p($9c,{optional:!0});this.customOnboardingExamples=Rg.apply(null,["customOnboardingExamples"].concat(q([{read:hg}])))};
SK.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)}))};SK.\u0275fac=function(a){return new (a||SK)};
SK.\u0275cmp=C({type:SK,selectors:[["onboarding-examples-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customOnboardingExamples,a$c,hg);a&2&&rg()},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,iOa,2,0,"ng-container")(1,jOa,1,1,"onboarding-examples",1);a&2&&G(b.onboardingExamplesTemplate?0:1)},dependencies:[ty,
RK],encapsulation:2,changeDetection:0});var kOa=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:"How is CL throughput calculated?",prompt:"How is CL throughput calculated?"},{label:"Which metrics measure speed?",prompt:"Which metrics measure speed?"},{label:"What AI metrics do you recommend?",prompt:"What AI metrics do you recommend?"}]}]}],["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",n9c],["orchestration",{clientName:"Orchestration",clientLogoUrl:"https://g3doc.corp.google.com/supplychain/hw/orchestration2/g3doc/resources/images/orchestration_2_logo.svg",onboardingDescription:"DSS Orchestration 2.0 platform helps building complex system integration workflows and provides real-time execution, alerting and monitoring.",
onboardingExamples:[{title:"Get answers on DSS Orchestration",examples:[{label:"Onboard to Orchestration",prompt:"Tell me how to onboard to DSS Orchestration 2.0 system."},{label:"Debug error message",prompt:"Help me debug this error message: [add error message here]"},{label:"Design workflow definition",prompt:"How do I design my workflow definition in Orchestration 2?"}]}]}],["sfdbg",{clientName:"SFDBG",clientLogoUrl:"https://searchdebugger.corp.google.com/static/logo.svg",onboardingDescription:"See go/sfdbg-duckie-demo to learn how to use Duckie in SFDBG.",
onboardingExamples:[{title:"Get answers on SFDBG",examples:[{label:"Onboard to SFDBG",prompt:"Tell me how to onboard to SFDBG."},{label:"How to use SFDBG",prompt:"How to issue live, eval, or past queries in SFDBG?"},{label:"How to use SFDBG for debugging",prompt:"How to use SFDBG for debugging? Explain the different tabs and what they do and how to use them."}]}]}],["sigma",{clientName:"Sigma",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/sigma.svg",onboardingExamples:[{title:"Get contextual answers for Sigma",
examples:[{label:"Summarize",prompt:"Summarize the data displayed in this page."},{label:"Debug",prompt:"Analyze the data in this page. Look for problems and outliers. Suggest solutions or investigation steps."}]}]}],["spanner",{clientName:"Spanner",clientLogoUrl:"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/database_spark/default/24px.svg",onboardingExamples:[{title:"Get contextual answers on spanner details page",examples:[{label:"Spanner schema",prompt:"Show me the schema for this database."},
{label:"Query performance",prompt:"How can I improve the performance of my slowest query?"},{label:"Database backups",prompt:"What is the status of my database backups?"},{label:"Spanner automon",prompt:"Where can I find the automon dashboard for this database?"}]}],onboardingExamplesPerPageMap:new Map}],["taskflow",{clientName:"TaskFlow",clientLogoUrl:"https://www.gstatic.com/devopsconsole/images/taskflow/taskflow_logo_v1.svg",onboardingDescription:"TaskFlow assistant is a chat support agent powered by Duckie.\n      It's a customized version of Duckie web and configured to index answers\n      only in TaskFlow g3doc, TaskFlow YAQS and other planning resources.",
onboardingExamples:[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Inbox best practices",prompt:"What are the best practices for triaging items in the inbox?"},{label:"Bulk create issues",prompt:"How do I create tasks in bulk?"},{label:"Customize your views",prompt:"How do I customize saved views?"},{label:"Configure item default types",prompt:"How can I configure the default item types for my workspace?"},{label:"Manage cross-team commitments",prompt:"How to create a customized column in TaskFlow using Buganizer fields?"}]}],
onboardingExamplesPerPageMap:new Map([["homepage",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"What is a workspace?",prompt:"What is a workspace and when should I use one?"},{label:"What is a portfolio?",prompt:"What is a portfolio and when should I use one?"},{label:"Set up workspaces",prompt:"How do I set up a workspace for my team?"}]}]],["inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Remove items from the inbox",prompt:"How do I remove an item from the inbox?"},
{label:"Inbox best practices",prompt:"What are the best practices for triaging items in inbox?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I use them?"},{label:"Customize your views",prompt:"How do I create saved views?"}]}]],["iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"View burndown chart",prompt:"Where can I find burndown chart?"},{label:"Iteration best practices",prompt:"What are the best practices for using iterations?"},
{label:"Recurring iteration",prompt:"How to set up recurring iterations?"},{label:"Effort estimates",prompt:"How do I set up effort estimates for my team?"},{label:"Capacity planning",prompt:"How can I do capacity planning for my team?"}]}]],["goal",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"TaskFlow and OKRs",prompt:"What are the best practices of linking goals to OKRs?"},{label:"Goals best practices",prompt:"What are the best practices for organizing goals?"}]}]],
["tag",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Tags best practices",prompt:"What are the best practices for tags?"}]}]],["saved_query",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Create a saved search",prompt:"How do I create a saved search?"},{label:"TaskFlow query reference",prompt:"Show me the TaskFlow query reference."}]}]],["portofolio_inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Setup automatic triage",
prompt:"How does the inbox auto-scheduler work for portfolios?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I set them up?"},{label:"Remove items from inbox",prompt:"How do I remove items from my portfolio inbox?"}]}]],["portfolio_iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Recurring iterations",prompt:"How do I set up recurring iterations for my portfolio?"}]}]]]),modelIdOverride:"taskflow_assistant"}],["webviz",{clientName:"Webviz",
clientLogoUrl:"https://webviz.corp.google.com/static/webviz_logo.svg",onboardingDescription:"Customized version of Duckie grounded in Waymo, Webviz, and your current Webviz session.",onboardingExamples:[{title:"Getting Started",examples:[{label:"What is Webviz?",prompt:"Can you tell me more about Webviz and its main uses?"},{label:"How do I load a run segment?",prompt:"How do I load a specific run segment, for example run 20210801_220454_C01335 between 100s and 120s?"},{label:"How do I find a plugin?",
prompt:"How do I find and enable the Perception plugin?"},{label:"How do I share my session?",prompt:"How do I share my current Webviz view with someone else?"},{label:"How do I debug a hard brake?",prompt:"I see a hard brake event in the timeline, how can I investigate the cause?"}]}],onboardingExamplesPerPageMap:new Map}],["xmanager",{clientName:"XManager",clientLogoUrl:"https://xmanager.corp.google.com/static/images/logo.svg",onboardingDescription:"Ask me questions about your XManager experiments, debugging, resources, and more! File a bug at go/xm-duckie-bugs if you encounter any issues.",
onboardingExamples:[{title:"Get help with XManager",examples:[{label:"What can you do?",prompt:"What can you help me with regarding XManager?"},{label:"Debug failed experiment",prompt:"My experiment failed. Can you help me find out why?"},{label:"Check resources",prompt:"Do we have any VF accelerators available in the [Allotment Name] alloc?"},{label:"Find similar issues",prompt:"Are there any known issues in Buganizer about [Error Message Snippet]?"},{label:"Compare experiments",prompt:"What are the configuration differences between experiment [ID 1] and [ID 2]?"}]}]}],
["mendel",{clientName:"Mendel Insights Agent",clientLogoUrl:"https://experiments.corp.google.com/img/mendel-insights-logo.svg",onboardingExamples:[{title:"Get help with the Mendel Insights Agent",examples:[{label:"Analyze experiment results",prompt:"Analyze the results of this experiment"}]}]}]]);var oOa;var TK=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new gj;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};TK.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};TK.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
TK.prototype.getRoot=function(){var a;return(a=pOa(this.elementRef.nativeElement))!=null?a:document};TK.\u0275fac=function(a){return new (a||TK)(Ye(Jd))};TK.\u0275dir=df({type:TK,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var UK=function(){};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275mod=cf({type:UK});UK.\u0275inj=Gc({});var b$c=Symbol("Tc"),c$c=Symbol("Uc"),WK=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new gj;this[b$c]=new wf(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new Wj(!1);this.closeHovercard$=new sf};WK.prototype.ngOnInit=function(){};var d$c=function(a){var b=a[c$c];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[b$c].pipe(of(0))):ee(void 0)};WK.\u0275fac=function(a){return new (a||WK)(Ye(hg))};
WK.\u0275cmp=C({type:WK,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&jg(gg,7);if(a&2){var c;ng(c=og())&&(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&&(eg(),E(0,qOa,2,3,"ng-template"))},dependencies:[kz,TK],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 XK=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[c$c]=this};XK.\u0275fac=function(a){return new (a||XK)(Ye(gg),Ye(hg),Ye(Px),Ye(WK))};XK.\u0275dir=df({type:XK,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var YK=function(a){this.hovercard=a;this.destroyed$=new wf(1)};YK.prototype.ngOnDestroy=function(){this.destroyed$.next()};YK.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Bf(this.destroyed$)).subscribe(this.hovercard[b$c])};
YK.\u0275fac=function(a){return new (a||YK)(Ye(WK))};YK.\u0275dir=df({type:YK,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var ZK=function(){this.onAction=new gj;this.disabled=!1};ZK.prototype.handleClick=function(){this.onAction.emit()};ZK.\u0275fac=function(a){return new (a||ZK)};
ZK.\u0275cmp=C({type:ZK,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&&(eg(),K(0,"button",0),N("click",function(){return b.handleClick()}),fg(1),L());a&2&&I("disabled",b.disabled)},dependencies:[QI],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 e$c={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},f$c={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},g$c={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},h$c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},e$c,g$c,{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 $K=function(){this.showDelay=600;this.hideDelay=400;this.position=h$c;this.triggerKey=[]},aL=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new $K;this.active=!1;this.hovercardShown$=new wf(1);this.hide$=new sf;this.hovercard$=new Wj(null);this.isHovered$=new Wj(!1);this.isKeyboardActivated$=new Wj(!1);this.destroyed$=new wf(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(i$c(c),e.stopPropagation(),e.preventDefault())};j$c(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(Bf(this.destroyed$)).subscribe()},j$c=function(a){k$c(a).pipe(Bf(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};aL.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(Af(function(b){return(b==null?void 0:b.closeHovercard$)||Fx}),Bf(this.destroyed$)).subscribe(function(){i$c(a)})};aL.prototype.dispose=function(){l$c(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
aL.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};aL.prototype.toggle=function(a){this.isHovered$.next(a)};var i$c=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
aL.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,d$c(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()}))};aL.prototype.hide=function(){l$c(this);this.hide$.next()};
var l$c=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()}};aL.prototype.getPositionStrategy=function(){return Uz(Vz(Wz($z(this.overlay.position(),this.origin)),8),this.config.position)};
var k$c=function(a){return le([m$c(a).pipe(zf(!1)),a.isKeyboardActivated$]).pipe(yf(1),A(function(b){var c=l(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)}))},m$c=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=l(c);c=d.next().value;d=d.next().value;return c||d}),tla(function(c){return c?te(a.config.showDelay):te(a.config.hideDelay)}),
Bf(a.destroyed$))}))};var n$c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,nm("name"),nm("source"),{fieldType:1,fieldName:"state"})};n$c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};n$c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var o$c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,nm("source"),nm("name"))};o$c.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};o$c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var p$c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,nm("source"),nm("method_id"))};p$c.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};p$c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var q$c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,nm("source"),nm("method_id"),{fieldType:2,fieldName:"code"})};q$c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};q$c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var r$c={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 u$c=function(a){a=s$c(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+=t$c(a,g),c+=t$c(a,g+4),d+=t$c(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 r$c.toString(d)},v$c=function(a){return a},s$c=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},t$c=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var w$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w$c,W);w$c.prototype.getValueCase=function(){return Mo(this,x$c)};var x$c=[1,2,3];var y$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(y$c,W);y$c.prototype.getValueCase=function(){return Mo(this,z$c)};var z$c=[1,2,3];var A$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A$c,W);var B$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(B$c,W);B$c.prototype.getFieldName=function(){return ix(this,3)};B$c.prototype.setFieldName=function(a){return qx(this,3,a)};var C$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(C$c,W);var bL=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;Fi.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new pD(a,"0")).setComponentId(b),St(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(bL,Fi);bL.prototype.getLogSource=function(){return this.logSource};bL.prototype.getComponentId=function(){return this.componentId};
bL.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new C$c,c=[],d=0;d<a.length;d++){var e=a[d],f=new B$c;f=yj(f,1,e.metricName);var g=D$c(e);f=Zm(f,3,g);g=[];var k=[];for(var m=l(e.cellMap.keys()),r=m.next();!r.done;r=m.next())k.push(r.value.split(","));for(m=0;m<k.length;m++){r=k[m];var w=e.cellType;for(var x=e.getCells(r)||[],D=[],H=0;H<x.length;H++){var J=x[H],O=J&&J.cellValue;J=new y$c;switch(w){case 3:O=Number(O);Number.isFinite(O)&&gp(J,1,z$c,Ib(O,0));break;case 2:UXa(J,2,z$c,Number(O))}D.push(J)}w=
D;for(x=0;x<w.length;x++){D=w[x];H=new A$c;D=Zi(H,y$c,2,D);H=r;J=[];O=E$c(e);for(var R=0;R<O.length;R++){var V=O[R],ba=H[R],oa=new w$c;switch(V){case 3:Ro(oa,1,x$c,String(ba));break;case 2:V=Number(ba);Number.isFinite(V)&&gp(oa,2,x$c,V==null?V:Eb(V));break;case 1:V=ba==="true",gp(oa,3,x$c,V==null?V:yb(V))}J.push(oa)}$i(D,1,J);g.push(D)}}$i(f,4,g);c.push(f);e.clear()}$i(b,1,c);this.transport.dispatch(b);this.transport.flush()}};var F$c=function(a){this.cellValue=a};var G$c=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},E$c=function(a){return a.fields.map(function(b){return b.fieldType})},D$c=function(a){return a.fields.map(function(b){return b.fieldName})};h=G$c.prototype;h.addCell=function(a){var b=ad.apply(1,arguments),c=this.getCells(b);c?c.push(new F$c(a)):this.setCell(a,b)};h.setCell=function(a){var b=this.getKey(ad.apply(1,arguments));this.cellMap.set(b,[new F$c(a)])};
h.getCells=function(){var a=this.getKey(ad.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};h.getCell=function(){var a=this.getCells(ad.apply(0,arguments));return a&&a.length?a[0]:void 0};h.clear=function(){this.cellMap.clear()};h.getKey=function(){var a=ad.apply(0,arguments);return a?a.join(","):"key"};var H$c=function(a,b){G$c.call(this,a,3,b)};Y(H$c,G$c);H$c.prototype.incrementCounter=function(){this.incrementCounterBy(1,ad.apply(0,arguments))};H$c.prototype.incrementCounterBy=function(a){var b=ad.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var I$c=function(a,b){G$c.call(this,a,2,b)};Y(I$c,G$c);I$c.prototype.record=function(a){this.addCell(a,ad.apply(1,arguments))};var J$c=function(a){Fi.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new WC(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);St(this,this.flushTimer)};Y(J$c,Fi);var K$c=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};h=J$c.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);L$c(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};h.addNewCounter=function(a){var b=ad.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new H$c(a,b))};h.addNewEventMetric=function(a){var b=ad.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new I$c(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,ad.apply(1,arguments))};h.incrementCounterBy=function(a,b){var c=ad.apply(2,arguments),d=this.getMetric(a);d&&d instanceof H$c&&(d.incrementCounterBy(b,c),K$c(this))};h.record=function(a,b){var c=ad.apply(2,arguments),d=this.getMetric(a);d&&d instanceof I$c&&(d.record(b,c),K$c(this))};h.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var L$c=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var M$c=new ed("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(" ")}}),N$c=new ed("STREAMZ_PRODUCT_IDENTIFIER"),O$c=new ed("STREAMZ_ALLOWLIST_IDENTIFIER"),P$c=new ed("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return p(Tg).runOutsideAngular(function(){var a=new bL(1503);a=new J$c(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),cL=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new n$c(this.streamzService);new o$c(this.streamzService);new p$c(this.streamzService);new q$c(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(v$c);this.allowlistIdentifier=u$c(e!=null?e:this.productIdentifier)},R$c=function(a,b,c){a.zone.runOutsideAngular(function(){Q$c(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},Q$c=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};cL.\u0275fac=function(a){return new (a||cL)(Zc(P$c),Zc(Tg),Zc(M$c),Zc(N$c,8),Zc(O$c,8))};cL.\u0275prov=Fc({token:cL,factory:cL.\u0275fac,providedIn:"root"});var S$c=new ed("onedevHovercardLoggingOn"),dL=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new $K;this.onHovercardShown=new gj;this.destroyed$=new wf(1);this.triggerControl=new aL(a,b);this.triggerControl.hovercardShown$.pipe(Ef(d||ee(!1)),Bf(this.destroyed$)).subscribe(function(g){g=l(g);g.next();g=g.next().value;f.onHovercardShown.emit();g&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(cL)),R$c(f.clientStreamzService,"hovercardShown",!0))})};
h=dL.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 dA(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(dL.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
dL.\u0275fac=function(a){return new (a||dL)(Ye(iA),Ye(Jd),Ye(hg),Ye(S$c,8),Ye(Ae))};
dL.\u0275dir=df({type:dL,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:[xx]});var eL=function(){};eL.\u0275fac=function(a){return new (a||eL)};eL.\u0275mod=cf({type:eL});eL.\u0275inj=Gc({imports:[tz,UK,ty,bJ,lA]});var T$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T$c,W);h=T$c.prototype;h.getText=function(){return xi(this,1)};h.setText=function(a){return yj(this,1,a)};h.hasText=function(){return wm(this,1)};h.getType=function(){return Ii(this,3)};h.setType=function(a){return Vn(this,3,a)};h.hasType=function(){return xm(this,3)};var U$c=new ed("GM2_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var fL=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};fL.\u0275fac=function(a){return new (a||fL)(Ye(U$c))};
fL.\u0275dir=df({type:fL,selectors:[["mat-chip"],["mat-basic-chip"],["mat-chip-row"],["mat-basic-chip-row"],["mat-chip-option"],["mat-basic-chip-option"]],hostAttrs:[1,"gmat-mdc-chip"],hostVars:14,hostBindings:function(a,b){a&2&&yg("gmat-input-chip",b.appearance==="input")("gmat-filter-chip",b.appearance==="hairline-filter"||b.appearance==="protected-filter")("gmat-suggestive-chip",b.appearance==="hairline-suggestive"||b.appearance==="protected-suggestive")("gmat-assistive-chip",b.appearance==="hairline-assistive"||
b.appearance==="protected-assistive")("gmat-hairline-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="hairline-suggestive"||b.appearance==="hairline-assistive")("gmat-protected-chip",b.appearance==="protected-filter"||b.appearance==="protected-suggestive"||b.appearance==="protected-assistive")("gmat-selectable-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="protected-filter")},inputs:{appearance:"appearance"},standalone:!1});var V$c=new ed("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),W$c=new ed("MatChipAvatar"),X$c=new ed("MatChipTrailingIcon"),Y$c=new ed("MatChipEdit"),Z$c=new ed("MatChipRemove"),$$c=new ed("MatChip");var gL=function(){this._elementRef=p(Jd);this._parentChip=p($$c);this._isPrimary=!0;this._disabled=this._isLeading=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;p(bi).load(sA);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};gL.prototype._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};gL.prototype.focus=function(){this._elementRef.nativeElement.focus()};
da.Object.defineProperties(gL.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}}});gL.\u0275fac=function(a){return new (a||gL)};
gL.\u0275dir=df({type:gL,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),yg("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--secondary",!b._isPrimary)("mdc-evolution-chip__action--trailing",!b._isPrimary&&!b._isLeading))},inputs:{disabled:[2,"disabled","disabled",
bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:ch(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var hL=function(){gL.apply(this,arguments)};Y(hL,gL);hL.prototype._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()};hL.prototype._handleClick=function(a){!this.disabled&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
hL.prototype._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};hL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(hL)))(b||hL)}}();
hL.\u0275dir=df({type:hL,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()),yg("mdc-evolution-chip__action--presentational",!1))},features:[Gf]});var aad=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],iL=function(){this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._tagName=p(FAc);this._ngZone=p(Tg);this._focusMonitor=p(bz);this._globalRippleOptions=p(uA,{optional:!0});this._document=p(Uh);this._onFocus=new sf;this._onBlur=new sf;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=pi();this.id=p(di).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 gj;this.destroyed=new gj;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=p(BA);this._injector=p(Ae);var a=p(bi);a.load(sA);a.load(fz);this._monitorFocus();var b;(b=this._rippleLoader)==null||NFc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};h=iL.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||MFc(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(iL.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}}});iL.\u0275fac=function(a){return new (a||iL)};
iL.\u0275cmp=C({type:iL,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(kg(c,W$c,5),kg(c,Y$c,5),kg(c,X$c,5),kg(c,Z$c,5),kg(c,W$c,5),kg(c,X$c,5),kg(c,Y$c,5),kg(c,Z$c,5));if(a&2){var d;ng(d=og())&&(b.leadingIcon=d.first);ng(d=og())&&(b.editIcon=d.first);ng(d=og())&&(b.trailingIcon=d.first);ng(d=og())&&(b.removeIcon=d.first);ng(d=og())&&(b._allLeadingIcons=d);ng(d=og())&&(b._allTrailingIcons=d);ng(d=og())&&(b._allEditIcons=
d);ng(d=og())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&jg(hL,5);if(a&2){var c;ng(c=og())&&(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&&(Sf("id",b.id),Kf("role",b.role)("aria-label",b.ariaLabel),zg("mat-"+(b.color||"primary")),yg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",
b.leadingIcon)("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",b.highlighted)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-basic-chip",b._isBasicChip)("mat-mdc-standard-chip",!b._isBasicChip)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon())("_mat-animation-noopable",b._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,
"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",bh],highlighted:[2,"highlighted","highlighted",bh],disableRipple:[2,"disableRipple","disableRipple",bh],disabled:[2,"disabled","disabled",bh]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ig([{provide:$$c,useExisting:iL}])],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&&(eg(aad),M(0,"span",0),K(1,"span",1)(2,"span",2),F(3,rOa,2,0,"span",3),K(4,"span",4),fg(5),
M(6,"span",5),L()()(),F(7,sOa,2,0,"span",6));a&2&&(B(3),G(b.leadingIcon?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[gL],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],
encapsulation:2,changeDetection:0});var jL=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._dir=p(ei,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new sf;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new ig};h=jL.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);mg(a._chipActions)});this._keyManager=Ez(Dz(Cz(new Hz(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))&&
Fz(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(Bf(this._destroyed)).subscribe(function(c){return Dz(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(jL.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()}}});jL.\u0275fac=function(a){return new (a||jL)};
jL.\u0275cmp=C({type:jL,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&kg(c,iL,5);if(a&2){var d;ng(d=og())&&(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",bh],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(eg(),Tf(0,"div",0),fg(1),Uf())},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 kL=function(){};kL.\u0275fac=function(a){return new (a||kL)};kL.\u0275dir=df({type:kL,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Ig([{provide:W$c,useExisting:kL}])]});var lL=function(){gL.apply(this,arguments);this._isPrimary=!1};Y(lL,gL);lL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(lL)))(b||lL)}}();
lL.\u0275dir=df({type:lL,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:["aria-hidden","true",1,"mat-mdc-chip-trailing-icon","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],features:[Ig([{provide:X$c,useExisting:lL}]),Gf]});var bad=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],mL=function(){iL.apply(this,arguments);this._defaultOptions=p(V$c,{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 gj};Y(mL,iL);h=mL.prototype;h.ngOnInit=function(){iL.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(mL.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}}});
mL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(mL)))(b||mL)}}();
mL.\u0275cmp=C({type:mL,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&&(Sf("id",b.id),Kf("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),yg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--filter",!b._isBasicChip)("mdc-evolution-chip--selectable",!b._isBasicChip)("mat-mdc-chip-selected",b.selected)("mat-mdc-chip-multiple",
b._chipListMultiple)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-chip-with-avatar",b.leadingIcon)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--selected",b.selected)("mdc-evolution-chip--selecting",!b._animationsDisabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-primary-graphic",b._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",
b.highlighted)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",bh],selected:[2,"selected","selected",bh]},outputs:{selectionChange:"selectionChange"},features:[Ig([{provide:iL,useExisting:mL},{provide:$$c,useExisting:mL}]),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&&(eg(bad),M(0,"span",0),K(1,"span",1)(2,"button",2),F(3,tOa,5,0,"span",3),K(4,"span",4),fg(5),M(6,"span",5),L()()(),F(7,uOa,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:[hL],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],
encapsulation:2,changeDetection:0});var cad=function(a,b){this.source=a;this.value=b},dad={provide:lE,useExisting:Xc(function(){return nL}),multi:!0},nL=function(){jL.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=p(V$c,{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 gj;this._chips=void 0};Y(nL,jL);h=nL.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&&jL.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 cad(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(nL.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}}});nL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nL)))(b||nL)}}();
nL.\u0275cmp=C({type:nL,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&kg(c,mL,5);if(a&2){var d;ng(d=og())&&(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&&(Sf("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),yg("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",bh],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",bh],compareWith:"compareWith",required:[2,"required","required",bh],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",bh],value:"value"},
outputs:{change:"change"},features:[Ig([dad]),Gf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(eg(),Tf(0,"div",0),fg(1),Uf())},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 oL=function(){};oL.\u0275fac=function(a){return new (a||oL)};oL.\u0275mod=cf({type:oL});oL.\u0275inj=Gc({providers:[rA,{provide:V$c,useValue:{separatorKeyCodes:[13]}}],imports:[yA,Zy]});var pL=function(){};pL.\u0275fac=function(a){return new (a||pL)};pL.\u0275mod=cf({type:pL});pL.\u0275inj=Gc({imports:[oL]});var qL=function(){};qL.\u0275fac=function(a){return new (a||qL)};qL.\u0275prov=Fc({token:qL,factory:qL.\u0275fac,providedIn:"root"});var COa=function(a){return{configuration:a}},JOa=function(a,b){return b.agentId},ead=new ed("OnboardingTemplate"),rL=function(a,b,c,d){var e=this;this.userStateService=a;this.conversationAgentsService=b;this.overridesService=c;this.threadService=d;this.experimentsService=p(GA);this.communicationService=p(KB);p(qL);this.configurationKey=Qg.apply(null,q([]));this.pageId=Qg.apply(null,q([]));this.dynamicDuckieMModelId=Uw.modelId;this.duckieBigBird=Sw.agentId;this.duckieBanners=wAc().map(function(f){f=
pAc(f);return wta(T$c,"["+f.substring(4))});this.agentSelectorEnabled=!1;this.sVsMGooseModelEnabled=this.experimentsService.sVsMGooseModelEnabled;this.exampleQuery="";this.duckieBigBirdStrikeEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.clientConfiguration=ah.apply(null,[function(){var f=nOa(e.configurationKey()||""),g=e.pageId()||"";f&&e.communicationService.setParentIntegrator(!0);var k,m;if((k=f)==null?0:(m=k.onboardingExamplesPerPageMap)==null?0:m.has(g))f=Object.assign({},f,
{onboardingExamples:f.onboardingExamplesPerPageMap.get(g)});return f}].concat(q([])));this.showOnboardingExamples=ah.apply(null,[function(){var f;return((f=e.clientConfiguration())==null?void 0:f.onboardingExamples)!==void 0||!e.experimentsService.sVsMGooseModelEnabled&&!e.experimentsService.experimentalDuckieAgentEnabled}].concat(q([])));this.routingService=p(NB);this.userStateLoaded$=this.userStateService.userStateLoaded$;this.showIncognitoBanner$=this.userStateService.isEnforcedPrivateMode$;this.showGeneralAnnouncementBanner$=
new Wj(!1);this.agentSelectorEnabled=this.conversationAgentsService.duckieConversationAgentEnabled;this.availableConversationAgents$=this.conversationAgentsService.availableConversationAgents$;this.currentConversationAgent$=this.conversationAgentsService.currentConversationAgent$};rL.prototype.ngOnInit=function(){var a=this;return y(function(b){if(b.nextAddress==1)return fad(a),z(b,gad(a),2);had(a);return z(b,iad(a),0)})};
var fad=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(Tw.agentDisplayName);b&&d.push(Sw.agentDisplayName);d.length>0&&LOa(a,{value:d})})},gad=function(a){var b,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return MB(a.conversationAgentsService)!==(a.conversationAgentsService.experimentsService.a2aDefaultAgentEnabled?Byc:Cyc)&&a.clientConfiguration()!==void 0?k.return():
z(k,lKc(a.userStateService),2);c=(b=k.yieldResult)!=null?b:[];a.duckieBigBirdStrikeEnabled&&((d=c)==null?0:d.includes(1))&&(c=c.filter(function(m){return m!==1}));e=c.includes(1);f=c.includes(2);e&&f?a.conversationAgentsService.currentConversationAgentInternal.next(Uw):c.length===1&&e?(g=a.experimentsService.a2aDefaultAgentEnabled?Dyc:Sw,a.conversationAgentsService.currentConversationAgentInternal.next(g)):c.length===1&&f&&a.conversationAgentsService.currentConversationAgentInternal.next(Tw);ce(k)})},
LOa=function(a,b){b=Array.isArray(b.value)&&b.value.length!==0?b.value.length===1?a.experimentsService.a2aDefaultAgentEnabled?b.value[0]===Tw.agentDisplayName?Tw:Dyc:b.value[0]===Tw.agentDisplayName?Tw:Sw:Uw:a.conversationAgentsService.experimentsService.a2aDefaultAgentEnabled?Byc:Cyc;var c=a.getDuckieModelPreferences(b);a.conversationAgentsService.currentConversationAgentInternal.next(b);mKc(a.userStateService,c)};
rL.prototype.getDuckieModelPreferences=function(a){switch(a){case Tw:return[2];case Sw:return[1];case Dyc:return[1];case Uw:return[1,2];default:return[0]}};
var had=function(a){a.routingService.queryParams.pipe(nf(1)).subscribe(function(b){var c=b.conversationAgentId;c&&(b=Gyc.find(function(d){return d.agentId===c}))&&a.conversationAgentsService.currentConversationAgentInternal.next(b)})},iad=function(a){var b;return y(function(c){return(b=a.routingService.snapshot.queryParams.q)?z(c,a.addMessage(b),0):c.return()})};
rL.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,LNa(b.routingService,"",{queryParams:(g.q=null,g.preamble=null,g.parentUrl=null,g),queryParamsHandling:"merge"}),2)):z(k,wQc(b.threadService,a),0)})};
rL.prototype.setExampleQuery=function(a){this.exampleQuery=a};rL.\u0275fac=function(a){return new (a||rL)(Ye(yC),Ye(LB),Ye(RA),Ye(RD))};
rL.\u0275cmp=C({type:rL,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"],[1,"margin-s-top",3,"submitMessage","inputText"],[3,"bannerType","bannerText","dismissalType"],[1,"onboarding-header","margin-y","gmat-headline-1"],[3,"exampleQuery","clientConfiguration"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"agent-selector","flex-column","align-items-center"],["id","agent-selector-description",1,"agent-selector-description"],[1,"agent-chips-wrapper","flex-row","align-items-center"],["multiple","","aria-labelledby","agent-selector-description",1,"agent-selector-chips",3,"change"],[1,"onedev-hovercard-content","padded-s","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,vOa,1,0,"incognito-banner-wrapper");T(2,"async");T(3,"async");F(4,wOa,1,0,"general-announcement-wrapper");T(5,"async");Qf(6,yOa,1,1,null,null,Pf);F(8,AOa,2,1)(9,GOa,5,3);L();F(10,MOa,31,3);K(11,"message-input-wrapper",5);N("submitMessage",function(d){u(c);return v(b.addMessage(d))});L();E(12,QOa,5,3,"ng-template",null,0,Og)(14,ROa,2,1,"ng-template",null,1,Og)}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),Rf(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:[ty,ky,KK,OK,pL,fL,kL,nL,mL,GK,eL,WK,dL,QK,$y,Yy,wF,SK,yF,MK,ly],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 jad=["customOnboarding"],sL=function(){this.configurationKey=Qg.apply(null,q([]));this.pageId=Qg.apply(null,q([]));this.onboardingTemplate=p(ead,{optional:!0});this.customOnboarding=Rg.apply(null,["customOnboarding"].concat(q([{read:hg}])))};
sL.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)};sL.\u0275fac=function(a){return new (a||sL)};
sL.\u0275cmp=C({type:sL,selectors:[["onboarding-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customOnboarding,jad,hg);a&2&&rg()},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,SOa,2,0,"ng-container")(3,TOa,1,2,
"onboarding",3),L()());a&2&&(B(2),G(b.onboardingTemplate?2:3))},dependencies:[ty,rL],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 tL=function(){};tL.\u0275fac=function(a){return new (a||tL)};tL.\u0275mod=cf({type:tL});tL.\u0275inj=Gc({imports:[rL,xF,PK,NK,RK,yF,QK,OK,SK,sL,LK,MK]});var uL=function(){gC.call(this);this.hoverDelayMs=500;this.activity=new sf;this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(uL,gC);h=uL.prototype;h.ngOnInit=function(){gC.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
h.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(mla(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}),Sla(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 gi(Object.assign({},this.overlayDimensions,{positionStrategy:gC.prototype.createPositionStrategy.call(this,a),scrollStrategy:SJc(this),panelClass:this.panelClassInternal}))};uL.\u0275fac=function(a){return new (a||uL)};
uL.\u0275dir=df({type:uL,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Gf]});var kad=["*"],lad=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}"},
vL=function(){this.disabled=!1};vL.\u0275fac=function(a){return new (a||vL)};vL.\u0275cmp=C({type:vL,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),yg("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:kad,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:[lad()],encapsulation:2,changeDetection:0});
var wL=function(){this.disabled=!1};wL.\u0275fac=function(a){return new (a||wL)};wL.\u0275cmp=C({type:wL,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:kad,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},styles:[lad()],encapsulation:2,changeDetection:0});var mad=function(){};mad.\u0275fac=function(a){return new (a||mad)};
mad.\u0275cmp=C({type:mad,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,UOa,2,0,"ng-template",null,0,Og));a&2&&(a=sg(9),B(2),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[ty,$y,Yy,pC,uL],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 nad=new ed("GM2_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var xL=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};xL.\u0275fac=function(a){return new (a||xL)(Ye(nad))};xL.\u0275dir=df({type:xL,selectors:[["mat-checkbox"]],hostAttrs:[1,"gmat-mdc-checkbox"],standalone:!1});var yL=function(){};yL.\u0275fac=function(a){return new (a||yL)};yL.\u0275mod=cf({type:yL});yL.\u0275inj=Gc({providers:[{provide:x2c,useValue:{color:"primary"}}],imports:[sI]});var zL=function(){this.dialogRef=p(SB);this.userStateService=p(yC);this.threadService=p(RD);this.allowPersonalResults$=this.userStateService.allowPersonalResults$.pipe(we(Td));this.initialAllowPersonalResults=this.userStateService.allowPersonalResults$.getValue();this.userAllowedPersonalResults=this.userStateService.allowPersonalResults$.getValue()};zL.\u0275fac=function(a){return new (a||zL)};
zL.\u0275cmp=C({type:zL,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&&(jKc(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:[ty,pC,nC,jC,yL,xL,rI,
cK,WB,YB,$B,ZB,GK,$y,Yy,ly],styles:["[_nghost-%COMP%]{font-family:Google Sans,sans-serif;background-color:var(--tonal-fill-blue)}"],changeDetection:0});var oad={maxWidth:300,disableClose:!0};var AL=function(){this.viewContainerRef=p(hg);this.dialog=p(VB)};AL.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(zL,Object.assign({},oad,{viewContainerRef:this.viewContainerRef}))};AL.\u0275fac=function(a){return new (a||AL)};
AL.\u0275cmp=C({type:AL,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,VOa,6,0,"ng-template",null,0,Og));a&2&&(a=sg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[ty,$y,Yy,pC,nC,jC,uL],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 pad=new ed("GM2_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var qad=function(a){this._items=a};qad.prototype.hide=function(){this._items.forEach(function(a){return rad(a)});this._currentItem=void 0};
var tad=function(a,b){var c=a._items.find(function(g){return g.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||rad(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);sad(c,d);a._currentItem=c}},BL=function(){this._elementRef=p(Jd);this._fitToContent=!1},sad=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")},rad=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};BL.prototype.ngOnInit=function(){this._createInkBarElement()};
BL.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};BL.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()};
BL.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};da.Object.defineProperties(BL.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});BL.\u0275fac=function(a){return new (a||BL)};
BL.\u0275dir=df({type:BL,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",bh]}});new ed("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var uad={passive:!0},CL=function(){var a=this;this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._viewportRuler=p(Th);this._dir=p(ei,{optional:!0});this._ngZone=p(Tg);this._platform=p(Yh);this._sharedResizeObserver=p(ZD);this._injector=p(Ae);this._renderer=p(fi);this._animationsDisabled=pi();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 gj;this.indexFocused=new gj;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};h=CL.prototype;
h.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},uad),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},uad))};
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=Bz(Ez(Dz(new Hz(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});Fz(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||Dz(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(!Jh(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)?tad(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(CL.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&&Fz(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)}}});CL.\u0275fac=function(a){return new (a||CL)};CL.\u0275dir=df({type:CL,inputs:{disablePagination:[2,"disablePagination","disablePagination",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var vad=["content"],EL=function(){gA.call(this);this._host=p(DL);this._ngZone=p(Tg);this._leavingSub=this._centeringSub=Rd.EMPTY};Y(EL,gA);
EL.prototype.ngOnInit=function(){var a=this;gA.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()})})};
EL.prototype.ngOnDestroy=function(){gA.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};EL.\u0275fac=function(a){return new (a||EL)};EL.\u0275dir=df({type:EL,selectors:[["","matTabBodyHost",""]],features:[Gf]});
var DL=function(){var a=this;this._elementRef=p(Jd);this._dir=p(ei,{optional:!0});this._ngZone=p(Tg);this._injector=p(Ae);this._renderer=p(fi);this._diAnimationsDisabled=pi();this._dirChangeSubscription=Rd.EMPTY;this._onCentering=new gj;this._beforeCentering=new gj;this._afterLeavingCenter=new gj;this._onCentered=new gj(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=p(Px);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};h=DL.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(DL.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});DL.\u0275fac=function(a){return new (a||DL)};
DL.\u0275cmp=C({type:DL,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(jg(EL,5),jg(vad,5));if(a&2){var c;ng(c=og())&&(b._portalHost=c.first);ng(c=og())&&(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,WOa,0,0,"ng-template",2),L());a&2&&yg("mat-tab-body-content-left",b._position==="left")("mat-tab-body-content-right",b._position==="right")("mat-tab-body-content-can-animate",b._position==="center"||b._previousPosition==="center")},dependencies:[EL,Lz],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 wad=new ed("MAT_TABS_CONFIG");var xad=new ed("MatTabContent"),FL=function(){this.template=p(gg)};FL.\u0275fac=function(a){return new (a||FL)};FL.\u0275dir=df({type:FL,selectors:[["","matTabContent",""]],features:[Ig([{provide:xad,useExisting:FL}])]});var GL=function(){BL.apply(this,arguments);this.elementRef=p(Jd);this.disabled=!1};Y(GL,BL);GL.prototype.focus=function(){this.elementRef.nativeElement.focus()};GL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GL)))(b||GL)}}();GL.\u0275dir=df({type:GL,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Kf("aria-disabled",!!b.disabled),yg("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",bh]},features:[Gf]});var yad=["tabListContainer"],zad=["tabList"],Aad=["tabListInner"],Bad=["nextPaginator"],Cad=["previousPaginator"],HL=function(){CL.apply(this,arguments);this.disableRipple=!1};Y(HL,CL);HL.\u0275dir=CL.\u0275dir;HL.prototype.ngAfterContentInit=function(){this._inkBar=new qad(this._items);CL.prototype.ngAfterContentInit.call(this)};HL.prototype._itemSelected=function(a){a.preventDefault()};HL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(HL)))(b||HL)}}();
HL.\u0275cmp=C({type:HL,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&kg(c,GL,4);if(a&2){var d;ng(d=og())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(jg(yad,7),jg(zad,7),jg(Aad,7),jg(Bad,5),jg(Cad,5));if(a&2){var c;ng(c=og())&&(b._tabListContainer=c.first);ng(c=og())&&(b._tabList=c.first);ng(c=og())&&(b._tabListInner=c.first);ng(c=og())&&(b._nextPaginator=c.first);ng(c=og())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&yg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",bh]},features:[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();eg();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);fg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);
return v(b._handlePaginatorClick("after"))})("touchend",function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(3),yg("_mat-animation-noopable",b._animationsDisabled),B(2),Kf("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),B(5),yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[vA,qz],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 Dad=new ed("MatTabLabel"),Ead=new ed("MAT_TAB"),IL=function(){fA.apply(this,arguments);this._closestTab=p(Ead,{optional:!0})};Y(IL,fA);IL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IL)))(b||IL)}}();IL.\u0275dir=df({type:IL,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ig([{provide:Dad,useExisting:IL}]),Gf]});var Fad=new ed("MAT_TAB_GROUP"),JL=function(){this._viewContainerRef=p(hg);this._closestTabGroup=p(Fad,{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(bi).load(sA)};JL.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};JL.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
JL.prototype.ngOnInit=function(){this._contentPortal=new dA(this._explicitContent||this._implicitContent,this._viewContainerRef)};JL.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};da.Object.defineProperties(JL.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}}});
JL.\u0275fac=function(a){return new (a||JL)};
JL.\u0275cmp=C({type:JL,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(kg(c,IL,5),kg(c,FL,7,gg));if(a&2){var d;ng(d=og())&&(b.templateLabel=d.first);ng(d=og())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&jg(gg,7);if(a&2){var c;ng(c=og())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(a){a&2&&Kf("id",null)},inputs:{disabled:[2,"disabled","disabled",bh],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,
"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ig([{provide:Ead,useExisting:JL}]),xx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),If(0,XOa,1,0,"ng-template"))},encapsulation:2});var Gad=["tabBodyWrapper"],Had=["tabHeader"],KL=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(Px);this._ngZone=p(Tg);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=Rd.EMPTY;this._diAnimationsDisabled=pi();this._tabs=new ig;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 gj;this.focusChange=new gj;this.animationDone=new gj;this.selectedTabChange=new gj(!0);this._isServer=!p(Yh).isBrowser;var a=p(wad,{optional:!0});this._groupId=p(di).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=KL.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}));mg(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 Iad;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(KL.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}}});
KL.\u0275fac=function(a){return new (a||KL)};
KL.\u0275cmp=C({type:KL,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&kg(c,JL,5);if(a&2){var d;ng(d=og())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(jg(Gad,5),jg(Had,5),jg(DL,5));if(a&2){var c;ng(c=og())&&(b._tabBodyWrapper=c.first);ng(c=og())&&(b._tabHeader=c.first);ng(c=og())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(Kf("mat-align-tabs",b.alignTabs),zg("mat-"+(b.color||"primary")),xg("--mat-tab-animation-duration",
b.animationDuration),yg("mat-mdc-tab-group-dynamic-height",b.dynamicHeight)("mat-mdc-tab-group-inverted-header",b.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",b.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",bh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",bh],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ch],disablePagination:[2,"disablePagination","disablePagination",bh],disableRipple:[2,"disableRipple","disableRipple",bh],preserveContent:[2,"preserveContent","preserveContent",bh],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ig([{provide:Fad,useExisting:KL}])],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();eg();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)});Qf(2,aPa,8,17,"div",4,Pf);L();F(4,bPa,1,0);K(5,"div",5,1);Qf(7,cPa,1,10,"mat-tab-body",6,Pf);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),Rf(b._tabs),B(2),G(b._isServer?4:-1),B(),yg("_mat-animation-noopable",b._animationsDisabled()),B(2),Rf(b._tabs))},dependencies:[HL,GL,dz,vA,gA,DL],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 Iad=function(){};var Jad=["tabListContainer"],Kad=["tabList"],Lad=["tabListInner"],Mad=["nextPaginator"],Nad=["previousPaginator"],Oad=["*"],LL=function(){var a=p(wad,{optional:!0});CL.call(this);this._focusedItem=pg.apply(null,[null].concat(q([])));this._fitInkBarToContent=new Wj(!1);this.stretchTabs=!0;this._disableRipple=pg.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(LL,CL);LL.\u0275dir=CL.\u0275dir;LL.prototype._itemSelected=function(){};
LL.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new qad(this._items);this._items.changes.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){return Pad(a)});CL.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)})};LL.prototype.ngAfterViewInit=function(){CL.prototype.ngAfterViewInit.call(this)};
var Pad=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}};LL.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};LL.prototype._hasFocus=function(a){var b;return((b=this._keyManager)==null?void 0:b.activeItem)===a};
da.Object.defineProperties(LL.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)}}});LL.\u0275fac=function(a){return new (a||LL)};
LL.\u0275cmp=C({type:LL,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&kg(c,ML,5);if(a&2){var d;ng(d=og())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(jg(Jad,7),jg(Kad,7),jg(Lad,7),jg(Mad,5),jg(Nad,5));if(a&2){var c;ng(c=og())&&(b._tabListContainer=c.first);ng(c=og())&&(b._tabList=c.first);ng(c=og())&&(b._tabListInner=c.first);ng(c=og())&&(b._nextPaginator=c.first);ng(c=og())&&(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()),xg("--mat-tab-animation-duration",b.animationDuration),yg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",b.stretchTabs)("mat-primary",b.color!=="warn"&&b.color!=="accent")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._animationsDisabled))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent",
"fitInkBarToContent",bh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",bh],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",bh],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[Gf],attrs:["mat-tab-nav-bar",""],ngContentSelectors:Oad,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();eg();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);fg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);return v(b._handlePaginatorClick("after"))})("touchend",
function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(10),yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[vA,qz],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 ML=function(){BL.call(this);var a=this;this._tabNavBar=p(LL);this.elementRef=p(Jd);this._focusMonitor=p(bz);this._destroyed=new sf;this._isActive=!1;this._tabIndex=ah.apply(null,[function(){return a._tabNavBar._focusedItem()===a?a.tabIndex:-1}].concat(q([])));this.disabled=!1;this._disableRipple=pg.apply(null,[!1].concat(q([])));this.tabIndex=0;this.id=p(di).getId("mat-tab-link-");p(bi).load(sA);var b=p(uA,{optional:!0}),c=p(new yx("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=
c==null?0:parseInt(c)||0;pi()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(Bf(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};Y(ML,BL);ML.\u0275dir=BL.\u0275dir;h=ML.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();BL.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(ML.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,Pad(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}}});
ML.\u0275fac=function(a){return new (a||ML)};
ML.\u0275cmp=C({type:ML,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()),yg("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",bh],disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],id:"id"},exportAs:["matTabLink"],features:[Gf],attrs:["mat-tab-link",""],ngContentSelectors:Oad,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&&(eg(),M(0,"span",0)(1,"div",1),K(2,"span",2)(3,"span",3),fg(4),L()());a&2&&(B(),I("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[vA],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 Qad=function(){this.id=p(di).getId("mat-tab-nav-panel-")};Qad.\u0275fac=function(a){return new (a||Qad)};Qad.\u0275cmp=C({type:Qad,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:Oad,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},encapsulation:2,changeDetection:0});var NL=function(){};NL.\u0275fac=function(a){return new (a||NL)};NL.\u0275mod=cf({type:NL});NL.\u0275inj=Gc({imports:[Zy]});var OL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};da.Object.defineProperties(OL.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())}}});OL.\u0275fac=function(a){return new (a||OL)(Ye(pad),Ye(Px),Ye(KL))};
OL.\u0275dir=df({type:OL,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var PL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;if(this.options.disableGmatStyle)throw Error("wb");this.appearance=this.options.appearance};
da.Object.defineProperties(PL.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())}}});PL.\u0275fac=function(a){return new (a||PL)(Ye(pad),Ye(Px),Ye(LL))};
PL.\u0275dir=df({type:PL,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&yg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var QL=function(){};QL.\u0275fac=function(a){return new (a||QL)};QL.\u0275mod=cf({type:QL});QL.\u0275inj=Gc({imports:[NL]});var Rad=new ed("CdkAccordion"),RL=function(){this._stateChanges=new sf;this._openCloseAllActions=new sf;this.id=p(di).getId("cdk-accordion-");this.multi=!1};RL.prototype.closeAll=function(){this._openCloseAllActions.next(!1)};RL.prototype.ngOnChanges=function(a){this._stateChanges.next(a)};RL.prototype.ngOnDestroy=function(){this._stateChanges.complete();this._openCloseAllActions.complete()};RL.\u0275fac=function(a){return new (a||RL)};
RL.\u0275dir=df({type:RL,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",bh]},exportAs:["cdkAccordion"],features:[Ig([{provide:Rad,useExisting:RL}]),xx]});var SL=function(){this.accordion=p(Rad,{optional:!0,skipSelf:!0});this._changeDetectorRef=p(Px);this._expansionDispatcher=p(Nz);this._openCloseAllSubscription=Rd.EMPTY;this.closed=new gj;this.opened=new gj;this.destroyed=new gj;this.expandedChange=new gj;this.id=p(di).getId("cdk-accordion-child-");this._expanded=!1;this._disabled=pg.apply(null,[!1].concat(q([])));this._removeUniqueSelectionListener=function(){}};h=SL.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(SL.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)}}});
SL.\u0275fac=function(a){return new (a||SL)};SL.\u0275dir=df({type:SL,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",bh],disabled:[2,"disabled","disabled",bh]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ig([{provide:Rad,useValue:void 0}])]});var TL=function(){};TL.\u0275fac=function(a){return new (a||TL)};TL.\u0275mod=cf({type:TL});TL.\u0275inj=Gc({});var Sad=new ed("MAT_ACCORDION");var Tad=new ed("MAT_EXPANSION_PANEL");var UL=function(){this._template=p(gg);this._expansionPanel=p(Tad,{optional:!0})};UL.\u0275fac=function(a){return new (a||UL)};UL.\u0275dir=df({type:UL,selectors:[["ng-template","matExpansionPanelContent",""]]});var Uad=["body"],Vad=["bodyWrapper"],Wad=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xad=new ed("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),VL=function(){SL.call(this);var a=this;this._viewContainerRef=p(hg);this._animationsDisabled=pi();this._document=p(Uh);this._ngZone=p(Tg);this._elementRef=p(Jd);this._renderer=p(fi);this._hideToggle=!1;this.afterExpand=new gj;this.afterCollapse=new gj;this._inputChanges=new sf;this.accordion=p(Sad,{optional:!0,skipSelf:!0});this._headerId=p(di).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(Xad,{optional:!0});this._expansionDispatcher=p(Nz);b&&(this.hideToggle=b.hideToggle)};Y(VL,SL);VL.\u0275dir=SL.\u0275dir;h=VL.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 dA(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
h.ngOnChanges=function(a){this._inputChanges.next(a)};h.ngOnDestroy=function(){SL.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(VL.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}}});VL.\u0275fac=function(a){return new (a||VL)};
VL.\u0275cmp=C({type:VL,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&kg(c,UL,5);if(a&2){var d;ng(d=og())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(jg(Uad,5),jg(Vad,5));if(a&2){var c;ng(c=og())&&(b._body=c.first);ng(c=og())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&yg("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",bh],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ig([{provide:Sad,useValue:void 0},{provide:Tad,useExisting:VL}]),Gf,xx],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&&(eg(Wad),fg(0),K(1,"div",2,0)(3,"div",3,1)(5,"div",4),fg(6,1),E(7,dPa,0,0,"ng-template",5),L(),fg(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:[gA],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 Yad=function(){};Yad.\u0275fac=function(a){return new (a||Yad)};Yad.\u0275dir=df({type:Yad,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var Zad=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],WL=function(){var a=this;this.panel=p(VL,{host:!0});this._element=p(Jd);this._focusMonitor=p(bz);this._changeDetectorRef=p(Px);this._parentChangeSubscription=Rd.EMPTY;this.tabIndex=0;p(bi).load(sA);var b=this.panel,c=p(Xad,{optional:!0}),d=p(new yx("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 cz(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};h=WL.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:Jh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};h.focus=function(a,b){a?cz(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(WL.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});WL.\u0275fac=function(a){return new (a||WL)};
WL.\u0275cmp=C({type:WL,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),xg("height",b._getHeaderHeight()),yg("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
b._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",b._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}]},ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],"xmlns;http://www.w3.org/2000/svg;viewBox;0 -960 960 960;aria-hidden;true;focusable;false".split(";"),["d",
"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(a,b){a&1&&(eg(Zad),Tf(0,"span",0),fg(1),fg(2,1),fg(3,2),Uf(),F(4,ePa,3,0,"span",1));a&2&&(yg("mat-content-hide-toggle",!b._showToggle()),B(4),G(b._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],
encapsulation:2,changeDetection:0});var $ad=function(){};$ad.\u0275fac=function(a){return new (a||$ad)};$ad.\u0275dir=df({type:$ad,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var XL=function(){};XL.\u0275fac=function(a){return new (a||XL)};XL.\u0275dir=df({type:XL,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var YL=function(){RL.apply(this,arguments);this._ownHeaders=new ig;this.hideToggle=!1;this.displayMode="default";this.togglePosition="after"};Y(YL,RL);YL.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}));mg(a._ownHeaders)});this._keyManager=Ez(Bz(new Hz(this._ownHeaders)))};YL.prototype._handleHeaderKeydown=function(a){this._keyManager.onKeydown(a)};
YL.prototype._handleHeaderFocus=function(a){Fz(this._keyManager,a)};YL.prototype.ngOnDestroy=function(){RL.prototype.ngOnDestroy.call(this);var a;(a=this._keyManager)==null||a.destroy();this._ownHeaders.destroy()};YL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YL)))(b||YL)}}();
YL.\u0275dir=df({type:YL,selectors:[["mat-accordion"]],contentQueries:function(a,b,c){a&1&&kg(c,WL,5);if(a&2){var d;ng(d=og())&&(b._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-accordion-multi",b.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",bh],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Ig([{provide:Sad,useExisting:YL}]),Gf]});var ZL=function(){};ZL.\u0275fac=function(a){return new (a||ZL)};ZL.\u0275mod=cf({type:ZL});ZL.\u0275inj=Gc({imports:[TL,hA,Zy]});var abd=function(){},PPa=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!")}};abd.\u0275fac=function(a){return new (a||abd)};
abd.\u0275cmp=C({type:abd,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,VPa,25,8,"div",0);a&2&&I("ngIf",b.messageData.responseMetadata)},dependencies:[ty,ey,fy,OE,yL,QL,OL,JL,KL,ZL,VL,WL,XL],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 bbd={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 cbd=new ed("SourceUrlsFormTemplate"),$L=function(){this.showWarning=Qg.apply(null,[!1].concat(q([])));this.invalidFeedbackFormEnum=bbd;this.error=1;this.rewriteSourcesList=[""]},YPa=function(a){return(a==null?void 0:a.length)>0},ZPa=function(a,b){b=b.length<5?!0:$Fc.test(b)||aGc.test(b);a.error=b?1:5;return b};$L.\u0275fac=function(a){return new (a||$L)};
$L.\u0275cmp=C({type:$L,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,WPa,2,0,"div",5),Qf(7,$Pa,10,5,"div",6,Of),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(),Rf(b.rewriteSourcesList),B(2),I("disabled",!YPa(b.rewriteSourcesList[b.rewriteSourcesList.length-1])))},dependencies:[ty,OE,Ij,qE,xE,pC,nC,jC,lC,pL,eE,SD,cE,VD,TD,SE,fE,QE,GK,FK,DA,$y,Yy,jE],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 dbd=["customSourceUrlsForm"],ebd=["defaultSourceUrlsForm"],aM=function(){this.showWarning=Qg.apply(null,[!1].concat(q([])));this.sourceUrlsFormTemplate=p(cbd,{optional:!0});this.customSourceUrlsForm=Rg.apply(null,["customSourceUrlsForm"].concat(q([{read:hg}])));this.defaultSourceUrlsForm=Rg.apply(null,["defaultSourceUrlsForm"].concat(q([{read:$L}])))};
aM.prototype.ngAfterViewInit=function(){this.sourceUrlsFormTemplate&&this.customSourceUrlsForm()&&(this.componentRef=this.customSourceUrlsForm().createComponent(this.sourceUrlsFormTemplate),this.componentRef.instance.showWarning=this.showWarning)};aM.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};aM.\u0275fac=function(a){return new (a||aM)};
aM.\u0275cmp=C({type:aM,selectors:[["source-urls-form-wrapper"]],viewQuery:function(a,b){a&1&&(qg(b.customSourceUrlsForm,dbd,hg),qg(b.defaultSourceUrlsForm,ebd,$L));a&2&&rg(2)},inputs:{showWarning:[1,"showWarning"]},decls:2,vars:1,consts:[["customSourceUrlsForm",""],["defaultSourceUrlsForm",""],[3,"showWarning"]],template:function(a,b){a&1&&F(0,aQa,2,0,"ng-container")(1,bQa,2,1,"source-urls-form",2);a&2&&G(b.sourceUrlsFormTemplate?0:1)},dependencies:[ty,$L],encapsulation:2,changeDetection:0});var fbd=["sourceUrlsFormWrapper"],gbd=["feedbackHeader"],cQa=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"]]),hbd=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"]]),ibd=new ed("FeedbackReasonsFormTemplate"),bM=function(a,b){this.userStateService=a;this.conversationAgentsService=b;this.experimentsService=p(GA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;
this.sourceUrlsFormWrapper=Rg.apply(null,["sourceUrlsFormWrapper"].concat(q([])));this.feedbackHeader=Rg.apply(null,["feedbackHeader"].concat(q([])));this.messageData=Qg.required.apply(Qg,q([]));this.hasPrivateContent=Qg.required.apply(Qg,q([]));this.close=Pg();this.submit=Pg();this.invalidFeedbackFormEnum=bbd;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}};
bM.prototype.ngOnInit=function(){var a,b=(a=this.messageData().feedback)==null?void 0:a.getFeedbackLabelsList();if(b)for(a=l(b),b=a.next();!b.done;b=a.next())b=b.value,hbd.has(b)&&this.selectedReasons.push(hbd.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:xi(d,2))c=this.messageData().rewrite,this.rewrittenResponse=xi(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");rJc(this.conversationAgentsService)&&this.reasonChips.push("poor_use_of_tools")};bM.prototype.ngAfterViewInit=function(){var a;(a=this.feedbackHeader())==null||a.nativeElement.scrollIntoView()};bM.prototype.getIndex=function(a){return a};
bM.\u0275fac=function(a){return new (a||bM)(Ye(yC),Ye(LB))};
bM.\u0275cmp=C({type:bM,selectors:[["feedback-reasons-form"]],viewQuery:function(a,b){a&1&&(qg(b.sourceUrlsFormWrapper,fbd),qg(b.feedbackHeader,gbd));a&2&&rg(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()});Qf(8,dQa,2,3,"mat-chip-option",8,Pf);L();F(10,gQa,2,1);T(11,"async");K(12,"div",
9);F(13,hQa,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),Rf(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:[ty,OE,Ij,qE,xE,pC,nC,jC,lC,pL,fL,nL,mL,eE,SD,cE,VD,TD,SE,fE,QE,iE,GK,
$y,Yy,aM,jE,sD,rD,ly],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 jbd=["customFeedbackReasonsForm"],cM=function(){this.messageData=Qg.required.apply(Qg,q([]));this.hasPrivateContent=Qg.required.apply(Qg,q([]));this.close=Pg();this.submit=Pg();this.feedbackReasonsFormTemplate=p(ibd,{optional:!0});this.customFeedbackReasonsForm=Rg.apply(null,["customFeedbackReasonsForm"].concat(q([{read:hg}])))};
cM.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)}))};
cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=C({type:cM,selectors:[["feedback-reasons-form-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customFeedbackReasonsForm,jbd,hg);a&2&&rg()},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,iQa,2,0,"ng-container")(1,jQa,1,2,"feedback-reasons-form",
1);a&2&&G(b.feedbackReasonsFormTemplate?0:1)},dependencies:[ty,bM],encapsulation:2,changeDetection:0});var dM=function(){};dM.prototype.create=function(){var a=xta();return new nJc(a,{withCredentials:!0,suppressCorsPreflight:!0})};dM.\u0275fac=function(a){return new (a||dM)};dM.\u0275prov=Fc({token:dM,factory:dM.\u0275fac,providedIn:"root"});var eM=function(a){this.duckieBackendServicePromiseClientFactory=a;this.client=this.duckieBackendServicePromiseClientFactory.create()};eM.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)})};eM.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)})};eM.\u0275fac=function(a){return new (a||eM)(Zc(dM))};
eM.\u0275prov=Fc({token:eM,factory:eM.\u0275fac,providedIn:"root"});var kbd=new ed("FeedbackWithRewriteTemplate"),fM=function(a,b,c,d){this.userStateService=a;this.threadService=b;this.duckieEventTrackerService=c;this.duckieFeedbackService=d;this.messageData=Qg.required.apply(Qg,q([]));this.currFeedbackId="";this.hasFeedbackFormContent=this.wasFeedbackSubmitted=this.showReasonsForm=!1;this.currFeedback=new aB;this.currRewrite=new Ki;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}};fM.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)};
fM.prototype.provideRewrite=function(a){var b=this,c,d,e;return y(function(f){c=b.messageData().id;d=(new vHc).setText(a.rewrittenResponse).setMessageId(c);a.rewrittenResponseSources.length>0&&(e=a.rewrittenResponseSources.filter(function(g){return g.length>0}),d.addAllSourceLink(e));b.currRewrite=eHc(new Ki,d.getText()).setSourceLinkList(d.getSourceLinkList());b.wasFeedbackSubmitted=!0;return z(f,b.duckieFeedbackService.provideRewrite(d),0)})};
fM.prototype.provideFeedback=function(a,b){var c=this,d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return d=c.messageData().id,e=(new iB).setFeedbackType(a?1:2).setMessageId(d),c.hasFeedbackFormContent=((f=b)==null?void 0:f.feedbackReason)!==void 0||((g=b)==null?void 0:g.feedbackLabels.length)>0,((k=b)==null?0:k.feedbackReason)&&e.setFeedbackReason(b.feedbackReason),((m=b)==null?void 0:m.feedbackLabels.length)>0&&e.setFeedbackLabelsList((r=b)==null?void 0:r.feedbackLabels),((w=b)==null?
void 0:w.rewrittenResponseSources.length)>0?z(x,c.provideRewrite(b),2):x.jumpTo(2);uD(c.duckieEventTrackerService,a?201122:201121,c.messageData());c.wasFeedbackSubmitted=!0;return z(x,c.duckieFeedbackService.provideFeedback(e).then(function(D){c.currFeedbackId=D.getFeedbackId();c.currFeedback=(new aB).setFeedbackLabelsList(e.getFeedbackLabelsList()).setFeedbackReason(e.getFeedbackReason()).setFeedbackType(e.getFeedbackType()).setFeedbackId(c.currFeedbackId)}),0)})};
fM.\u0275fac=function(a){return new (a||fM)(Ye(yC),Ye(RD),Ye(tD),Ye(eM))};
fM.\u0275cmp=C({type:fM,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,kQa,3,1,"div",2),L(),F(5,lQa,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:[ty,cM,pC,nC,lC,sK,$y,Yy,sD,rD,ly],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 lbd=["customFeedbackWithRewrite"],gM=function(){this.messageData=Qg.required.apply(Qg,q([]));this.feedbackWithRewriteTemplate=p(kbd,{optional:!0});this.customFeedbackWithRewrite=Rg.apply(null,["customFeedbackWithRewrite"].concat(q([{read:hg}])))};gM.prototype.ngAfterViewInit=function(){this.feedbackWithRewriteTemplate&&this.customFeedbackWithRewrite()&&(this.componentRef=this.customFeedbackWithRewrite().createComponent(this.feedbackWithRewriteTemplate),this.componentRef.instance.messageData=this.messageData)};
gM.\u0275fac=function(a){return new (a||gM)};gM.\u0275cmp=C({type:gM,selectors:[["feedback-with-rewrite-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customFeedbackWithRewrite,lbd,hg);a&2&&rg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customFeedbackWithRewrite",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,mQa,2,0,"ng-container")(1,nQa,1,1,"feedback-with-rewrite",1);a&2&&G(b.feedbackWithRewriteTemplate?0:1)},dependencies:[ty,fM],encapsulation:2,changeDetection:0});var mbd=["customInteractiveElements"],hM=function(){this.interactiveElements=Qg.apply(null,q([]));this.interactiveElementsTemplate=p(o9c,{optional:!0});this.customInteractiveElements=Rg.apply(null,["customInteractiveElements"].concat(q([{read:hg}])))};
hM.prototype.ngAfterViewInit=function(){this.interactiveElementsTemplate&&this.customInteractiveElements()&&(this.componentRef=this.customInteractiveElements().createComponent(this.interactiveElementsTemplate),this.componentRef.instance.interactiveElements=pg.apply(null,[this.interactiveElements()].concat(q([]))))};hM.\u0275fac=function(a){return new (a||hM)};
hM.\u0275cmp=C({type:hM,selectors:[["interactive-elements-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customInteractiveElements,mbd,hg);a&2&&rg()},inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["customInteractiveElements",""],[3,"interactiveElements"]],template:function(a,b){a&1&&F(0,oQa,2,0,"ng-container")(1,pQa,1,1,"interactive-elements",1);a&2&&G(b.interactiveElementsTemplate?0:1)},dependencies:[ty,aK],encapsulation:2,changeDetection:0});var iM=function(a){this.dialog=a};iM.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(zL,oad)};iM.\u0275fac=function(a){return new (a||iM)(Ye(VB))};
iM.\u0275cmp=C({type:iM,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,qQa,5,0,"ng-template",null,0,Og));a&2&&(a=sg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[ty,$y,Yy,pC,nC,jC,uL],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 nbd=new ed("MessageCitationsTemplate"),obd=function(a){var b=this;this.duckieEventTrackerService=a;this.messageData=Qg.required.apply(Qg,q([]));this.citedNonRecitationDocuments=ah.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==null?void 0:c.flatMap(function(e){var f,g;return(g=(f=ym(e))==null?void 0:zm(f).filter(function(k){return!Ji(k,VGc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.recitationSources=ah.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==
null?void 0:c.flatMap(function(e){var f,g;return(g=(f=ym(e))==null?void 0:zm(f).filter(function(k){return Ji(k,VGc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.ve={DuckieChatResponseCitationLink:201128};this.experimentsService=p(GA)},yQa=function(a){a=a.getTitle()||a.getUrl();return a.length>30?a.substring(0,27)+"...":a},vQa=function(a,b){var c=a.messageData().id;if(c){var d,e=a.duckieEventTrackerService,f=new mm;var g=new CC;var k=b.getUrl();g=yj(g,1,k);k=b.getIconUrl();g=yj(g,3,k);km(e,
lm(XKc(f,g.setIsPrivateDocument(b.getIsPrivateDocument())).setMessageId(c).setSessionId((d=a.messageData().sessionId)!=null?d:"")),201128)}};obd.\u0275fac=function(a){return new (a||obd)(Ye(tD))};
obd.\u0275cmp=C({type:obd,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,xQa,4,0),F(1,AQa,5,0));a&2&&(G(b.citedNonRecitationDocuments().length>0?0:-1),B(),G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?1:-1))},dependencies:[ty,$y,Yy,iM,sD,rD],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 pbd=["customMessageCitations"],jM=function(){this.messageData=Qg.required.apply(Qg,q([]));this.messageCitationsTemplate=p(nbd,{optional:!0});this.customMessageCitations=Rg.apply(null,["customMessageCitations"].concat(q([{read:hg}])))};jM.prototype.ngAfterViewInit=function(){this.messageCitationsTemplate&&this.customMessageCitations()&&(this.componentRef=this.customMessageCitations().createComponent(this.messageCitationsTemplate),this.componentRef.instance.messageData=pg.apply(null,[this.messageData()].concat(q([]))))};
jM.\u0275fac=function(a){return new (a||jM)};jM.\u0275cmp=C({type:jM,selectors:[["message-citations-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customMessageCitations,pbd,hg);a&2&&rg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customMessageCitations",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,BQa,2,0,"ng-container")(1,CQa,1,1,"message-citations",1);a&2&&G(b.messageCitationsTemplate?0:1)},dependencies:[ty,obd],encapsulation:2,changeDetection:0});var kM=function(){this.expansionStates=new Map};kM.prototype.isExpanded=function(a){var b;return(b=this.expansionStates.get(a))!=null?b:!1};kM.\u0275fac=function(a){return new (a||kM)};kM.\u0275prov=Fc({token:kM,factory:kM.\u0275fac,providedIn:"root"});var lM=function(){this.duckieLoadingPhrases="Quacking the code...;Getting my ducks in a row...;Paddling through the algorithms...;Ruffling some feathers in the neural net...;Waddling towards an answer...;This might be a wild goose chase... hold on.;Just winging it...;Consulting the pond of knowledge...;Don't get your feathers in a ruffle...;Filtering the data stream...;Hope this response fits the bill...;Compiling the quack-end...;My logic is im-peck-able.;Putting this on your bill...;Diving deep for the best data...;Everything is just ducky.;Warming up the breadcrumb processors...;What time do I wake up? At the quack of dawn.;Let's get this bread... crumb of information.;Preening my algorithms...;Making sure this isn't a fowl response...;This is some fowl language... (the code, I mean).;Taking to this like a duck to water...;Letting bad data roll off like water off a duck's back.;No need to duck and cover, I'm on it.;I'm no sitting duck, I'm processing!;What's a duck's favorite ballet? The Nutquacker.;Why was the duck a good detective? He always quacked the case.;Sorting the pecking order of information...;Deploying the rubber duck for debugging...;This response is anything but poultry.;Fetching results from the duck-umentation...;Down-loading the necessary files...;I've got a bill-ion ideas... narrowing it down.;Flapping my wings at ludicrous speed...;Migrating south for the winter... I mean, to a different server.;Don't worry, I'm a professional quack.;Let me take a quack at it.;Quack-ulating the possibilities...;Checking the web... feet and internet.;This is sure to quack you up.;I find your request... duck-lightful.;This is going swimmingly.;I'm feeling quite buoyant about this query.;One moment, preening my code.;Just hatching a new idea...;Don't count your ducks before they've hatched.;This better be all it's quacked up to be.;Running a bill-d... I mean, build.;Aflack-ing the servers for information...;I'm not just winging it, I have a plan!;Quacking the code;Loading quack-er-jack style;Preparing for the quack-ening;Making a quick quack-stop;Awaiting the final quack of approval;The server is singing a honking good tune;Getting the honk-key to the files;The little peep of success is coming;This is going to be quack-tastic;Just a moment, I'm quack-sperimenting;Running a quack-diagnosis;Thinking... *paddles silently*;The server is making happy honks;About to quack open the results;Data streams are quacking along;The data is about to peep out;Finishing the final quack-ter of the load;Making sure all the duckweed is cleared;The server is in a puddle of thought;Putting on my gaiters;Thinking with grace and paddling underneath;Time to dive into the next task;Splish-splash, thinking fast;Warming up the brood of results;My favorite data structure is a duck-tionary.;Checking the beak-end code...;Lightning the Quackers... \u26a1;Running Ducks-tra's algorithm...".split(";")},
qbd=function(a){return a.duckieLoadingPhrases[Math.floor(Math.random()*a.duckieLoadingPhrases.length)]};lM.\u0275fac=function(a){return new (a||lM)};lM.\u0275prov=Fc({token:lM,factory:lM.\u0275fac,providedIn:"root"});var GQa=function(a){return{parts:a}},MQa=function(a){return{part:a}},rbd=new ed("MessagePartsTemplate"),mM=function(a,b){var c=this;this.elementRef=a;this.markdownService=b;this.executionMetadata=Qg.required.apply(Qg,q([]));this.executionMetadata$=xua(this.executionMetadata);this.hasRedactions=Qg.required.apply(Qg,q([]));this.shouldExpand=Qg.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Qg.required.apply(Qg,q([]));this.isStreamingThoughts$=xua(this.isStreamingThoughts);this.messageId=Qg.required.apply(Qg,
q([]));this.phrasePool$=this.executionMetadata$.pipe(A(function(d){return sbd(c,d)}),pf(function(d,e){return d.length!==e.length?!1:d.every(function(f,g){return f.text===e[g].text})}),zf([]));this.messageParts=new Wj([]);this.experimentsService=p(GA);this.jokesService=p(lM);this.messagePartsService=p(kM);this.duckieEventTrackerService=p(tD);this.id=Asa();this.seenAlreadySet=new Set;this.messagePartData=new Wj({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=l(d);d=e.next().value;if(!e.next().value)return ee(qbd(c.jokesService));var f=[].concat(q(d)),g=qbd(c.jokesService);return te(0,3E3).pipe(A(function(){for(;f.length>0&&c.seenAlreadySet.has(f[0].text);)f.shift();f.length>0&&(g=f.shift().text,c.seenAlreadySet.add(g));return g}))}),zf(qbd(this.jokesService)),pf())};
mM.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=tbd(a,a.executionMetadata());c=l(b);d=c.next();case 3:if(d.done){k.jumpTo(5);break}e=d.value;if(!e.text){k.jumpTo(4);break}return z(k,ubd(a,e.text),7);case 7:e.html=k.yieldResult;case 4:d=c.next();k.jumpTo(3);break;case 5:a.messageParts.next(b),g=(f=a.messagePartsService.isExpanded(a.id))!=null?f:!a.hasRedactions()&&a.shouldExpand(),a.messagePartsService.expansionStates.set(a.id,
g),a.messagePartData.next({id:a.id,isExpanded:g,hiddenMessageParts:b,hasAnyThought:b.some(function(m){return m.isThought})}),ce(k)}})};
var sbd=function(a,b){var c=[];b&&tbd(a,b).forEach(function(d){d.text&&vbd(d.text).forEach(function(e){c.push({text:e+"...",isFunctionCall:!1})});d.functionCalls.length>0&&d.functionCalls.forEach(function(e){var f=c.push,g=e.name;e=Array.from(e.args.entries());var k="";if(e.length>0){var m=l(e[0]);k=m.next().value;m=m.next().value;m.startsWith('"')&&m.endsWith('"')&&(m=m.slice(1,-1));k=" ("+k+': "'+m+'")';e.length>1&&(k+="...")}f.call(c,{text:"Executing: "+g+k,isFunctionCall:!0})})});return c},vbd=
function(a){return[].concat(q(a.matchAll(/^\s*\*\*([\s\S]*?)\*\*\s*$/gm))).map(function(b){return b[1].trim()})},tbd=function(a,b){var c=[];(b==null?void 0:Ni(b,$A,9,Oi()).flatMap(function(d){return d.getPartsList()})).forEach(function(d){var e=[],f,g=(f=d.getText())!=null?f:"";if(d.hasFunctionCall()){var k=new Map;f=d.getFunctionCall().getName();var m,r;(r=(m=d.getFunctionCall().getArgs())==null?void 0:xc(m,1,VA,Vb))==null||r.forEach(function(w,x){w=wbd(a,w);k.set(x,w)});e.push({name:f,args:k})}c.push({text:g,
functionCalls:e,isThought:d.getThought()})});return c},wbd=function(a,b){var c="";if(b.hasStringValue())c='"'+b.getStringValue()+'"';else if(OYa(b,WA))c=String(rm(b,Ti(b,WA,2)));else if(jAc(b,Ti(b,WA,4))!=null)c=String(Ri(b,Ti(b,WA,4)));else if(cj(b,XA,6,WA)){var d;c="["+((d=jm(b,XA,6,WA))==null?void 0:d.getValuesList().map(function(g){return wbd(a,g)}).join(", "))+"]"}else if(cj(b,UA,5,WA)){var e=[],f;(f=jm(b,UA,5,WA))==null||xc(f,1,VA,Vb).forEach(function(g,k){e.push(k+": "+wbd(a,g))});c="{"+e.join(", ")+
"}"}return c},ubd=function(a,b){return y(function(c){return c.nextAddress==1?z(c,DOc(a.markdownService,b),2):c.return(c.yieldResult||Dh(b))})};mM.\u0275fac=function(a){return new (a||mM)(Ye(Jd),Ye(zD))};
mM.\u0275cmp=C({type:mM,selectors:[["message-parts"]],inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"],messageId:[1,"messageId"]},features:[xx],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,KQa,2,1),T(1,"async"),E(2,PQa,2,0,"ng-template",null,0,Og)(4,SQa,3,0,"ng-template",null,1,Og));if(a&2){var c;G((c=U(1,1,b.messagePartData))?0:-1,c)}},dependencies:[ty,ky,pC,nC,jC,$y,Yy,GK,BK,AK,II,ly],styles:["[_ngcontent-%COMP%]:root{--blue-50:#e8f0fe;--blue-100:#d2e3fc;--blue-200:#aecbfa;--blue-300:#8ab4f8;--blue-400:#669df6;--blue-500:#4285f4;--blue-600:#1a73e8;--blue-700:#1967d2;--blue-800:#185abc;--blue-900:#174ea6;--blue:var(--blue-600);--red-50:#fce8e6;--red-100:#fad2cf;--red-200:#f6aea9;--red-300:#f28b82;--red-400:#ee675c;--red-500:#ea4335;--red-600:#d93025;--red-700:#c5221f;--red-800:#b31412;--red-900:#a50e0e;--red:var(--red-600);--yellow-50:#fef7e0;--yellow-100:#feefc3;--yellow-200:#fde293;--yellow-300:#fdd663;--yellow-400:#fcc934;--yellow-500:#fbbc04;--yellow-600:#f9ab00;--yellow-700:#f29900;--yellow-800:#ea8600;--yellow-900:#e37400;--yellow:var(--yellow-600);--green-50:#e6f4ea;--green-100:#ceead6;--green-200:#a8dab5;--green-300:#81c995;--green-400:#5bb974;--green-500:#34a853;--green-600:#1e8e3e;--green-700:#188038;--green-800:#137333;--green-900:#0d652d;--green:var(--green-600);--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f4;--grey-200:#e8eaed;--grey-300:#dadce0;--grey-400:#bdc1c6;--grey-500:#9aa0a6;--grey-600:#80868b;--grey-700:#5f6368;--grey-800:#3c4043;--grey-900:#202124;--black:var(--grey-900);--orange-50:#feefe3;--orange-100:#fedfc8;--orange-200:#fdc69c;--orange-300:#fcad70;--orange-400:#fa903e;--orange-500:#fa7b17;--orange-600:#e8710a;--orange-700:#d56e0c;--orange-800:#c26401;--orange-900:#b06000;--pink-50:#fde7f3;--pink-100:#fdcfe8;--pink-200:#fba9d6;--pink-300:#ff8bcb;--pink-400:#ff63b8;--pink-500:#f439a0;--pink-600:#e52592;--pink-700:#c92786;--pink-800:#b80672;--pink-900:#9c166b;--purple-50:#f3e8fd;--purple-100:#e9d2fd;--purple-200:#d7aefb;--purple-300:#c58af9;--purple-400:#af5cf7;--purple-500:#a142f4;--purple-600:#9334e6;--purple-700:#8430ce;--purple-800:#7627bb;--purple-900:#681da8;--cyan-50:#e4f7fb;--cyan-100:#cbf0f8;--cyan-200:#a1e4f2;--cyan-300:#78d9ec;--cyan-400:#4ecde6;--cyan-500:#24c1e0;--cyan-600:#12b5cb;--cyan-700:#129eaf;--cyan-800:#098591;--cyan-900:#007b83}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{background:var(--tonal-fill-grey)}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]     .mdc-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.function-calls-panel[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);max-height:1000vh;overflow:auto}.function-calls-panel.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-calls-panel.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.function-call-wrapper[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);padding:8px;overflow:auto hidden;margin-top:0;max-height:1000vh}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]{color:var(--tonal-purple)}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:var(--tonal-green)}.function-call-wrapper.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-call-wrapper.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button-spinner[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-top}.message-parts-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]{border-radius:24px;border:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;width:28px;height:20px;margin-inline:2px;margin:0;padding:1px 6px}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--text-default);font-size:1.125em;font-weight:500;line-height:normal;width:auto;height:auto;-webkit-transform:translateY(1px);transform:translateY(1px);-webkit-transition:-webkit-transform 333ms;transition:-webkit-transform 333ms;transition:transform 333ms;transition:transform 333ms,-webkit-transform 333ms}.message-parts-container[_ngcontent-%COMP%]   .expand-button.is-expanded[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>:last-child{display:inline-block}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>p:last-child{display:inline}"],
changeDetection:0});var xbd=["customMessageParts"],nM=function(){this.executionMetadata=Qg.required.apply(Qg,q([]));this.hasRedactions=Qg.required.apply(Qg,q([]));this.shouldExpand=Qg.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Qg.apply(null,[!1].concat(q([])));this.messageId=Qg.apply(null,[""].concat(q([])));this.messagePartsTemplate=p(rbd,{optional:!0});this.customMessageParts=Rg.apply(null,["customMessageParts"].concat(q([{read:hg}])))};
nM.prototype.ngAfterViewInit=function(){this.messagePartsTemplate&&this.customMessageParts()&&(this.componentRef=this.customMessageParts().createComponent(this.messagePartsTemplate),this.componentRef.instance.executionMetadata=pg.apply(null,[this.executionMetadata()].concat(q([]))),this.componentRef.instance.hasRedactions=pg.apply(null,[this.hasRedactions()].concat(q([]))),this.componentRef.instance.shouldExpand=pg.apply(null,[this.shouldExpand()].concat(q([]))))};
nM.\u0275fac=function(a){return new (a||nM)};
nM.\u0275cmp=C({type:nM,selectors:[["message-parts-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customMessageParts,xbd,hg);a&2&&rg()},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,TQa,2,0,
"ng-container")(1,UQa,1,5,"message-parts",1);a&2&&G(b.messagePartsTemplate?0:1)},dependencies:[ty,mM],encapsulation:2,changeDetection:0});var ybd=function(){};ybd.\u0275fac=function(a){return new (a||ybd)};
ybd.\u0275cmp=C({type:ybd,selectors:[["typing-dots"]],hostAttrs:[1,"flex-row","gap"],decls:4,vars:0,consts:[[1,"typing"]],template:function(a){a&1&&(Tf(0,"span",0),Vf(1,"span")(2,"span")(3,"span"),Uf())},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 zbd=new ed("MessageTemplate"),oM=function(a,b){var c=this;this.elementRef=a;this.threadService=b;this.messageData=Qg.required.apply(Qg,q([]));this.useCompactView=Qg.apply(null,[!1].concat(q([])));this.isDuckieThinking=Qg.apply(null,[!1].concat(q([])));this.snackBar=p(uC);this.overridesService=p(RA);this.duckieEventTrackerService=p(tD);this.duckieFeedbackService=p(eM);this.avatarUrl="https://moma-teams-photos.corp.google.com/photos/me?sz=32";this.hasHiddenMessages=ah.apply(null,[function(){var d=
c.messageData();return!d.isUser&&!!d.executionMetadata&&Ni(d.executionMetadata,$A,9,Oi()).length>0}].concat(q([])));this.experimentsService=p(GA);this.recitationSources=ah.apply(null,[function(){var d,e;return(e=(d=c.messageData().relatedResources)==null?void 0:d.flatMap(function(f){var g,k;return(k=(g=ym(f))==null?void 0:zm(g).filter(function(m){return Ji(m,VGc,8)}))!=null?k:[]}))!=null?e:[]}].concat(q([])));this.agentDisplayName=ah.apply(null,[function(){if(!c.messageData().isUser)return c.overridesService.overrideAgentMessageDisplayName}].concat(q([])));
this.agentIconUrl=ah.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}))};
oM.prototype.ngAfterViewChecked=function(){var a=this;return y(function(b){var c=Array.from(a.messageElement.querySelectorAll("message .text-container a"));c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.getAttribute("target")===null&&d.setAttribute("target","_blank"),d.querySelector("del")!==null&&d.setAttribute("title","Broken link");Abd(a);a.messageData().isUser||Bbd(a);ce(b)})};
var Abd=function(a){var b=Array.from(a.messageElement.querySelectorAll("message .text-container pre")).filter(function(c){var d=c.parentElement,e=d==null?void 0:d.classList.contains("execution-metadata-code");d=d==null?void 0:d.classList.contains("dot-error");c=c.querySelector(".code-block-addition-container")!==null;return!(e||d||c)});b.length>0&&Cbd(a,b)},Cbd=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("div");d.classList.add("code-block-addition-container");
var e=void 0,f=((e=c.querySelector("code"))==null?void 0:e.textContent)||"";Dbd(a,c,d,f);Ebd(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)}},Ebd=function(a,b,c,d){if(!b.querySelector(".copy-button")){var e=
document.createElement("button");e.classList.add("copy-button");e.setAttribute("aria-label","Copy code to clipboard");e.addEventListener("click",function(){var f,g,k;return y(function(m){if(m.nextAddress==1)return window.isSecureContext&&d?z(m,navigator.clipboard.writeText(d||""),3):m.jumpTo(0);if(m.nextAddress!=4)return f=document.createElement("div"),f.classList.add("copy-confirmation"),f.textContent="Copied to clipboard",f.setAttribute("role","alert"),b.appendChild(f),setTimeout(function(){b.removeChild(f)},
5E3),g=a.messageData().id,k=(new iB).setFeedbackType(3).setMessageId(g),z(m,a.duckieFeedbackService.provideFeedback(k),4);uD(a.duckieEventTrackerService,201931,a.messageData());ce(m)})});c.appendChild(e)}},Dbd=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),qsa(b,d)),b.addEventListener("click",function(){return y(function(e){uD(a.duckieEventTrackerService,204817,a.messageData());ce(e)})}),c.appendChild(b))},Bbd=function(a){var b=a.messageData().text;if(b){var c=Array.from(a.messageElement.querySelectorAll("g3mark-svg")).filter(function(g){return g.querySelector(".control-bar")===null});if(c.length>0){b=[].concat(q(b.matchAll(/\s*```dot\n([\s\S]*?)\n\s*```/g)));c=l(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);
d=e.next().value;e=e.next().value;var f=document.createElement("div");f.classList.add("control-bar");e.appendChild(f);Fbd(f,e.dataset.graphId);Gbd(a,f,b[d][1])}}}},Gbd=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 iB).setFeedbackType(3).setMessageId(f),z(k,a.duckieFeedbackService.provideFeedback(g),4);uD(a.duckieEventTrackerService,252593,a.messageData());ce(k)})})},Fbd=function(a,b){b="https://graphviz.corp.google.com/#"+(b===void 0?"":b);var c=document.createElement("a");c.classList.add("open-in-new-tab-button");
c.title="Open graphviz in new tab";c.ariaDisabled="false";c.target="_blank";qsa(c,b);a.appendChild(c)},kRa=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=Hbd(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}),Zj(k,0);be(k);a.snackBar.open("Failed to copy message text to clipboard.","Dismiss",{duration:4E3});ce(k)})};oM.prototype.getSourcesMarkdown=function(){var a="",b,c;(b=this.messageData())==null||(c=b.relatedResources)==null||c.forEach(function(d){var e;(d=(e=ym(d))==null?void 0:zm(e))&&d.length>0&&d.forEach(function(f){a+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return a};
var Hbd=function(a){var b="",c,d,e;(e=(c=a.messageData())==null?void 0:(d=c.executionMetadata)==null?void 0:Ni(d,$A,9,Oi()).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};oM.\u0275fac=function(a){return new (a||oM)(Ye(Jd),Ye(RD))};
oM.\u0275cmp=C({type:oM,selectors:[["message"]],hostAttrs:[1,"flex-row","gap","margin-bottom"],hostVars:6,hostBindings:function(a,b){a&2&&yg("is-user",b.messageData().isUser)("is-duckie",!b.messageData().isUser)("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"],isDuckieThinking:[1,"isDuckieThinking"]},decls:16,vars:12,consts:[["alt","Profile img for me",1,"user",3,"src"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src","custom-logo"],
[1,"text-container","flex-column","gap-xs","full-width"],[1,"name","gmat-subhead-2"],[3,"hidden","messageId","executionMetadata","hasRedactions","shouldExpand","isStreamingThoughts"],[1,"recitation-sources-banner","margin-bottom","gmat-body-2","gap-s","type-s","padded-s","margin-s-top","align-items-center"],[1,"message-text","italic","gmat-body-2"],[1,"message-text","gmat-body-2","raw-text-only"],[3,"interactiveElements"],[3,"use-compact-view"],[1,"message-text","gmat-body-2"],[1,"message-actions",
"flex-row","align-items-center"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src"],[1,"warning-icon"],["href","http://go/code-ai-policy-faq","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs","open-in-new-icon"],["inline",""],[1,"message-text","gmat-body-2",3,"innerHtml"],[3,"messageData"],["mat-icon-button","","aria-label","Copy message to clipboard","matTooltip","Copy message",1,"copy-message-button",3,"click"]],template:function(a,b){a&1&&(F(0,VQa,1,1,"img",0)(1,WQa,
1,3,"img",1),K(2,"div",2)(3,"h3",3),F(4,XQa,1,0)(5,YQa,1,1),L(),M(6,"message-parts-wrapper",4),F(7,ZQa,8,0,"div",5),F(8,aRa,2,2)(9,bRa,2,0,"p",6)(10,cRa,2,1,"div",7)(11,dRa,1,1,"interactive-elements-wrapper",8)(12,eRa,1,2,"typing-dots",9)(13,fRa,2,0,"p",10),F(14,iRa,3,4),F(15,lRa,5,1,"div",11),L());if(a&2){var c;G(b.messageData().isUser?0:1);B(4);G(b.messageData().isUser?4:5);B(2);var d;I("hidden",!b.hasHiddenMessages())("messageId",(d=b.messageData().id)!=null?d:"")("executionMetadata",b.messageData().executionMetadata)("hasRedactions",
b.messageData().hasRedactions)("shouldExpand",!1)("isStreamingThoughts",b.messageData().isStreamingThoughts);B();G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?7:-1);B();G((c=b.messageData().textHtml)?8:b.messageData().hasRedactions?9:b.messageData().isUser?10:b.messageData().interactiveElements&&b.messageData().interactiveElements.length>0?11:b.isDuckieThinking()?12:13,c);B(6);G(!b.messageData().isUser&&b.messageData().text?14:-1);B();G(b.messageData().text?15:-1)}},
dependencies:[ty,gM,hM,pC,nC,lC,$y,Yy,jM,abd,nM,ybd,ly],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 Ibd=["customMessage"],pM=function(){this.messageData=Qg.required.apply(Qg,q([]));this.useCompactView=Qg.apply(null,[!1].concat(q([])));this.isDuckieThinking=Qg.apply(null,[!1].concat(q([])));this.messageTemplate=p(zbd,{optional:!0});this.elementRef=p(Jd);this.customMessage=Rg.apply(null,["customMessage"].concat(q([{read:hg}])))};
pM.prototype.ngAfterViewInit=function(){this.messageTemplate&&this.customMessage()&&(this.componentRef=this.customMessage().createComponent(this.messageTemplate),this.componentRef.instance.messageData=pg.apply(null,[this.messageData()].concat(q([]))),this.componentRef.instance.useCompactView=pg.apply(null,[this.useCompactView()].concat(q([]))),this.componentRef.instance.isDuckieThinking=pg.apply(null,[this.isDuckieThinking()].concat(q([]))))};pM.\u0275fac=function(a){return new (a||pM)};
pM.\u0275cmp=C({type:pM,selectors:[["message-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customMessage,Ibd,hg);a&2&&rg()},hostAttrs:[1,"width-almost-full"],hostVars:2,hostBindings:function(a,b){a&2&&yg("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"],isDuckieThinking:[1,"isDuckieThinking"]},decls:2,vars:1,consts:[["customMessage",""],[3,"messageData","useCompactView","isDuckieThinking"]],template:function(a,b){a&1&&F(0,mRa,2,0,"ng-container")(1,
nRa,1,3,"message",1);a&2&&G(b.messageTemplate?0:1)},dependencies:[ty,oM],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 qM=function(a,b){this.threadService=a;this.dialogRef=b;this.thread=p(UB).thread;this.inputValue="";Jbd(this)},Jbd=function(a){y(function(b){a.inputValue=a.thread.title;ce(b)})};qM.prototype.updateTitle=function(){this.inputValue.length>0&&(qQc(this.threadService,this.inputValue),this.dialogRef.close())};qM.\u0275fac=function(a){return new (a||qM)(Ye(RD),Ye(SB))};
qM.\u0275cmp=C({type:qM,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),Eg("ngModelChange",function(c){Dg(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),Cg("ngModel",b.inputValue),B(9),I("disabled",
b.inputValue.length<1))},dependencies:[OE,Ij,qE,JE,xE,pC,nC,jC,lC,cK,WB,YB,$B,ZB,eE,SD,cE,VD,TD,XD,SE,fE,QE,$y,Yy],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 Kbd=function(a,b,c,d){this.opacity=1;this.age=0;this.x=a;this.y=b;this.size=Math.random()*(c.maxSize-c.minSize)+c.minSize;var e,f;a=Math.random()*((e=c.spread)!=null?e:0)-((f=c.spread)!=null?f:0)/2;var g;e=(((g=c.angle)!=null?g:0)+a)*(Math.PI/180);var k,m;g=((k=c.speed)!=null?k:0)*((m=c.speedVariation)!=null?m:0);var r;k=((r=c.speed)!=null?r:0)+Math.random()*g*2-g;this.vx=Math.cos(e)*k;this.vy=Math.sin(e)*k*-1;this.rotation=Math.random()*360;this.rotationSpeed=(Math.random()*2-1)*c.rotationSpeed;
var w,x,D;this.duration=Math.random()*(((w=c.maxDuration)!=null?w:0)-((x=c.minDuration)!=null?x:0))+((D=c.minDuration)!=null?D:0);this.gravity=c.gravity;this.drag=c.drag;var H;this.rotation3d=(H=c.rotation3d)!=null?H:!1;this.rotationY=Math.random()*360;this.type=d[Math.floor(Math.random()*d.length)];switch(this.type){case "svg":break;case "emoji":break;case "shape":this.shape=c.shapes[Math.floor(Math.random()*c.shapes.length)];this.color=c.colors[Math.floor(Math.random()*c.colors.length)];this.cacheKey=
this.shape+"_"+this.color;break;default:console.warn("Unknown particle type: "+this.type)}};Kbd.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 rM=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}},Mbd=
function(a,b){b.forEach(function(c){Lbd(a,c)})};rM.prototype.setConfig=function(a){this.config=Object.assign({},this.config,a)};rM.prototype.getConfig=function(){return Object.assign({},this.config)};
rM.prototype.launch=function(a,b,c){var d=this;c=c===void 0?this.config:c;Nbd(this);if(this.context&&!this.prefersReducedMotion){var e=Object.assign({},this.config,c),f,g,k=(g=(f=e.x)!=null?f:a)!=null?g:window.innerWidth/2,m,r,w=(r=(m=e.y)!=null?m:b)!=null?r:window.innerHeight/2,x=[];e.svgs&&e.svgs.length>0&&x.push("svg");e.emojis&&e.emojis.length>0&&x.push("emoji");x.length===0&&e.shapes&&e.shapes.length>0&&x.push("shape");a=[];e.svgs&&e.svgs.length>0&&(b=[].concat(q(new Set(e.svgs))),a.push.apply(a,
q(b.map(function(D){return Lbd(d,D)}))));e.emojis&&e.emojis.length>0&&(b=[].concat(q(new Set(e.emojis))),a.push.apply(a,q(b.map(function(D){return Obd(d,D)}))));a.length>0?Promise.all(a).then(function(){Pbd(d,k,w,e,x)}):Pbd(this,k,w,e,x)}};
var Pbd=function(a,b,c,d,e){if(e.length!==0){for(var f=[],g=0;g<d.particleCount;g++){var k=new Kbd(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(),Qbd(a))}},
Nbd=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)};rM.prototype.resizeCanvas=function(){this.canvas&&(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight)};
var Qbd=function(a){if(a.context){var b=performance.now(),c=b-a.lastFrameTime;a.lastFrameTime=b;a.context&&a.context.clearRect(0,0,a.canvas.width,a.canvas.height);b=[];for(var d=l(a.particles),e=d.next();!e.done;e=d.next())e=e.value,e.update(c),e.age>=e.duration||(b.push(e),Rbd(a,e));a.particles=b;a.particles.length>0?a.animationFrameId=requestAnimationFrame(function(){Qbd(a)}):a.animationFrameId=null}else a.animationFrameId=null},Rbd=function(a,b){if(a.context){if(b.type==="shape"&&b.cacheKey&&!a.particleCache.has(b.cacheKey)){var c=
b.cacheKey,d=document.createElement("canvas"),e=d.getContext("2d");d.width=64;d.height=64;e.fillStyle=b.color;e.translate(32,32);switch(b.shape){case "circle":e.beginPath();e.arc(0,0,32,0,2*Math.PI);e.fill();break;case "triangle":e.beginPath();e.moveTo(0,-32);e.lineTo(32,32);e.lineTo(-32,32);e.closePath();e.fill();break;case "star":var f=Math.PI/2*3,g=Math.PI/5;e.beginPath();e.moveTo(0,-32);for(var k=0;k<5;k++){var m=Math.cos(f)*32;var r=Math.sin(f)*32;e.lineTo(m,r);f+=g;m=Math.cos(f)*16;r=Math.sin(f)*
16;e.lineTo(m,r);f+=g}e.lineTo(0,-32);e.closePath();e.fill();break;case "square":e.fillRect(-32,-32,64,64);break;default:console.warn("Unknown particle shape: "+b.shape)}a.particleCache.set(c,d)}a.context.save();a.context.globalAlpha=b.opacity;a.context.translate(b.x,b.y);a.context.rotate(b.rotation*Math.PI/180);b.rotation3d&&a.context.scale(1,Math.cos(b.rotationY*Math.PI/180));switch(b.type){case "emoji":var w=b.emojiImage;break;case "svg":w=b.svgImage;break;case "shape":w=a.particleCache.get(b.cacheKey);
break;default:console.warn("Unknown particle type: "+b.type)}w&&a.context.drawImage(w,-b.size/2,-b.size/2,b.size,b.size);a.context.restore()}},Sbd=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})},Lbd=function(a,b){return a.svgCache.has(b)?
Promise.resolve(a.svgCache.get(b)):b.trim().startsWith("<svg")?Sbd(a,b,b):fetch(b).then(function(c){if(!c.ok)throw Error("Vc`"+c.status);return c.text()}).then(function(c){return Sbd(a,c,b)}).catch(function(c){console.error("Error fetching SVG: "+b,c);return new Image})},Obd=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(rM.prototype,{prefersReducedMotion:{configurable:!0,enumerable:!0,get:function(){return typeof window==="undefined"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}}});
rM.\u0275fac=function(a){return new (a||rM)};rM.\u0275prov=Fc({token:rM,factory:rM.\u0275fac,providedIn:"root"});var Tbd={HELPFULNESS_UNSPECIFIED:0,HELPFUL:1,UNHELPFUL:2,DISMISSED:3};var Ubd=new ed("SessionHelpfulButtonTemplate"),sM=function(){var a=this;this.closeButton=Pg();this.messageFeedbackUpdate=Pg();this.helpfulness=Tbd;this.messageData=Qg.apply(null,[null].concat(q([])));this.configurationKey=Qg.apply(null,q([]));this.pageId=Qg.apply(null,q([]));this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.timeoutId=this.helpfulnessSelected=0;this.confettiService=p(rM);this.duckieFeedbackService=p(eM);this.clientConfiguration=ah.apply(null,[function(){var b;
return nOa((b=a.configurationKey())!=null?b:"")}].concat(q([])));this.experimentsService=p(GA);this.feedbackAnimationsEnabled=this.experimentsService.feedbackAnimationsEnabled;this.showConfetti=ah.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"]};Mbd(this.confettiService,this.positiveFeedbackConfettiOptions.svgs)};sM.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 Vbd=function(a){clearTimeout(a.timeoutId);a.closeButton.emit()},Xbd=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(sHc(Wbd(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?Vbd(a):a.timeoutId=setTimeout(function(){Vbd(a)},3E3)},Wbd=function(a){var b,c,d=(new iB).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};sM.\u0275fac=function(a){return new (a||sM)};
sM.\u0275cmp=C({type:sM,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:[xx],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 Xbd(b,b.helpfulness.HELPFUL,c)}),K(4,"mat-icon"),Q(5),L()(),K(6,"button",3),N("click",function(c){return Xbd(b,b.helpfulness.UNHELPFUL,c)}),K(7,"mat-icon"),Q(8),L()(),K(9,"button",4),N("click",function(){return Xbd(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),yg("is-selected",b.helpfulnessSelected===b.helpfulness.HELPFUL),B(),S(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL?"thumb_up_filled":"thumb_up"," "),B(2),yg("is-selected",b.helpfulnessSelected===b.helpfulness.UNHELPFUL),B(),S(" ",b.helpfulnessSelected===
b.helpfulness.UNHELPFUL?"thumb_down_filled":"thumb_down"," "))},dependencies:[ty,$y,Yy,pC,nC,lC],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 Ybd=["customSessionHelpfulButton"],tM=function(){this.messageData=Qg.apply(null,q([]));this.messageFeedbackUpdate=Pg();this.closeButton=Pg();this.sessionHelpfulButtonTemplate=p(Ubd,{optional:!0});this.customSessionHelpfulButton=Rg.apply(null,["customSessionHelpfulButton"].concat(q([{read:hg}])))};
tM.prototype.ngAfterViewInit=function(){var a=this;this.sessionHelpfulButtonTemplate&&this.customSessionHelpfulButton()&&(this.componentRef=this.customSessionHelpfulButton().createComponent(this.sessionHelpfulButtonTemplate),this.componentRef.instance.messageData=pg.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)}))};
tM.\u0275fac=function(a){return new (a||tM)};
tM.\u0275cmp=C({type:tM,selectors:[["session-helpful-button-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customSessionHelpfulButton,Ybd,hg);a&2&&rg()},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,oRa,2,0,"ng-container")(1,pRa,1,
1,"session-helpful-button",1);a&2&&G(b.sessionHelpfulButtonTemplate?0:1)},dependencies:[ty,sM],encapsulation:2,changeDetection:0});var Zbd=new ed("ThreadSourceHeaderTemplate"),$bd={imgSrc:"https://moma.corp.google.com/images/new_logo/color/moma_n_favicon.svg",imgAlt:"Moma logo",title:"From Moma search"},acd={imgSrc:"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg",imgAlt:"YAQS logo",title:"From YAQS"},uM=function(){this.thread=Qg.required.apply(Qg,q([]));this.config=null};
uM.prototype.ngOnChanges=function(a){a=a.thread;(a.firstChange||!a.firstChange&&a.previousValue.threadSource!==a.currentValue.threadSource)&&bcd(this)};uM.prototype.ngOnInit=function(){bcd(this)};var bcd=function(a){switch(a.thread().threadSource){case "MOMA":a.config=$bd;break;case "YAQS":a.config=acd;break;default:a.config=null}};uM.\u0275fac=function(a){return new (a||uM)};
uM.\u0275cmp=C({type:uM,selectors:[["thread-source-header"]],inputs:{thread:[1,"thread"]},features:[xx],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,qRa,3,3,"div",0);a&2&&G(b.config?0:-1)},encapsulation:2,changeDetection:0});var ccd=["customThreadSourceHeader"],vM=function(){this.thread=Qg.required.apply(Qg,q([]));this.threadSourceHeaderTemplate=p(Zbd,{optional:!0});this.customThreadSourceHeader=Rg.apply(null,["customThreadSourceHeader"].concat(q([{read:hg}])))};vM.prototype.ngAfterViewInit=function(){this.threadSourceHeaderTemplate&&this.customThreadSourceHeader()&&(this.componentRef=this.customThreadSourceHeader().createComponent(this.threadSourceHeaderTemplate),this.componentRef.instance.thread=pg.apply(null,[this.thread()].concat(q([]))))};
vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275cmp=C({type:vM,selectors:[["thread-source-header-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customThreadSourceHeader,ccd,hg);a&2&&rg()},inputs:{thread:[1,"thread"]},decls:2,vars:1,consts:[["customThreadSourceHeader",""],[3,"thread"]],template:function(a,b){a&1&&F(0,rRa,2,0,"ng-container")(1,sRa,1,1,"thread-source-header",1);a&2&&G(b.threadSourceHeaderTemplate?0:1)},dependencies:[ty,uM],encapsulation:2,changeDetection:0});var NRa=function(a,b){return b.trackingId},dcd=new ed("ThreadTemplate"),wM=function(){var a=this;this.useCompactView=Qg.apply(null,[!1].concat(q([])));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(q([])));this.dialog=p(VB);this.viewContainerRef=p(hg);this.snackBar=p(uC);this.routingService=p(NB);this.liveAnnouncer=p(sz);this.userStateService=p(yC);this.duckieEventTrackerService=p(tD);this.experimentsService=p(GA);this.userContextService=p(AC);this.threadService=p(RD);this.overridesService=
p(RA);this.conversationAgentsService=p(LB);this.messagePartsService=p(kM);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.DYNAMIC_DUCKIE_AGENT_INFO=Tw;this.DYNAMIC_DUCKIE_M_AGENT_INFO=Uw;this.M_DUCKIE_AGENT_INFO=Sw;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=$oa.apply(null,[pM].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)ecd(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&&ecd(a)}a.shouldShowSessionHelpfulButton=fcd(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?TKc(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}};
wM.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&&LNa(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,m,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,oQc(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:m=x.yieldResult;if(k||m){x.jumpTo(0);break}return z(x,tKc(a.routingService),0);case 11:Zj(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,tKc(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)})};wM.prototype.addMessage=function(a){var b=this;return y(function(c){return z(c,xQc(b.threadService,a),0)})};
var vRa=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(qM,{panelClass:"rename-chat-dialog-panel",data:{thread:b},viewContainerRef:a.viewContainerRef});ce(c)})},ecd=function(a){requestAnimationFrame(function(){var b;(b=a.messages().slice().reverse().find(function(c){return c.messageData().isUser}))==null||b.elementRef.nativeElement.scrollIntoView()})},QRa=function(a,b){return y(function(c){return z(c,zQc(a.threadService,
b.messageId,b.helpfulness),0)})},fcd=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&&gcd(a,b);return c},gcd=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 mm,c=new CC,c=aj(c,6,!0),km(a,lm(XKc(e,c).setMessageId(b).setSessionId(d)),
256701))},MRa=function(a){var b=b===void 0?!0:b;var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return d=c="",e="###### *Disclaimer: Duckie can make mistakes. Consider double-checking its responses.*",f=a.thread$.pipe(A(function(r){if(!r)return"";c=r.title||"# Untitled";r.serverId&&b&&(d="\n[Duckie Link](https://duckie.corp.google.com/thread/"+r.serverId+")");return r.messages.map(function(w){var x=(w.isUser?"## User:":"## Duckie:")+"\n\n"+w.text;w=a.getSourcesMarkdown(w);w.length>
0&&(x+="\n\n### Sources:\n"+w);return x}).join("\n\n")})),z(m,ie(f),2);case 2:return g=m.yieldResult,k="# "+c+d+"\n\n"+g+"\n\n"+e,Yd(m,3),z(m,navigator.clipboard.writeText(k),5);case 5:a.snackBar.open("Copied conversation to clipboard.","Dismiss",{duration:2E3});Zj(m,0);break;case 3:be(m),a.snackBar.open("Failed to copy to clipboard.","Dismiss",{duration:4E3}),ce(m)}})};
wM.prototype.getSourcesMarkdown=function(a){var b="",c;(c=a.relatedResources)==null||c.forEach(function(d){var e;(d=(e=ym(d))==null?void 0:zm(e))&&d.length>0&&d.forEach(function(f){b+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return b};wM.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};wM.\u0275fac=function(a){return new (a||wM)};
wM.\u0275cmp=C({type:wM,selectors:[["thread"]],viewQuery:function(a,b){a&1&&qg(b.messages,pM);a&2&&rg()},hostVars:2,hostBindings:function(a,b){a&2&&yg("use-compact-view",b.useCompactView())},inputs:{useCompactView:[1,"useCompactView"],inputPlaceholder:[1,"inputPlaceholder"]},decls:8,vars:11,consts:[["shareMenu","matMenu"],["mode","indeterminate",1,"align-self-center","margin-auto-y",3,"diameter"],[3,"messageData"],[1,"margin-s-top",3,"submitMessage","inputText","inputPlaceholder"],[1,"thread-heading",
"padded-s-y","border-bottom"],[3,"thread"],[1,"thread-title-container","flex-row"],[1,"thread-title"],["appearance","input","disabled",""],[1,"right-side-buttons"],["mat-icon-button","","aria-label","sharing options",1,"sharing-menu-button",3,"matMenuTriggerFor"],["fontSet","google-symbols"],["mat-menu-item","",3,"click"],[1,"duckie-warning-banner","flex-row","align-items-center","gap","padded-s-bottom"],[1,"user-context-bar"],[1,"duckie-experiment-banner"],[1,"incognito-mode-banner","bg-primary-container",
"flex-row","align-items-center","gap"],["id","expanded-contexts-view",1,"expanded-contexts-view"],[1,"banner-wrapper"],[1,"thread-container","flex-column","full-width","margin-bottom"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button"],["role","button","matTooltip","Title edit has been disabled as your\n                personal results are used in this thread",3,"matTooltipDisabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"disabled"],["mat-icon-button",
"","aria-label","Rename chat",1,"rename-chat-button",3,"click"],["matTooltip","This thread is using a deprecated model and cannot be continued.","matTooltipShowDelay","500"],[1,"user-context-bar-title","gmat-subhead-2"],["matTooltipClass","context-tooltip",3,"label","iconUrl","linkUrl","matTooltip"],[1,"more-context-counter"],[1,"spacer"],["mat-icon-button","","aria-label","Expand context","aria-controls","expanded-contexts-view",1,"expand-context-button",3,"click"],["matTooltipShowDelay","500",3,
"matTooltip"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],[1,"context-item"],["alt","context.imgAlt",3,"src"],["target","_blank",3,"href"],[3,"messageData","useCompactView","isDuckieThinking"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){if(a&1){var c=t();bg(0);T(1,"async");F(2,tRa,1,1,"mat-progress-spinner",1);T(3,"async");Nf(4,PRa,3,4);F(5,RRa,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&&(cg(U(1,4,b.userProvidedContext$)),B(2),G(U(3,7,b.isLoadingThread$)?2:4),B(3),G(b.shouldShowSessionHelpfulButton&&!U(6,9,b.threadService.isDuckieThinking$)?5:-1),B(2),I("inputText",b.followUpQuestion)("inputPlaceholder",b.inputPlaceholder()))},dependencies:[ty,OE,pC,nC,jC,lC,pL,fL,nL,mL,BK,AK,II,GK,FK,DA,$y,Yy,tH,pH,nH,sH,AL,mad,sD,FA,EA,pM,wF,tM,vM,MK,ly],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 hcd=["customThread"],xM=function(){this.threadTemplate=p(dcd,{optional:!0});this.customThread=Rg.apply(null,["customThread"].concat(q([{read:hg}])));this.useCompactView=Qg.apply(null,[!1].concat(q([])));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(q([])))};
xM.prototype.ngAfterViewInit=function(){this.threadTemplate&&this.customThread()&&(this.componentRef=this.customThread().createComponent(this.threadTemplate),this.componentRef.instance.useCompactView=pg.apply(null,[this.useCompactView()].concat(q([]))),this.componentRef.instance.inputPlaceholder=pg.apply(null,[this.inputPlaceholder()].concat(q([]))))};xM.\u0275fac=function(a){return new (a||xM)};
xM.\u0275cmp=C({type:xM,selectors:[["thread-wrapper"]],viewQuery:function(a,b){a&1&&qg(b.customThread,hcd,hg);a&2&&rg()},inputs:{useCompactView:[1,"useCompactView"],inputPlaceholder:[1,"inputPlaceholder"]},decls:4,vars:1,consts:[["customThread",""],[1,"container","margin-auto-x"],[1,"thread","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"useCompactView","inputPlaceholder"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,SRa,2,0,"ng-container")(3,
TRa,1,2,"thread",3),L()());a&2&&(B(2),G(b.threadTemplate?2:3))},dependencies:[wM],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 yM=function(){};yM.\u0275fac=function(a){return new (a||yM)};yM.\u0275mod=cf({type:yM});yM.\u0275inj=Gc({imports:[wM,xM,vM]});var icd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(icd,W);var jcd=function(a,b){this.url=a;this.httpClient=b};Y(jcd,tOc);jcd.prototype.makeRequest=function(a){return this.httpClient.request("POST",this.url+a.path,{headers:new nh({"Content-Type":"text/plain"}),body:a.body,observe:"body",responseType:"json",withCredentials:!0})};var kcd=new ed("url of g3mark service api"),zM=function(){};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275mod=cf({type:zM});zM.\u0275inj=Gc({providers:[{provide:zOc,useFactory:function(a,b){return new jcd(a,b)},deps:[kcd,Qy]}],imports:[Sy]});var AM=function(){};AM.\u0275fac=function(a){return new (a||AM)};AM.\u0275mod=cf({type:AM});AM.\u0275inj=Gc({providers:[{provide:kcd,useFactory:function(){return window.g3mark_service_url||"https://g3mark-service.corp.google.com"}},zD],imports:[zM]});mJa(nJa(function(){}));var lcd={provide:N_c,deps:[iA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};Kh({passive:!0});var BM=function(){};BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275mod=cf({type:BM});BM.\u0275inj=Gc({providers:[lcd],imports:[ty,yA,lA,Rz,Zy]});var mcd=[[["","onedevOptOutButton",""]],[["","mat-icon-button",""]]],CM=function(a){var b=this;this.zone=a;this.openedByKeyboard=!1;this.resizeObserver=new ResizeObserver(function(){b.zone.run(function(){var c=[];for(var d=c.concat,e=Array.from(b.triggers),f=Array.from(b.triggerElements),g=Math.max(e.length,f.length),k=[],m=0;m<g;m++)k.push([e[m],f[m]]);c=d.call(c,q(k),[[b.showMoreTrigger,b.showMoreElement]]);c=l(c);for(d=c.next();!d.done;d=c.next())e=l(d.value),d=e.next().value,e=e.next().value,
Number(e.nativeElement.offsetWidth===0)^Number(b.showMoreTrigger.menuOpen&&d!==b.showMoreTrigger)&&d.closeMenu();ncd(b)})})};CM.prototype.ngOnInit=function(){};CM.prototype.ngAfterViewInit=function(){if(this.mdcButtons.length>0&&this.mdcButtons.some(function(a){return!a.nativeElement.classList.contains("gmat-mdc-button")}))throw Error("Wc");ocd(this)};CM.prototype.ngOnDestroy=function(){this.resizeObserver.disconnect()};
var pcd=function(a){ncd(a);var b=a.openedByKeyboard?"keyboard":"mouse";a.openedByKeyboard=!1;setTimeout(function(){M_c(a.showMoreMenu,b)})},ocd=function(a){for(var b=l([].concat(q(a.buttons),[a.showMoreElement])),c=b.next();!c.done;c=b.next())a.resizeObserver.observe(c.value.nativeElement)},ncd=function(a){a=l(a.showMoreMenu._directDescendantItems);for(var b=a.next();!b.done;b=a.next())b=b.value,b.disabled=b._getHostElement().offsetWidth===0};
da.Object.defineProperties(CM.prototype,{menu:{configurable:!0,enumerable:!0,set:function(a){a.panelClass="onedev-appbar-menu";this.showMoreMenu=a}}});CM.\u0275fac=function(a){return new (a||CM)(Ye(Tg))};
CM.\u0275cmp=C({type:CM,selectors:[["onedev-mdc-button-group"]],contentQueries:function(a,b,c){a&1&&(kg(c,sH,4),kg(c,sH,4,Jd),kg(c,nC,4,Jd),kg(c,jC,4,Jd));if(a&2){var d;ng(d=og())&&(b.triggers=d);ng(d=og())&&(b.triggerElements=d);ng(d=og())&&(b.buttons=d);ng(d=og())&&(b.mdcButtons=d)}},viewQuery:function(a,b){a&1&&(jg(sH,5),jg(sH,5,Jd));if(a&2){var c;ng(c=og())&&(b.showMoreTrigger=c.first);ng(c=og())&&(b.showMoreElement=c.first)}},hostVars:2,hostBindings:function(a){a&2&&xg("display","flex")},inputs:{menu:"menu"},
ngContentSelectors:["[onedevOptOutButton]","[mat-icon-button]"],decls:5,vars:1,consts:[["mat-icon-button","","aria-label","show more",1,"show-more",3,"keydown.enter","keydown.space","menuOpened","matMenuTriggerFor"]],template:function(a,b){a&1&&(eg(mcd),fg(0),fg(1,1),K(2,"button",0),N("keydown.enter",function(){b.openedByKeyboard=!0})("keydown.space",function(){b.openedByKeyboard=!0})("menuOpened",function(){return pcd(b)}),K(3,"mat-icon"),Q(4,"more_vert"),L()());a&2&&(B(2),I("matMenuTriggerFor",
b.showMoreMenu))},dependencies:[pC,nC,lC,$y,Yy,fK,eK,sH],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 DM=function(){};DM.\u0275fac=function(a){return new (a||DM)};DM.\u0275mod=cf({type:DM});DM.\u0275inj=Gc({imports:[ty,bJ,$y,BM,CM]});var EM=function(){};EM.\u0275fac=function(a){return new (a||EM)};EM.\u0275mod=cf({type:EM});EM.\u0275inj=Gc({imports:[DM]});var qcd=["*"],rcd=["content"],scd=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tcd=new ed("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),ucd=new ed("MAT_DRAWER_CONTAINER"),GM=function(){var a=p(Jd),b=p(Vh),c=p(Tg);Lz.call(this,a,b,c);this._platform=p(Yh);this._changeDetectorRef=p(Px);this._container=p(FM)};Y(GM,Lz);GM.\u0275dir=Lz.\u0275dir;GM.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
GM.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};GM.\u0275fac=function(a){return new (a||GM)};
GM.\u0275cmp=C({type:GM,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(xg("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),yg("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[Ig([{provide:Lz,useExisting:GM}]),Gf],ngContentSelectors:qcd,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},encapsulation:2,changeDetection:0});
var HM=function(){var a=this;this._elementRef=p(Jd);this._focusTrapFactory=p(jz);this._focusMonitor=p(bz);this._platform=p(Yh);this._ngZone=p(Tg);this._renderer=p(fi);this._interactivityChecker=p(ez);this._doc=p(Uh);this._container=p(ucd,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._disableClose=!1;this._opened=pg.apply(null,[!1].concat(q([])));this._animationStarted=new sf;this._animationEnd=new sf;this.openedChange=new gj(!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 gj;this._modeChanged=new sf;this._injector=p(Ae);this._changeDetectorRef=p(Px);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&&!Jh(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=HM.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?cz(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(HM.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=Oh(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=Oh(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened()},set:function(a){this.toggle(Oh(a))}}});HM.\u0275fac=function(a){return new (a||HM)};
HM.\u0275cmp=C({type:HM,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&jg(rcd,5);if(a&2){var c;ng(c=og())&&(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),xg("visibility",b._container||b.opened?null:"hidden"),yg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side"))},inputs:{position:"position",mode:"mode",
disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:qcd,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(eg(),K(0,"div",1,0),fg(2),L())},dependencies:[Lz],encapsulation:2,changeDetection:0});
var FM=function(){var a=this;this._dir=p(ei,{optional:!0});this._element=p(Jd);this._ngZone=p(Tg);this._changeDetectorRef=p(Px);this._animationDisabled=pi();this._transitionsEnabled=!1;this._drawers=new ig;this._autosize=p(tcd);this.backdropClick=new gj;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(Yh),c=p(Th),d;(d=this._dir)==null||d.change.pipe(Bf(this._destroyed)).subscribe(function(){a._validateDrawers();
IM(a)});c.change().pipe(Bf(this._destroyed)).subscribe(function(){return IM(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
FM.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}));mg(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))&&
IM(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(lf(10),Bf(a._destroyed)).subscribe(function(){return IM(a)})})};FM.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};FM.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};FM.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var IM=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=FM.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(){IM(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(){IM(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(FM.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=Oh(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:Oh(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});FM.\u0275fac=function(a){return new (a||FM)};
FM.\u0275cmp=C({type:FM,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(kg(c,GM,5),kg(c,HM,5));if(a&2){var d;ng(d=og())&&(b._content=d.first);ng(d=og())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&jg(GM,5);if(a&2){var c;ng(c=og())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[Ig([{provide:ucd,useExisting:FM}])],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&&(eg(scd),F(0,URa,1,2,"div",0),fg(1),fg(2,1),F(3,VRa,2,0,"mat-drawer-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[GM],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 vcd=["*"],wcd=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],JM=function(){GM.apply(this,arguments)};Y(JM,GM);JM.\u0275dir=GM.\u0275dir;JM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JM)))(b||JM)}}();JM.\u0275cmp=C({type:JM,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ig([{provide:Lz,useExisting:JM}]),Gf],ngContentSelectors:vcd,decls:1,vars:0,template:function(a){a&1&&(eg(),fg(0))},encapsulation:2,changeDetection:0});
var KM=function(){HM.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Y(KM,HM);
da.Object.defineProperties(KM.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Oh(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Rh(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Rh(a)}}});
KM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KM)))(b||KM)}}();
KM.\u0275cmp=C({type:KM,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),xg("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),yg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side")("mat-sidenav-fixed",b.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",
fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ig([{provide:HM,useExisting:KM}]),Gf],ngContentSelectors:vcd,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(eg(),K(0,"div",1,0),fg(2),L())},dependencies:[Lz],encapsulation:2,changeDetection:0});var LM=function(){FM.apply(this,arguments);this._content=this._allDrawers=void 0};Y(LM,FM);
LM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(LM)))(b||LM)}}();
LM.\u0275cmp=C({type:LM,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(kg(c,JM,5),kg(c,KM,5));if(a&2){var d;ng(d=og())&&(b._content=d.first);ng(d=og())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ig([{provide:ucd,useExisting:LM},{provide:FM,useExisting:LM}]),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&&(eg(wcd),F(0,WRa,1,2,"div",0),fg(1),fg(2,1),F(3,XRa,2,0,"mat-sidenav-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[JM],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 MM=function(){};MM.\u0275fac=function(a){return new (a||MM)};MM.\u0275mod=cf({type:MM});MM.\u0275inj=Gc({imports:[Rz,Zy,Rz]});var NM=function(){var a=this;this.routingService=p(NB);this.communicationService=p(KB);this.backendModelService=p(xC);this.conversationAgentsService=p(LB);this.chatStateService=p($J);this.threadService=p(RD);this.destroyRef=p(Ee);this.useExperimentalOrcasAgent=Qg.apply(null,[!1].concat(q([])));this.query=Qg.apply(null,q([]));this.contextValues=Qg.apply(null,[void 0].concat(q([])));this.onboardingExamples=Qg.apply(null,[void 0].concat(q([])));this.isDarkMode=Qg.apply(null,[!1].concat(q([])));this.configurationKey=
"nexus";this.DuckieView=sJc;this.activeView$=this.routingService.activeView$;this.isRecentSessionsVisible$=this.chatStateService.isRecentSessionsVisible$;var b=p(RA);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()?Iyc:Hyc;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 icd;a.communicationService.setOnboardingExamplesList(d)});gf(function(){a.sendAppProvidedContext(a.contextValues())})};
NM.prototype.ngOnInit=function(){var a=this,b,c=(b=nOa(this.configurationKey))==null?void 0:b.modelIdOverride;c&&this.backendModelService.currentModelIdInternal.next(c);this.chatStateService.messageQueue$.asObservable().pipe(fj(this.destroyRef)).subscribe(function(d){if(d.contextMap){var e=a.sendAppProvidedContext;var f=d.contextMap,g;var k=(g=a.contextValues())==null?void 0:g.clone();if(f){g=[];f=l(f.entries());for(var m=f.next();!m.done;m=f.next()){var r=l(m.value);m=r.next().value;r=r.next().value;
g.push((new OA).setName(m).setStringValue(r))}f=k==null?void 0:k.getValuesList()[0];var w;m=(new NA).setValuesList([].concat(q((f==null?void 0:(w=jm(f,NA,3,PA))==null?void 0:w.getValuesList())||[]),g));f?(mp(f,3,PA,m),k.setValuesList([f].concat(k.getValuesList().slice(1)))):k=m}e.call(a,k);a.sendQuestion(d.message);a.sendAppProvidedContext(a.contextValues())}else a.sendQuestion(d.message)})};NM.prototype.sendAppProvidedContext=function(a){a!=null&&this.communicationService.setAppProvidedContext(a)};
NM.prototype.sendQuestion=function(a){qJc(a);document.getElementById("ask-duckie-submit").dispatchEvent(new Event("click",{bubbles:!0}))};NM.\u0275fac=function(a){return new (a||NM)};
NM.\u0275cmp=C({type:NM,selectors:[["gpp-agent-chat"]],inputs:{useExperimentalOrcasAgent:[1,"useExperimentalOrcasAgent"],query:[1,"query"],contextValues:[1,"contextValues"],onboardingExamples:[1,"onboardingExamples"],isDarkMode:[1,"isDarkMode"]},features:[Ig([{provide:ead,useValue:zF},{provide:o9c,useValue:ZJ}])],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,YRa,1,1,"onboarding-wrapper",1),T(4,"async"),Nf(5,ZRa,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;zg(Gg("gpp-agent-container ",b.isDarkMode()?"dark-mode":"light-mode"));B();yg("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);yg("hidden",!U(7,
12,b.isRecentSessionsVisible$))}},dependencies:[JK,tL,sL,ty,EM,pC,GK,AM,sK,$y,MM,CK,yM,xM,EK,ly],styles:["[_ngcontent-%COMP%]:root{--blue-50:#e8f0fe;--blue-100:#d2e3fc;--blue-200:#aecbfa;--blue-300:#8ab4f8;--blue-400:#669df6;--blue-500:#4285f4;--blue-600:#1a73e8;--blue-700:#1967d2;--blue-800:#185abc;--blue-900:#174ea6;--blue:var(--blue-600);--red-50:#fce8e6;--red-100:#fad2cf;--red-200:#f6aea9;--red-300:#f28b82;--red-400:#ee675c;--red-500:#ea4335;--red-600:#d93025;--red-700:#c5221f;--red-800:#b31412;--red-900:#a50e0e;--red:var(--red-600);--yellow-50:#fef7e0;--yellow-100:#feefc3;--yellow-200:#fde293;--yellow-300:#fdd663;--yellow-400:#fcc934;--yellow-500:#fbbc04;--yellow-600:#f9ab00;--yellow-700:#f29900;--yellow-800:#ea8600;--yellow-900:#e37400;--yellow:var(--yellow-600);--green-50:#e6f4ea;--green-100:#ceead6;--green-200:#a8dab5;--green-300:#81c995;--green-400:#5bb974;--green-500:#34a853;--green-600:#1e8e3e;--green-700:#188038;--green-800:#137333;--green-900:#0d652d;--green:var(--green-600);--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f4;--grey-200:#e8eaed;--grey-300:#dadce0;--grey-400:#bdc1c6;--grey-500:#9aa0a6;--grey-600:#80868b;--grey-700:#5f6368;--grey-800:#3c4043;--grey-900:#202124;--black:var(--grey-900);--orange-50:#feefe3;--orange-100:#fedfc8;--orange-200:#fdc69c;--orange-300:#fcad70;--orange-400:#fa903e;--orange-500:#fa7b17;--orange-600:#e8710a;--orange-700:#d56e0c;--orange-800:#c26401;--orange-900:#b06000;--pink-50:#fde7f3;--pink-100:#fdcfe8;--pink-200:#fba9d6;--pink-300:#ff8bcb;--pink-400:#ff63b8;--pink-500:#f439a0;--pink-600:#e52592;--pink-700:#c92786;--pink-800:#b80672;--pink-900:#9c166b;--purple-50:#f3e8fd;--purple-100:#e9d2fd;--purple-200:#d7aefb;--purple-300:#c58af9;--purple-400:#af5cf7;--purple-500:#a142f4;--purple-600:#9334e6;--purple-700:#8430ce;--purple-800:#7627bb;--purple-900:#681da8;--cyan-50:#e4f7fb;--cyan-100:#cbf0f8;--cyan-200:#a1e4f2;--cyan-300:#78d9ec;--cyan-400:#4ecde6;--cyan-500:#24c1e0;--cyan-600:#12b5cb;--cyan-700:#129eaf;--cyan-800:#098591;--cyan-900:#007b83}.dark-mode[_ngcontent-%COMP%], .light-mode[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root{--app-bar-bg:#fff;--base-fg:#000;--button-disabled-bg:rgba(0,0,0,.12);--elevation:rgba(0,0,0,.2);--hairline:var(--grey-300);--hover:rgba(0,0,0,.06);--icon:var(--grey-700);--input-field-bg:var(--grey-100);--input-field-disabled-bg:#f5f6f7;--page-bg:#fff;--surface-default:#fff;--surface-secondary:var(--grey-50);--text-default:var(--grey-900);--text-high-contrast:var(--grey-900);--text-disabled:rgba(0,0,0,.26);--text-inverse:#fff;--text-secondary:var(--grey-700);--tooltip-bg:rgba(97,97,97,.9);--overlay-backdrop:rgba(0,0,0,.32);--button-disabled-text:var(--text-disabled);--button-focused-bg:var(--hover);--button-raised-bg:var(--surface-default);--button-selected:var(--blue-100);--button-selected-disabled-bg:var(--input-field-bg);--button-toggle-disabled-bg:var(--button-disabled-bg);--chip-unselected-bg:var(--surface-default);--hint-text:var(--text-disabled);--list-option-disabled-bg:var(--button-disabled-bg);--slider-min:var(--text-default);--slider-off-active:var(--button-disabled-text);--slider-off:var(--button-disabled-text);--slider-toggle-track:rgba(25,103,210,.54);--slider-toggle-track-warn:rgba(217,48,37,.54);--primary-default:var(--blue-600);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-700);--warn-default:var(--red-600);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-700);--snackbar-background:var(--grey-900);--snackbar-text:var(--grey-200);--snackbar-action-text:var(--blue-300);--snackbar-error-background:var(--red-900);--snackbar-error-text:var(--white);--snackbar-error-action-text:var(--blue-200);--radio-disabled-outline:var(--grey-800);--tonal-blue:#185abc;--tonal-cyan:#007b83;--tonal-green:#137333;--tonal-grey:#5f6368;--tonal-orange:#bd4800;--tonal-pink:#d01884;--tonal-purple:#9334e6;--tonal-red:#d42521;--tonal-yellow:#8f6b00;--tonal-fill-blue:#f2f6ff;--tonal-fill-cyan:#ebfcfe;--tonal-fill-green:#edfbf1;--tonal-fill-grey:#f4f5f6;--tonal-fill-orange:#fff3e9;--tonal-fill-pink:#fff2f9;--tonal-fill-purple:#f9f3ff;--tonal-fill-red:#fff2f1;--tonal-fill-yellow:#fff8e4;--tonal-tint-blue:#f9fbff;--tonal-tint-cyan:#f6fdfe;--tonal-tint-green:#f7fdf9;--tonal-tint-grey:#f9fafb;--tonal-tint-orange:#fff9f5;--tonal-tint-pink:#fff9fc;--tonal-tint-purple:#fcf9ff;--tonal-tint-red:#fff8f7;--tonal-tint-yellow:#fffcf3;--tonal-icon-blue:#2672e3;--tonal-icon-cyan:#34989d;--tonal-icon-green:#2b923d;--tonal-icon-grey:#878787;--tonal-icon-orange:#d46f17;--tonal-icon-pink:#f127ab;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#e51d19;--tonal-icon-yellow:#9c8c30;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.dark-mode[_ngcontent-%COMP%]{--app-bar-bg:var(--grey-900);--base-fg:#fff;--button-disabled-bg:hsla(0,0%,100%,.12);--button-disabled-text:hsla(0,0%,100%,.26);--button-selected:rgba(138,180,248,.24);--elevation:rgba(0,0,0,.5);--hairline:var(--grey-700);--hover:hsla(0,0%,100%,.08);--icon:var(--grey-300);--input-field-bg:#28292c;--input-field-disabled-bg:#27292c;--page-bg:var(--grey-900);--surface-default:#28292c;--surface-secondary:#000;--text-default:var(--grey-200);--text-high-contrast:#fff;--text-disabled:hsla(0,0%,100%,.26);--text-inverse:#000;--text-secondary:var(--grey-400);--tooltip-bg:hsla(0,0%,100%,.9);--overlay-backdrop:rgba(0,0,0,.5);--primary-default:var(--blue-300);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-200);--warn-default:var(--red-300);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-200);--slider-toggle-track:rgba(138,180,248,.54);--slider-toggle-track-warn:hsla(5,81%,73%,.54);--snackbar-background:var(--white);--snackbar-text:var(--grey-900);--snackbar-action-text:var(--blue-600);--snackbar-error-background:var(--red-50);--snackbar-error-text:#000;--snackbar-error-action-text:var(--blue-700);--radio-disabled-outline:var(--grey-200);--tonal-blue:#99befa;--tonal-cyan:#78d9ec;--tonal-green:#81c995;--tonal-grey:#c7c7c7;--tonal-orange:#fcad70;--tonal-pink:#ff8bcb;--tonal-purple:#ca94fa;--tonal-red:#f28b82;--tonal-yellow:#fdd663;--tonal-fill-blue:#2a3952;--tonal-fill-cyan:#24424a;--tonal-fill-green:#274031;--tonal-fill-grey:#36383a;--tonal-fill-orange:#513724;--tonal-fill-pink:#502941;--tonal-fill-purple:#3e2b52;--tonal-fill-red:#4e2b2a;--tonal-fill-yellow:#453b1f;--tonal-tint-blue:#252d3b;--tonal-tint-cyan:#223339;--tonal-tint-green:#23302a;--tonal-tint-grey:#2b2c2f;--tonal-tint-orange:#382c24;--tonal-tint-pink:#382532;--tonal-tint-purple:#2f263b;--tonal-tint-red:#362627;--tonal-tint-yellow:#322e22;--tonal-icon-blue:#7391f2;--tonal-icon-cyan:#39bcd5;--tonal-icon-green:#55c374;--tonal-icon-grey:#a4a4a4;--tonal-icon-orange:#fb9546;--tonal-icon-pink:#fc78c1;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#fa7775;--tonal-icon-yellow:#f4ce5d;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.themed[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--text-default);background-color:var(--page-bg)}  html{--base-px:1px}  .gpp-agent-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}  .gpp-agent-container .full-width{width:100%}  .gpp-agent-container .full-height{height:100%}  .gpp-agent-container body .bg-page-bg{background-color:var(--page-bg)}  .gpp-agent-container body .bg-surface-default{background-color:var(--surface-default)}  .gpp-agent-container body .bg-surface-container{background-color:var(--surface-container)}  .gpp-agent-container body .bg-primary-container{background-color:var(--primary-container)}  .gpp-agent-container .bordered{border:1px solid var(--hairline)}  .gpp-agent-container .border-bottom{border-bottom:1px solid var(--hairline)}  .gpp-agent-container .border-top{border-top:1px solid var(--hairline)}  .gpp-agent-container body .text-secondary{color:var(--text-secondary)}  .gpp-agent-container body .text-high-contrast{color:var(--text-high-contrast)}  .gpp-agent-container .italic{font-style:italic}  .gpp-agent-container .bold{font-weight:700}  .gpp-agent-container .medium{font-weight:500}  .gpp-agent-container .font-google-sans{font-family:Google Sans,sans-serif}  .gpp-agent-container .font-roboto{font-family:Roboto,sans-serif}  .gpp-agent-container .type-s{font-size:calc(var(--base-px, 1rem)*13)}  .gpp-agent-container .type-xs{font-size:calc(var(--base-px, 1rem)*12)}  .gpp-agent-container .text-center{text-align:center}  .gpp-agent-container .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}  .gpp-agent-container .font-google-symbols{font-family:Google Symbols}  .gpp-agent-container .rounded{border-radius:16px}  .gpp-agent-container .rounded-full{border-radius:10000px}  .gpp-agent-container .rounded-s{border-radius:8px}  .gpp-agent-container .rounded-xs{border-radius:4px}  .gpp-agent-container .flex-column{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}  .gpp-agent-container .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .gpp-agent-container .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}  .gpp-agent-container .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}  .gpp-agent-container .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}  .gpp-agent-container .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}  .gpp-agent-container .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}  .gpp-agent-container .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}  .gpp-agent-container .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}  .gpp-agent-container .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}  .gpp-agent-container .gap{gap:16px}  .gpp-agent-container .gap-s{gap:8px}  .gpp-agent-container .gap-xs{gap:4px}  .gpp-agent-container .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}  .gpp-agent-container .margin{margin:16px}  .gpp-agent-container .margin-top{margin-top:16px}  .gpp-agent-container .margin-s-top{margin-top:8px}  .gpp-agent-container .margin-xs-top{margin-top:4px}  .gpp-agent-container .margin-bottom{margin-bottom:16px}  .gpp-agent-container .margin-s-bottom{margin-bottom:8px}  .gpp-agent-container .margin-xs-bottom{margin-bottom:4px}  .gpp-agent-container .margin-left{margin-left:16px}  .gpp-agent-container .margin-s-left{margin-left:8px}  .gpp-agent-container .margin-xs-left{margin-left:4px}  .gpp-agent-container .margin-right{margin-right:16px}  .gpp-agent-container .margin-s-right{margin-right:8px}  .gpp-agent-container .margin-xs-right{margin-right:4px}  .gpp-agent-container .margin-y{margin-top:16px;margin-bottom:16px}  .gpp-agent-container .margin-s-y{margin-top:8px;margin-bottom:8px}  .gpp-agent-container .margin-xs-y{margin-top:4px;margin-bottom:4px}  .gpp-agent-container .margin-x{margin-left:16px;margin-right:16px}  .gpp-agent-container .margin-s-x{margin-left:8px;margin-right:8px}  .gpp-agent-container .margin-auto-y{margin-top:auto;margin-bottom:auto}  .gpp-agent-container .margin-auto-x{margin-left:auto;margin-right:auto}  .gpp-agent-container .padded{padding:16px}  .gpp-agent-container .padded-s{padding:8px}  .gpp-agent-container .padded-xs{padding:4px}  .gpp-agent-container .padded-xxs{padding:2px}  .gpp-agent-container .padded-top{padding-top:16px}  .gpp-agent-container .padded-s-top{padding-top:8px}  .gpp-agent-container .padded-xs-top{padding-top:4px}  .gpp-agent-container .padded-s-y{padding-bottom:8px;padding-top:8px}  .gpp-agent-container .padded-xs-x{padding-left:4px;padding-right:4px}  .gpp-agent-container .padded-s-x{padding-left:8px;padding-right:8px}  .gpp-agent-container .padded-m-left{padding-left:24px}  .gpp-agent-container .padded-left{padding-left:16px}  .gpp-agent-container .padded-s-left{padding-left:8px}  .gpp-agent-container .padded-xs-left{padding-left:4px}  .gpp-agent-container .padded-right{padding-right:16px}  .gpp-agent-container .padded-s-right{padding-right:8px}  .gpp-agent-container .padded-xs-bottom{padding-bottom:4px}  .gpp-agent-container .padded-s-bottom{padding-bottom:8px}  .gpp-agent-container .width-almost-full{width:90%}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}  .gpp-agent-container body .mat-icon-button.small{width:24px;height:24px;line-height:24px}  .gpp-agent-container body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}  .gpp-agent-container body .icon-s,   .gpp-agent-container body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}  .gpp-agent-container body .icon-m,   .gpp-agent-container body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}  .gpp-agent-container .chat-container.hidden,   .gpp-agent-container .recent-sessions-container.hidden{display:none}  .gpp-agent-container .chat-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:100%}  .gpp-agent-container .chat-container thread-wrapper{width:100%}  .gpp-agent-container .chat-container thread-wrapper .duckie-link-following{display:none}  .gpp-agent-container .chat-container .container>.onboarding,   .gpp-agent-container .chat-container .container>.thread{box-shadow:none;margin:0;padding-bottom:0;height:100%}  .gpp-agent-container .chat-container .container>.onboarding .onboarding-section,   .gpp-agent-container .chat-container .container>.onboarding .thread-container,   .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.onboarding message-input,   .gpp-agent-container .chat-container .container>.thread .onboarding-section,   .gpp-agent-container .chat-container .container>.thread .thread-container,   .gpp-agent-container .chat-container .container>.thread .thread-heading,   .gpp-agent-container .chat-container .container>.thread message-input{padding-left:0;padding-right:0}  .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.thread .thread-heading{min-height:0}  .gpp-agent-container .chat-container .container .reminder-blurb{border-radius:8px;font-size:12px;padding:0 1em}  .gpp-agent-container .chat-container .container .duckie-disclaimer{font-size:10px;margin:0}  .gpp-agent-container .chat-container .container .interactive-element-button{display:inline-block;margin-top:3px}  .gpp-agent-container .recent-sessions-container{width:100%}  .gpp-agent-container.light-mode{--primary-container:#d3e3fd;--on-primary-container:#041e49;--surface-container:#f0f4f9;--surface-secondary:#f8f9fa;--secondary-container:#c2e7ff;--duckie-experiment-banner-color-1:#d7e6ff;--duckie-experiment-banner-color-2:#dce2ff;--graphviz-bg-fill:transparent;--graphviz-text-default:#3c4043;--graphviz-stroke-default:#3c4043;--graphviz-cluster-stroke:#616161}  .gpp-agent-container.dark-mode{--primary-container:#0842a0;--on-primary-container:#d3e3fd;--surface-container:#1e1f20;--surface-secondary:#000;--secondary-container:#004a77;--duckie-experiment-banner-color-1:#0842a0;--duckie-experiment-banner-color-2:#55226e;--graphviz-text-default:#e8eaed;--graphviz-stroke-default:#e8eaed;--graphviz-cluster-stroke:#dadce0}"],
changeDetection:0});var OM=function(){this.screenshotLinkFollowingEnabled=this.userProvidedContextEnabled=this.responseMetadataEnabled=!0;this.experimentalDuckieAgentEnabled=this.sVsMGooseModelEnabled=!1;this.userProvidedContextDriveEnabled=this.userProvidedContextYaqsEnabled=this.displayDuckieThoughtsEnabled=!0;this.userProvidedContextIrmEnabled=this.duckieStreamingMvpEnabled=this.userProvidedContextEldarEnabled=this.userProvidedContextGerritEnabled=this.userProvidedContextGoLinkEnabled=this.recitationCheckingEnabled=
this.userProvidedContextGobEnabled=!1;this.duckieSessionDeletionEnabled=!0;this.a2aDefaultAgentEnabled=this.feedbackAnimationsEnabled=this.duckieBigBirdStrikeEnabled=!1};Y(OM,GA);OM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(OM)))(b||OM)}}();OM.\u0275prov=Fc({token:OM,factory:OM.\u0275fac,providedIn:"root"});var PM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PM,W);PM.prototype.getId=function(){return xi(this,1)};PM.prototype.setId=function(a){return Ym(this,1,a)};PM.prototype.getSourceId=function(){return Ii(this,2)};PM.prototype.setSourceId=function(a){return $m(this,2,a)};var xcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xcd,W);h=xcd.prototype;h.getUrl=function(){return xi(this,1)};h.setUrl=function(a){return Ym(this,1,a)};h.getHeight=function(){return Um(this,2)};h.setHeight=function(a){return pn(this,2,a)};h.getWidth=function(){return Um(this,3)};h.setWidth=function(a){return pn(this,3,a)};var QM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QM,W);QM.prototype.hasDuration=function(){return Ji(this,tn,2)};var ycd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ycd,W);var zcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zcd,W);h=zcd.prototype;h.getEmailList=function(){return Vm(this,1,Oi())};h.setEmailList=function(a){return Zm(this,1,a)};h.addEmail=function(a){return Qq(this,1,a)};h.removeEmail=function(a){return Ac(this,1,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return ix(this,1)};h.setEmail=function(a){return qx(this,1,a)};h.getGroupId=function(a){return ix(this,2,a)};h.setGroupId=function(a){qx(this,2,a)};var Acd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Acd,W);var Bcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bcd,W);Bcd.prototype.getDownloadUrl=function(){return xi(this,5)};var Ccd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ccd,W);var Dcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dcd,W);var Ecd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ecd,W);Ecd.prototype.getPhotoId=function(){return xi(this,1)};var Fcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fcd,W);var Gcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gcd,W);var RM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RM,W);RM.prototype.getAgentId=function(){return Ii(this,3)};RM.prototype.setAgentId=function(a){return $m(this,3,a)};var SM=[2,4,5,6,7];var Hcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hcd,W);Hcd.prototype.setReferrerUrl=function(a){return Ym(this,2,a)};var TM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TM,W);h=TM.prototype;h.getId=function(){return X(this,PM,1)};h.setId=function(a){return Zi(this,PM,1,a)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return Ym(this,3,a)};h.getParentId=function(){return xi(this,4)};h.setParentId=function(a){return Ym(this,4,a)};h.getType=function(){return Ii(this,6)};
h.setType=function(a){return $m(this,6,a)};h.getMimeType=function(){return xi(this,7)};h.setMimeType=function(a){return Ym(this,7,a)};h.getUrl=function(){return xi(this,8)};h.setUrl=function(a){return Ym(this,8,a)};h.getIconUrl=function(){return xi(this,11)};h.setIconUrl=function(a){return Ym(this,11,a)};var UM=function(a){return Ni(a,xcd,10,Oi())};h=TM.prototype;h.getLastModifiedTimestamp=function(){return X(this,ej,12)};h.getVideoMetadata=function(){return X(this,QM,34)};
h.hasVideoMetadata=function(){return Ji(this,QM,34)};h.setOwnedByMe=function(a){return op(this,39,a)};h.getOwner=function(){return ix(this,40)};h.setOwner=function(a){return qx(this,40,a)};h.getStarred=function(){return Ri(this,44)};h.getVersion=function(){return En(this,45)};h.setVersion=function(a){return Xo(this,45,a)};var VM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VM,W);h=VM.prototype;h.getShared=function(){return Ri(this,1)};
h.setShared=function(a){op(this,1,a)};h.getVideoMetadata=function(){return X(this,QM,3)};h.hasVideoMetadata=function(){return Ji(this,QM,3)};h.getDownloadUrl=function(){return xi(this,10)};var Icd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Icd,W);Icd.prototype.getLabel=function(){return xi(this,2)};Icd.prototype.setLabel=function(a){return Ym(this,2,a)};var Jcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jcd,W);h=Jcd.prototype;h.getStatus=function(){return Ii(this,1)};h.setStatus=function(a){return $m(this,1,a)};h.getItemList=function(a){return Ni(this,TM,2,Oi(a))};h.addItem=function(a,b){return bq(this,2,TM,a,b)};h.setItem=function(a,b){return Yw(this,2,TM,a,b)};h.removeItem=function(a){return bx(this,2,TM,a)};h.getItemCount=function(){return Li(this,TM,2)};
h.getInternalOnlyV1ViewInfo=function(){return X(this,Icd,7)};var WM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WM,W);h=WM.prototype;h.getSourceId=function(){return Ii(this,1)};h.setSourceId=function(a){return $m(this,1,a)};h.getName=function(){return xi(this,8)};h.setName=function(a){return Ym(this,8,a)};h.getInternalOnlyV1ViewInfo=function(){return X(this,Icd,18)};var Kcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kcd,W);h=Kcd.prototype;h.getCommand=function(){return Ii(this,1)};h.setCommand=function(a){return $m(this,1,a)};h.getSource=function(){return X(this,WM,2)};h.setSource=function(a){return Zi(this,WM,2,a)};h.hasSource=function(){return Ji(this,WM,2)};h.getSourceOrUndefined=function(){return dAc(this,WM,2)};h.setVisible=function(a){return op(this,5,a)};h.getItemList=function(a){return Ni(this,TM,7,Oi(a))};
h.addItem=function(a,b){return bq(this,7,TM,a,b)};h.setItem=function(a,b){return Yw(this,7,TM,a,b)};h.removeItem=function(a){return bx(this,7,TM,a)};h.getItemCount=function(){return Li(this,TM,7)};h.getQuery=function(){return xi(this,8)};h.setQuery=function(a){return Ym(this,8,a)};h.clearQuery=function(){Zw(this,8)};h.getAppId=function(){return xi(this,9)};h.setAppId=function(a){Ym(this,9,a)};var Lcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lcd,W);h=Lcd.prototype;h.getCommand=function(){return Ii(this,1)};h.setCommand=function(a){return $m(this,1,a)};h.getItemList=function(a){return Ni(this,TM,4,Oi(a))};h.addItem=function(a,b){return bq(this,4,TM,a,b)};h.setItem=function(a,b){return Yw(this,4,TM,a,b)};h.removeItem=function(a){return bx(this,4,TM,a)};h.getItemCount=function(){return Li(this,TM,4)};var Mcd=yi(Lcd);var Ncd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,nm("action"),nm("frontend_access_mode"),nm("environment_type"))};Ncd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Ncd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Ocd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,nm("action"),nm("frontend_access_mode"),nm("environment_type"))};Ocd.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Ocd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Pcd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,nm("action"),nm("frontend_access_mode"),nm("environment_type"))};Pcd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Pcd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var XM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XM,W);XM.prototype.getResourcePath=function(){return xi(this,2)};XM.prototype.setResourcePath=function(a){return Ym(this,2,a)};var Qcd=function(a){this.servicePromise_=a;a.then(vj(function(){},this),function(){},this)},Rcd=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("Xc`"+b);return e.apply(d,c)})},Ucd=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=Scd(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("Yc`"+b+"`"+a+"`"+f,{cause:f});delete Tcd[b];return RLc(f)});return new Qcd(e)},Tcd={},Scd=function(a,b){var c=
Tcd[b];if(c)return c;c=(c=jv(b))?QLc(c):(new QC(function(d,e){var f=(new IC(document)).createElement("SCRIPT");f.async=!0;ri(f,wh(a instanceof nLc&&a.constructor===nLc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===mLc?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("Zc`"+b+"`"+a,{cause:g}))};(document.head||
document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=jv(b);if(!d)throw Error("$c`"+b+"`"+a);return d});return Tcd[b]=c};var Vcd={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Xcd=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=$Ra(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,Wcd(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);ce(b)})});this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=l(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};Xcd.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Wcd=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:b=l(Object.values(Vcd)),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);Zj(f,3);break;case 5:be(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new Xcd).initialize();var Ycd=function(a){this.loader_=a};Ycd.prototype.startFeedback=function(a){Rcd(this.loader_,"startFeedback",arguments)};Ycd.prototype.requestSurvey=function(a){Rcd(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};Ycd.prototype.presentSurvey=function(a){Rcd(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var Zcd=new nLc(lLc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");Scd(Zcd,"help.service.Lazy.create").thenCatch(function(){});var JYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JYa,W);JYa.prototype.getStartDate=function(){return X(this,om,4)};var Gp=[1,2];var Yo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yo,W);Yo.prototype.getStatus=function(){return Ii(this,1)};Yo.prototype.setStatus=function(a){return $m(this,1,a)};Yo.prototype.getReason=function(){return Ii(this,2)};Yo.prototype.setReason=function(a){return $m(this,2,a)};var Pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pp,W);var Bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bp,W);h=Bp.prototype;h.getStartTime=function(){return X(this,ej,1)};h.setStartTime=function(a){Zi(this,ej,1,a)};h.getEndTime=function(){return X(this,ej,2)};h.setEndTime=function(a){Zi(this,ej,2,a)};h.hasEndTime=function(){return Ji(this,ej,2)};h.getObjective=function(){return X(this,tn,4)};h.setObjective=function(a){return Zi(this,tn,4,a)};h.getBusinessDays=function(){return Um(this,5)};
h.setBusinessDays=function(a){return pn(this,5,a)};h.getDayType=function(){return Ii(this,6)};h.setDayType=function(a){return $m(this,6,a)};var Wq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wq,W);var Xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xq,W);Xq.prototype.getSourceIssueIdsList_asString=function(){return jn(this,1)};Xq.prototype.setSourceIssueIdsList=function(a){return Er(this,1,a)};var pZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pZa,W);var Uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uo,W);Uo.prototype.getAccessLevel=function(){return Ii(this,1)};Uo.prototype.setAccessLevel=function(a){return $m(this,1,a)};var LXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LXa,W);var Vo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vo,W);Vo.prototype.getSeverity=function(){return Ii(this,1)};Vo.prototype.setSeverity=function(a){return $m(this,1,a)};var $p=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($p,W);var Zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zo,W);Zo.prototype.getRetentionPeriod=function(){return X(this,tn,1)};var ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ap,W);h=ap.prototype;h.getAttachmentId_asString=function(){return In(this,1)};h.setAttachmentId=function(a){return Xo(this,1,a)};h.getLength=function(){return En(this,3)};h.getFilename=function(){return xi(this,4)};h.setFilename=function(a){return Ym(this,4,a)};h.getEntityStatus=function(){return X(this,Yo,6)};h.setEntityStatus=function(a){return Zi(this,Yo,6,a)};h.getEtag=function(){return io(this,7)};
h.setEtag=function(a){return dp(this,7,a)};h.getContentVerdict=function(){return X(this,$p,10)};h.setContentVerdict=function(a){Zi(this,$p,10,a)};h.getRestrictedRetentionState=function(){return X(this,Zo,11)};h.setRestrictedRetentionState=function(a){Zi(this,Zo,11,a)};h.getRestrictedRetention=function(){return Ii(this,12)};h.setRestrictedRetention=function(a){return $m(this,12,a)};var kp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kp,W);kp.prototype.getValuesList=function(a){return Ni(this,om,1,Oi(a))};kp.prototype.setValuesList=function(a){return $i(this,1,a)};kp.prototype.setValues=function(a,b){Yw(this,1,om,a,b)};var jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jp,W);jp.prototype.getValuesList=function(a){return rc(this,1,xb,Oi(a))};jp.prototype.setValuesList=function(a){return yc(this,1,a,Hca)};jp.prototype.getValues=function(a){var b=rc(this,1,xb,3,!0);hb(b,a);return b[a]};jp.prototype.setValues=function(a,b){Ac(this,1,Hca,b,a,xb,void 0,1)};var ip=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ip,W);ip.prototype.getValuesList=function(a){return Vm(this,1,Oi(a))};ip.prototype.setValuesList=function(a){return Zm(this,1,a)};ip.prototype.getValues=function(a){return ix(this,1,a)};ip.prototype.setValues=function(a,b){qx(this,1,a,b)};var Xm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xm,W);Xm.prototype.getEmailAddress=function(){return xi(this,1)};var lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lp,W);h=lp.prototype;h.getValueCase=function(){return Mo(this,hp)};h.getCustomFieldId=function(){return En(this,1)};h.getCustomFieldId_asString=function(){return In(this,1)};h.setCustomFieldId=function(a){return Xo(this,1,a)};h.getDateValue=function(){return jm(this,om,3,hp)};h.getDisplayString=function(){return xi(this,10)};var hp=[2,3,4,5,6,7,8,9,12,13,14,15,16,17];var np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(np,W);h=np.prototype;h.getCustomFieldId=function(){return En(this,1)};h.getCustomFieldId_asString=function(){return In(this,1)};h.setCustomFieldId=function(a){return Xo(this,1,a)};h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};h.getType=function(){return Ii(this,3)};h.setType=function(a){return $m(this,3,a)};
h.getName=function(){return xi(this,5)};h.setName=function(a){return Ym(this,5,a)};h.getDescription=function(){return xi(this,6)};h.setDescription=function(a){return Ym(this,6,a)};h.getEnumValues=function(a){return ix(this,8,a)};h.setFieldSignificance=function(a){return $m(this,9,a)};h.getShared=function(){return Ri(this,11)};h.setShared=function(a){op(this,11,a)};var fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fp,W);fp.prototype.getCustomFieldId=function(){return En(this,Ti(this,ep,1))};fp.prototype.getCustomFieldId_asString=function(){return In(this,Ti(this,ep,1))};fp.prototype.setCustomFieldId=function(a){return gp(this,1,ep,Ib(a,0))};fp.prototype.hasCustomFieldId=function(){var a=Ti(this,ep,1);return fAc(this,a)!=null};var ep=[1,2];var Ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ap,W);Ap.prototype.getCount=function(){return En(this,2)};Ap.prototype.setCount=function(a){return Xo(this,2,a)};Ap.prototype.getType=function(){return Ii(this,4)};Ap.prototype.setType=function(a){return $m(this,4,a)};var sp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sp,W);var xp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xp,W);xp.prototype.getContent=function(){return X(this,Ll,1)};xp.prototype.setContent=function(a){return Zi(this,Ll,1,a)};xp.prototype.hasContent=function(){return Ji(this,Ll,1)};var wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wp,W);wp.prototype.getContent=function(){return X(this,Ll,1)};wp.prototype.setContent=function(a){return Zi(this,Ll,1,a)};wp.prototype.hasContent=function(){return Ji(this,Ll,1)};var vp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vp,W);vp.prototype.getContent=function(){return X(this,Ll,2)};vp.prototype.setContent=function(a){return Zi(this,Ll,2,a)};vp.prototype.hasContent=function(){return Ji(this,Ll,2)};var mYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mYa,W);var yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yp,W);yp.prototype.getKindCase=function(){return Mo(this,up)};var up=[1,2,3];var $cd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($cd,W);$cd.prototype.getState=function(){return Ii(this,2)};$cd.prototype.setState=function(a){return $m(this,2,a)};var Zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zp,W);h=Zp.prototype;h.getIssueId=function(){return En(this,6)};h.getIssueId_asString=function(){return In(this,6)};h.setIssueId=function(a){return Xo(this,6,a)};h.getCommentNumber=function(){return Um(this,7)};h.setCommentNumber=function(a){return pn(this,7,a)};h.getComment=function(){return xi(this,1)};h.setComment=function(a){return Ym(this,1,a)};h.getFormattedComment=function(){return X(this,yp,16)};
h.setFormattedComment=function(a){Zi(this,yp,16,a)};h.hasFormattedComment=function(){return Ji(this,yp,16)};h.getMentionsList=function(a){return Ni(this,$cd,14,Oi(a))};h.getFormattingMode=function(){return Ii(this,9)};h.setFormattingMode=function(a){return $m(this,9,a)};h.getAttachmentsList=function(){return Ni(this,ap,2,Oi())};h.setAttachmentsList=function(a){return $i(this,2,a)};h.addAllAttachments=function(a){aq(this,2,ap,a)};h.getModifiedTime=function(){return X(this,ej,4)};
h.setModifiedTime=function(a){return Zi(this,ej,4,a)};h.getEntityStatus=function(){return X(this,Yo,5)};h.setEntityStatus=function(a){return Zi(this,Yo,5,a)};h.getVersion=function(){return Um(this,8)};h.setVersion=function(a){return pn(this,8,a)};h.getContentVerdict=function(){return X(this,$p,10)};h.setContentVerdict=function(a){Zi(this,$p,10,a)};h.getRestrictedRetentionState=function(){return X(this,Zo,11)};h.setRestrictedRetentionState=function(a){Zi(this,Zo,11,a)};
h.getRestrictedRetention=function(){return Ii(this,12)};h.setRestrictedRetention=function(a){return $m(this,12,a)};h.getEtag=function(){return io(this,15)};h.setEtag=function(a){return dp(this,15,a)};var Qp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qp,W);h=Qp.prototype;h.getChangeNumber=function(){return En(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Rp(this,3)};h.setChangeNumber=function(a){return Xo(this,3,a)};h.getState=function(){return Ii(this,4)};h.setState=function(a){return $m(this,4,a)};var To=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(To,W);To.prototype.getAccessLevel=function(){return Ii(this,1)};To.prototype.setAccessLevel=function(a){return $m(this,1,a)};var Hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hp,W);Hp.prototype.getRole=function(){return Ii(this,1)};Hp.prototype.setRole=function(a){return $m(this,1,a)};Hp.prototype.getCount=function(){return rm(this,2)};Hp.prototype.setCount=function(a){return Fp(this,2,a)};var IYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IYa,W);h=IYa.prototype;h.getUser=function(){return X(this,Xm,1)};h.setUser=function(a){return Zi(this,Xm,1,a)};h.hasUser=function(){return Ji(this,Xm,1)};h.getRole=function(){return Ii(this,2)};h.setRole=function(a){return $m(this,2,a)};h.getIsLead=function(){return Ri(this,3)};h.setIsLead=function(a){return op(this,3,a)};var Ep=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ep,W);Ep.prototype.getUser=function(){return jm(this,IYa,1,Ip)};Ep.prototype.setUser=function(a){return mp(this,1,Ip,a)};Ep.prototype.hasUser=function(){return cj(this,IYa,1,Ip)};Ep.prototype.getPlaceholder=function(){return jm(this,Hp,2,Ip)};var Ip=[1,2];var Jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jp,W);var Op=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Op,W);h=Op.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.getStatus=function(){return Ii(this,3)};h.setStatus=function(a){return $m(this,3,a)};h.getPriority=function(){return Ii(this,4)};
h.setPriority=function(a){return $m(this,4,a)};h.getSeverity=function(){return Ii(this,5)};h.setSeverity=function(a){return $m(this,5,a)};h.getTitle=function(){return xi(this,6)};h.setTitle=function(a){return Ym(this,6,a)};h.getReporter=function(){return X(this,Xm,7)};h.setReporter=function(a){Zi(this,Xm,7,a)};h.getAssignee=function(){return X(this,Xm,8)};h.setAssignee=function(a){return Zi(this,Xm,8,a)};h.clearAssignee=function(){return Zw(this,8)};h.getVerifier=function(){return X(this,Xm,9)};
h.setVerifier=function(a){Zi(this,Xm,9,a)};h.clearVerifier=function(){return Zw(this,9)};h.getCcsList=function(){return Ni(this,Xm,10,Oi())};h.setCcsList=function(a){$i(this,10,a)};h.addAllCcs=function(a){aq(this,10,Xm,a)};h.setCcs=function(a,b){return Yw(this,10,Xm,a,b)};h.getCollaboratorsList=function(){return Ni(this,Xm,31,Oi())};h.setCollaboratorsList=function(a){$i(this,31,a)};h.addAllCollaborators=function(a){aq(this,31,Xm,a)};h.setCollaborators=function(a,b){return Yw(this,31,Xm,a,b)};
h.getStaffing=function(){return X(this,Jp,36)};h.setStaffing=function(a){Zi(this,Jp,36,a)};h.getCanonicalIssueId_asString=function(){return In(this,11)};h.setCanonicalIssueId=function(a){Xo(this,11,a)};h.getBlockedByIssueIdsList=function(){return ex(this,12,1)};h.getBlockedByIssueIdsList_asString=function(){return jn(this,12)};h.setBlockedByIssueIdsList=function(a){Er(this,12,a)};h.addAllBlockedByIssueIds=function(a){px(this,12,a)};h.getBlockingIssueIdsList=function(){return ex(this,13,1)};
h.getBlockingIssueIdsList_asString=function(){return jn(this,13)};h.setBlockingIssueIdsList=function(a){Er(this,13,a)};h.addAllBlockingIssueIds=function(a){px(this,13,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return u6a(this,14,Oi(a))};h.getHotlistIdsList_asString=function(){return jn(this,14)};h.setHotlistIdsList=function(a){return Er(this,14,a)};h.addHotlistIds=function(a,b){return ox(this,14,a,b)};h.addAllHotlistIds=function(a){px(this,14,a)};
h.removeHotlistIds=function(a){return lAc(this,14,a)};h.getCustomFieldsList=function(){return Ni(this,lp,15,Oi())};h.setCustomFieldsList=function(a){return $i(this,15,a)};h.addCustomFields=function(a){bq(this,15,lp,a)};h.getCodeChangesList=function(a){return Vm(this,16,Oi(a))};h.setCodeChangesList=function(a){Zm(this,16,a)};h.addAllCodeChanges=function(a){Bc(this,16,Sb,a,Tb)};h.setCodeChanges=function(a,b){return qx(this,16,a,b)};h.getGerritChangesList=function(){return Ni(this,Qp,35,Oi())};
h.setGerritChangesList=function(a){$i(this,35,a)};h.addAllGerritChanges=function(a){aq(this,35,Qp,a)};h.getInProd=function(){return Ri(this,20)};h.setInProd=function(a){op(this,20,a)};h.getIsArchived=function(){return Ri(this,21)};h.setIsArchived=function(a){return op(this,21,a)};h.getDuplicateIssueIdsList_asString=function(){return jn(this,22)};h.setDuplicateIssueIdsList=function(a){Er(this,22,a)};h.getIsDeleted=function(){return Ri(this,23)};h.setIsDeleted=function(a){op(this,23,a)};
h.setDeletionReason=function(a){$m(this,24,a)};h.getEntityStatus=function(){return X(this,Yo,25)};h.setEntityStatus=function(a){return Zi(this,Yo,25,a)};h.getSloSnoozeUntil=function(){return X(this,ej,26)};h.setSloSnoozeUntil=function(a){Zi(this,ej,26,a)};h.getSloEndTime=function(){return X(this,ej,34)};h.setSloEndTime=function(a){Zi(this,ej,34,a)};h.hasSloEndTime=function(){return Ji(this,ej,34)};h.setSloSnoozeType=function(a){$m(this,30,a)};h.getRetention=function(){return Ii(this,28)};
h.setRetention=function(a){return $m(this,28,a)};h.getEffort=function(){return X(this,Pp,29)};h.setEffort=function(a){Zi(this,Pp,29,a)};h.hasEffort=function(){return Ji(this,Pp,29)};h.getAccessLimit=function(){return X(this,To,32)};h.setAccessLimit=function(a){return Zi(this,To,32,a)};var Y1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y1a,W);Y1a.prototype.setNotificationSubscription=function(a){return $m(this,4,a)};var nZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nZa,W);var mZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mZa,W);h=mZa.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Kn(this,1,a)};h.getCommentNumber=function(){return Um(this,2)};h.setCommentNumber=function(a){return Tn(this,2,a)};var qZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qZa,W);var lZa=[1,2];var Lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lp,W);h=Lp.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getFormattingMode=function(){return Ii(this,4)};h.setFormattingMode=function(a){return $m(this,4,a)};h.getAuthor=function(){return X(this,Xm,5)};h.setAuthor=function(a){Zi(this,Xm,5,a)};h.hasAuthor=function(){return Ji(this,Xm,5)};
h.getUpdateTime=function(){return X(this,ej,6)};h.setUpdateTime=function(a){Zi(this,ej,6,a)};h.hasUpdateTime=function(){return Ji(this,ej,6)};h.getVersion=function(){return Um(this,7)};h.setVersion=function(a){return pn(this,7,a)};h.getEntityStatus=function(){return X(this,Yo,8)};h.setEntityStatus=function(a){return Zi(this,Yo,8,a)};var Wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wp,W);h=Wp.prototype;h.getIssueId=function(){return En(this,2)};h.getIssueId_asString=function(){return In(this,2)};h.setIssueId=function(a){return Xo(this,2,a)};h.getIssueState=function(){return X(this,Op,3)};h.setIssueState=function(a){return Zi(this,Op,3,a)};h.getIssueComment=function(){return X(this,Zp,4)};h.setIssueComment=function(a){Zi(this,Zp,4,a)};h.hasIssueComment=function(){return Ji(this,Zp,4)};
h.getAttachmentsList=function(){return Ni(this,ap,18,Oi())};h.setAttachmentsList=function(a){return $i(this,18,a)};h.addAllAttachments=function(a){aq(this,18,ap,a)};h.getDescription=function(){return X(this,Zp,44)};h.setDescription=function(a){return Zi(this,Zp,44,a)};h.hasDescription=function(){return Ji(this,Zp,44)};h.getStatusUpdate=function(){return X(this,Lp,43)};h.setStatusUpdate=function(a){Zi(this,Lp,43,a)};h.hasStatusUpdate=function(){return Ji(this,Lp,43)};
h.getCreatedTime=function(){return X(this,ej,5)};h.setCreatedTime=function(a){return Zi(this,ej,5,a)};h.getModifiedTime=function(){return X(this,ej,6)};h.setModifiedTime=function(a){return Zi(this,ej,6,a)};h.getMajorModifiedTime=function(){return X(this,ej,35)};h.setMajorModifiedTime=function(a){return Zi(this,ej,35,a)};h.getResolvedTime=function(){return X(this,ej,7)};h.setResolvedTime=function(a){return Zi(this,ej,7,a)};h.getVerifiedTime=function(){return X(this,ej,8)};
h.setVerifiedTime=function(a){return Zi(this,ej,8,a)};h.getUserData=function(){return X(this,Y1a,9)};h.getParentIssueIdsList_asString=function(){return jn(this,37)};h.setParentIssueIdsList=function(a){return Er(this,37,a)};h.getAccessLimit=function(){return X(this,Uo,11)};h.setAccessLimit=function(a){return Zi(this,Uo,11,a)};h.getVersion=function(){return Um(this,12)};h.setVersion=function(a){return pn(this,12,a)};h.getEtag=function(){return io(this,13)};h.setEtag=function(a){return dp(this,13,a)};
h.getCustomFieldsList=function(){return Ni(this,np,15,Oi())};h.setCustomFieldsList=function(a){return $i(this,15,a)};h.addCustomFields=function(a){bq(this,15,np,a)};h.getSloStatus=function(){return X(this,Wq,16)};h.setSloStatus=function(a){Zi(this,Wq,16,a)};h.getSloId_asLegacyNumberOrString=function(){return Rp(this,17)};h.getSloId_asString=function(){return In(this,17)};h.setSloId=function(a){return Xo(this,17,a)};h.getTeamId=function(){return En(this,33)};
h.getTeamId_asLegacyNumberOrString=function(){return Rp(this,33)};h.getTeamId_asString=function(){return In(this,33)};h.setTeamId=function(a){return Xo(this,33,a)};h.getEscalationOwner=function(){return X(this,Xm,48)};h.setEscalationOwner=function(a){Zi(this,Xm,48,a)};h.getRetentionState=function(){return X(this,Zo,29)};h.setRetentionState=function(a){Zi(this,Zo,29,a)};h.getAncestorsMap=function(){return xc(this,38,Xq,Ub)};h.getChildIssueCount=function(){return Um(this,39)};
h.setChildIssueCount=function(a){return pn(this,39,a)};h.getDescendantIssueCount=function(){return Um(this,45)};h.setDescendantIssueCount=function(a){return pn(this,45,a)};h.getOpenDescendantIssueCount=function(){return Um(this,46)};h.setOpenDescendantIssueCount=function(a){return pn(this,46,a)};h.getIsArchived=function(){return Ri(this,40)};h.setIsArchived=function(a){return op(this,40,a)};h.getTrackerId=function(){return En(this,42)};h.getTrackerId_asString=function(){return In(this,42)};
h.setTrackerId=function(a){Xo(this,42,a)};var YM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YM,W);YM.prototype.getCode=function(){return Ii(this,1)};YM.prototype.setCode=function(a){return Vn(this,1,a)};YM.prototype.getCodeOrUndefined=function(){return Kp(this,1)};var bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(bw,W);var ZM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZM,W);h=ZM.prototype;h.getLoggingId=function(){return xi(this,1)};h.setLoggingId=function(a){yj(this,1,a)};h.getValue=function(){return rm(this,2)};h.setValue=function(a){return nx(this,2,a)};h.hasValue=function(){return tm(this,2,void 0,void 0,xb)!=null};var Bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bw,W);Bw.prototype.getEncryptionSupport=function(){return Ii(this,1)};Bw.prototype.getCertificateStatus=function(){return Ii(this,2)};Bw.prototype.getCertificateExpirySec=function(){return En(this,3)};var $M=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($M,W);h=$M.prototype;h.getDisplayName=function(){return xi(this,1)};h.setDisplayName=function(a){return yj(this,1,a)};h.getGivenName=function(){return xi(this,2)};h.setGivenName=function(a){return yj(this,2,a)};h.hasGivenName=function(){return wm(this,2)};h.getFamilyName=function(){return xi(this,3)};h.setFamilyName=function(a){return yj(this,3,a)};h.hasFamilyName=function(){return wm(this,3)};
h.getSourceType=function(){return Ii(this,4)};h.setSourceType=function(a){return Vn(this,4,a)};var add=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(add,W);h=add.prototype;h.getUrl=function(){return xi(this,1)};h.setUrl=function(a){return yj(this,1,a)};h.hasUrl=function(){return wm(this,1)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return Vn(this,2,a)};h.hasType=function(){return xm(this,2)};h.getSourceType=function(){return Ii(this,3)};h.setSourceType=function(a){return Vn(this,3,a)};h.getGlyph=function(){return xi(this,4)};
h.setGlyph=function(a){return yj(this,4,a)};var Cw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cw,W);Cw.prototype.getReachabilityStatus=function(){return Ii(this,1)};Cw.prototype.getClientData=function(){return xi(this,2)};Cw.prototype.hasClientData=function(){return wm(this,2)};var aN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aN,W);aN.prototype.getAltText=function(){return xi(this,1)};aN.prototype.setAltText=function(a){return yj(this,1,a)};aN.prototype.getIconUrl=function(){return xi(this,2)};aN.prototype.setIconUrl=function(a){return yj(this,2,a)};var bN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bN,W);h=bN.prototype;h.getTargetType=function(){return Ii(this,1,18)};h.getValue=function(){return xi(this,2)};h.setValue=function(a){return yj(this,2,a)};h.hasValue=function(){return wm(this,2)};h.getName=function(){return X(this,$M,3)};h.setName=function(a){return Zi(this,$M,3,a)};h.hasName=function(){return Ji(this,$M,3)};h.getNameOrUndefined=function(){return dAc(this,$M,3)};
h.getPhoto=function(){return X(this,add,4)};h.setPhoto=function(a){Zi(this,add,4,a)};h.hasPhoto=function(){return Ji(this,add,4)};h.getProfileId=function(){return ix(this,5)};h.setProfileId=function(a){return qx(this,5,a)};h.getContactId=function(){return ix(this,6)};h.setContactId=function(a){return qx(this,6,a)};h.getIsMe=function(){return Ri(this,7)};h.setIsMe=function(a){return aj(this,7,a)};h.getAffinity=function(){return X(this,ZM,8)};h.hasAffinity=function(){return Ji(this,ZM,8)};
h.getEmailSecurityInfo=function(){return X(this,Bw,9)};h.setEmailSecurityInfo=function(a){Zi(this,Bw,9,a)};h.getOrgState=function(){return Ii(this,10)};h.setOrgState=function(a){Vn(this,10,a)};h.getDataSource=function(){return Ii(this,11)};h.setDataSource=function(a){return Vn(this,11,a)};h.hasDataSource=function(){return xm(this,11)};h.getDescription=function(){return xi(this,12)};h.setDescription=function(a){return yj(this,12,a)};h.hasDescription=function(){return wm(this,12)};
h.getTagList=function(){return Ni(this,aN,14,Oi())};h.setTagList=function(a){$i(this,14,a)};h.addTag=function(a){bq(this,14,aN,a)};h.getExtendedData=function(){return X(this,bw,15)};h.setExtendedData=function(a){Zi(this,bw,15,a)};h.hasExtendedData=function(){return Ji(this,bw,15)};h.getCanonicalValue=function(){return xi(this,16)};h.setCanonicalValue=function(a){return yj(this,16,a)};h.hasCanonicalValue=function(){return wm(this,16)};h.getReachabilityInfo=function(){return X(this,Cw,17)};
h.setReachabilityInfo=function(a){Zi(this,Cw,17,a)};var cN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cN,W);h=cN.prototype;h.getResultType=function(){return Ii(this,1,7)};h.setResultType=function(a){return Vn(this,1,a)};h.getTargetList=function(){return Ni(this,bN,2,Oi())};h.setTarget=function(a){Yw(this,2,bN,a)};h.getTargetCount=function(){return Li(this,bN,2)};h.getMemberList=function(){return Ni(this,cN,3,Oi())};h.getTotalMemberCount=function(){return Um(this,4)};h.getIsBoosted=function(){return Ri(this,5)};
h.setIsBoosted=function(a){aj(this,5,a)};h.getAffinity=function(){return X(this,ZM,6)};h.hasAffinity=function(){return Ji(this,ZM,6)};h.getExtendedData=function(){return X(this,bw,7)};h.setExtendedData=function(a){Zi(this,bw,7,a)};h.hasExtendedData=function(){return Ji(this,bw,7)};var bdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bdd,W);var cdd=function(a,b){$i(a,1,b)};h=bdd.prototype;h.setResult=function(a,b){return Yw(this,1,cN,a,b)};h.getMetadata=function(){return X(this,YM,2)};h.getMutableMetadata=function(){return Ui(this,YM,2)};h.setMetadata=function(a){Zi(this,YM,2,a)};h.hasMetadata=function(){return Ji(this,YM,2)};var jSa=Object.prototype.hasOwnProperty;var ESa=new wl("M/d/yyyy");var ddd={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},mXa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},edd={},oXa=(edd.ACCESS_LEVEL_UNSPECIFIED=0,edd.INTERNAL=1,edd.EXTERNAL_PARTNER=2,edd.EXTERNAL_PUBLIC=3,edd),fdd={ACTION_TYPE_UNSPECIFIED:"ACTION_TYPE_UNSPECIFIED",ADD:"ADD",REMOVE:"REMOVE"},gdd={},T1a=(gdd.ACTION_TYPE_UNSPECIFIED=0,gdd.ADD=1,gdd.REMOVE=2,gdd),
x5a={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},TUa={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"},dN={},KUa=(dN.CHANGELIST_SIGNAL_UNSPECIFIED=0,dN.THREAD_MENTIONS_ME=1,dN.IDLE_FOR_HOURS=2,dN.AUTHOR_GOING_OOO=3,dN.NEEDS_ATTENTION=4,dN.NUDGED=5,dN.READY_TO_SUBMIT=6,dN.CHANGELIST_MANUAL_SIGNAL=7,dN.CHANGELIST_SNOOZE_EXPIRED=
8,dN),B5a={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"},eN={},V5a=(eN.CHANGELIST_SIGNAL_UNSPECIFIED=0,eN.THREAD_MENTIONS_ME=1,eN.IDLE_FOR_HOURS=2,eN.AUTHOR_GOING_OOO=3,eN.NEEDS_ATTENTION=4,eN.NUDGED=5,eN.READY_TO_SUBMIT=6,eN.CHANGELIST_MANUAL_SIGNAL=7,eN.CHANGELIST_SNOOZE_EXPIRED=8,eN),yUa={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"},STa={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},hdd={},oUa=(hdd.COMMENT_FORMATTING_MODE_UNSPECIFIED=0,hdd.PLAIN_FORMATTING_MODE=1,hdd.MARKDOWN_FORMATTING_MODE=2,hdd.LITERAL_FORMATTING_MODE=3,hdd),BZa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},
fN={},DZa=(fN.CONFIDENCE_LEVEL_UNSPECIFIED=0,fN.VERY_HIGH=1,fN.HIGH=2,fN.MEDIUM=3,fN.LOW=4,fN),idd={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},uYa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},jdd={},wYa=(jdd.DAY_TYPE_UNSPECIFIED=0,jdd.CALENDAR=1,jdd.BUSINESS=2,jdd),WYa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},gN={},cZa=(gN.DELETION_REASON_UNSPECIFIED=0,gN.USER_REQUEST=1,gN.ABUSE=
2,gN.RESTRICTED=3,gN.RETENTION=4,gN.ACCOUNT_CAPABILITIES=5,gN),kdd={COMFORTABLE:"COMFORTABLE",COZY:"COZY",COMPACT:"COMPACT"},yTa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},ldd={},lUa=(ldd.COMFORTABLE=1,ldd.COZY=2,ldd.COMPACT=3,ldd),i6a={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},u5a={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},RUa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",
4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},hN={},GUa=(hN.DRIVE_SIGNAL_UNSPECIFIED=0,hN.TAGGED_IN_COMMENT=1,hN.REQUIRES_APPROVAL=2,hN.COMMENTS_REQUIRE_ATTENTION=3,hN.DRIVE_MANUAL_SIGNAL=4,hN.DRIVE_SNOOZE_EXPIRED=5,hN),z5a={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},iN={},T5a=(iN.DRIVE_SIGNAL_UNSPECIFIED=0,iN.TAGGED_IN_COMMENT=1,iN.REQUIRES_APPROVAL=2,iN.COMMENTS_REQUIRE_ATTENTION=3,
iN.DRIVE_MANUAL_SIGNAL=4,iN.DRIVE_SNOOZE_EXPIRED=5,iN),XXa={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},jN={},aYa=(jN.EDIT_SIGNIFICANCE_UNSPECIFIED=0,jN.SILENT=1,jN.MINOR=2,jN.MAJOR=3,jN.BULK=4,jN.CLOSING=5,jN),Esb={0:"ELIGIBILITY_STATE_UNSPECIFIED",1:"INELIGIBLE",2:"ELIGIBLE_NOT_STARTED",3:"EXISTING",4:"INELIGIBLE_EXISTING"},QTa={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},kN={},Wn=(kN.UNKNOWN_PRIORITY=0,kN.CLOSURE_ONLY=4,kN.MINIMAL=
1,kN.IMPORTANT=2,kN.ALL=3,kN),lN={},n_a=(lN.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,lN.THUMBS_UP=1,lN.THUMBS_DOWN=2,lN.OPEN=3,lN.CLOSE=4,lN.COPY=5,lN.CLOSE_AS_DUPLICATE=6,lN.ISSUE_HOVERCARD=7,lN.GO_TO_ISSUE=8,lN.DELETE=9,lN.VIEW=10,lN.IMPRESSION=11,lN.COPY_DEEP_LINK=12,lN),xTa={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},mdd={},kUa=(mdd.DEFAULT=0,mdd.ASSIGNMENT=1,mdd.RESPONSE=2,mdd.CLOSURE=3,mdd),ndd={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"},mN={},odd=(mN.EVENT_TYPE_UNSPECIFIED=0,mN.EVENT_TYPE_IMPRESSION=5,mN.EVENT_TYPE_VIEW=1,mN.EVENT_TYPE_ACCEPT=2,mN.EVENT_TYPE_PARTIALLY_ACCEPT=6,mN.EVENT_TYPE_REJECT=3,mN.EVENT_TYPE_OPEN=7,mN.EVENT_TYPE_CLOSE=8,mN.EVENT_TYPE_THUMBS_UP=9,mN.EVENT_TYPE_THUMBS_DOWN=10,mN.EVENT_TYPE_COPY=
11,mN.EVENT_TYPE_FEEDBACK=12,mN.EVENT_TYPE_DELETE=13,mN.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION=4,mN.EVENT_TYPE_CLOSE_AS_DUPLICATE=14,mN.EVENT_TYPE_ISSUE_HOVERCARD=15,mN.EVENT_TYPE_GO_TO_ISSUE=16,mN.EVENT_TYPE_COPY_DEEP_LINK=17,mN),pdd={},p2a=(pdd.QUERY_UNSPECIFIED=0,pdd.QUERY_TRIAGE_PHASE=1,pdd.QUERY_CLUSTER=2,pdd),qdd={},s2a=(qdd.SORT_UNSPECIFIED=0,qdd.SORT_TRIAGE_PHASE=1,qdd),nN={},rdd=(nN.FEATURE_UNSPECIFIED=0,nN.FEATURE_ISSUE_DEDUPLICATION=1,nN.FEATURE_HOTLIST=2,nN.FEATURE_ISSUE_DEDUPLICATION_BATCH=
3,nN.FEATURE_NEEDS_INFO=4,nN.FEATURE_COMPONENT_ROUTING=5,nN.FEATURE_ANY_ISSUE_EDIT=11,nN.FEATURE_INSIGHT=6,nN.FEATURE_ATTACHMENT_ANALYSIS=7,nN.FEATURE_SIMILAR_ISSUES=8,nN.FEATURE_SUMMARY=10,nN.FEATURE_HELP_ME_FIX=9,nN),M0b={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"},i0a={0:"FIELD_ORDERING_UNSPECIFIED",
1:"INHERITED",2:"CUSTOMIZED"},sdd={},tdd=(sdd.FIELD_ORDERING_UNSPECIFIED=0,sdd.INHERITED=1,sdd.CUSTOMIZED=2,sdd),L_a={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},udd={},vdd=(udd.UNSPECIFIED_FORMATTING_AUDIENCE=0,udd.INTERNAL=1,udd.EXTERNAL=2,udd),bo={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},q0a={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},SUa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",
2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},oN={},IUa=(oN.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,oN.GERRIT_CHANGE_NEEDS_ATTENTION=1,oN.GERRIT_CHANGE_READY_TO_SUBMIT=2,oN.GERRIT_MANUAL_SIGNAL=3,oN.GERRIT_SNOOZE_EXPIRED=4,oN),L5a={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},pN={},X5a=(pN.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,pN.GERRIT_CHANGE_NEEDS_ATTENTION=
1,pN.GERRIT_CHANGE_READY_TO_SUBMIT=2,pN.GERRIT_MANUAL_SIGNAL=3,pN.GERRIT_SNOOZE_EXPIRED=4,pN),UUa={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",3:"GOOGLE_TASKS_MANUAL_SIGNAL",4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},qN={},MUa=(qN.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,qN.DUE_SOON=1,qN.DUE_DATE_EXPIRED=2,qN.GOOGLE_TASKS_MANUAL_SIGNAL=3,qN.GOOGLE_TASKS_SNOOZE_EXPIRED=4,qN),wdd={INVOLVEMENT_UNSPECIFIED:"INVOLVEMENT_UNSPECIFIED",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",ZERO:"ZERO"},VUa={0:"IRM_SIGNAL_UNSPECIFIED",
1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},rN={},OUa=(rN.IRM_SIGNAL_UNSPECIFIED=0,rN.IRM_MANUAL_SIGNAL=1,rN.IRM_SNOOZE_EXPIRED=2,rN.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,rN.IRM_REVIEW_POSTMORTEM=4,rN),VHb={0:"ISSUE_CATEGORY_UNSPECIFIED",1:"ISSUE_CATEGORY_UNSUPPORTED",2:"ISSUE_CATEGORY_STACK_TRACES",3:"ISSUE_CATEGORY_ADS",4:"ISSUE_CATEGORY_GAR",5:"ISSUE_CATEGORY_PIXEL",6:"ISSUE_CATEGORY_BORG_SRE",7:"ISSUE_CATEGORY_CLOUD_SRE",8:"ISSUE_CATEGORY_GCP",
9:"ISSUE_CATEGORY_DIALER",10:"ISSUE_CATEGORY_EDSENSE",11:"ISSUE_CATEGORY_VERTEX_AI_SUPPORT",12:"ISSUE_CATEGORY_CLOUD_AI_RETAIL_SUPPORT",13:"ISSUE_CATEGORY_ANDROID_BLUE_SIGHT",14:"ISSUE_CATEGORY_ANDROID_COASTGUARD",15:"ISSUE_CATEGORY_CORE_PROCUREMENT_WORKS",16:"ISSUE_CATEGORY_NEXUS_ERROR_HELPER",17:"ISSUE_CATEGORY_CORE_BOQ_WEB",18:"ISSUE_CATEGORY_CORE_WIPEOUT_COMPLIANCE",19:"ISSUE_CATEGORY_ANDROID_SILICON_ENGPROD",20:"ISSUE_CATEGORY_CORE_LOGS_SRE",21:"ISSUE_CATEGORY_GEO_DATA_ACCESS_API_ONBOARDING",
22:"ISSUE_CATEGORY_CLOUD_NETWORKING_STAGING",23:"ISSUE_CATEGORY_FIREBASE_MESSAGING",24:"ISSUE_CATEGORY_GAR_MOBILE_PLATFORM",25:"ISSUE_CATEGORY_CLOUD_VERTEX_VECTOR_SEARCH",26:"ISSUE_CATEGORY_GCS_METERING_SUPPORT",27:"ISSUE_CATEGORY_WCAG_WEB_PLATFORM",28:"ISSUE_CATEGORY_DEFAULT_DEBUG_DEITY",29:"ISSUE_CATEGORY_THREAD_NETWORK",30:"ISSUE_CATEGORY_EDACLOUD_OPS",31:"ISSUE_CATEGORY_MESSAGES_ENGOPS_TRIAGE",32:"ISSUE_CATEGORY_BAP_SRE",33:"ISSUE_CATEGORY_GCP_RIDGELINE_ENGINEERING",34:"ISSUE_CATEGORY_GCBP_WEB",
35:"ISSUE_CATEGORY_YOUTUBE_ORCA",36:"ISSUE_CATEGORY_CLOUD_PLATFORM_APIGEE",37:"ISSUE_CATEGORY_FITBIT_LABS",38:"ISSUE_CATEGORY_RVOS_WOOF_OOBE",39:"ISSUE_CATEGORY_ASTRO_MIDDLEWARE",40:"ISSUE_CATEGORY_CORE_SRE_STANDARDIZED_ENGAGEMENTS",41:"ISSUE_CATEGORY_YOUTUBE_CREATOR_RECOMMENDATION_PLATFORM",42:"ISSUE_CATEGORY_CORE_CHASERA_RISKS",43:"ISSUE_CATEGORY_MULTICAST_ONCALL_FRIEND",44:"ISSUE_CATEGORY_GCS_ROUTING"},xdd={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"},
PTa={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"},
sN={},xUa=(sN.ISSUE_ID=1,sN.COMPONENT_PATH=2,sN.TYPE=3,sN.STATUS=4,sN.PRIORITY=5,sN.SEVERITY=6,sN.REPORTER=7,sN.ASSIGNEE=8,sN.VERIFIER=9,sN.CC=10,sN.COLLABORATOR=43,sN.CHANGELIST=11,sN.INCIDENT=58,sN.POSTMORTEM=32,sN.BLOCKING_ISSUE_ID=12,sN.BLOCKED_BY_ISSUE_ID=13,sN.CREATED_TIME=14,sN.MODIFIED_TIME=15,sN.RESOLVED_TIME=16,sN.VERIFIED_TIME=17,sN.DELETION_TIME=38,sN.TITLE=18,sN.FOUND_IN_VERSION=19,sN.TARGETED_TO_VERSION=20,sN.VERIFIED_IN_VERSION=21,sN.IN_PROD=22,sN.CANONICAL_ISSUE_ID=23,sN.ESCALATION_OWNER=
51,sN.CUSTOM_FIELD=24,sN.POSITION=25,sN.VOTE_COUNT=26,sN.DUPLICATE_COUNT=27,sN.CC_COUNT=28,sN.COLLABORATOR_COUNT=44,sN.MODIFIED_BY=29,sN.LAST_MODIFIER=30,sN.ARCHIVED=31,sN.MIN_SLO=33,sN.ASSIGNMENT_SLO=35,sN.RESPONSE_SLO=36,sN.CLOSURE_SLO=37,sN.TEAM=39,sN.ESTIMATE=40,sN.ESTIMATE_TOTAL_OPEN=41,sN.ESTIMATE_TOTAL_COMPLETE=42,sN.ACCESS_LEVEL=45,sN.DESCENDANT_COUNT=46,sN.OPEN_DESCENDANT_COUNT=47,sN.ONE_DAY_VIEW_COUNT=48,sN.SEVEN_DAY_VIEW_COUNT=49,sN.THIRTY_DAY_VIEW_COUNT=50,sN.RELATIVE_MODIFIED_TIME=52,
sN.ALERTS=53,sN.TIMEFRAME=54,sN.PROGRESS=55,sN.TRIAGER=56,sN.ENRICHMENT_CATEGORIES=57,sN),ydd={},tN=(ydd.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=0,ydd.CHILD=1,ydd.DEPENDENCY=2,ydd.LINKED=3,ydd),QUa={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"},uN={},EUa=(uN.ISSUE_SIGNAL_UNSPECIFIED=
0,uN.NEAR_SLO=1,uN.COMMENT_MENTIONS_ME=2,uN.MENTIONED_NEEDS_RESPONSE=8,uN.BLOCKERS_CLOSED=3,uN.NEWLY_BLOCKING=4,uN.NEEDS_REPORTER_INPUT=5,uN.REPLIED_TO_MENTION=6,uN.NEWLY_ASSIGNED_TO_ME=7,uN.ISSUE_MANUALLY_SIGNALED=9,uN.ISSUE_SNOOZE_EXPIRED=10,uN.CONFIGURABLE_ALERT=11,uN),H5a={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"},vN={},R5a=(vN.ISSUE_SIGNAL_UNSPECIFIED=0,vN.NEAR_SLO=1,vN.COMMENT_MENTIONS_ME=2,vN.MENTIONED_NEEDS_RESPONSE=8,vN.BLOCKERS_CLOSED=3,vN.NEWLY_BLOCKING=4,vN.NEEDS_REPORTER_INPUT=5,vN.REPLIED_TO_MENTION=6,vN.NEWLY_ASSIGNED_TO_ME=7,vN.ISSUE_MANUALLY_SIGNALED=9,vN.ISSUE_SNOOZE_EXPIRED=10,vN.CONFIGURABLE_ALERT=11,vN),P2a={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},zdd={},Add=(zdd.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,zdd.COMMENTS_SHORT=
1,zdd.COMMENTS_LONG=2,zdd),L0b={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},Bdd={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},iZa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},wN={},Z1a=(wN.UNKNOWN_SUBSCRIPTION=0,wN.UNSUBSCRIBED=
1,wN.SUBSCRIBED_CLOSURE_ONLY=2,wN.SUBSCRIBED_MAJOR_UPDATES=3,wN.SUBSCRIBED_ALL_UPDATES=4,wN),z1a={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},Cdd={},u1a=(Cdd.UNSPECIFIED=0,Cdd.ADD=1,Cdd.REMOVE=2,Cdd),N0b={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},ggc={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},h6a={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},Ddd={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},Np={0:"PRIORITY_UNSPECIFIED",
1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},xN={},$Ya=(xN.PRIORITY_UNSPECIFIED=0,xN.P0=1,xN.P1=2,xN.P2=3,xN.P3=4,xN.P4=5,xN),Edd={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},Fdd={},Gdd=(Fdd.REACTION_TYPE_UNSPECIFIED=0,Fdd.UPVOTE=1,Fdd),yN={},Hdd=(yN.UNSPECIFIED=0,yN.USER_REQUEST=1,yN.ABUSE=2,yN.RESTRICTED=3,yN.RETENTION=4,yN.ACCOUNT_CAPABILITIES=5,yN),zN={},LZa=(zN.REJECTION_REASON_UNSPECIFIED=0,zN.REVERSED=1,zN.SIMILAR=2,zN.NOT_SIMILAR=3,zN.OTHER=4,zN),Idd={},x2a=(Idd.UNSPECIFIED_RELATION=
0,Idd.AND=1,Idd.OR=2,Idd),Jdd={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},Kdd={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},XYa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Ldd={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},
DXa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},Mdd={},FXa=(Mdd.UNSPECIFIED_RETENTION=0,Mdd.BUGANIZER_DEFAULT=1,Mdd.CUSTOM_PERIOD=2,Mdd.INDEFINITE_RETENTION=3,Mdd),Osb={0:"RUN_STATUS_UNSPECIFIED",1:"RUN_STATUS_IN_PROGRESS",2:"RUN_STATUS_SUCCESS",3:"RUN_STATUS_FAILURE"},NTa={0:"UNSPECIFIED",1:"COMPONENT",2:"TEAM"},Ndd={},uUa=(Ndd.UNSPECIFIED=0,Ndd.COMPONENT=1,Ndd.TEAM=2,Ndd),Odd={},Pdd=(Odd.SENTIMENT_UNSPECIFIED=0,Odd.SENTIMENT_POSITIVE=1,Odd.SENTIMENT_NEGATIVE=
2,Odd),Qdd={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},UYa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},AN={},aZa=(AN.SEVERITY_UNSPECIFIED=0,AN.S0=1,AN.S1=2,AN.S2=3,AN.S3=4,AN.S4=5,AN),G0b={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"},fgc={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},
TYa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},BN={},dZa=(BN.SLO_SNOOZE_TYPE_UNSPECIFIED=0,BN.STARTS_ON=1,BN.ASSIGNMENT_ETA=2,BN.RESPONSE_ETA=3,BN.CLOSURE_ETA=4,BN),h0a={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Rdd={},yYa=(Rdd.SLO_SOURCE_UNSPECIFIED=0,Rdd.USER=1,Rdd.BUGSCOPE=2,Rdd),PXa={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"},CN={},RXa=(CN.STANDARD_FIELD_UNSPECIFIED=0,CN.REPORTER=1,CN.ASSIGNEE=2,CN.VERIFIER=3,CN.CC=4,CN.TYPE=5,CN.STATUS=6,CN.PRIORITY=7,CN.SEVERITY=8,CN.CHANGELISTS=9,CN.PENDING_CHANGELISTS=10,CN.POSTMORTEMS=11,CN.FOUND_IN=12,CN.TARGETED_TO=13,CN.VERIFIED_IN=14,CN.IN_PRODUCTION=15,CN.SLO_STATUS=16,CN.TEAM=17,CN.COLLABORATORS=18,CN.INCIDENTS=19,CN),f3a={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",
PENDING:"PENDING",MERGED:"MERGED"},fZa={0:"STATE_UNSPECIFIED",1:"PENDING",2:"MERGED"},Sdd={},gZa=(Sdd.STATE_UNSPECIFIED=0,Sdd.PENDING=1,Sdd.MERGED=2,Sdd),Tdd={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"},Mp={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"},DN={},ZYa=(DN.STATUS_UNSPECIFIED=0,DN.NEW=1,DN.ASSIGNED=2,DN.ACCEPTED=3,DN.FIXED=4,DN.VERIFIED=5,DN.NOT_REPRODUCIBLE=6,DN.INTENDED_BEHAVIOR=7,DN.OBSOLETE=8,DN.INFEASIBLE=9,DN.DUPLICATE=10,DN.INACTIVE=11,DN),Udd={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",
IRM:"IRM"},XTa={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",8:"GOOGLE_TASKS",9:"IRM"},EN={},PUa=(EN.UNKNOWN_SOURCE=0,EN.WTDM=1,EN.NON_WTDM=2,EN.CRITIQUE=3,EN.DRIVE=4,EN.BUGANIZER=5,EN.ARIANE=6,EN.GERRIT=7,EN.GOOGLE_TASKS=8,EN.IRM=9,EN),dTa={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Vdd={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},e1a={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",
3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},FN={},h1a=(FN.UNSPECIFIED=0,FN.NEW=1,FN.CONFIRMED=2,FN.IN_PROGRESS=3,FN.FIXED=4,FN.WONT_FIX=5,FN),Wdd={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"},f1a={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",
4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",8:"REOPENED"},GN={},i1a=(GN.TRIAGE_SUBPHASE_UNSPECIFIED=0,GN.NEEDS_INFO=1,GN.PENDING_TRIAGE=2,GN.REPORTER_RESPONDED=3,GN.PENDING_OWNER=4,GN.EXPECTED=5,GN.PLANNED=6,GN.COMMITTED=7,GN.REOPENED=8,GN),R0b={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},WXa={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"},HN={},$Xa=(HN.TYPE_UNSPECIFIED=0,HN.TEXT=1,HN.DATE=2,HN.ENUM=3,HN.NUMERIC=4,HN.TEAM=9,HN.PRODUCT=10,HN.USER=11,HN.REPEATED_TEXT=5,HN.REPEATED_DATE=6,HN.REPEATED_ENUM=7,HN.REPEATED_NUMERIC=8,HN.REPEATED_TEAM=12,HN.REPEATED_PRODUCT=13,HN.REPEATED_USER=14,HN),Xdd={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"},IN={},E1a=(IN.TYPE_UNSPECIFIED=0,IN.BUG=1,IN.FEATURE_REQUEST=2,IN.CUSTOMER_ISSUE=3,IN.INTERNAL_CLEANUP=4,IN.PROCESS=5,IN.VULNERABILITY=6,IN.PRIVACY_ISSUE=7,IN.PORTFOLIO=8,IN.PROGRAM=9,IN.PROJECT=10,IN.FEATURE=11,IN.MILESTONE=12,IN.EPIC=13,IN.STORY=14,IN.TASK=15,IN),Ydd={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"},AZa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST",3:"ISSUE_DEDUPLICATION_BATCH",4:"NEEDS_INFO",5:"COMPONENT_ROUTING",6:"ANY_ISSUE_EDIT"},JN={},wZa=(JN.TYPE_UNSPECIFIED=0,JN.ISSUE_DEDUPLICATION=1,JN.HOTLIST=2,JN.ISSUE_DEDUPLICATION_BATCH=3,JN.NEEDS_INFO=4,JN.COMPONENT_ROUTING=5,JN.ANY_ISSUE_EDIT=6,JN),KN={},KZa=(KN.TYPE_UNSPECIFIED=0,KN.VIEWED=
1,KN.PARTIALLY_ACCEPTED=4,KN.ACCEPTED=2,KN.REJECTED=3,KN),Zdd={},$dd=(Zdd.USER_ACTIVITY_TYPE_UNDEFINED=0,Zdd.VIEW=1,Zdd.RELOAD=2,Zdd.EDIT=3,Zdd.MARK_AS_READ_OR_UNREAD=4,Zdd),I0b={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},aed={},bed=(aed.VIEW_UNSPECIFIED=0,aed.BASIC=1,aed.FULL=2,aed);var ced={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},mgc=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),ded={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"},eed={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},fed={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 D3a=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"]]),kr=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,""]]),LN=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,""]]),ged=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),MN=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,"--"]]),NN=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 hed=new Map([["STATUS_UNSPECIFIED",LN.get(0)],["NEW",LN.get(1)],["ASSIGNED",LN.get(2)],["ACCEPTED",LN.get(3)],["FIXED",LN.get(4)],["VERIFIED",LN.get(5)],["DUPLICATE",LN.get(10)],["INFEASIBLE",LN.get(9)],["INACTIVE",LN.get(11)],["NOT_REPRODUCIBLE",LN.get(6)],["OBSOLETE",LN.get(8)],["INTENDED_BEHAVIOR",LN.get(7)]]),ied={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},OVa=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]]),ON={},jed=(ON.ASSIGNED=!0,ON.ACCEPTED=!0,ON.FIXED=!0,ON.VERIFIED=!0,ON.DUPLICATE=!0,ON.INFEASIBLE=!0,ON.INACTIVE=!0,ON.NOT_REPRODUCIBLE=!0,ON.OBSOLETE=!0,ON.INTENDED_BEHAVIOR=!0,ON),Sm=new Map([["STATUS_UNSPECIFIED",kr.get(0)],["NEW",kr.get(1)],["ASSIGNED",kr.get(2)],["ACCEPTED",kr.get(3)],["FIXED",kr.get(4)],["VERIFIED",kr.get(5)],["DUPLICATE",kr.get(10)],["INFEASIBLE",kr.get(9)],["INACTIVE",
kr.get(11)],["NOT_REPRODUCIBLE",kr.get(6)],["OBSOLETE",kr.get(8)],["INTENDED_BEHAVIOR",kr.get(7)]]),PN={},ked=(PN.P0="P0",PN.P1="P1",PN.P2="P2",PN.P3="P3",PN.P4="P4",PN.PRIORITY_UNSPECIFIED="--",PN),QN={},ZVa=(QN.P0=0,QN.P1=10,QN.P2=20,QN.P3=30,QN.P4=40,QN.PRIORITY_UNSPECIFIED=99,QN),RN={},led=(RN.S0="S0",RN.S1="S1",RN.S2="S2",RN.S3="S3",RN.S4="S4",RN.SEVERITY_UNSPECIFIED="--",RN),med=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"]]),ned={},Fo=(ned.INVOLVEMENT_UNSPECIFIED=ged.get(0),ned.HIGH=ged.get(1),ned.MEDIUM=ged.get(2),ned.LOW=ged.get(3),ned.ZERO=ged.get(4),ned),SN={},ir=(SN.JOB_ROLE_UNSPECIFIED=
MN.get(0),SN.SWE=MN.get(1),SN.SRE=MN.get(2),SN.PM=MN.get(3),SN.TPGM=MN.get(4),SN.UX=MN.get(5),SN.UXD=MN.get(6),SN.UXR=MN.get(7),SN.DATASCI=MN.get(8),SN.LD=MN.get(9),SN.DEVREL=MN.get(10),SN.TW=MN.get(11),SN.GTM=MN.get(12),SN.CE=MN.get(13),SN.OTHER=MN.get(14),SN),TN={},UN=(TN.JOB_ROLE_UNSPECIFIED=NN.get(0),TN.SWE=NN.get(1),TN.SRE=NN.get(2),TN.PM=NN.get(3),TN.TPGM=NN.get(4),TN.UX=NN.get(5),TN.UXD=NN.get(6),TN.UXR=NN.get(7),TN.DATASCI=NN.get(8),TN.LD=NN.get(9),TN.DEVREL=NN.get(10),TN.TW=NN.get(11),TN.GTM=
NN.get(12),TN.CE=NN.get(13),TN.OTHER=NN.get(14),TN);var OSa=Tm("NEW",!0,"FORBIDDEN",10),PSa=Tm("ASSIGNED",!0,"REQUIRED",20),QSa=Tm("ACCEPTED",!0,"REQUIRED",30),RSa=Tm("FIXED",!1,"REQUIRED",40),SSa=Tm("VERIFIED",!1,"REQUIRED",50),TSa=Tm("DUPLICATE",!1,"ALLOWED",60),USa=Tm("INFEASIBLE",!1,"ALLOWED",70),YSa=Tm("INACTIVE",!1,"ALLOWED",75),VSa=Tm("NOT_REPRODUCIBLE",!1,"ALLOWED",80),WSa=Tm("OBSOLETE",!1,"ALLOWED",90),XSa=Tm("INTENDED_BEHAVIOR",!1,"ALLOWED",100),xo=new Map(ZSa().map(function(a){return[a.status,a]})),oed=ZSa().map(function(a){return{value:a.status,
displayText:a.displayValue}}),ped=new Set(ZSa().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var cTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cTa,W);cTa.prototype.getLogoUrl=function(){return xi(this,1)};cTa.prototype.getTheme=function(){return Ii(this,2)};cTa.prototype.setTheme=function(a){$m(this,2,a)};var qed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qed,W);h=qed.prototype;h.getTrackerId=function(){return En(this,1)};h.getTrackerId_asString=function(){return In(this,1)};h.setTrackerId=function(a){Xo(this,1,a)};h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};h.getName=function(){return xi(this,3)};h.setName=function(a){return Ym(this,3,a)};
h.getInternalBaseUrl=function(){return xi(this,8)};h.getExternalBaseUrl=function(){return xi(this,9)};h.getEtag=function(){return io(this,7)};h.setEtag=function(a){return dp(this,7,a)};var lo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lo.messageId)};Y(lo,W);lo.prototype.getIt=function(){return X(this,qed,9,jb)};lo.prototype.setIt=function(a){return Zi(this,qed,9,a,jb)};lo.messageId="b.Tracker";var VN={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 et=function(a,b){this.low_=a|0;this.high_=b|0},red=function(a){return a.high_*4294967296+(a.low_>>>0)};h=et.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("bd`"+a);if(this.isSafeInteger()){var b=red(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=WN(c,c/4294967296);c=this.div(d);d=Math.abs(red(XN(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=red(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 YN=function(a){var b=~a.low_+1|0;return WN(b,~a.high_+!b|0)};et.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 WN((g&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var XN=function(a,b){return a.add(YN(b))};
h=et.prototype;h.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,g=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var m=e*a;var r=(m>>>16)+d*a;var w=r>>>16;r=(r&65535)+e*k;w+=r>>>16;w+=c*a;var x=w>>>16;w=(w&65535)+d*k;x+=w>>>16;w=(w&65535)+e*g;x=x+(w>>>16)+(b*a+c*k+d*g+e*f)&65535;return WN((r&65535)<<16|m&65535,x<<16|w&65535)};
h.div=function(a){if(a.isZero())throw Error("cd");if(this.high_<0){if(this.equals(sed)){if(a.equals(ted)||a.equals(ued))return sed;if(a.equals(sed))return ted;var b=this.high_;b=WN(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(ved))return a.high_<0?ted:ued;var c=XN(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?YN(this).div(YN(a)):YN(YN(this).div(a))}if(this.isZero())return ved;if(a.high_<0)return a.equals(sed)?ved:YN(this.div(YN(a)));b=ved;for(c=this;c.compare(a)>=0;){var d=
Math.max(1,Math.floor(red(c)/red(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=ZN(d),g=f.multiply(a);g.high_<0||g.compare(c)>0;)d-=e,f=ZN(d),g=f.multiply(a);f.isZero()&&(f=ted);b=b.add(f);c=XN(c,g)}return b};h.and=function(a){return WN(this.low_&a.low_,this.high_&a.high_)};h.or=function(a){return WN(this.low_|a.low_,this.high_|a.high_)};h.xor=function(a){return WN(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?WN(b<<a,this.high_<<a|b>>>32-a):WN(0,b<<a-32)};
var ZN=function(a){return a>0?a>=0x7fffffffffffffff?wed:new et(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?sed:YN(new et(-a,-a/4294967296)):ved},WN=function(a,b){return new et(a,b)},gt=function(a,b){if(a.charAt(0)=="-")return YN(gt(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new et(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("dd");if(a.indexOf("-")>=0)throw Error("ed`"+a);b=b||10;if(b<2||36<b)throw Error("bd`"+b);c=ZN(Math.pow(b,8));for(var d=ved,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=ZN(Math.pow(b,f)),d=d.multiply(f).add(ZN(g))):(d=d.multiply(c),d=d.add(ZN(g)))}return d},ved=WN(0,0),ted=WN(1,0),ued=WN(-1,-1),wed=WN(4294967295,2147483647),sed=WN(0,2147483648);var Hn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hn,W);Hn.prototype.getOpen=function(){return Ri(this,1,!0)};Hn.prototype.setOpen=function(a){return aj(this,1,a)};var DTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DTa,W);var ITa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ITa,W);var BTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BTa,W);var $n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($n,W);h=$n.prototype;h.getType=function(){return Ii(this,1,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getCustomFieldId=function(){return En(this,2)};h.getCustomFieldId_asString=function(){return In(this,2)};h.setCustomFieldId=function(a){return Kn(this,2,a)};h.hasCustomFieldId=function(){return Dn(this,2)};var Xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xn,W);Xn.prototype.getTimeZone=function(){return xi(this,5)};Xn.prototype.setTimeZone=function(a){return yj(this,5,a)};Xn.prototype.hasTimeZone=function(){return wm(this,5)};var Zn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zn,W);Zn.prototype.getColumnList=function(){return Ni(this,$n,1,Oi())};Zn.prototype.setColumnList=function(a){return $i(this,1,a)};Zn.prototype.setColumn=function(a){return Yw(this,1,$n,a)};var jUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jUa,W);var wTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wTa,W);var ao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ao,W);ao.prototype.getColumn=function(){return X(this,$n,1)};ao.prototype.setColumn=function(a){return Zi(this,$n,1,a)};var Un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Un,W);Un.prototype.getColumnList=function(){return Ni(this,ao,1,Oi())};Un.prototype.setColumnList=function(a){return $i(this,1,a)};Un.prototype.setColumn=function(a){return Yw(this,1,ao,a)};var Bn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bn,W);Bn.prototype.getDensity=function(){return Ii(this,1,1)};Bn.prototype.setDensity=function(a){return Vn(this,1,a)};var ETa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ETa,W);var mUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mUa,W);mUa.prototype.setResourceId=function(a){Yn(this,2,a)};var ATa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ATa,W);var Pn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pn,W);Pn.prototype.getSignal=function(){return Ii(this,1)};Pn.prototype.setSignal=function(a){return Vn(this,1,a)};Pn.prototype.getChecked=function(){return Ri(this,2)};Pn.prototype.setChecked=function(a){return aj(this,2,a)};var Nn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nn,W);Nn.prototype.getSignal=function(){return Ii(this,1)};Nn.prototype.setSignal=function(a){return Vn(this,1,a)};Nn.prototype.getChecked=function(){return Ri(this,2)};Nn.prototype.setChecked=function(a){return aj(this,2,a)};var On=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(On,W);On.prototype.getSignal=function(){return Ii(this,1)};On.prototype.setSignal=function(a){return Vn(this,1,a)};On.prototype.getChecked=function(){return Ri(this,2)};On.prototype.setChecked=function(a){return aj(this,2,a)};var Qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qn,W);Qn.prototype.getSignal=function(){return Ii(this,1)};Qn.prototype.setSignal=function(a){return Vn(this,1,a)};Qn.prototype.getChecked=function(){return Ri(this,2)};Qn.prototype.setChecked=function(a){return aj(this,2,a)};var Rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rn,W);Rn.prototype.getSignal=function(){return Ii(this,1)};Rn.prototype.setSignal=function(a){return Vn(this,1,a)};Rn.prototype.getChecked=function(){return Ri(this,2)};Rn.prototype.setChecked=function(a){return aj(this,2,a)};var Mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mn,W);Mn.prototype.getSignal=function(){return Ii(this,1)};Mn.prototype.setSignal=function(a){return Vn(this,1,a)};Mn.prototype.getChecked=function(){return Ri(this,2)};Mn.prototype.setChecked=function(a){return aj(this,2,a)};var Gn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gn,W);Gn.prototype.getCollapsedMap=function(){return wc(this,2,ida)};var AUa=function(a,b){rx(a,7,b)},CUa=function(a,b){rx(a,8,b)};Gn.prototype.getMyTasksSources=function(){return jx(this,8)};var DUa=function(a,b){$i(a,18,b)},FUa=function(a,b){$i(a,19,b)},HUa=function(a,b){$i(a,20,b)},JUa=function(a,b){$i(a,21,b)},LUa=function(a,b){$i(a,22,b)},NUa=function(a,b){$i(a,24,b)};var vTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vTa,W);var Jn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jn,W);Jn.prototype.getTeamId=function(){return En(this,1)};Jn.prototype.getTeamId_asLegacyNumberOrString=function(){return Rp(this,1)};Jn.prototype.getTeamId_asString=function(){return In(this,1)};Jn.prototype.setTeamId=function(a){return Kn(this,1,a)};var LTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LTa,W);var UTa=function(a,b){return Er(a,1,b)},VTa=function(a,b){Zi(a,ej,2,b)},TTa=function(a,b){return $i(a,3,b)};var Fn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fn,W);Fn.prototype.getComponentId=function(){return En(this,1)};Fn.prototype.getComponentId_asString=function(){return In(this,1)};Fn.prototype.setComponentId=function(a){return Kn(this,1,a)};Fn.prototype.hasComponentId=function(){return Dn(this,1)};var FTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FTa,W);var zUa=function(a,b){$i(a,1,b)};var Sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,500)};Y(Sn,W);h=Sn.prototype;h.getDisplayColumns=function(){return X(this,Zn,4)};h.setDisplayColumns=function(a){Zi(this,Zn,4,a)};h.getSortColumns=function(){return X(this,Un,6)};h.getLayoutPreferences=function(){return X(this,jUa,10)};h.getDateTimePreferences=function(){return X(this,Xn,11)};h.getHomepagePreferences=function(){return X(this,mUa,13)};h.getCollapsedMap=function(){return wc(this,27,ida)};
h.getShowInlineImages=function(){return Ri(this,29)};var xed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xed,W);xed.prototype.getValueCase=function(){return Mo(this,yed)};var yed=[1,2];var zed=[0,yed,zGc,EGc];var $N=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($N,W);$N.prototype.getValueCase=function(){return Mo(this,aO)};$N.prototype.getStringValue=function(){return Oo(this,5,aO)};$N.prototype.setStringValue=function(a){return Ro(this,5,aO,a)};$N.prototype.hasStringValue=function(){return wr(this,5,aO)!=null};var aO=[2,3,4,5,6,8];var Aed=[0,aO,sGc,tGc,xGc,rGc,zGc,CGc,dHc,LA,CGc,zed];var Bed=[0,LA];var Ced=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ced,W);Ced.prototype.getExperimentToken=function(){return io(this,3)};var Ded=[0,Bed,AGc,Aed,DGc,-1];var Eed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eed,W);var Fed=function(a){return Ni(a,Ced,1,Oi())},Ged=yi(Eed);var Hed=qta(Eed,[0,AGc,Ded]);var ZUa=function(a){this.usesDefaultPayload=!1;var b=null;a?b=Fed(Hed(a))[0]:(this.usesDefaultPayload=!0,a=Cea("TSDtV",window),(a=typeof a!=="string"?null:a)&&(b=Fed(Ged("["+a.substring(4)))[0]));if(b){a=l(Ni(b,$N,2,Oi()));for(var c=a.next();!c.done;c=a.next())if(cj(c.value,er,6,aO))throw Error();}if(b){a={};c=l(Ni(b,$N,2,Oi()));for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=En(e,1).toString();switch(e.getValueCase()){case 3:a[d]=Ri(e,Ti(e,aO,3));break;case 2:a[d]=nn(En(e,Ti(e,aO,2)));break;
case 4:a[d]=rm(e,Ti(e,aO,4));break;case 5:a[d]=e.getStringValue();break;case 6:a[d]=jm(e,er,6,aO);break;case 8:e=cpb(e,xed,Ti(e,aO,8));switch(e.getValueCase()){case 1:a[d]=Oo(e,1,yed);break;default:throw Error("fd`"+e.getValueCase());}break;default:throw Error("fd`"+e.getValueCase());}}}else a={};this.flagDict=a;this.token=b?b.getExperimentToken():null};ZUa.prototype.getFlag=function(a){return!this.usesDefaultPayload||a.key in this.flagDict?a.ctor(this.flagDict[a.key]):a.defaultValue};
ZUa.prototype.getExperimentToken=function(){return this.token};var fo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fo,W);h=fo.prototype;h.getAppName=function(){return xi(this,2)};h.getDocumentationBaseUrl=function(){return xi(this,3)};h.getEnvironmentType=function(){return xi(this,5)};h.setEnvironmentType=function(a){return yj(this,5,a)};h.getOnePickUrl=function(){return xi(this,7)};h.getOnePickSecretToken=function(){return xi(this,12)};h.getCommentNumberLimit=function(){return Um(this,8)};
h.getCreateComponentRedirectDelay=function(){return rm(this,9)};h.getCreateRestrictedSubresourcesComponentIds=function(){return iAc(this,13)};h.getIndefiniteRetentionComponentsAllowlist=function(){return iAc(this,20)};h.getGppLlmChatComponentAllowlist=function(){return iAc(this,30)};h.getInternalBaseUrl=function(){return xi(this,24)};h.getExternalBaseUrl=function(){return xi(this,25)};var ho=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ho,W);h=ho.prototype;h.getEmail=function(){return xi(this,1)};h.setEmail=function(a){return yj(this,1,a)};h.hasEmail=function(){return wm(this,1)};h.getSessionIdentifier=function(){return xi(this,3)};h.getUserTypeLabel=function(){return xi(this,5)};var jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jo.messageId)};Y(jo,W);jo.prototype.getId=function(){return xi(this,1,void 0,jb)};jo.prototype.setId=function(a){return yj(this,1,a,jb)};jo.messageId="b.TimeZoneData";var ko=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ko.messageId)};Y(ko,W);h=ko.prototype;h.getMessage=function(){return xi(this,1,void 0,jb)};h.setMessage=function(a){return yj(this,1,a,jb)};h.getMessageId=function(){return xi(this,2,void 0,jb)};h.setMessageId=function(a){return yj(this,2,a,jb)};h.hasMessageId=function(){return wm(this,2,jb)};h.getTagsList=function(a){return Vm(this,4,Oi(a),jb)};h.getTags=function(a){return ix(this,4,a,jb)};ko.messageId="b.Announcement";var go=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(go,W);go.prototype.getAnnouncement=function(){return X(this,ko,2)};var XUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XUa,W);h=XUa.prototype;h.getUser=function(){return X(this,ho,1)};h.setUser=function(a){return Zi(this,ho,1,a)};h.hasUser=function(){return Ji(this,ho,1)};h.getConfig=function(){return X(this,fo,2)};h.setConfig=function(a){Zi(this,fo,2,a)};h.getXsrfToken=function(){return xi(this,3)};h.getCspNonce=function(){return xi(this,8)};h.getFrontendAccessMode=function(){return xi(this,4)};
h.setFrontendAccessMode=function(a){return yj(this,4,a)};h.getMustAcknowledgeTerms=function(){return Ri(this,5)};h.getShowNewFeaturesDialog=function(){return Ri(this,6)};h.getUserPreferences=function(){return X(this,Sn,7)};h.getAppBaseHref=function(){return xi(this,10)};h.getTracker=function(){return X(this,lo,11)};h.getPassiveLoginIframeUrl=function(){return X(this,$Ua,12)};var YUa=window,eo;var WUa;var gVa=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),fVa=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"),Ied=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"),Jed=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*(?:@?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.?)*)?$",
"i"),kVa=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var zVa=new WeakMap;var WVa=mo().user.email,dWa=new WeakMap,fWa=new WeakMap;var Ked=new Map;var bO=function(){this.snackBar=p(uC)};bO.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(Led,b)};bO.\u0275fac=function(a){return new (a||bO)};bO.\u0275prov=Fc({token:bO,factory:bO.\u0275fac,providedIn:"root"});
var Led=function(){this.data=p(qC);this.snackBarRef=p(rC)};Led.\u0275fac=function(a){return new (a||Led)};
Led.\u0275cmp=C({type:Led,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,xWa,1,1,"span",1)(2,yWa,2,1,"span",2),K(3,"div",3),F(4,
zWa,2,1,"button",4),F(5,AWa,2,1,"button",4)(6,BWa,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:[Yy,nC,jC,lC],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 gO=function(){this.snackbar=p(bO)};gO.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var $r=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},Med=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};gO.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};gO.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};gO.\u0275fac=function(a){return new (a||gO)};
gO.\u0275prov=Fc({token:gO,factory:gO.\u0275fac,providedIn:"root"});var hO=function(a,b){this.key=a;this.defaultValue=b;this.flagNameForDebugging=void 0};hO.prototype.ctor=function(a){return typeof a==="boolean"?a:this.defaultValue};var Oed=function(){var a=yi(Ned)("[]"),b=Ned;this.key="45738543";this.defaultValue=a;this.delegateCtor=b;this.flagNameForDebugging=void 0};
Oed.prototype.ctor=function(a){if(typeof a==="string"&&a)return wta(this.delegateCtor,a);if(!$Gc(a))return this.defaultValue.clone();var b;try{var c;var d=dr(a,this.delegateCtor,(c=a.getTypeName())!=null?c:"")}catch(e){d=null}return(b=d)!=null?b:this.defaultValue.clone()};var SWa={canSeeAnnouncementBanner:new hO("45738046",!0),clearExistingRecommendations:new hO("45741395",!1),enableBulkEditCaptchaUi:new hO("45735884",!1),enableCustomFieldTypeProductUI:new hO("45735720",!1),enableCustomFieldTypeTeamUI:new hO("45735719",!1),enableCustomFieldTypeUserUI:new hO("45735721",!1),enableDuckieLlmChat:new hO("45736883",!1),enableGppLlmChat:new hO("45738049",!1),enableHelpMeFixSidebar:new hO("45738050",!1),enableInactiveUserContent:new hO("45737528",!1),enableInlineImageAttachments:new hO("45737530",
!1),enableInteractiveMarkdownCheckboxes:new hO("45737531",!1),enableIrmIntegrationMenu:new hO("45735414",!1),enableNeedsInfoUi:new hO("45738051",!1),enableNonWtdmFieldPerTypeVisibility:new hO("45735818",!1),enablePlaybook:new hO("45737907",!1),enableSidebarIlpIcon:new hO("45735074",!0),enableSloLockingUi:new hO("45735860",!1),enableSuggestTitle:new hO("45737949",!1),enableTailwind:new hO("45738017",!1),enableTailwindMissionControl:new hO("45738021",!1),enableTailwindV3:new hO("45740739",!1),enableTrackersAccountHack:new hO("45735864",
!1),enableTriageClientM1:new hO("45741591",!1),enableTriageRecommendationComments:new hO("45735207",!1),readUnreadOptOut:new hO("45736751",!1),runQueryForSidebarIssueCount:new hO("45735865",!0),showHiringBanner:new hO("45740051",!1)},Ped=[].concat(q("enableChromeWizard enableCodeMentionsUi enableCommentHistoryUi enableComponentAutomationCheck enableEstado enableMarkdownInlineImages enablePushUpdatesClient enableRefreshSsoPopup enableRostersChecks enableTeamAdmin enableTeamScope enableWaldoAvailability enableWhatsNewDialog majorReleaseNotesUpdated reportErrors TEST_ONLY_flag1 TEST_ONLY_flag2 TEST_ONLY_flag3 TEST_ONLY_flag4".split(" ")),
q(Object.keys(SWa)));var CWa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Qed={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},Io=Qed;try{Io=window.localStorage||Qed}catch(a){}
var Red=function(a){return function(){var b=Io.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},LWa=function(a){return function(){var b=Io.getItem(a);if(b!=null)return String(b)}},Sed=function(a){return function(b){b==null?Io.removeItem(a):Io.setItem(a,String(b))}},Ted=function(a){return function(b){b==null?Io.removeItem(a):Io.setItem(a,b)}},Ued=function(a){return function(){var b=Jo(a)();HWa(a)(!b);return!b}},Ko=function(a){return function(){var b=Io.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},Lo=function(a){return function(b){b==null?Io.removeItem(a):Io.setItem(a,JSON.stringify(b))}};var RWa=GWa(function(){var a,b=((a=NWa())==null?void 0:a.overrides)||[];return new Map(b.map(function(c){return[c.flagName,c.value]}))});var Ned=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ned,W);var Ved=function(a){return ex(a,1,1)};Ned.prototype.addElement=function(a,b){return ox(this,1,a,b)};Ned.prototype.removeElement=function(a){return lAc(this,1,a)};Ned.prototype.getElement=function(a){return iAc(this,1,a)};var Wed=new Oed;var Qu=function(){this.session=mo()};h=Qu.prototype;h.getAppBaseHref=function(){return this.session.appBaseHref};h.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};h.getFrontendAccessMode=function(){return aVa(this.session)};h.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};h.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var iO=function(a){return a.getFrontendAccessMode()==="PARTNER"},jO=function(a){return a.getFrontendAccessMode()==="PUBLIC"};Qu.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var Xed=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1};Qu.prototype.getFlag=function(a){return TWa(a,this.session.config)};var Yed=function(a){return Ped.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 Bs=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 Hs=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()?Hs(this)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":Hs(this)?"http://b/":"http://b-qa/"};h.getOnePickUrl=function(){return this.session.config.onePickUrl};h.getAppName=function(){return this.session.config.appName};h.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};h.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};
h.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};h.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};h.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};h.getUserPreferences=function(){return this.session.userPreferences};h.getXsrfToken=function(){return this.session.xsrfToken};h.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};h.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};
h.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};h.getCspNonce=function(){return this.session.cspNonce};h.getAnnouncement=function(){return this.session.preload.announcement};h.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};var Zed=function(a){var b;a=(b=Ved(a.session.config.experimentState.getFlag(Wed)))!=null?b:[];return new Set(a.map(function(c){return String(c)}))};
Qu.prototype.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 lO=function(){this.activeSession=p(Qu);this.clientFactory=p(kO);this.client=this.clientFactory.create(this.getServiceEndpoint())};lO.prototype.generateAnswers=function(a){var b=this;return this.activeSession.isExternalSession()?Fx:pe(function(){return b.client.generateAnswers((new eB).setDuckieClient(9).setText(a).setConversationHistory((new dB).setPrivacyMode(2)).setConversationAgent((new YA).setAgentId("a2a:buganizer_agent")))}).pipe(A(VWa()))};
lO.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"}};lO.\u0275fac=function(a){return new (a||lO)};lO.\u0275prov=Fc({token:lO,factory:lO.\u0275fac,providedIn:"root"});var kO=function(){};
kO.prototype.create=function(a){return new nJc(a,{withCredentials:!0,suppressCorsPreflight:!0})};kO.\u0275fac=function(a){return new (a||kO)};kO.\u0275prov=Fc({token:kO,factory:kO.\u0275fac,providedIn:"root"});var YWa=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 mO={},bXa=(mO[1]="issue_id",mO[3]="type",mO[4]="status",mO[5]="priority",mO[6]="severity",mO[18]="title",mO[15]="modified_time",mO[14]="created_time",mO[17]="verified_time",mO[16]="resolved_time",mO[38]="deletion_time",mO[13]="blocked_by_issue_ids",mO[12]="blocking_issue_ids",mO[26]="vote_count",mO[28]="cc_count",mO[44]="collaborators_count",mO[2]="component_path",mO[27]="duplicate_count",mO[10]="ccs",mO[43]="collaborators",mO[11]="code_changes",mO[58]="incidents",mO[32]="postmortems",mO[8]="assignee",
mO[9]="verifier",mO[7]="reporter",mO[19]="found_in_versions",mO[20]="targeted_to_versions",mO[21]="verified_in_versions",mO[22]="in_prod",mO[30]="last_modifier",mO[25]="position",mO[24]="custom_field",mO[29]="modified_by",mO[31]="archived",mO[23]="canonical_issue_id",mO[33]="min_slo",mO[35]="assignment_slo",mO[36]="response_slo",mO[37]="closure_slo",mO[39]="team",mO[40]="estimate",mO[41]="estimate_total_open",mO[42]="estimate_total_complete",mO[45]="access_level",mO[46]="descendant_count",mO[47]=
"open_descendant_count",mO[48]="one_day_view_count",mO[49]="seven_day_view_count",mO[50]="thirty_day_view_count",mO[51]="escalation_owner",mO[52]="relative_modified_time",mO[53]="alerts",mO[54]="timeframe",mO[55]="progress",mO[56]="triager",mO[57]="enrichment_categories",mO),nO={},dXa=(nO.issue_id=1,nO.type=3,nO.status=4,nO.priority=5,nO.severity=6,nO.title=18,nO.modified_time=15,nO.created_time=14,nO.verified_time=17,nO.resolved_time=16,nO.deletion_time=38,nO.blocked_by_issue_ids=13,nO.blocking_issue_ids=
12,nO.vote_count=26,nO.cc_count=28,nO.collaborators_count=44,nO.component_path=2,nO.duplicate_count=27,nO.ccs=10,nO.collaborators=43,nO.code_changes=11,nO.postmortems=32,nO.assignee=8,nO.verifier=9,nO.reporter=7,nO.found_in_versions=19,nO.targeted_to_versions=20,nO.verified_in_versions=21,nO.in_prod=22,nO.last_modifier=30,nO.position=25,nO.custom_field=24,nO.modified_by=29,nO.archived=31,nO.canonical_issue_id=23,nO.min_slo=33,nO.assignment_slo=35,nO.response_slo=36,nO.closure_slo=37,nO.team=39,nO.estimate=
40,nO.estimate_total_open=41,nO.estimate_total_complete=42,nO.access_level=45,nO.descendant_count=46,nO.open_descendant_count=47,nO.one_day_view_count=48,nO.seven_day_view_count=49,nO.thirty_day_view_count=50,nO.escalation_owner=51,nO.relative_modified_time=52,nO.alerts=53,nO.timeframe=54,nO.progress=55,nO.triager=56,nO.enrichment_categories=57,nO);var Up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Up,W);Up.prototype.getDisplayColumns=function(){return ix(this,1)};Up.prototype.setDisplayColumns=function(a){qx(this,1,a)};var I1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I1a,W);h=I1a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getIssueAccessLimit=function(){return X(this,To,2)};h.setIssueAccessLimit=function(a){Zi(this,To,2,a)};h.setAddedCollaboratorsList=function(a){$i(this,3,a)};h.setRemovedCollaboratorsList=function(a){$i(this,4,a)};var Qo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qo,W);h=Qo.prototype;h.getUser=function(){return jm(this,Xm,1,No)};h.setUser=function(a){return mp(this,1,No,a)};h.hasUser=function(){return cj(this,Xm,1,No)};h.getGroup=function(){return jm(this,Xm,2,No)};h.setGroup=function(a){mp(this,2,No,a)};var No=[1,2,3];var $ed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($ed,W);h=$ed.prototype;h.getAppendersList=function(){return Ni(this,Qo,6,Oi())};h.setAppendersList=function(a){return $i(this,6,a)};h.getReadersList=function(){return Ni(this,Qo,8,Oi())};h.setReadersList=function(a){return $i(this,8,a)};h.setImplicitAccess=function(a){return $m(this,10,a)};var afd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(afd,W);h=afd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getIssueAccessLimit=function(){return X(this,To,2)};h.setIssueAccessLimit=function(a){Zi(this,To,2,a)};h.setAddedCollaboratorsList=function(a){$i(this,3,a)};h.setRemovedCollaboratorsList=function(a){$i(this,4,a)};var Wo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wo,W);Wo.prototype.getResourcePath=function(){return xi(this,2)};Wo.prototype.setResourcePath=function(a){return Ym(this,2,a)};Wo.prototype.getRestrictionSeverity=function(){return Ii(this,3)};var i2a=function(a){return $m(a,5,2)};var $o=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($o,W);var qp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qp,W);qp.prototype.getLabel=function(){return xi(this,1)};qp.prototype.setLabel=function(a){return Ym(this,1,a)};qp.prototype.getValue=function(){return rm(this,2)};qp.prototype.setValue=function(a){return Fp(this,2,a)};var iYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iYa,W);var hYa=function(a,b){return $i(a,1,b)};iYa.prototype.setOptions=function(a,b){return Yw(this,1,qp,a,b)};var fYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fYa,W);var eYa=function(a,b){return Fp(a,1,b)};var pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pp,W);h=pp.prototype;h.getInherit=function(){return Ri(this,1)};h.setInherit=function(a){return op(this,1,a)};h.getId=function(){return En(this,2)};h.getId_asLegacyNumberOrString=function(){return Rp(this,2)};h.getId_asString=function(){return In(this,2)};h.setId=function(a){return Xo(this,2,a)};h.getName=function(){return xi(this,3)};h.setName=function(a){return Ym(this,3,a)};
var dYa=function(a,b){mp(a,4,yq,b)},gYa=function(a,b){mp(a,5,yq,b)};pp.prototype.getCustomFieldId=function(){return En(this,100)};pp.prototype.getCustomFieldId_asString=function(){return In(this,100)};pp.prototype.setCustomFieldId=function(a){return Xo(this,100,a)};var yq=[4,5];var Cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cp,W);h=Cp.prototype;h.getInherit=function(){return Ri(this,1)};h.setInherit=function(a){return op(this,1,a)};h.getSource=function(){return Ii(this,2)};h.setSource=function(a){return $m(this,2,a)};h.getId=function(){return En(this,3)};h.getId_asLegacyNumberOrString=function(){return Rp(this,3)};h.getId_asString=function(){return In(this,3)};h.setId=function(a){return Xo(this,3,a)};
h.getSourceTeamId_asString=function(){return In(this,5)};h.setSourceTeamId=function(a){Xo(this,5,a)};h.getComment=function(){return xi(this,4)};h.setComment=function(a){return Ym(this,4,a)};h.getEscalationOwner=function(){return X(this,Xm,7)};h.setEscalationOwner=function(a){Zi(this,Xm,7,a)};h.setInheritEscalationOwner=function(a){op(this,8,a)};var Dp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dp,W);h=Dp.prototype;h.getMetric=function(){return Ii(this,1)};h.getDayType=function(){return Ii(this,4)};h.setDayType=function(a){return $m(this,4,a)};h.getObjective=function(){return X(this,tn,3)};h.setObjective=function(a){return Zi(this,tn,3,a)};h.getBusinessDays=function(){return Um(this,5)};h.setBusinessDays=function(a){return pn(this,5,a)};var Gr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gr,W);h=Gr.prototype;h.getSloId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getSloId_asString=function(){return In(this,1)};h.setSloId=function(a){return Xo(this,1,a)};h.getParentId=function(){return En(this,2)};h.setParentId=function(a){return Xo(this,2,a)};h.getName=function(){return xi(this,3)};h.setName=function(a){return Ym(this,3,a)};h.getDescription=function(){return xi(this,4)};
h.setDescription=function(a){return Ym(this,4,a)};h.addRules=function(a,b){return bq(this,5,Dp,a,b)};h.removeRules=function(a){return bx(this,5,Dp,a)};h.getIsArchived=function(){return Ri(this,7)};h.setIsArchived=function(a){return op(this,7,a)};var h2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h2a,W);h2a.prototype.getTemplateId=function(){return En(this,2)};h2a.prototype.setTemplateId=function(a){return Xo(this,2,a)};var g2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g2a,W);h=g2a.prototype;h.getIssue=function(){return X(this,Wp,1)};h.setIssue=function(a){return Zi(this,Wp,1,a)};h.setSignificanceOverride=function(a){return $m(this,4,a)};h.getContentJudgement=function(){return X(this,Wo,5)};h.setContentJudgement=function(a){return Zi(this,Wo,5,a)};var Tp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tp,W);h=Tp.prototype;h.getHotlistId=function(){return En(this,1)};h.setHotlistId=function(a){return Xo(this,1,a)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return Ym(this,3,a)};h.getArchived=function(){return Ri(this,4)};h.setArchived=function(a){return op(this,4,a)};
h.getDefaultOrderBy=function(){return xi(this,5)};h.setDefaultOrderBy=function(a){return Ym(this,5,a)};h.getDisplayPreferences=function(){return X(this,Up,6)};h.setDisplayPreferences=function(a){return Zi(this,Up,6,a)};h.getCreatedTime=function(){return X(this,ej,7)};h.setCreatedTime=function(a){return Zi(this,ej,7,a)};h.getModifiedTime=function(){return X(this,ej,8)};h.setModifiedTime=function(a){return Zi(this,ej,8,a)};h.getOwnersList=function(){return Ni(this,Xm,9,Oi())};
h.setOwnersList=function(a){return $i(this,9,a)};h.getEtag=function(){return io(this,10)};h.setEtag=function(a){return dp(this,10,a)};var HZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HZa,W);h=HZa.prototype;h.getAddMask=function(){return X(this,Rq,1)};h.getMutableAddMask=function(){return Ui(this,Rq,1)};h.setAddMask=function(a){return Zi(this,Rq,1,a)};h.getAdd=function(){return X(this,Op,2)};h.setAdd=function(a){return Zi(this,Op,2,a)};h.getComment=function(){return X(this,Zp,3)};h.setComment=function(a){return Zi(this,Zp,3,a)};h.getRemoveMask=function(){return X(this,Rq,5)};
h.getMutableRemoveMask=function(){return Ui(this,Rq,5)};h.setRemoveMask=function(a){return Zi(this,Rq,5,a)};h.getRemove=function(){return X(this,Op,6)};h.setRemove=function(a){return Zi(this,Op,6,a)};var EZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EZa,W);h=EZa.prototype;h.getText=function(){return xi(this,1)};h.setText=function(a){return Ym(this,1,a)};h.getFormattingMode=function(){return Ii(this,2)};h.setFormattingMode=function(a){return $m(this,2,a)};h.getCreateTime=function(){return X(this,ej,4)};h.setCreateTime=function(a){return Zi(this,ej,4,a)};var bfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bfd,W);bfd.prototype.getIssue=function(){return X(this,Wp,1)};bfd.prototype.setIssue=function(a){return Zi(this,Wp,1,a)};bfd.prototype.getRecommendation=function(){return xi(this,2)};bfd.prototype.setRecommendation=function(a){return Ym(this,2,a)};var yZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yZa,W);yZa.prototype.getName=function(){return xi(this,1)};yZa.prototype.setName=function(a){return Ym(this,1,a)};yZa.prototype.getEntriesList=function(){return Ni(this,bfd,3,Oi())};var Yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yp,W);h=Yp.prototype;h.getContentCase=function(){return Mo(this,Xp)};h.getName=function(){return xi(this,1)};h.setName=function(a){return Ym(this,1,a)};h.getSource=function(){return xi(this,2)};h.setSource=function(a){return Ym(this,2,a)};h.getResource=function(){return xi(this,3)};h.setResource=function(a){return Ym(this,3,a)};h.getType=function(){return Ii(this,4)};h.setType=function(a){return $m(this,4,a)};
h.getRecommendation=function(){return xi(this,5)};h.setRecommendation=function(a){return Ym(this,5,a)};h.getScore=function(){return rm(this,6)};h.setScore=function(a){return Fp(this,6,a)};h.getConfidence=function(){return Ii(this,7)};h.setConfidence=function(a){return $m(this,7,a)};h.getCreateTime=function(){return X(this,ej,8)};h.setCreateTime=function(a){return Zi(this,ej,8,a)};h.getIssueModification=function(){return jm(this,HZa,12,Xp)};h.setIssueModification=function(a){mp(this,12,Xp,a)};
h.getRationale=function(){return X(this,EZa,13)};h.setRationale=function(a){Zi(this,EZa,13,a)};var Xp=[9,10,11,12];var JZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JZa,W);h=JZa.prototype;h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.getIssueModification=function(){return jm(this,HZa,4,cfd)};h.setIssueModification=function(a){mp(this,4,cfd,a)};h.setRejectionReason=function(a){$m(this,3,a)};var cfd=[4];var dfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dfd,W);h=dfd.prototype;h.getResources=function(a){return ix(this,1,a)};h.getTypesList=function(){return Ln(this,2,Oi())};h.setTypesList=function(a){return rx(this,2,a)};h.setMinConfidence=function(a){$m(this,3,a)};h.setView=function(a){return $m(this,4,a)};var QZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QZa,W);h=QZa.prototype;h.getParent=function(){return xi(this,1)};h.setParent=function(a){return Ym(this,1,a)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.getResource=function(){return xi(this,3)};h.setResource=function(a){return Ym(this,3,a)};h.getRecommendationsList=function(){return Ni(this,Yp,4,Oi())};h.setRecommendationsList=function(a){return $i(this,4,a)};var efd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(efd,W);h=efd.prototype;h.getParent=function(){return xi(this,1)};h.setParent=function(a){return Ym(this,1,a)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.setRequestsList=function(a){return $i(this,3,a)};h.addAndReturnRequests=function(){return Cc(this,3,QZa)};var IZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IZa,W);IZa.prototype.getParent=function(){return xi(this,1)};IZa.prototype.setParent=function(a){return Ym(this,1,a)};var ffd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ffd,W);h=ffd.prototype;h.getResource=function(){return xi(this,1)};h.setResource=function(a){return Ym(this,1,a)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.setMinConfidence=function(a){$m(this,3,a)};h.setPageSize=function(a){return pn(this,4,a)};h.setPageToken=function(a){return Ym(this,5,a)};h.setView=function(a){return $m(this,6,a)};var oO=function(){},pO=function(){};var qO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qO.messageId)};Y(qO,W);qO.prototype.getParent=function(){return xi(this,1,void 0,jb)};qO.prototype.setParent=function(a){return Ym(this,1,a,jb)};qO.prototype.setRequestsList=function(a){return $i(this,2,a,jb)};qO.prototype.addAndReturnRequests=function(){return Cc(this,2,IZa,jb)};qO.messageId="b.BatchCreateUserEngagementsRequest";var gfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gfd.messageId)};Y(gfd,W);gfd.prototype.getRecommendationsList=function(){return Ni(this,Yp,1,Oi(),jb)};gfd.prototype.setRecommendationsList=function(a){return $i(this,1,a,jb)};gfd.messageId="b.BatchLookupTopTopRecommendationsResponse";var hfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hfd.messageId)};Y(hfd,W);hfd.prototype.getRecommendationsList=function(){return Ni(this,Yp,1,Oi(),jb)};hfd.prototype.setRecommendationsList=function(a){return $i(this,1,a,jb)};hfd.messageId="b.BatchReplaceRecommendationsResponse";var rO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rO.messageId)};Y(rO,W);rO.prototype.getRecommendationsList=function(){return Ni(this,Yp,1,Oi(),jb)};rO.prototype.setRecommendationsList=function(a){return $i(this,1,a,jb)};rO.prototype.getNextPageToken=function(){return xi(this,2,void 0,jb)};rO.prototype.getTotalSize=function(){return En(this,3,void 0,jb)};rO.messageId="b.LookupRecommendationsResponse";var sO=function(){this.executor=p(oO)};sO.prototype.lookupRecommendations=function(a){var b=(new ffd).setResource(a.resource).setType(wZa[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(bed[a.view]);a.minConfidence!==void 0&&b.setMinConfidence(DZa[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:rO}).pipe(A(NZa))};
sO.prototype.batchLookupTopRecommendations=function(a){var b=new dfd;b=Zm(b,1,a.resources).setTypesList(a.types.map(xZa));a.minConfidence!==void 0&&b.setMinConfidence(DZa[a.minConfidence]);a.view!==void 0&&b.setView(bed[a.view]);return this.executor.post({url:"action/recommendations/batch",body:b,responseConstructor:gfd}).pipe(A(OZa))};
sO.prototype.createUserEngagements=function(a){a=(new qO).setRequestsList(a.map(MZa));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};sO.prototype.batchReplaceRecommendations=function(a){var b=(new efd).setRequestsList(a.requests.map(RZa));a.parent&&b.setParent(a.parent);a.type&&b.setType(wZa[a.type]);return this.executor.post({url:"action/recommendations/batchReplace",body:b,responseConstructor:hfd}).pipe(A(PZa))};
sO.\u0275fac=function(a){return new (a||sO)};sO.\u0275prov=Fc({token:sO,factory:sO.\u0275fac,providedIn:"root"});var tO=function(){this.observableApi=p(sO)};tO.prototype.lookupRecommendations=function(a){return ie(this.observableApi.lookupRecommendations(a))};tO.prototype.batchLookupTopRecommendations=function(a){return ie(this.observableApi.batchLookupTopRecommendations(a))};tO.prototype.createUserEngagements=function(a){return ie(this.observableApi.createUserEngagements(a))};
tO.prototype.batchReplaceRecommendations=function(a){return ie(this.observableApi.batchReplaceRecommendations(a))};tO.\u0275fac=function(a){return new (a||tO)};tO.\u0275prov=Fc({token:tO,factory:tO.\u0275fac,providedIn:"root"});var qq=function(a){return"issues/"+a},gs=function(a){var b;return(b=a.match(/issues\/(\d+)/))==null?void 0:b[1]},Dab=function(a){var b;return(b=a.match(/hotlists\/(\d+)/))==null?void 0:b[1]};var ifd=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(ifd,Error);var uO=function(){};h=uO.prototype;h.debug=function(){kn.apply(null,q(ad.apply(0,arguments)))};h.error=function(){kTa.apply(null,q(ad.apply(0,arguments)))};h.info=function(){ln.apply(null,q(ad.apply(0,arguments)))};h.log=function(){jTa.apply(null,q(ad.apply(0,arguments)))};h.warn=function(){mn.apply(null,q(ad.apply(0,arguments)))};uO.\u0275fac=function(a){return new (a||uO)};uO.\u0275prov=Fc({token:uO,factory:uO.\u0275fac,providedIn:"root"});var jfd=Symbol("Bd"),kfd=Symbol("Cd"),lfd=Symbol("Dd"),vO=function(){};vO.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=Ho(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[lfd]=!0;return}c.resolve(e);d[lfd]=!0},b);d[jfd]=b;d[kfd]=c.reject;d[lfd]=!1;return c.promise};vO.prototype.cancel=function(a){var b=a[jfd];if(b==null||a[lfd])return!1;clearTimeout(b);var c;(c=a[kfd])==null||c.call(a,Error("Ed"));return a[lfd]=!0};vO.\u0275fac=function(a){return new (a||vO)};
vO.\u0275prov=Fc({token:vO,factory:vO.\u0275fac,providedIn:"root"});var wO=function(){this.butterBar=p(gO);this.activeSession=p(Qu);this.$log=p(uO);this.timeout=p(vO)};
wO.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.":dq(b)?dq(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 xO=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},yO=function(a,b){if(cq(b))a.errorHandler(null,b);else throw b;};wO.\u0275fac=function(a){return new (a||wO)};wO.\u0275prov=Fc({token:wO,factory:wO.\u0275fac,providedIn:"root"});var mfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mfd,W);h=mfd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setPageSize=function(a){return pn(this,2,a)};h.setPageToken=function(a){return Ym(this,3,a)};var nfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nfd.messageId)};Y(nfd,W);nfd.prototype.getIt=function(){return X(this,mfd,4,jb)};nfd.prototype.setIt=function(a){return Zi(this,mfd,4,a,jb)};nfd.messageId="b.AggregateIssueDescendantsRequest";var ofd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ofd,W);h=ofd.prototype;h.getPriority=function(){return Ii(this,1)};h.setPriority=function(a){return $m(this,1,a)};h.getIssueIdsList=function(){return ex(this,2,1)};h.getIssueIdsList_asString=function(){return jn(this,2)};h.setIssueIdsList=function(a){return Er(this,2,a)};h.addIssueIds=function(a){return ox(this,2,a)};h.setIssueIds=function(a){Ac(this,2,Hb,void 0,a,Nb,void 0,1)};var pfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pfd,W);h=pfd.prototype;h.getStatus=function(){return Ii(this,1)};h.setStatus=function(a){return $m(this,1,a)};h.getIssueIdsList=function(){return ex(this,2,1)};h.getIssueIdsList_asString=function(){return jn(this,2)};h.setIssueIdsList=function(a){return Er(this,2,a)};h.addIssueIds=function(a){return ox(this,2,a)};h.setIssueIds=function(a){Ac(this,2,Hb,void 0,a,Nb,void 0,1)};var qfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qfd,W);h=qfd.prototype;h.getIssueIdsList=function(){return ex(this,3,1)};h.getIssueIdsList_asString=function(){return jn(this,3)};h.setIssueIdsList=function(a){return Er(this,3,a)};h.addIssueIds=function(a){return ox(this,3,a)};h.setIssueIds=function(a){Ac(this,3,Hb,void 0,a,Nb,void 0,1)};h.getCollaboratorsList=function(){return Ni(this,Xm,8,Oi())};h.setCollaboratorsList=function(a){$i(this,8,a)};
h.addAllCollaborators=function(a){aq(this,8,Xm,a)};h.setCollaborators=function(a,b){return Yw(this,8,Xm,a,b)};h.getCodeChangesList=function(a){return Vm(this,9,Oi(a))};h.setCodeChangesList=function(a){Zm(this,9,a)};h.addAllCodeChanges=function(a){Bc(this,9,Sb,a,Tb)};h.setCodeChanges=function(a,b){return qx(this,9,a,b)};h.getGerritChangesList=function(){return Ni(this,Qp,13,Oi())};h.setGerritChangesList=function(a){$i(this,13,a)};h.addAllGerritChanges=function(a){aq(this,13,Qp,a)};
h.getBlockedByIssueIdsList=function(){return ex(this,10,1)};h.getBlockedByIssueIdsList_asString=function(){return jn(this,10)};h.setBlockedByIssueIdsList=function(a){Er(this,10,a)};h.addAllBlockedByIssueIds=function(a){px(this,10,a)};h.getBlockingIssueIdsList=function(){return ex(this,11,1)};h.getBlockingIssueIdsList_asString=function(){return jn(this,11)};h.setBlockingIssueIdsList=function(a){Er(this,11,a)};h.addAllBlockingIssueIds=function(a){px(this,11,a)};var rfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rfd,W);rfd.prototype.getNextPageToken=function(){return xi(this,4)};var sfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sfd.messageId)};Y(sfd,W);sfd.prototype.getIt=function(){return X(this,rfd,3,jb)};sfd.prototype.setIt=function(a){return Zi(this,rfd,3,a,jb)};sfd.messageId="b.AggregateIssueDescendantsResponse";var zO=function(){this.executor=p(oO)};
zO.prototype.get=function(a){var b=(new nfd).setIt((new mfd).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:sfd}).pipe(A(function(c){var d=c.getIt();d=Um(d,2);var e=c.getIt();e=Um(e,3);c=c.getIt();var f=X(c,qfd,1);if(f){var g,k,m,r,w,x,D,H,J,O;c={_rootId:a,issueIds:f.getIssueIdsList().map(nn).map(en).filter(hn),aggregatedStatus:(w=Ni(f,pfd,4,Oi()).map(TZa).filter(hn))!=null?w:[],aggregatedPriority:(x=Ni(f,ofd,12,Oi()).map(UZa).filter(hn))!=
null?x:[],reporters:(D=(g=Ni(f,Xm,5,Oi()))==null?void 0:g.map(cn))!=null?D:[],assignees:(H=(k=Ni(f,Xm,6,Oi()))==null?void 0:k.map(cn))!=null?H:[],verifiers:(J=(m=Ni(f,Xm,7,Oi()))==null?void 0:m.map(cn))!=null?J:[],collaborators:(O=(r=f.getCollaboratorsList())==null?void 0:r.map(cn))!=null?O:[],changelists:f.getCodeChangesList(bn),gerritChanges:f.getGerritChangesList().map(VYa),blockedByIssueIds:f.getBlockedByIssueIdsList().map(nn).map(en).filter(hn),blockingIssueIds:f.getBlockingIssueIdsList().map(nn).map(en).filter(hn),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275prov=Fc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var tfd=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};tfd.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 ufd=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};h=ufd.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 vfd=function(a){this.cfg=a;this.cache=new Map},xfd=function(a,b){a=wfd(a,b);return a==null?Infinity:a},wfd=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:c.age()};vfd.prototype.isFresh=function(a){return xfd(this,a)<this.cfg.freshUntil};var yfd=function(a,b){return xfd(a,b)<=a.cfg.ancientAfter};h=vfd.prototype;h.isAncient=function(){var a=wfd(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 ufd(b,this.cfg))};h.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new ufd(b.data,this.cfg))};
h.validate=function(a,b,c,d){d=d===void 0?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};h.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};h.toString=function(){return Array.from(this.cache,function(a){a=l(a);var b=a.next().value;a=a.next().value;b=String(b).slice(-16);var c=a.toString();return a.getStatus()+"  "+b+": "+c}).join("\n")};var zfd={trustMemory:!0},Afd=function(){},nSa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],Bfd=function(a){this.ids=[];Object.assign(this,a)};Y(Bfd,Afd);Bfd.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var Cfd={freshUntil:1E4,ancientAfter:792E5},AO=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 Wj(Object.freeze({}));this.inFlightSaves$=new Wj(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(A(WZa));
this.saving$=this.inFlightSaves$.pipe(A(WZa));this.thinking$=le(this.getting$,this.saving$).pipe(A(function(c){var d=l(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?VZa:Dfd({label:c,value:wfd(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));Efd(b,c).next(d)}};this.gotSet=function(c){return function(d){for(var e=
l(d),f=e.next();!f.done;f=e.next())f=f.value,b.gotOne(b.idForRecord(f))(f,{doNotTrack:!0});Ffd(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=Dfd({label:c,value:wfd(b.collectiveMemory,c)},b.recordType),f=l(d.results),g=f.next();!g.done;g=f.next())g=g.value,b.gotOne(b.idForRecord(g))(g,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,mSa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=Gfd(b,f,d.results),
e.next(d)):jTa(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&&mn("Fridge<"+b.recordType+"> Couldn't find a record for id "+d+". (among "+c.length+" records)");return e}};this.debug=function(){return{recordType:b.recordType,isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;
return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),records:b.memory.debug(),lists:b.collectiveMemory.debug()}};this.implementsFn=function(){return function(){try{b.doSave()}catch(d){var c=d;if((c.message===void 0?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};this.canSave=this.implementsFn();this.icons={fetchOne:"\ud83d\udcbf",fetchAll:"\ud83d\udcdc",__doCreate:"\ud83c\udf1f",
doSave:"\u270f\ufe0f",no:"\u274c"};this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return c==null?WZa(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?WZa(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("Fd");c=b.doSave(c).pipe(of(0,Lr),Jla(),Tha());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),
b.gotErr(d,b.inFlightSaves$),Hfd(d,b.inFlightSaves$)));return c};this.setIsSaving=function(c){var d={};XZa(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){YZa(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};XZa(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){YZa(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries(),function(c){c=l(c);c.next();return c.next().value.data}).filter(hn)};this.poke.bind(this);this.subscriptions=
new Rd;this.memory=new vfd(Object.assign({},Cfd,a));this.collectiveMemory=new vfd(Object.assign({},Cfd,a))};h=AO.prototype;h.fetchOne=function(){throw Error("Gd");};h.fetchAll=function(){throw Error("Hd");};h.fetchSet=function(){throw Error("Id");};h.doSave=function(){throw Error("Jd");};h.copy=function(){throw Error("Kd");};h.isEqual=function(a,b){return mSa(a,b,100)};h.inFlightGets=function(){return this.inFlightGets$.getValue()};h.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var Ifd=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=Dfd({label:b,value:wfd(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&yfd(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),d_a(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=Efd(a,b),c_a(c.values$).then(d_a);c("one-fetch");try{var f=a.fetchOne(b).pipe(nf(1),of(0,Lr))}catch(g){f=fe(function(){return g})}a.setIsGetting(b);return new Promise(function(g,k){a.subscriptions.add(f.subscribe(function(m){a.gotOne(b)(m);
g(m)},function(m){a.gotErr(b,a.inFlightGets$)(m);k(m)},Hfd(b,a.inFlightGets$)))})},Lfd=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(q(b)).sort().join("-")+"]",e=Dfd({label:d},a.recordType);if(c&&Jfd(a,b))Kfd(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=Efd(a,k);return c_a(k.values$)})).then(function(k){return k.filter(hn)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(nf(1),of(0,Lr))}catch(k){f=fe(function(){return k})}c={};c=(c[d]=!0,c);e=l(b);for(var g=e.next();!g.done;g=e.next())c[g.value]=!0;XZa(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){ZZa(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){ZZa(a.inFlightGets$,[d].concat(q(b)))}))}},Jfd=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},Kfd=function(a,b){var c=Mfd(a,b).filter(hn);Ffd(a,b).next(c)};
AO.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=$Za(a),d=Dfd({label:c,value:wfd(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=Nfd(this,a);e.results.length!==a.ids.length&&mn("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=Ofd(this,a),c_a(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(nf(1),of(0,Lr))}catch(f){e=fe(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),Hfd(c,this.inFlightGets$)));a=Ofd(this,a);return c_a(a.values$)};AO.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);kTa(a+" gotErr()",d);YZa(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var Hfd=function(a,b){return function(){YZa(b,a)}};AO.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new Bfd(Object.assign({},b_a(a),{ids:b}))};
var Gfd=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},b_a(b),{results:a})},Nfd=function(a,b){var c=Mfd(a,b.ids).filter(hn);return Gfd(a,b,c)},Mfd=function(a,b){return b.map(function(c){return a.memory.getData(c)})},Ofd=function(a,b){b=$Za(b);return a_a(a.collectionsById,b,new tfd)},Ffd=function(a,b){b="["+[].concat(q(b)).sort().join("-")+"]";return a_a(a.setsByLabel,b,new tfd)},Efd=function(a,b){var c=new tfd(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return a_a(a.valsById,b,c)};h=AO.prototype;h.watch=function(a,b){b=b===void 0?zfd:b;if(a==null)throw Error("Ld`"+a+"`"+this.recordType);typeof b==="number"&&(b=zfd);typeof a==="number"&&(a=String(a));var c=Efd(this,a);Ifd(this,a,b).catch(function(){});return c.distinctValues$.asObservable()};h.watchSet=function(a,b){b=b===void 0?zfd:b;typeof b==="number"&&(b=zfd);if(a.length===0)return ee([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=Ffd(this,a);Lfd(this,a,b);return c.values$.asObservable()};
h.watchMany=function(a,b){b=b===void 0?zfd:b;a=Object.assign({},this.defaultQuery,a);var c=Ofd(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("Ld`"+a+"`"+this.recordType)):Ifd(this,String(a),b)};
var Pfd=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},Qfd=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus($Za(b))};AO.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Md");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};
AO.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($Za(a))};AO.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)};AO.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var Dfd=function(a,b){for(var c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,a[d]==null&&delete a[d];return function(e){var f=a;f=f===void 0?{}:f;Rfd&&kn("Fridge<"+b+">::trackEvent('"+e+"')",f)}},BO=function(){AO.apply(this,arguments);this.defaultQuery={}};Y(BO,AO);var Rfd=!1;var CO=function(){BO.call(this);this.api=p(zO);this.recordType="AggregatedIssueMetadata";this.isEqual=Dm;this.idForRecord=function(a){return a._rootId}};Y(CO,BO);CO.prototype.fetchOne=function(a){return this.api.get(a)};CO.\u0275fac=function(a){return new (a||CO)};CO.\u0275prov=Fc({token:CO,factory:CO.\u0275fac,providedIn:"root"});var Vr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vr.messageId)};Y(Vr,W);Vr.prototype.getIt=function(){return X(this,Wo,6,jb)};Vr.prototype.setIt=function(a){return Zi(this,Wo,6,a,jb)};Vr.messageId="b.ContentJudgement";var i_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i_a,W);i_a.prototype.getContent=function(){return xi(this,1)};i_a.prototype.setContent=function(a){return Ym(this,1,a)};i_a.prototype.getFormattedContent=function(){return X(this,yp,2)};var k_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k_a,W);h=k_a.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return Er(this,1,a)};h.addIssueIds=function(a){return ox(this,1,a)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,void 0,1)};var Sfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sfd,W);Sfd.prototype.getContent=function(){return xi(this,1)};Sfd.prototype.setContent=function(a){return Ym(this,1,a)};Sfd.prototype.getFormattedContent=function(){return X(this,yp,2)};var Tfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tfd,W);h=Tfd.prototype;h.getContentCase=function(){return Mo(this,j_a)};h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCategory=function(){return xi(this,2)};h.setCategory=function(a){return Ym(this,2,a)};h.getSummary=function(){return jm(this,Sfd,5,j_a)};h.hasSummary=function(){return cj(this,Sfd,5,j_a)};
h.getAuthor=function(){return X(this,Xm,6)};h.setAuthor=function(a){Zi(this,Xm,6,a)};h.hasAuthor=function(){return Ji(this,Xm,6)};h.getTimestamp=function(){return X(this,ej,7)};h.setTimestamp=function(a){return Zi(this,ej,7,a)};h.hasTimestamp=function(){return Ji(this,ej,7)};var j_a=[3,4,5];var gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gq,W);h=gq.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCategory=function(){return xi(this,2)};h.setCategory=function(a){return Ym(this,2,a)};h.getAttachmentId_asString=function(){return In(this,3)};h.setAttachmentId=function(a){return Xo(this,3,a)};h.getFeedbackType=function(){return Ii(this,4)};
h.setFeedbackType=function(a){return $m(this,4,a)};var Ufd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ufd,W);h=Ufd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getAttachmentId_asString=function(){return In(this,2)};h.setAttachmentId=function(a){return Xo(this,2,a)};h.getCategory=function(){return xi(this,3)};h.setCategory=function(a){return Ym(this,3,a)};var Vfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vfd,W);h=Vfd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCategory=function(){return xi(this,3)};h.setCategory=function(a){return Ym(this,3,a)};var Wfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wfd,W);h=Wfd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getAttachmentId_asString=function(){return In(this,2)};h.setAttachmentId=function(a){return Xo(this,2,a)};h.getCategory=function(){return xi(this,3)};h.setCategory=function(a){return Ym(this,3,a)};var Xfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xfd,W);Xfd.prototype.getQuery=function(){return xi(this,1)};Xfd.prototype.setQuery=function(a){return Ym(this,1,a)};Xfd.prototype.clearQuery=function(){Zw(this,1)};var Yfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yfd,W);Yfd.prototype.getQuery=function(){return xi(this,1)};Yfd.prototype.setQuery=function(a){return Ym(this,1,a)};Yfd.prototype.clearQuery=function(){Zw(this,1)};var Zfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zfd,W);Zfd.prototype.getName=function(){return xi(this,1)};Zfd.prototype.setName=function(a){return Ym(this,1,a)};var $fd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($fd,W);$fd.prototype.getFeedback=function(){return X(this,gq,1)};$fd.prototype.setFeedback=function(a){return Zi(this,gq,1,a)};$fd.prototype.hasFeedback=function(){return Ji(this,gq,1)};var DO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,DO.messageId)};Y(DO,W);DO.messageId="f.mt";var agd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(agd,W);h=agd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getAttachmentId_asString=function(){return In(this,2)};h.setAttachmentId=function(a){return Xo(this,2,a)};h.getCategory=function(){return xi(this,3)};h.setCategory=function(a){return Ym(this,3,a)};h.getContent=function(){return xi(this,4)};
h.setContent=function(a){return Ym(this,4,a)};h.getFormattedContent=function(){return X(this,yp,5)};h.getAuthor=function(){return X(this,Xm,6)};h.setAuthor=function(a){Zi(this,Xm,6,a)};h.hasAuthor=function(){return Ji(this,Xm,6)};h.getTimestamp=function(){return X(this,ej,7)};h.setTimestamp=function(a){return Zi(this,ej,7,a)};h.hasTimestamp=function(){return Ji(this,ej,7)};h.getContentVerdict=function(){return X(this,$p,8)};h.setContentVerdict=function(a){Zi(this,$p,8,a)};var bgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,bgd.messageId)};Y(bgd,W);bgd.messageId="b.GetAttachmentEnrichmentResponse";var cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cgd,W);h=cgd.prototype;h.getName=function(){return xi(this,1)};h.setName=function(a){return yj(this,1,a)};h.hasName=function(){return wm(this,1)};h.getNameOrUndefined=function(){return gx(this,1)};h.getDisplayName=function(){return xi(this,2)};h.setDisplayName=function(a){return yj(this,2,a)};h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return yj(this,3,a)};
h.hasDescription=function(){return wm(this,3)};var dgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dgd.messageId)};Y(dgd,W);dgd.prototype.getCategory=function(){return X(this,cgd,1,jb)};dgd.prototype.setCategory=function(a){return Zi(this,cgd,1,a,jb)};dgd.messageId="b.GetEnrichmentCategoryResponse";var egd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(egd,W);var EO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EO.messageId)};Y(EO,W);EO.prototype.getResponse=function(){return X(this,egd,1,jb)};EO.prototype.getMutableResponse=function(){return Ui(this,egd,1,void 0,jb)};EO.prototype.hasResponse=function(){return Ji(this,egd,1,jb)};EO.messageId="b.ListAttachmentEnrichmentsResponse";var fgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fgd,W);var FO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FO.messageId)};Y(FO,W);FO.prototype.getResponse=function(){return X(this,fgd,1,jb)};FO.prototype.getMutableResponse=function(){return Ui(this,fgd,1,void 0,jb)};FO.prototype.hasResponse=function(){return Ji(this,fgd,1,jb)};FO.messageId="b.ListIssueEnrichmentsResponse";var GO=function(){this.executor=p(oO)},ggd=function(a,b){var c=(new Zfd).setName(b);return a.executor.post({url:"action/enrichment_category/"+b+"/get",body:c,responseConstructor:dgd}).pipe(A(function(d){return d.getCategory()}),A(h_a))},hgd=function(a,b){var c="issueid:"+b;c=(new Yfd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:FO}).pipe(A(function(d){d=d.getResponse();return Ni(d,Tfd,1,Oi()).map(l_a)}))},igd=function(a,b,c){var d=
(new Vfd).setIssueId(b).setCategory(c);return a.executor.post({url:"action/issues/"+b+"/enrichments/"+c+"/delete",body:d,responseConstructor:DO}).pipe(A(function(){}))},jgd=function(a,b,c,d,e){var f={};e&&(f["X-Restricted-Content-Limit"]=String(e_a(e)));e=(new Wfd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:bgd}).pipe(A(function(g){return m_a(X(g,agd,1,jb))}))},kgd=
function(a,b){var c="issueid:"+b;c=(new Xfd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:EO}).pipe(A(function(d){d=d.getResponse();return Ni(d,agd,1,Oi()).map(m_a)}))},lgd=function(a,b,c,d){var e=(new Ufd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:DO}).pipe(A(function(){}))};
GO.prototype.submitEnrichmentFeedback=function(a){var b=(new $fd).setFeedback(o_a(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:DO}).pipe(A(function(){}))};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275prov=Fc({token:GO,factory:GO.\u0275fac,providedIn:"root"});var HO=function(){BO.call(this);this.api=p(GO);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Dm};Y(HO,BO);HO.prototype.fetchOne=function(a){return kgd(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275prov=Fc({token:HO,factory:HO.\u0275fac,providedIn:"root"});var hq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hq,W);h=hq.prototype;h.getSavedSearchId=function(){return En(this,1)};h.getSavedSearchId_asString=function(){return In(this,1)};h.setSavedSearchId=function(a){return Xo(this,1,a)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return Ym(this,3,a)};h.getQuery=function(){return xi(this,4)};
h.setQuery=function(a){return Ym(this,4,a)};h.clearQuery=function(){Zw(this,4)};h.getDefaultOrderBy=function(){return xi(this,5)};h.setDefaultOrderBy=function(a){return Ym(this,5,a)};h.getDisplayPreferences=function(){return X(this,Up,6)};h.setDisplayPreferences=function(a){return Zi(this,Up,6,a)};h.getOwnersList=function(){return Ni(this,Xm,7,Oi())};h.setOwnersList=function(a){return $i(this,7,a)};var jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jq,W);h=jq.prototype;h.getHotlistId=function(){return En(this,1)};h.setHotlistId=function(a){return Xo(this,1,a)};h.getHotlist=function(){return X(this,Tp,2)};h.setHotlist=function(a){return Zi(this,Tp,2,a)};h.hasHotlist=function(){return Ji(this,Tp,2)};var lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lq,W);h=lq.prototype;h.getSavedSearchId=function(){return En(this,1)};h.getSavedSearchId_asString=function(){return In(this,1)};h.setSavedSearchId=function(a){return Xo(this,1,a)};h.getSavedSearch=function(){return X(this,hq,2)};h.setSavedSearch=function(a){return Zi(this,hq,2,a)};h.hasSavedSearch=function(){return Ji(this,hq,2)};var mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mq,W);mq.prototype.getBookmarkGroupId_asString=function(){return In(this,1)};mq.prototype.setBookmarkGroupId=function(a){return Xo(this,1,a)};mq.prototype.getBookmarkGroup=function(){return X(this,nq,2)};mq.prototype.setBookmarkGroup=function(a){return Zi(this,nq,2,a)};var kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kq,W);h=kq.prototype;
h.getHotlist=function(){return jm(this,jq,1,iq)};h.setHotlist=function(a){return mp(this,1,iq,a)};h.hasHotlist=function(){return cj(this,jq,1,iq)};h.getSavedSearch=function(){return jm(this,lq,2,iq)};h.setSavedSearch=function(a){return mp(this,2,iq,a)};h.hasSavedSearch=function(){return cj(this,lq,2,iq)};h.getBookmarkGroup=function(){return jm(this,mq,3,iq)};h.setBookmarkGroup=function(a){return mp(this,3,iq,a)};var nq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};
Y(nq,W);h=nq.prototype;h.getBookmarkGroupId_asString=function(){return In(this,1)};h.setBookmarkGroupId=function(a){return Xo(this,1,a)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return Ym(this,3,a)};h.getArchived=function(){return Ri(this,4)};h.setArchived=function(a){return op(this,4,a)};h.addItems=function(a,b){return bq(this,5,kq,a,b)};h.setItems=function(a){Yw(this,5,kq,a)};
h.removeItems=function(a){return bx(this,5,kq,a)};h.getOwnersList=function(){return Ni(this,Xm,6,Oi())};h.setOwnersList=function(a){return $i(this,6,a)};var iq=[1,2,3];var IO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,IO.messageId)};Y(IO,W);IO.prototype.getIt=function(){return X(this,nq,10,jb)};IO.prototype.setIt=function(a){return Zi(this,nq,10,a,jb)};IO.messageId="b.BookmarkGroup";var mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mgd.messageId)};Y(mgd,W);mgd.messageId="b.BookmarkGroupListResponse";var JO=function(){this.executor=p(pO)};JO.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:IO}).then(x_a)};JO.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:mgd}).then(y_a)};JO.prototype.create=function(a){a=(new IO).setIt((new nq).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:IO}).then(x_a)};
JO.prototype.update=function(a){var b=(new IO).setIt(t_a(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:IO}).then(x_a)};JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275prov=Fc({token:JO,factory:JO.\u0275fac,providedIn:"root"});var KO=function(){BO.call(this,{freshUntil:3E5});this.bookmarkGroupApi=p(JO);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Y(KO,BO);KO.prototype.fetchOne=function(a){var b=this;return pe(function(){return b.bookmarkGroupApi.get(a)})};KO.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)}))};KO.\u0275fac=function(a){return new (a||KO)};KO.\u0275prov=Fc({token:KO,factory:KO.\u0275fac,providedIn:"root"});var ngd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ngd.messageId)};Y(ngd,W);h=ngd.prototype;h.getAuthor=function(){return xi(this,1,void 0,jb)};h.setAuthor=function(a){yj(this,1,a,jb)};h.hasAuthor=function(){return wm(this,1,jb)};h.getDescription=function(){return xi(this,2,void 0,jb)};h.setDescription=function(a){return yj(this,2,a,jb)};h.hasDescription=function(){return wm(this,2,jb)};h.getPending=function(){return Ri(this,3,void 0,jb)};
h.getTimestamp=function(){return En(this,4,void 0,jb)};h.setTimestamp=function(a){return Kn(this,4,a,void 0,jb)};h.hasTimestamp=function(){return Dn(this,4,jb)};ngd.messageId="b.ChangelistDetailsResponse";var ogd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ogd,W);h=ogd.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return yc(this,1,a,Hb)};h.addIssueIds=function(a){return Ac(this,1,Hb,a,void 0,Pb)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Pb,void 0,1)};var pgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pgd.messageId)};Y(pgd,W);h=pgd.prototype;h.getQuery=function(){return X(this,ogd,1,jb)};h.setQuery=function(a){return Zi(this,ogd,1,a,jb)};h.clearQuery=function(){Zw(this,1,jb)};h.hasQuery=function(){return Ji(this,ogd,1,jb)};h.getNextPageToken=function(){return xi(this,2,void 0,jb)};pgd.messageId="b.ListChangelistsRequest";var A_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A_a,W);h=A_a.prototype;h.getAuthor=function(){return xi(this,1)};h.setAuthor=function(a){yj(this,1,a)};h.hasAuthor=function(){return wm(this,1)};h.getChangelistNumber=function(){return Um(this,2)};h.getPending=function(){return Ri(this,3)};h.getTimestamp=function(){return X(this,ej,4)};h.setTimestamp=function(a){return Zi(this,ej,4,a)};h.hasTimestamp=function(){return Ji(this,ej,4)};
h.getIssueIdsList=function(){return ex(this,5,1)};h.getIssueIdsList_asString=function(){return jn(this,5)};h.setIssueIdsList=function(a){return yc(this,5,a,Hb)};h.addIssueIds=function(a){return Ac(this,5,Hb,a,void 0,Pb)};h.setIssueIds=function(a){Ac(this,5,Hb,void 0,a,Pb,void 0,1)};var qgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qgd.messageId)};Y(qgd,W);qgd.prototype.getNextPageToken=function(){return xi(this,2,void 0,jb)};qgd.messageId="b.ListChangelistsResponse";var rgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rgd.messageId)};Y(rgd,W);rgd.messageId="b.PendingChangelistsResponse";var LO=function(){this.executor=p(oO)};LO.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:rgd}).pipe(A(z_a))};LO.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:ngd}).pipe(A(D_a))};
var sgd=function(a,b){var c=new pgd,d=c.setQuery;b=(new ogd).setIssueIdsList(b);b=Vn(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:qgd}).pipe(A(C_a))};LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275prov=Fc({token:LO,factory:LO.\u0275fac,providedIn:"root"});var MO=function(){this.changelistResources=p(LO)};MO.prototype.getPendingChangelistsForIssue=function(a){return ie(this.changelistResources.getPendingChangelistsForIssue(a))};
MO.prototype.getChangelistDetails=function(a){return ie(this.changelistResources.getChangelistDetails(a))};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275prov=Fc({token:MO,factory:MO.\u0275fac,providedIn:"root"});var NO=function(){AO.call(this);this.api=p(LO);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Y(NO,AO);NO.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?ee({results:[]}):sgd(this.api,a).pipe(A(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Pd");};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275prov=Fc({token:NO,factory:NO.\u0275fac,providedIn:"root"});var OO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,OO.messageId)};Y(OO,W);OO.prototype.getIt=function(){return X(this,Uo,2,jb)};OO.prototype.setIt=function(a){return Zi(this,Uo,2,a,jb)};OO.messageId="b.AccessLimit";var PO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,PO.messageId)};Y(PO,W);PO.prototype.getIt=function(){return X(this,$ed,13,jb)};PO.prototype.setIt=function(a){return Zi(this,$ed,13,a,jb)};PO.messageId="b.AccessPolicy";var tgd={ISSUE_ID:"issueId",ATTACHMENT_ID:"attachmentId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId",TRIAGE_ID:"triageId",SETTINGS_TAB:"settingsTab",PLAYBOOK_ID:"playbookId"},As={home:{routeDeclarationPath:"home",makeHref:function(){return"/home"}},viewDashboard:{routeDeclarationPath:"dashboard/:groupId",makeHref:function(a){return"/dashboard/"+a}},triageSettings:{routeDeclarationPath:"triage",makeHref:function(){return"/triage"}},
viewTriageDashboard:{routeDeclarationPath:"teams/:teamId/triage/:triageId/dashboard",makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/dashboard"}},viewIssueThemes:{routeDeclarationPath:"teams/:teamId/triage/:triageId/issue-themes",makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/issue-themes"}},viewTriage:{routeDeclarationPath:"teams/:teamId/triage/:triageId/:phase/:subphase",makeHref:function(a,b,c,d){return"/teams/"+a+"/triage/"+b+"/"+(c===void 0?"new":c)+"/"+(d===void 0?"all":d)}},
viewPlaybook:{routeDeclarationPath:"playbooks/:playbookId",makeHref:function(a){return"/playbooks/"+a}},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?"+K_a(a)}},
listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+K_a(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?"+
K_a({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+"?"+K_a({mimeType:c})}}};var ugd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ugd.messageId)};Y(ugd,W);ugd.messageId="b.CheckPermissionResponse";var QO=function(){this.executor=p(oO)};h=QO.prototype;h.get=function(a,b){a=fq(rq(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:PO}).pipe(A(G_a))};
h.update=function(a,b,c){a=fq(rq(a,b));var d;b=new PO;var e=b.setIt;c=Object.assign({},c,{implicitAccess:(d=c.implicitAccess)!=null?d:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null});var f,g,k,m,r,w;d=new $ed;var x=((f=c.admins)!=null?f:[]).map(So);f=$i(d,2,x).setAppendersList(((g=c.appenders)!=null?g:[]).map(So));g=((k=c.editors)!=null?k:[]).map(So);k=$i(f,4,g).setReadersList(((m=c.readers)!=null?m:[]).map(So));m=((r=c.restrictedReaders)!=null?r:[]).map(So);
r=$i(k,11,m);m=((w=c.restrictedPlusReaders)!=null?w:[]).map(So);w=$i(r,12,m);if(c.implicitAccess){r=w.setImplicitAccess;a:switch(c.implicitAccess){case "IMPLICIT_ACCESS_UNSPECIFIED":c=0;break a;case "ALLOW":c=1;break a;case "DENY":c=2;break a;default:throw Error("jd");}r.call(w,c)}b=e.call(b,w);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:PO}).pipe(A(G_a))};
h.checkPermission=function(a,b,c,d){a=fq(a.join(","));b=fq(b);c=fq(rq(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:ugd}).pipe(A(F_a))};h.setAccessLimit=function(a,b,c){a=fq(rq(a,b));c=(new OO).setIt(pXa(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:OO}).pipe(A(E_a))};h.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(A(function(b){return b.implicitAccess==="ALLOW"}))};
QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275prov=Fc({token:QO,factory:QO.\u0275fac,providedIn:"root"});var RO=function(){this.observableApi=p(QO)};h=RO.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))};RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275prov=Fc({token:RO,factory:RO.\u0275fac,providedIn:"root"});var SO=function(){BO.call(this);this.accessPolicyApi=p(QO);this.recordType="componentAccessPolicy";this.isEqual=Dm;this.idForRecord=function(a){return a.id}};Y(SO,BO);SO.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)}))};SO.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)}))};
SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275prov=Fc({token:SO,factory:SO.\u0275fac,providedIn:"root"});var TO=function(){};TO.prototype.adapt=function(a){var b,c=new vgd(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};TO.\u0275fac=function(a){return new (a||TO)};TO.\u0275prov=Fc({token:TO,factory:TO.\u0275fac,providedIn:"root"});
var vgd=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(nla(this.inputSubject.pipe(hf(this.bufferTimeMs,Lr))));this.removeDuplicates=A(function(f){return[].concat(q(new Set(f)))});this.limitInputSize=A(function(f){for(var g=l(f.slice(e.maxBatchSize)),k=g.next();!k.done;k=g.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=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})}}),Nla());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
vgd.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 e0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e0a,W);e0a.prototype.getFieldId=function(){return X(this,fp,1)};e0a.prototype.setFieldId=function(a){return Zi(this,fp,1,a)};var sq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sq,W);sq.prototype.getFieldId=function(){return X(this,fp,1)};sq.prototype.setFieldId=function(a){return Zi(this,fp,1,a)};sq.prototype.getState=function(){return Ii(this,2)};sq.prototype.setState=function(a){return $m(this,2,a)};var N_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N_a,W);var S_a=function(a,b){return rx(a,1,b)};N_a.prototype.getIssueTypes=function(){return jx(this,1)};var wgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wgd,W);var tq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tq,W);h=tq.prototype;h.getName=function(){return xi(this,1)};h.setName=function(a){return Ym(this,1,a)};h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};var Q_a=function(a,b){return $i(a,3,b)},T_a=function(a){var b=new wgd;mp(a,4,O_a,b)},R_a=function(a,b){mp(a,5,O_a,b)},O_a=[4,5];var wq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wq,W);h=wq.prototype;h.getInherit=function(){return Ri(this,1)};h.setInherit=function(a){return op(this,1,a)};h.getId=function(){return En(this,2)};h.getId_asLegacyNumberOrString=function(){return Rp(this,2)};h.getId_asString=function(){return In(this,2)};h.setId=function(a){return Xo(this,2,a)};var vq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vq,W);h=vq.prototype;h.getInherit=function(){return Ri(this,1)};h.setInherit=function(a){return op(this,1,a)};h.getId=function(){return En(this,2)};h.getId_asLegacyNumberOrString=function(){return Rp(this,2)};h.getId_asString=function(){return In(this,2)};h.setId=function(a){return Xo(this,2,a)};h.getSourceTeamId_asString=function(){return In(this,4)};h.setSourceTeamId=function(a){Xo(this,4,a)};
h.getComment=function(){return xi(this,3)};h.setComment=function(a){return Ym(this,3,a)};var uq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uq,W);h=uq.prototype;h.getVersion=function(){return Um(this,1)};h.setVersion=function(a){return pn(this,1,a)};h.getSlo=function(){return X(this,vq,2)};h.setSlo=function(a){return Zi(this,vq,2,a)};h.hasSlo=function(){return Ji(this,vq,2)};h.getEscalationOwner=function(){return X(this,Xm,6)};h.setEscalationOwner=function(a){Zi(this,Xm,6,a)};h.getDefaultEscalationOwner=function(){return X(this,Xm,7)};
h.setInheritEscalationOwner=function(a){op(this,8,a)};var W_a=[9,10];var Y_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y_a,W);h=Y_a.prototype;h.getUser=function(){return X(this,Xm,1)};h.setUser=function(a){return Zi(this,Xm,1,a)};h.hasUser=function(){return Ji(this,Xm,1)};h.getIsLead=function(){return Ri(this,2)};h.setIsLead=function(a){return op(this,2,a)};var xgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xgd,W);h=xgd.prototype;h.getId=function(){return En(this,1)};h.getId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getId_asString=function(){return In(this,1)};h.setId=function(a){return Xo(this,1,a)};h.getPathIdsList_asString=function(){return jn(this,2)};h.setPathIdsList=function(a){return Er(this,2,a)};h.getName=function(){return xi(this,3)};h.setName=function(a){return Ym(this,3,a)};
h.getPathNamesList=function(a){return Vm(this,4,Oi(a))};h.setPathNamesList=function(a){return Zm(this,4,a)};h.getMembersList=function(){return Ni(this,Y_a,6,Oi())};h.setMembersList=function(a){return $i(this,6,a)};h.getDescription=function(){return xi(this,8)};h.setDescription=function(a){return Ym(this,8,a)};var c0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c0a,W);h=c0a.prototype;h.getTeamId=function(){return En(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getTeamId_asString=function(){return In(this,1)};h.setTeamId=function(a){return Xo(this,1,a)};h.getScore=function(){return rm(this,2)};h.setScore=function(a){return Fp(this,2,a)};var xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xq,W);xq.prototype.getComponentPathNames=function(a){return ix(this,2,a)};xq.prototype.getFieldConfigsV2List=function(){return Ni(this,tq,6,Oi())};xq.prototype.setFieldConfigsV2List=function(a){return $i(this,6,a)};var Aq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aq,W);h=Aq.prototype;h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};h.getName=function(){return xi(this,4)};h.setName=function(a){return Ym(this,4,a)};h.getDescription=function(){return xi(this,5)};h.setDescription=function(a){return Ym(this,5,a)};h.getIsArchived=function(){return Ri(this,8)};
h.setIsArchived=function(a){return op(this,8,a)};h.getAccessLimit=function(){return X(this,Uo,9)};h.setAccessLimit=function(a){return Zi(this,Uo,9,a)};h.setCommentEditState=function(a){return $m(this,10,a)};h.getSlo=function(){return X(this,Cp,13)};h.setSlo=function(a){return Zi(this,Cp,13,a)};h.hasSlo=function(){return Ji(this,Cp,13)};h.getTeam=function(){return X(this,wq,16)};h.setTeam=function(a){Zi(this,wq,16,a)};h.hasTeam=function(){return Ji(this,wq,16)};
h.getEffortSpec=function(){return X(this,pp,18)};h.getTeamSuggestionsList=function(){return Ni(this,c0a,19,Oi())};h.setTeamSuggestionsList=function(a){$i(this,19,a)};h.getTrackerId=function(){return En(this,20)};h.getTrackerId_asString=function(){return In(this,20)};h.setTrackerId=function(a){Xo(this,20,a)};var s0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s0a,W);h=s0a.prototype;h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};h.getTemplateId=function(){return En(this,3)};h.setTemplateId=function(a){return Xo(this,3,a)};h.getName=function(){return xi(this,4)};h.setName=function(a){return Ym(this,4,a)};h.getDescription=function(){return xi(this,5)};
h.setDescription=function(a){return Ym(this,5,a)};h.getIssueState=function(){return X(this,Op,6)};h.setIssueState=function(a){return Zi(this,Op,6,a)};h.getComment=function(){return xi(this,7)};h.setComment=function(a){return Ym(this,7,a)};h.getFormattingMode=function(){return Ii(this,8)};h.setFormattingMode=function(a){return $m(this,8,a)};var UO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UO,W);UO.prototype.getComponentId=function(){return En(this,2)};UO.prototype.getComponentId_asString=function(){return In(this,2)};UO.prototype.setComponentId=function(a){return Xo(this,2,a)};var Bq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bq.messageId)};Y(Bq,W);Bq.prototype.getIt=function(){return X(this,Aq,28,jb)};Bq.prototype.setIt=function(a){return Zi(this,Aq,28,a,jb)};Bq.messageId="b.Component";var ygd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ygd.messageId)};Y(ygd,W);ygd.prototype.getIt=function(){return X(this,UO,1,jb)};ygd.prototype.setIt=function(a){return Zi(this,UO,1,a,jb)};ygd.messageId="b.ListPopularRoutingComponentsRequest";var Cq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cq,W);Cq.prototype.getIt=function(){return X(this,s0a,7)};Cq.prototype.setIt=function(a){return Zi(this,s0a,7,a)};var zgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zgd.messageId)};Y(zgd,W);zgd.messageId="b.UpdateComponentSloRequest";var Agd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Agd.messageId)};Y(Agd,W);Agd.messageId="b.UpdateComponentTeamRequest";var Bgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bgd.messageId)};Y(Bgd,W);Bgd.prototype.setComponent=function(a){return Zi(this,Bq,1,a,jb)};Bgd.messageId="b.CreateComponentResponse";var Cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Cgd.messageId)};Y(Cgd,W);Cgd.prototype.setComponent=function(a,b){return Yw(this,1,Bq,a,b,jb)};Cgd.messageId="b.ListComponentsResponse";var Dgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dgd,W);Dgd.prototype.getComponentsList=function(){return Ni(this,Aq,1,Oi())};var Egd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Egd.messageId)};Y(Egd,W);Egd.prototype.getIt=function(){return X(this,Dgd,1,jb)};Egd.prototype.setIt=function(a){return Zi(this,Dgd,1,a,jb)};Egd.messageId="b.ListPopularRoutingComponentsResponse";var x0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x0a,W);x0a.prototype.getComponentPath=function(){return xi(this,1)};var Fgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fgd.messageId)};Y(Fgd,W);Fgd.messageId="b.SubcomponentsResponse";var VO=function(){this.executor=p(oO);this.activeSession=p(Qu)};h=VO.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:Fgd}).pipe(A(y0a))};
h.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new ygd).setIt((new UO).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:Egd}).pipe(A(v0a))};h.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:Bq}).pipe(A(zq))};
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:Cgd}).pipe(A(u0a))};
h.create=function(a){a=n0a(a);return this.executor.post({url:"action/components",body:a,responseConstructor:Bgd}).pipe(A(function(b){return zq(X(b,Bq,1,jb))}))};
h.update=function(a){var b=a.componentId,c=new Bq,d=c.setIt,e=(new Aq).setComponentId(a.componentId);e=Xo(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,g=new xq;f.componentPathId&&Er(g,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);Zm(g,2,k)}f.allCustomField&&(f=f.allCustomField.map(bYa),$i(g,5,f));Zi(e,xq,7,g)}a.accessLimit&&e.setAccessLimit(pXa(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);Xo(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(zYa(a.slo));a.retentionSettings&&(g=GXa(a.retentionSettings),Zi(e,$o,15,g));a.fieldOrdering&&$m(e,17,tdd[a.fieldOrdering]);a.effortSpec&&(g=jYa(a.effortSpec),Zi(e,pp,18,g));a.team&&e.setTeam(a0a(a.team));var m;e.setTeamSuggestionsList(((m=a.teamSuggestions)!=null?m:[]).map(d0a));a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&$m(e,21,g0a(a.spamProtection));a=d.call(c,
e);return this.executor.post({url:"action/components/"+b,body:a,responseConstructor:Bq}).pipe(A(zq))};h.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:b}},responseConstructor:Bq}).pipe(A(zq))};h.updateSlo=function(a,b){var c=new zgd;b=zYa(b);c=Zi(c,Cp,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:Bq}).pipe(A(zq))};
h.updateTeam=function(a,b){var c=new Agd;b=a0a(Object.assign({},b));c=Zi(c,wq,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:Bq}).pipe(A(zq))};VO.\u0275fac=function(a){return new (a||VO)};VO.\u0275prov=Fc({token:VO,factory:VO.\u0275fac,providedIn:"root"});var WO=function(){this.observableApi=p(VO)};h=WO.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))};WO.\u0275fac=function(a){return new (a||WO)};WO.\u0275prov=Fc({token:WO,factory:WO.\u0275fac,providedIn:"root"});var YO=function(){BO.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=p(XO);this.recordType="component";this.idForRecord=function(a){return a.componentId}};Y(YO,BO);YO.prototype.fetchOne=function(a){return a==="0"?ee(void 0):this.batchedComponentApi.get(a).pipe(jf(function(){return ee(void 0)}))};YO.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(hn)}))};
YO.\u0275fac=function(a){return new (a||YO)};YO.\u0275prov=Fc({token:YO,factory:YO.\u0275fac,providedIn:"root"});var XO=function(){var a=this;this.observableComponentApi=p(VO);this.batchApiAdapter=p(TO);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
XO.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]}))}))};XO.prototype.splitBatch=function(a,b){return b.get(a)};XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275prov=Fc({token:XO,factory:XO.\u0275fac,providedIn:"root"});var Ggd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ggd.messageId)};Y(Ggd,W);Ggd.messageId="b.ListTemplatesResponse";var Hgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Hgd.messageId)};Y(Hgd,W);Hgd.messageId="b.TemplateResponse";var ZO=function(){this.executor=p(oO)};h=ZO.prototype;h.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:Hgd}).pipe(A(z0a))};h.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Ggd}).pipe(A(A0a))};h.create=function(a,b){b=t0a(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:Hgd,body:b}).pipe(A(z0a))};
h.update=function(a,b,c){c=t0a(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:Hgd,body:c}).pipe(A(z0a))};h.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};ZO.\u0275fac=function(a){return new (a||ZO)};ZO.\u0275prov=Fc({token:ZO,factory:ZO.\u0275fac,providedIn:"root"});var $O=function(){this.observableApi=p(ZO)};h=$O.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))};$O.\u0275fac=function(a){return new (a||$O)};$O.\u0275prov=Fc({token:$O,factory:$O.\u0275fac,providedIn:"root"});var aP=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 Wj(void 0);this.openIssueDetailsPageSidebar=new sf;this.closeIssueDetailsPageSidebar=new sf;this.didShowIssueHovercard=new sf};
aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275prov=Fc({token:aP,factory:aP.\u0275fac,providedIn:"root"});var bP=function(){qF.apply(this,arguments)};Y(bP,qF);da.Object.defineProperties(bP.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});bP.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bP)))(b||bP)}}();bP.\u0275dir=df({type:bP,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},standalone:!1,features:[Gf]});var Igd=function(){};
Igd.\u0275fac=function(a){return new (a||Igd)};Igd.\u0275mod=cf({type:Igd});Igd.\u0275inj=Gc({imports:[uF]});var cP=function(){};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275mod=cf({type:cP});cP.\u0275inj=Gc({imports:[ty,$y,uF,Igd]});var dP=function(){BO.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=p($O);this.appEvents=p(aP);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(we(hn),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(dP,BO);dP.prototype.fetchOne=function(a){var b=this;return pe(function(){return b.templatesApi.query(a).then(function(c){return{componentId:a,templates:c}})})};dP.\u0275fac=function(a){return new (a||dP)};dP.\u0275prov=Fc({token:dP,factory:dP.\u0275fac,providedIn:"root"});var Jgd=function(a,b){this.childIterator_=a[ra.Symbol.iterator]();this.mapFn_=b};Jgd.prototype[Symbol.iterator]=function(){return this};Jgd.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 Kgd=function(a,b){return new Jgd(a,b)};var Lgd=function(){};Lgd.prototype.next=function(){return Mgd};var Mgd={done:!0,value:void 0};Lgd.prototype.__iterator__=function(){return this};var Ogd=function(a){if(a instanceof eP||a instanceof Ngd||a instanceof fP)return a;if(typeof a.next=="function")return new eP(function(){return a});if(typeof a[Symbol.iterator]=="function")return new eP(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new eP(function(){return a.__iterator__()});throw Error("Sd");},eP=function(a){this.func_=a};eP.prototype.__iterator__=function(){return new Ngd(this.func_())};eP.prototype[Symbol.iterator]=function(){return new fP(this.func_())};
eP.prototype.toEs6=function(){return new fP(this.func_())};var Ngd=function(a){this.iter_=a};Y(Ngd,Lgd);Ngd.prototype.next=function(){return this.iter_.next()};Ngd.prototype[Symbol.iterator]=function(){return new fP(this.iter_)};Ngd.prototype.toEs6=function(){return new fP(this.iter_)};var fP=function(a){eP.call(this,function(){return a});this.iter_=a};Y(fP,eP);fP.prototype.next=function(){return this.iter_.next()};h=Dq.prototype;h.getCount=function(){return this.size};h.getValues=function(){Pgd(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};h.getKeys=function(){Pgd(this);return this.keys_.concat()};h.containsKey=function(a){return this.has(a)};h.has=function(a){return Qgd(this.map_,a)};h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||Rgd;Pgd(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
var Rgd=function(a,b){return a===b};Dq.prototype.isEmpty=function(){return this.size==0};Dq.prototype.clear=function(){this.map_={};this.version_=this.size=this.keys_.length=0};Dq.prototype.remove=function(a){return this.delete(a)};Dq.prototype.delete=function(a){return Qgd(this.map_,a)?(delete this.map_[a],--this.size,this.version_++,this.keys_.length>2*this.size&&Pgd(this),!0):!1};
var Pgd=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];Qgd(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];Qgd(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};h=Dq.prototype;h.get=function(a,b){return Qgd(this.map_,a)?this.map_[a]:b};h.set=function(a,b){Qgd(this.map_,a)||(this.size+=1,this.keys_.push(a),this.version_++);this.map_[a]=b};
h.addAll=function(a){if(a instanceof Dq)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 Dq(this)};h.transpose=function(){for(var a=new Dq,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};h.keys=function(){return Ogd(this.__iterator__(!0)).toEs6()};h.values=function(){return Ogd(this.__iterator__(!1)).toEs6()};
h.entries=function(){var a=this;return Kgd(this.keys(),function(b){return[b,a.get(b)]})};h.__iterator__=function(a){Pgd(this);var b=0,c=this.version_,d=this,e=new Lgd;e.next=function(){if(c!=d.version_)throw Error("Td");if(b>=d.keys_.length)return Mgd;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};var Qgd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Tgd=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),Sgd(a,b));return b};h=C0a.prototype;h.get=function(a,b){return(a=Tgd(this,a))?a.value:b};h.set=function(a,b){var c=Tgd(this,a);c?c.value=b:(c=new B0a(a,b),this.map_.set(a,c),Sgd(this,c))};h.peek=function(){return this.head_.next.value};h.shift=function(){return Ugd(this,this.head_.next)};h.pop=function(){return Ugd(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(){Vgd(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 Sgd=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&&Vgd(a,a.maxCount_)},Vgd=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)}},Ugd=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},B0a=function(a,b){this.key=a;this.value=b};
B0a.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var gP=function(){this.caches=new Map};gP.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Ud`"+a);b=new Wgd(b==null?void 0:b.capacity);this.caches.set(a,b);return b};gP.prototype.get=function(a){return this.caches.get(a)};gP.\u0275fac=function(a){return new (a||gP)};gP.\u0275prov=Fc({token:gP,factory:gP.\u0275fac,providedIn:"root"});var Wgd=function(a){this.lruCache=new C0a(a)};Wgd.prototype.get=function(a){return this.lruCache.get(a)};
Wgd.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};Wgd.prototype.remove=function(a){this.lruCache.remove(a)};Wgd.prototype.removeAll=function(){this.lruCache.clear()};var Eq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Eq.messageId)};Y(Eq,W);Eq.prototype.getIt=function(){return X(this,Tp,18,jb)};Eq.prototype.setIt=function(a){return Zi(this,Tp,18,a,jb)};Eq.messageId="b.Hotlist";var Xgd=RegExp("action/issues/([0-9]+)/"),Ygd=new ed("ETAG_URL_TRANSFORMERS"),Zgd=["POST","PUT","DELETE"],iP=function(){this.etagStore=p(hP)};iP.prototype.intercept=function(a,b){if(Zgd.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}Xgd.exec(a.url);return $gd(this,a,b)};var $gd=function(a,b,c){return c.handle(b).pipe(Cf(function(d){d instanceof Ly&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
iP.\u0275fac=function(a){return new (a||iP)};iP.\u0275prov=Fc({token:iP,factory:iP.\u0275fac,providedIn:"root"});var hP=function(){this.transformers=p(Ygd,{optional:!0});this.etagStore={}};hP.prototype.setEtag=function(a,b){b!=null&&(a=ahd(this,a.url),this.etagStore[a]=b)};hP.prototype.getEtag=function(a){a=ahd(this,a.url);return this.etagStore[a]};var ahd=function(a,b){var c;a=l((c=a.transformers)!=null?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};
hP.\u0275fac=function(a){return new (a||hP)};hP.\u0275prov=Fc({token:hP,factory:hP.\u0275fac,providedIn:"root"});var bhd={provide:CDc,useExisting:iP,multi:!0};var Vp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vp,W);h=Vp.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getPosition=function(){return Um(this,2)};h.setPosition=function(a){return pn(this,2,a)};h.getIssue=function(){return X(this,Wp,3)};h.setIssue=function(a){return Zi(this,Wp,3,a)};var chd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(chd,W);h=chd.prototype;h.getHotlistId=function(){return En(this,1)};h.setHotlistId=function(a){return Xo(this,1,a)};h.setOrderBy=function(a){return Ym(this,2,a)};h.setPageSize=function(a){return pn(this,3,a)};h.setPageToken=function(a){return Ym(this,4,a)};h.getFilter=function(){return xi(this,5)};h.setFilter=function(a){return Ym(this,5,a)};h.setView=function(a){return $m(this,6,a)};
h.setIssueDescriptionView=function(a){return $m(this,7,a)};h.getQuery=function(){return xi(this,8)};h.setQuery=function(a){return Ym(this,8,a)};h.clearQuery=function(){Zw(this,8)};var dhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dhd,W);h=dhd.prototype;h.getHotlistId=function(){return En(this,1)};h.setHotlistId=function(a){return Xo(this,1,a)};h.getIssueId=function(){return En(this,2)};h.getIssueId_asString=function(){return In(this,2)};h.setIssueId=function(a){return Xo(this,2,a)};var ehd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ehd.messageId)};Y(ehd,W);ehd.prototype.getIt=function(){return X(this,chd,1,jb)};ehd.prototype.setIt=function(a){return Zi(this,chd,1,a,jb)};ehd.messageId="b.ListHotlistEntriesRequest";var jP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jP,W);jP.prototype.getNextPageToken=function(){return xi(this,2)};jP.prototype.getTotalSize=function(){return Um(this,3)};jP.prototype.getTotalSizeAccurate=function(){return Ri(this,4)};jP.prototype.getMaySkipResults=function(){return Ri(this,5)};var fhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,fhd.messageId)};Y(fhd,W);fhd.prototype.getIt=function(){return X(this,jP,1,jb)};fhd.prototype.setIt=function(a){return Zi(this,jP,1,a,jb)};fhd.messageId="b.ListHotlistEntriesResponse";var kP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kP.messageId)};Y(kP,W);kP.prototype.addHotlists=function(a){bq(this,1,Eq,a,void 0,jb)};kP.prototype.removeHotlists=function(a){return bx(this,1,Eq,a,jb)};kP.messageId="b.ListHotlistsResponse";var mP=function(){this.hotlistApi=p(lP);var a=p(gP);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};h=mP.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)};mP.\u0275fac=function(a){return new (a||mP)};mP.\u0275prov=Fc({token:mP,factory:mP.\u0275fac,providedIn:"root"});var nP=function(){this.executor=p(oO);this.etagStore=p(hP);this.bufferTimeMs=50};
nP.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:Eq}).pipe(A(Fq),A(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:kP,options:{params:{id:a}}}).pipe(A(function(b){var c=new Map;b=l(Ni(b,Eq,1,Oi(),jb).map(Fq));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),
d);return c}))};nP.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=ahd(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};nP.\u0275fac=function(a){return new (a||nP)};nP.\u0275prov=Fc({token:nP,factory:nP.\u0275fac,providedIn:"root"});var oP=function(){this.executor=p(oO);this.batchApiConfig=p(nP);this.batchApiAdapter=p(TO);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};h=oP.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:Eq}).pipe(A(Fq))}))};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(hn)}))};
h.repositionHotlistIssue=function(a,b,c){var d=(new dhd).setHotlistId(Number(a)).setIssueId(b);b=(new Vp).setIssueId(Number(b)).setPosition(c);d=Zi(d,Vp,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};h.createHotlist=function(a,b){a=(new Tp).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new Eq).setIt(a),responseConstructor:Eq}).pipe(A(Fq))};
h.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:kP,options:{params:{q:a}}}).pipe(A(function(b){var c;return((c=Ni(b,Eq,1,Oi(),jb))!=null?c:[]).map(Fq)}))};h.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:D0a(b),responseConstructor:Eq}).pipe(A(Fq))};
h.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:D0a(b),options:{headers:c},responseConstructor:Eq}).pipe(A(Fq))};
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 chd).setHotlistId(a).setOrderBy(iXa(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 ehd).setIt(b),responseConstructor:fhd}).pipe(A(function(g){return vZa(g.getIt())}))};
oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275prov=Fc({token:oP,factory:oP.\u0275fac,providedIn:"root"});var lP=function(){this.observableApi=p(oP)};h=lP.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))};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275prov=Fc({token:lP,factory:lP.\u0275fac,providedIn:"root"});var E0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E0a,W);E0a.prototype.getIt=function(){return X(this,kq,6)};E0a.prototype.setIt=function(a){return Zi(this,kq,6,a)};var ghd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ghd.messageId)};Y(ghd,W);ghd.messageId="b.Favorite";var hhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hhd.messageId)};Y(hhd,W);hhd.prototype.getComponentsList=function(){return Ni(this,Bq,1,Oi(),jb)};hhd.messageId="b.UserRecentComponentResponse";var pP=function(){this.executor=p(oO)};h=pP.prototype;h.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:IO}).pipe(A(function(a){return w_a(a.getIt())}))};h.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:hhd}).pipe(A(o0a))};h.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:ghd}).pipe(A(F0a))};
h.addUserBookmark=function(a){a=(new E0a).setIt(v_a(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:ghd}).pipe(A(F0a))};h.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:v_a(a),responseConstructor:null})};
var ihd=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})};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275prov=Fc({token:pP,factory:pP.\u0275fac,providedIn:"root"});var qP=function(){this.observableApi=p(pP)};h=qP.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))};qP.\u0275fac=function(a){return new (a||qP)};
qP.\u0275prov=Fc({token:qP,factory:qP.\u0275fac,providedIn:"root"});var rP=function(){BO.call(this,{freshUntil:3E5});this.observableHotlistResources=p(oP);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Y(rP,BO);rP.prototype.fetchOne=function(a){return a?this.observableHotlistResources.get(a).pipe(jf(function(b){return b.status===403?ee(void 0):fe(function(){return b})})):ee(void 0)};rP.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a.filter(Boolean)).pipe(A(function(b){return(b!=null?b:[]).filter(hn)}))};
rP.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};rP.\u0275fac=function(a){return new (a||rP)};rP.\u0275prov=Fc({token:rP,factory:rP.\u0275fac,providedIn:"root"});var Gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gq,W);Gq.prototype.getIt=function(){return X(this,hq,12)};Gq.prototype.setIt=function(a){return Zi(this,hq,12,a)};var jhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jhd.messageId)};Y(jhd,W);jhd.prototype.setSearch=function(a,b){Yw(this,1,Gq,a,b,jb)};jhd.messageId="b.BatchGetSearchesResponse";var sP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sP.messageId)};Y(sP,W);sP.prototype.getSearch=function(){return X(this,Gq,1,jb)};sP.prototype.setSearch=function(a){Zi(this,Gq,1,a,jb)};sP.prototype.clearSearch=function(){Zw(this,1,jb)};sP.messageId="b.SearchResponse";var tP=function(){this.jspbExecutor=p(oO)};h=tP.prototype;h.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:sP}).pipe(A(H0a))};h.batchGet=function(a){if(a.length>500)throw Error("Vd");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:jhd}).pipe(A(I0a))};
h.create=function(a,b){a=(new Gq).setIt((new hq).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:sP}).pipe(A(H0a))};h.update=function(a,b){b=(new Gq).setIt(q_a(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:sP}).pipe(A(H0a))};h.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};tP.\u0275fac=function(a){return new (a||tP)};
tP.\u0275prov=Fc({token:tP,factory:tP.\u0275fac,providedIn:"root"});var uP=function(){this.observableResources=p(tP)};h=uP.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))};
uP.\u0275fac=function(a){return new (a||uP)};uP.\u0275prov=Fc({token:uP,factory:uP.\u0275fac,providedIn:"root"});var vP=function(){BO.call(this);this.savedSearchApi=p(tP);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Y(vP,BO);vP.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};vP.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};vP.\u0275fac=function(a){return new (a||vP)};vP.\u0275prov=Fc({token:vP,factory:vP.\u0275fac,providedIn:"root"});var wP=function(){BO.call(this,{freshUntil:3E5});var a=this;this.userApi=p(pP);this.hotlistApi=p(oP);this.bookmarkGroupApi=p(JO);this.appEvents=p(aP);this.hotlistFridge=p(rP);this.savedSearchFridge=p(vP);this.bookmarkGroupFridge=p(KO);this.activeSession=p(Qu);this.recordType="user-bookmark";this.isEqual=Dm;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(wP,BO);var khd=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):ee([])},lhd=function(a){var b=a.activeSession.getUserEmail();return b?pe(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):ee([])};
wP.prototype.fetchOne=function(){var a=this;return qe([this.userApi.getUserBookmarks(),khd(this),lhd(this)]).pipe(Cf(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;c=l(c);for(var e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);c=l(b.bookmarkGroups);for(e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);d=l(d);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);d=l(b.hotlists);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);
b=l(b.savedSearches);for(d=b.next();!d.done;d=b.next())a.savedSearchFridge.announce(d.value)}),A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=Z0a([].concat(q(b.hotlists),q(d)),[].concat(q(b.bookmarkGroups),q(c)),b.savedSearches);return $0a(d,b)}))};
var mhd=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(we(hn))},xP=function(a){return mhd(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(hn).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(q(b),q(d))}),A(function(b){return Iq(b,function(c){return c.id})}),A(function(b){return X0a(b)}),A(function(b){return b.map(function(c){return c.id})}),
Af(function(b){return a.hotlistFridge.watchSet(b)}))},nhd=function(a){return mhd(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(hn)}),Af(function(b){return a.savedSearchFridge.watchSet(b)}))};wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275prov=Fc({token:wP,factory:wP.\u0275fac,providedIn:"root"});
var X0a=wn(function(a){return a.name},yn,"ASCENDING"),W0a=wn(function(a){return a.name},yn,"ASCENDING"),Y0a=wn(function(a){return a.name},yn,"ASCENDING");var b1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b1a,W);b1a.prototype.getIt=function(){return X(this,np,14)};b1a.prototype.setIt=function(a){return Zi(this,np,14,a)};var Vq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vq,W);Vq.prototype.getIt=function(){return X(this,lp,13)};Vq.prototype.setIt=function(a){return Zi(this,lp,13,a)};var yP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yP.messageId)};Y(yP,W);yP.prototype.getIt=function(){return X(this,np,2,jb)};yP.prototype.setIt=function(a){return Zi(this,np,2,a,jb)};yP.messageId="b.CustomFieldResponse";var ohd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ohd,W);h=ohd.prototype;h.getCustomFieldsList=function(){return Ni(this,np,1,Oi())};h.setCustomFieldsList=function(a){return $i(this,1,a)};h.addCustomFields=function(a){bq(this,1,np,a)};h.getNextPageToken=function(){return xi(this,2)};h.getTotalSize=function(){return Um(this,3)};var phd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,phd.messageId)};Y(phd,W);phd.prototype.getIt=function(){return X(this,ohd,4,jb)};phd.prototype.setIt=function(a){return Zi(this,ohd,4,a,jb)};phd.messageId="b.ListCustomFieldsResponse";var zP=function(){this.executor=p(oO)};h=zP.prototype;h.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:yP}).pipe(A(a1a))};h.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:yP}).pipe(A(a1a))};h.create=function(a,b){b=c1a(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:a}},body:b,responseConstructor:yP}).pipe(A(a1a))};
h.update=function(a,b,c){b=Number(b);c=c1a(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:a}},body:c,responseConstructor:yP}).pipe(A(a1a))};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:phd}).pipe(A(d1a))};zP.\u0275fac=function(a){return new (a||zP)};zP.\u0275prov=Fc({token:zP,factory:zP.\u0275fac,providedIn:"root"});var AP=function(){this.observableApi=p(zP)};h=AP.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))};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275prov=Fc({token:AP,factory:AP.\u0275fac,providedIn:"root"});var BP=function(){BO.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=p(zP);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Y(BP,BO);BP.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)}))};BP.\u0275fac=function(a){return new (a||BP)};BP.\u0275prov=Fc({token:BP,factory:BP.\u0275fac,providedIn:"root"});var CP=function(){BO.call(this);this.api=p(GO);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=Dm};Y(CP,BO);CP.prototype.fetchOne=function(a){return ggd(this.api,a)};CP.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)}))};CP.\u0275fac=function(a){return new (a||CP)};CP.\u0275prov=Fc({token:CP,factory:CP.\u0275fac,providedIn:"root"});var Kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kq,W);var Lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Lq.messageId)};Y(Lq,W);h=Lq.prototype;h.getId=function(){return En(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Rp(this,1,void 0,jb)};h.getId_asString=function(){return In(this,1,void 0,jb)};h.setId=function(a){return Kn(this,1,a,void 0,jb)};h.setTriage=function(a){return Zi(this,Kq,2,a,jb)};Lq.messageId="b.IssueExperiments";var Nq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nq,W);Nq.prototype.getName=function(){return xi(this,1)};Nq.prototype.setName=function(a){return yj(this,1,a)};Nq.prototype.hasName=function(){return wm(this,1)};Nq.prototype.getNameOrUndefined=function(){return gx(this,1)};var y1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(y1a,W);h=y1a.prototype;h.getPhasesList=function(){return Ln(this,1,Oi())};h.setPhasesList=function(a){return rx(this,1,a)};h.getSubphasesList=function(){return Ln(this,2,Oi())};h.setSubphasesList=function(a){return rx(this,2,a)};h.getValue=function(){return X(this,lp,3)};h.setValue=function(a){return Zi(this,lp,3,a)};h.hasValue=function(){return Ji(this,lp,3)};var Oq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oq,W);Oq.prototype.getCustomFieldId=function(){return En(this,1)};Oq.prototype.getCustomFieldId_asString=function(){return In(this,1)};Oq.prototype.setCustomFieldId=function(a){return Kn(this,1,a)};Oq.prototype.hasCustomFieldId=function(){return Dn(this,1)};var s1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s1a,W);h=s1a.prototype;h.getHotlistIdsList_asLegacyNumberOrString=function(a){return u6a(this,1,Oi(a))};h.getHotlistIdsList_asString=function(){return jn(this,1)};h.setHotlistIdsList=function(a){return Er(this,1,a)};h.addHotlistIds=function(a,b){return ox(this,1,a,b)};h.addAllHotlistIds=function(a){px(this,1,a)};h.removeHotlistIds=function(a){return lAc(this,1,a)};h.getPhasesList=function(){return Ln(this,3,Oi())};
h.setPhasesList=function(a){return rx(this,3,a)};h.getSubphasesList=function(){return Ln(this,4,Oi())};h.setSubphasesList=function(a){return rx(this,4,a)};var k1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k1a,W);var p1a=[1,2];var Mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mq,W);h=Mq.prototype;h.getScope=function(){return xi(this,1)};h.setScope=function(a){return yj(this,1,a)};h.setConfig=function(a){Yw(this,3,k1a,a)};h.getId=function(){return En(this,4)};h.getId_asLegacyNumberOrString=function(){return Rp(this,4)};h.getId_asString=function(){return In(this,4)};h.setId=function(a){return Kn(this,4,a)};h.getDisplayName=function(){return xi(this,5)};
h.setDisplayName=function(a){return yj(this,5,a)};h.getDisplayColumns=function(){return X(this,Zn,6)};h.setDisplayColumns=function(a){Zi(this,Zn,6,a)};var DP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,DP.messageId)};Y(DP,W);h=DP.prototype;h.getId=function(){return En(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Rp(this,1,void 0,jb)};h.getId_asString=function(){return In(this,1,void 0,jb)};h.setId=function(a){return Kn(this,1,a,void 0,jb)};h.setTriage=function(a){return Yw(this,2,Mq,a,void 0,jb)};DP.messageId="b.TeamExperiments";var G1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G1a,W);h=G1a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getAddMask=function(){return X(this,Rq,2)};h.getMutableAddMask=function(){return Ui(this,Rq,2)};h.setAddMask=function(a){return Zi(this,Rq,2,a)};h.getAdd=function(){return X(this,Op,3)};h.setAdd=function(a){return Zi(this,Op,3,a)};
h.getRemoveMask=function(){return X(this,Rq,4)};h.getMutableRemoveMask=function(){return Ui(this,Rq,4)};h.setRemoveMask=function(a){return Zi(this,Rq,4,a)};h.getRemove=function(){return X(this,Op,5)};h.setRemove=function(a){return Zi(this,Op,5,a)};h.getIssueComment=function(){return X(this,Zp,6)};h.setIssueComment=function(a){Zi(this,Zp,6,a)};h.hasIssueComment=function(){return Ji(this,Zp,6)};h.setSignificanceOverride=function(a){return $m(this,7,a)};var ar=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ar,W);ar.prototype.getQuery=function(){return xi(this,1)};ar.prototype.setQuery=function(a){return Ym(this,1,a)};ar.prototype.clearQuery=function(){Zw(this,1)};var EP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EP,W);EP.prototype.getIssueId=function(){return En(this,1)};EP.prototype.getIssueId_asString=function(){return In(this,1)};EP.prototype.setIssueId=function(a){return Xo(this,1,a)};var P1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(P1a,W);h=P1a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};var w2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w2a,W);w2a.prototype.getRelation=function(){return Ii(this,1)};w2a.prototype.setRelation=function(a){return $m(this,1,a)};var v2a=function(a,b){return op(a,2,b)};var qhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qhd,W);h=qhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getReason=function(){return Ii(this,2)};h.setReason=function(a){return $m(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var l2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l2a,W);h=l2a.prototype;h.getQuery=function(){return xi(this,1)};h.setQuery=function(a){return Ym(this,1,a)};h.clearQuery=function(){Zw(this,1)};h.setOrderBy=function(a){return Ym(this,2,a)};h.setPageSize=function(a){return pn(this,3,a)};h.setPageToken=function(a){return Ym(this,4,a)};h.setView=function(a){return $m(this,5,a)};h.setIssueDescriptionView=function(a){return $m(this,6,a)};var M1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M1a,W);h=M1a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getComponentId=function(){return En(this,2)};h.getComponentId_asString=function(){return In(this,2)};h.setComponentId=function(a){return Xo(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Uq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uq,W);Uq.prototype.getIssueId=function(){return En(this,1)};Uq.prototype.getIssueId_asString=function(){return In(this,1)};Uq.prototype.setIssueId=function(a){return Xo(this,1,a)};var FP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FP,W);FP.prototype.getIssueId=function(){return En(this,1)};FP.prototype.getIssueId_asString=function(){return In(this,1)};FP.prototype.setIssueId=function(a){return Xo(this,1,a)};FP.prototype.setSignificanceOverride=function(a){return $m(this,2,a)};var c2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c2a,W);h=c2a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getRetention=function(){return Ii(this,2)};h.setRetention=function(a){return $m(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var rhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rhd.messageId)};Y(rhd,W);rhd.prototype.getIt=function(){return X(this,qhd,3,jb)};rhd.prototype.setIt=function(a){return Zi(this,qhd,3,a,jb)};rhd.messageId="b.DeleteIssueRequest";var r2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(r2a,W);var S1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S1a,W);h=S1a.prototype;h.getFieldName=function(){return xi(this,1)};h.setFieldName=function(a){return yj(this,1,a)};h.getValue=function(){return xi(this,2)};h.setValue=function(a){return yj(this,2,a)};h.hasValue=function(){return wm(this,2)};h.getCustomFieldValue=function(){return X(this,Vq,5)};h.setCustomFieldValue=function(a){return Zi(this,Vq,5,a)};h.clearCustomFieldValue=function(){return Zw(this,5)};var Sq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Sq.messageId)};Y(Sq,W);Sq.prototype.getIt=function(){return X(this,I1a,5,jb)};Sq.prototype.setIt=function(a){return Zi(this,I1a,5,a,jb)};Sq.messageId="b.GetRetainedAccessPrincipalsRequest";var Yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Yq.messageId)};Y(Yq,W);Yq.prototype.getIt=function(){return X(this,Vp,4,jb)};Yq.prototype.setIt=function(a){return Zi(this,Vp,4,a,jb)};Yq.messageId="b.HotlistIssue";var cr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cr,W);cr.prototype.getIt=function(){return X(this,Wp,23)};cr.prototype.setIt=function(a){return Zi(this,Wp,23,a)};var f2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f2a,W);f2a.prototype.getIt=function(){return X(this,g2a,6)};f2a.prototype.setIt=function(a){return Zi(this,g2a,6,a)};var V1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V1a,W);V1a.prototype.getIt=function(){return X(this,G1a,7)};V1a.prototype.setIt=function(a){return Zi(this,G1a,7,a)};var Zq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zq,W);Zq.prototype.setTrackerIdsList=function(a){return yc(this,6,a,Hb)};Zq.prototype.getIt=function(){return X(this,l2a,7)};Zq.prototype.setIt=function(a){return Zi(this,l2a,7,a)};var o2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o2a,W);var n2a=function(a,b){return Zi(a,Zq,1,b)},q2a=function(a,b){$i(a,3,b)},t2a=function(a,b){Zi(a,Lq,4,b)},u2a=function(a,b){Zi(a,w2a,5,b)};var O1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O1a,W);O1a.prototype.getIt=function(){return X(this,P1a,4)};O1a.prototype.setIt=function(a){return Zi(this,P1a,4,a)};var $q=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$q.messageId)};Y($q,W);$q.prototype.getIt=function(){return X(this,ar,4,jb)};$q.prototype.setIt=function(a){return Zi(this,ar,4,a,jb)};$q.messageId="b.ListRecentEventsForIssuesRequest";var shd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,shd.messageId)};Y(shd,W);shd.prototype.getIt=function(){return X(this,EP,3,jb)};shd.prototype.setIt=function(a){return Zi(this,EP,3,a,jb)};shd.messageId="b.MarkAsVulnerabilityRequest";var L1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L1a,W);L1a.prototype.getIt=function(){return X(this,M1a,4)};L1a.prototype.setIt=function(a){return Zi(this,M1a,4,a)};var GP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,GP.messageId)};Y(GP,W);GP.prototype.getIt=function(){return X(this,Lp,9,jb)};GP.prototype.setIt=function(a){return Zi(this,Lp,9,a,jb)};GP.messageId="b.StatusUpdate";var Tq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tq.messageId)};Y(Tq,W);Tq.prototype.getIt=function(){return X(this,Uq,3,jb)};Tq.prototype.setIt=function(a){return Zi(this,Uq,3,a,jb)};Tq.messageId="b.UnCcUserActionRequest";var thd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,thd.messageId)};Y(thd,W);thd.prototype.getIt=function(){return X(this,FP,2,jb)};thd.prototype.setIt=function(a){return Zi(this,FP,2,a,jb)};thd.messageId="b.UndeleteIssueRequest";var uhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uhd.messageId)};Y(uhd,W);uhd.prototype.getIt=function(){return X(this,afd,5,jb)};uhd.prototype.setIt=function(a){return Zi(this,afd,5,a,jb)};uhd.messageId="b.UpdateIssueAccessLimitRequest";var X1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(X1a,W);X1a.prototype.setSignificanceOverride=function(a){return Vn(this,4,a)};var d2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d2a,W);d2a.prototype.getIt=function(){return X(this,c2a,5)};d2a.prototype.setIt=function(a){return Zi(this,c2a,5,a)};var D2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D2a,W);h=D2a.prototype;h.getIssueIdsList=function(){return ex(this,2,1)};h.getIssueIdsList_asString=function(){return jn(this,2)};h.setIssueIdsList=function(a){return yc(this,2,a,Hb)};h.addIssueIds=function(a){return Ac(this,2,Hb,a,void 0,Pb)};h.setIssueIds=function(a){Ac(this,2,Hb,void 0,a,Pb,void 0,1)};var vhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vhd,W);vhd.prototype.setSignificanceOverride=function(a){return yj(this,3,a)};var a3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a3a,W);var Z2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Z2a,W);var whd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(whd,W);whd.prototype.getField=function(){return xi(this,1)};var Y2a=[3,4];var b3a=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/\.]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var i3a=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var R3a=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},S3a=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},F3a=function(a,b){a.summary.push.apply(a.summary,q(b))},N3a=function(a){var b=xhd(a,a.updates.flatMap(A3a)),c=yhd(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:qo(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:jr(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(qo(qn(un(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},yhd=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<qo(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=qo(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},xhd=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 K3a=wn(function(a){return a.modifiedDate},xn),Q3a=wn(function(a){return a.version},xn);var HP=function(){this.timeout=p(vO)};HP.prototype.adapt=function(a){return new zhd(this.timeout,a)};HP.\u0275fac=function(a){return new (a||HP)};HP.\u0275prov=Fc({token:HP,factory:HP.\u0275fac,providedIn:"root"});var zhd=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
zhd.prototype.get=function(a){var b=Ho(),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||Ahd(this);return b.promise};
var Ahd=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:void 0},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var g=0;g<e.batchedDeferred.length;g++)e.batchedDeferred[g].resolve(f[g])}}(b),function(e){return function(f){for(var g=l(e.batchedDeferred),k=g.next();!k.done;k=g.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var mr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mr.messageId)};Y(mr,W);mr.prototype.getResource=function(){return xi(this,1,void 0,jb)};mr.prototype.setResource=function(a){return yj(this,1,a,jb)};mr.prototype.getRelation=function(){return Ii(this,2,void 0,jb)};mr.prototype.setRelation=function(a){return Vn(this,2,a,jb)};mr.messageId="b.ResourceRelation";var Bhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bhd.messageId)};Y(Bhd,W);Bhd.messageId="b.UserAccessBatchResponse";var IP=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+)$")};IP.prototype.validate=function(a){return this.resourceNamePattern.test(a)};IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275prov=Fc({token:IP,factory:IP.\u0275fac,providedIn:"root"});
var JP=function(){var a=this;this.rawUserAccess=p(Chd);this.resourceNameValidator=p(IP);this.bulkApiAdapter=p(HP);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return Dhd(a,b)})},Dhd=function(a,b){return Ehd(a,b).then(function(c){return U3a(b,c)})},KP=function(a,b,c){return a.resourceNameValidator.validate(c)?Fhd(a,b,c):Promise.reject(Error("be`"+c))},Ghd=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([Fhd(a,"admin",b),Fhd(a,"writer",b),Fhd(a,"appender",
b),Fhd(a,"reader",b)]).then(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{admin:c,writer:e,appender:f,reader:d}}):Promise.reject(Error("be`"+b))},Ehd=function(a,b){var c=[],d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return ie(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:Bhd}).pipe(A(T3a)))},
Fhd=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};JP.\u0275fac=function(a){return new (a||JP)};JP.\u0275prov=Fc({token:JP,factory:JP.\u0275fac,providedIn:"root"});var Chd=function(){this.executor=p(oO)};Chd.\u0275fac=function(a){return new (a||Chd)};Chd.\u0275prov=Fc({token:Chd,factory:Chd.\u0275fac,providedIn:"root"});var Hhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hhd,W);h=Hhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getSummaryType=function(){return Ii(this,2)};h.setSummaryType=function(a){return $m(this,2,a)};var Ihd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ihd,W);h=Ihd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getSummaryType=function(){return Ii(this,2)};h.setSummaryType=function(a){return $m(this,2,a)};var LP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LP,W);LP.prototype.setMaxResults=function(a){return pn(this,1,a)};LP.prototype.setView=function(a){return $m(this,2,a)};LP.prototype.setIssueDescriptionView=function(a){return $m(this,3,a)};var Jhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jhd,W);h=Jhd.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return Er(this,1,a)};h.addIssueIds=function(a){return ox(this,1,a)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,void 0,1)};h.setView=function(a){return $m(this,2,a)};h.setIssueDescriptionView=function(a){return $m(this,3,a)};var Khd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Khd,W);h=Khd.prototype;h.getComponentId=function(){return En(this,5)};h.getComponentId_asString=function(){return In(this,5)};h.setComponentId=function(a){return Xo(this,5,a)};h.getTitle=function(){return xi(this,6)};h.setTitle=function(a){return Ym(this,6,a)};h.getComment=function(){return xi(this,7)};h.setComment=function(a){return Ym(this,7,a)};h.getAttachmentsList=function(){return Ni(this,ap,8,Oi())};
h.setAttachmentsList=function(a){return $i(this,8,a)};h.addAllAttachments=function(a){aq(this,8,ap,a)};h.setSignificanceOverride=function(a){return $m(this,2,a)};h.getTemplateId=function(){return En(this,4)};h.setTemplateId=function(a){return Xo(this,4,a)};var Lhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lhd,W);h=Lhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setView=function(a){return $m(this,2,a)};h.setIssueDescriptionView=function(a){return $m(this,3,a)};var Mhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mhd,W);h=Mhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetIdsList=function(a){return Er(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Nhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nhd,W);h=Nhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetIdsList=function(a){return Er(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Ohd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ohd,W);h=Ohd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetId=function(a){return Xo(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Phd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Phd,W);h=Phd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetIdsList=function(a){return Er(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Qhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qhd,W);h=Qhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetIdsList=function(a){return Er(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var Rhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rhd,W);h=Rhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setTargetId=function(a){return Xo(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};var MP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,MP.messageId)};Y(MP,W);MP.prototype.getIt=function(){return X(this,Jhd,3,jb)};MP.prototype.setIt=function(a){return Zi(this,Jhd,3,a,jb)};MP.messageId="b.BatchGetIssuesRequest";var Shd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Shd,W);Shd.prototype.getIssuesList=function(){return Ni(this,Wp,1,Oi())};var NP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,NP.messageId)};Y(NP,W);NP.prototype.getIt=function(){return X(this,Shd,2,jb)};NP.prototype.setIt=function(a){return Zi(this,Shd,2,a,jb)};NP.messageId="b.BatchGetIssuesResponse";var G2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G2a,W);h=G2a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return Cn(this,1)};h.setIssueId=function(a){return Yn(this,1,a)};h.getMessage=function(){return xi(this,2)};h.setMessage=function(a){return yj(this,2,a)};var Thd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Thd.messageId)};Y(Thd,W);Thd.prototype.setErrors=function(a,b){Yw(this,2,G2a,a,b,jb)};Thd.messageId="b.BulkEditResponse";var Uhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Uhd.messageId)};Y(Uhd,W);Uhd.prototype.getIt=function(){return X(this,Hhd,1,jb)};Uhd.prototype.setIt=function(a){return Zi(this,Hhd,1,a,jb)};Uhd.messageId="b.GenerateIssueSummaryRequest";var Vhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vhd,W);h=Vhd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getSummaryType=function(){return Ii(this,2)};h.setSummaryType=function(a){return $m(this,2,a)};h.getModelVersion=function(){return Um(this,3)};h.setModelVersion=function(a){return pn(this,3,a)};h.getIssueVersion=function(){return Um(this,7)};
h.setIssueVersion=function(a){return pn(this,7,a)};h.getVersion=function(){return Um(this,4)};h.setVersion=function(a){return pn(this,4,a)};h.getSummary=function(){return xi(this,5)};var Whd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Whd.messageId)};Y(Whd,W);Whd.prototype.getIt=function(){return X(this,Vhd,1,jb)};Whd.prototype.setIt=function(a){return Zi(this,Vhd,1,a,jb)};Whd.messageId="b.GenerateIssueSummaryResponse";var Xhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xhd.messageId)};Y(Xhd,W);Xhd.prototype.getIt=function(){return X(this,Vhd,4,jb)};Xhd.prototype.setIt=function(a){return Zi(this,Vhd,4,a,jb)};Xhd.messageId="b.GetIssueSummaryResponse";var OP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OP,W);OP.prototype.getReadersList=function(){return Ni(this,Qo,1,Oi())};OP.prototype.setReadersList=function(a){return $i(this,1,a)};OP.prototype.getAppendersList=function(){return Ni(this,Qo,2,Oi())};OP.prototype.setAppendersList=function(a){return $i(this,2,a)};var Yhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Yhd.messageId)};Y(Yhd,W);Yhd.prototype.getIt=function(){return X(this,OP,4,jb)};Yhd.prototype.setIt=function(a){return Zi(this,OP,4,a,jb)};Yhd.messageId="b.GetRetainedAccessPrincipalsResponse";var PP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,PP.messageId)};Y(PP,W);PP.prototype.getIssueId=function(){return En(this,1,void 0,jb)};PP.prototype.getIssueId_asString=function(){return Cn(this,1,void 0,jb)};PP.prototype.setIssueId=function(a){return Yn(this,1,a,void 0,jb)};PP.messageId="b.IssueCreateResponse";var sr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sr.messageId)};Y(sr,W);sr.prototype.getIssue=function(){return X(this,cr,1,jb)};sr.prototype.setIssue=function(a){return Zi(this,cr,1,a,jb)};sr.messageId="b.IssueFetchResponse";var Zhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zhd,W);h=Zhd.prototype;h.getIssuesList=function(){return Ni(this,Wp,1,Oi())};h.getNextPageToken=function(){return xi(this,2)};h.getTotalSize=function(){return Um(this,3)};h.getTotalSizeAccurate=function(){return Ri(this,4)};h.getMaySkipResults=function(){return Ri(this,5)};var QP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,QP.messageId)};Y(QP,W);QP.prototype.getIt=function(){return X(this,Zhd,6,jb)};QP.prototype.setIt=function(a){return Zi(this,Zhd,6,a,jb)};QP.messageId="b.IssueSearchResponse";var $hd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($hd,W);h=$hd.prototype;h.getIssueId=function(){return En(this,10)};h.getIssueId_asString=function(){return In(this,10)};h.setIssueId=function(a){return Xo(this,10,a)};h.getAuthor=function(){return X(this,Xm,1)};h.setAuthor=function(a){Zi(this,Xm,1,a)};h.hasAuthor=function(){return Ji(this,Xm,1)};h.getTimestamp=function(){return X(this,ej,2)};h.setTimestamp=function(a){return Zi(this,ej,2,a)};
h.hasTimestamp=function(){return Ji(this,ej,2)};h.getIssueComment=function(){return X(this,Zp,3)};h.setIssueComment=function(a){Zi(this,Zp,3,a)};h.hasIssueComment=function(){return Ji(this,Zp,3)};h.getCommentNumber=function(){return Um(this,4)};h.setCommentNumber=function(a){return pn(this,4,a)};h.getAttachmentsList=function(){return Ni(this,ap,8,Oi())};h.setAttachmentsList=function(a){return $i(this,8,a)};h.addAllAttachments=function(a){aq(this,8,ap,a)};
h.getStatusUpdate=function(){return X(this,Lp,9)};h.setStatusUpdate=function(a){Zi(this,Lp,9,a)};h.hasStatusUpdate=function(){return Ji(this,Lp,9)};h.getFieldUpdatesList=function(){return Ni(this,whd,6,Oi())};h.getVersion=function(){return Um(this,7)};h.setVersion=function(a){return pn(this,7,a)};var aid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,aid.messageId)};Y(aid,W);aid.messageId="b.ListIssueEventsResponse";var bid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,bid.messageId)};Y(bid,W);bid.prototype.getIt=function(){return X(this,LP,1,jb)};bid.prototype.setIt=function(a){return Zi(this,LP,1,a,jb)};bid.messageId="b.ListRecentIssuesRequest";var cid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cid,W);cid.prototype.getIssuesList=function(){return Ni(this,Wp,1,Oi())};var did=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,did.messageId)};Y(did,W);did.prototype.getIt=function(){return X(this,cid,2,jb)};did.prototype.setIt=function(a){return Zi(this,cid,2,a,jb)};did.messageId="b.ListRecentIssuesResponse";var a2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a2a,W);h=a2a.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return Cn(this,1)};h.setIssueId=function(a){return Yn(this,1,a)};h.getStatus=function(){return Ii(this,2)};h.setStatus=function(a){return Vn(this,2,a)};h.hasStatus=function(){return xm(this,2)};h.getTitle=function(){return xi(this,3)};h.setTitle=function(a){return yj(this,3,a)};
h.getVersion=function(){return Um(this,4)};h.setVersion=function(a){return Tn(this,4,a)};h.getVersionOrUndefined=function(){return fx(this,4)};h.getIsArchived=function(){return Ri(this,5)};h.setIsArchived=function(a){return aj(this,5,a)};var eid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eid.messageId)};Y(eid,W);eid.messageId="b.RelatedIssuesResponse";var RP=function(){this.executor=p(oO);this.userAccess=p(JP);this.activeSession=p(Qu)};h=RP.prototype;
h.createIssue=function(a){var b=this;return pe(function(){return KP(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(Af(function(c){if(c){var d=j2a(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:PP}).pipe(A(k2a))}else{c=(new Khd).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=zp(a.snapshot.formattingMode);
c=$m(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(MXa))!=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:PP}).pipe(A(k2a))}return d}))};
h.createIssueWithWizard=function(a){var b=j2a(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:PP}).pipe(A(k2a))};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:sr}).pipe(A(function(e){return br(e)}))};
h.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new Lhd).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:sr}).pipe(A(function(e){return br(e)}))};
h.batchGetIssuesFull=function(a){a=(new MP).setIt((new Jhd).setIssueIdsList(a.map(dn).filter(hn)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:NP}).pipe(A(function(b){return b.getIt().getIssuesList().map(rZa)}))};h.batchGetIssues=function(a){a=(new MP).setIt((new Jhd).setIssueIdsList(a.map(dn).filter(hn)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:NP}).pipe(A(function(b){return b.getIt().getIssuesList().map(Sp)}))};
h.updateIssue=function(a,b){b.actions=b.actions.filter(function(c){return c.fieldName!=="componentId"});b=W1a(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};h.moveIssueExternal=function(a,b){b=Q1a(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};
h.moveIssue=function(a,b){b=N1a(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};h.unCcUser=function(a){var b=K1a(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};
h.updateAccessLimit=function(a,b,c,d){var e=new uhd,f=e.setIt,g=(new afd).setIssueId(a);b&&(b=kXa(b),g.setIssueAccessLimit(b));c&&g.setAddedCollaboratorsList(c.map(an));d&&g.setRemovedCollaboratorsList(d.map(an));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=J1a(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:Yhd}).pipe(A(function(e){e=e.getIt();return{readers:e.getReadersList().map(Po),appenders:e.getAppendersList().map(Po),writers:Ni(e,Qo,3,Oi()).map(Po)}}))};
h.markAsVulnerability=function(a,b){var c=(new EP).setIssueId(Number(a));b&&(b=b.map(an),$i(c,2,b));c=(new shd).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 fid(this,a);throw Error("ce");};h.addBlocking=function(a,b){b=(new Nhd).setIssueId(Number(a)).setTargetIdsList(b.map(dn).filter(hn));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};h.removeBlocking=function(a,b){b=(new Qhd).setIssueId(Number(a)).setTargetIdsList(b.map(dn).filter(hn));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};
h.addBlockedBy=function(a,b){b=(new Mhd).setIssueId(Number(a)).setTargetIdsList(b.map(dn).filter(hn));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};h.removeBlockedBy=function(a,b){b=(new Phd).setIssueId(Number(a)).setTargetIdsList(b.map(dn).filter(hn));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};
h.markAsDuplicate=function(a,b){b=(new Ohd).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};var fid=function(a,b){var c=(new Rhd).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:sr}).pipe(A(function(d){return br(d)}))};
RP.prototype.updateIssueHotlists=function(a,b){b=$1a(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};RP.prototype.updateIssueRetention=function(a,b){b=e2a(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:sr}).pipe(A(function(c){return br(c)}))};
RP.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=m2a(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:QP}).pipe(A(O2a))};var gid=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=y2a(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:QP}).pipe(A(O2a))},hid=function(a,b){var c=new LP;b&&c.setMaxResults(b);b=(new bid).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:did}).pipe(A(function(d){return d.getIt().getIssuesList().map(function(e){return Sp(e)})}))};
RP.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new vhd;var d=a.bulkEditOps.map(E2a);$i(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:Thd,options:{headers:c}}).pipe(A(H2a))};
RP.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:eid}).pipe(A(b2a))};
var jid=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:aid}).pipe(A(function(e){return iid(e,!1)}))},kid=function(a,b){b=A2a(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:aid}).pipe(A(function(c){return iid(c,!0)}))};
RP.prototype.getIssueSummary=function(a,b){b=(new Ihd).setIssueId(Number(a)).setSummaryType(Add[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:Xhd}).pipe(A(function(c){return Q2a(c.getIt())}))};
var lid=function(a,b){var c=(new Hhd).setIssueId(b).setSummaryType(Add.COMMENTS_LONG);c=(new Uhd).setIt(c);return a.executor.post({url:"action/issues/"+b+"/generateSummary",body:c,responseConstructor:Whd}).pipe(A(function(d){return Q2a(d.getIt())}))},iid=function(a,b){a=Ni(a,$hd,2,Oi(),jb).map(X2a);return b?L3a(a):J3a(a)};RP.\u0275fac=function(a){return new (a||RP)};RP.\u0275prov=Fc({token:RP,factory:RP.\u0275fac,providedIn:"root"});var SP=function(){this.observableApi=p(RP)};h=SP.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))};SP.\u0275fac=function(a){return new (a||SP)};SP.\u0275prov=Fc({token:SP,factory:SP.\u0275fac,providedIn:"root"});var mid={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var TP=function(){BO.call(this);this.observableIssueResources=p(RP);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Y(TP,BO);TP.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:IVa(a==null?void 0:a.events,b==null?void 0:b.events)};TP.prototype.copy=function(a){return a&&Em(a)};TP.prototype.fetchOne=function(a){return jid(this.observableIssueResources,a).pipe(A(function(b){return{id:a,events:b}}))};
TP.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(hn)}))};TP.\u0275fac=function(a){return new (a||TP)};TP.\u0275prov=Fc({token:TP,factory:TP.\u0275fac,providedIn:"root"});var nid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nid,W);h=nid.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCommentNumbers=function(){return hx(this,2)};h.setView=function(a){return $m(this,3,a)};var oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,oid.messageId)};Y(oid,W);oid.prototype.getIt=function(){return X(this,nid,4,jb)};oid.prototype.setIt=function(a){return Zi(this,nid,4,a,jb)};oid.messageId="b.BatchGetIssueCommentsRequest";var pid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pid,W);pid.prototype.getIssueCommentsList=function(){return Ni(this,Zp,1,Oi())};var qid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qid.messageId)};Y(qid,W);qid.prototype.getIt=function(){return X(this,pid,2,jb)};qid.prototype.setIt=function(a){return Zi(this,pid,2,a,jb)};qid.messageId="b.BatchGetIssueCommentsResponse";var UP=function(){this.jspbExecutor=p(oO);this.activeSession=p(Qu)};UP.prototype.batchGet=function(a,b){var c=new oid,d=c.setIt;a=(new nid).setIssueId(Number(a));b=yc(a,2,b,Eb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&Yn(c,3,d,void 0,jb);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:qid,body:c}).pipe(A(I2a))};UP.\u0275fac=function(a){return new (a||UP)};UP.\u0275prov=Fc({token:UP,factory:UP.\u0275fac,providedIn:"root"});var VP=function(){BO.call(this);var a=this;this.issueCommentsBatchApi=p(UP);this.batchApiAdapter=p(TO);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(VP,BO);
VP.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=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var g=void 0,k={issueId:c,commentId:(g=f.commentNumber)!=null?g:0};e.push({id:k,formattedComment:f})}return e}))};
VP.prototype.call=function(a){var b="",c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value.split("-"));d=e.next().value;e=e.next().value;b!==""&&b===d?c.push(Number(e)):b===""&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(b,c).pipe(A(function(f){var g=b,k=new Map;f=l(f);for(var m=f.next();!m.done;m=f.next()){m=m.value;var r=void 0,w=Number(g)+"-"+((r=m.commentNumber)!=null?r:0);k.set(w,m)}return k}))};VP.prototype.splitBatch=function(a,b){return b.get(a)};
VP.\u0275fac=function(a){return new (a||VP)};VP.\u0275prov=Fc({token:VP,factory:VP.\u0275fac,providedIn:"root"});var WP=function(){BO.call(this);this.accessPolicyApi=p(QO);this.recordType="hotlistAccessPolicy";this.isEqual=Dm;this.idForRecord=function(a){return a.id}};Y(WP,BO);WP.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(A(function(b){return Object.assign({},{id:a},b)}))};WP.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)}))};WP.\u0275fac=function(a){return new (a||WP)};
WP.\u0275prov=Fc({token:WP,factory:WP.\u0275fac,providedIn:"root"});var XP=function(){BO.call(this);this.api=p(GO);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Dm};Y(XP,BO);XP.prototype.fetchOne=function(a){return hgd(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275prov=Fc({token:XP,factory:XP.\u0275fac,providedIn:"root"});var rid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rid,W);h=rid.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return Er(this,1,a)};h.addIssueIds=function(a){return ox(this,1,a)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,void 0,1)};var sid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sid,W);h=sid.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return Er(this,1,a)};h.addIssueIds=function(a){return ox(this,1,a)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,void 0,1)};var tid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tid,W);tid.prototype.setExperiments=function(a){return Yw(this,1,Lq,a)};var uid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uid.messageId)};Y(uid,W);uid.prototype.getIt=function(){return X(this,tid,1,jb)};uid.prototype.setIt=function(a){return Zi(this,tid,1,a,jb)};uid.messageId="b.BatchGetIssueExperimentsResponse";var vid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vid,W);h=vid.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getType=function(){return Ii(this,2)};h.setType=function(a){return $m(this,2,a)};h.getPriority=function(){return Ii(this,3)};h.setPriority=function(a){return $m(this,3,a)};h.getSeverity=function(){return Ii(this,4)};
h.setSeverity=function(a){return $m(this,4,a)};h.getStatus=function(){return Ii(this,5)};h.setStatus=function(a){return $m(this,5,a)};h.getReporter=function(){return X(this,Xm,6)};h.setReporter=function(a){Zi(this,Xm,6,a)};h.getAssignee=function(){return X(this,Xm,7)};h.setAssignee=function(a){return Zi(this,Xm,7,a)};h.clearAssignee=function(){return Zw(this,7)};h.getVerifier=function(){return X(this,Xm,8)};h.setVerifier=function(a){Zi(this,Xm,8,a)};h.clearVerifier=function(){return Zw(this,8)};
h.getCcsList=function(){return Ni(this,Xm,9,Oi())};h.setCcsList=function(a){$i(this,9,a)};h.addAllCcs=function(a){aq(this,9,Xm,a)};h.setCcs=function(a,b){return Yw(this,9,Xm,a,b)};h.getCollaboratorsList=function(){return Ni(this,Xm,23,Oi())};h.setCollaboratorsList=function(a){$i(this,23,a)};h.addAllCollaborators=function(a){aq(this,23,Xm,a)};h.setCollaborators=function(a,b){return Yw(this,23,Xm,a,b)};h.getStaffing=function(){return X(this,Jp,27)};h.setStaffing=function(a){Zi(this,Jp,27,a)};
h.getHotlistIdsList_asLegacyNumberOrString=function(a){return u6a(this,10,Oi(a))};h.getHotlistIdsList_asString=function(){return jn(this,10)};h.setHotlistIdsList=function(a){return Er(this,10,a)};h.addHotlistIds=function(a,b){return ox(this,10,a,b)};h.addAllHotlistIds=function(a){px(this,10,a)};h.removeHotlistIds=function(a){return lAc(this,10,a)};h.getBlockedByIssueIdsList=function(){return ex(this,11,1)};h.getBlockedByIssueIdsList_asString=function(){return jn(this,11)};
h.setBlockedByIssueIdsList=function(a){Er(this,11,a)};h.addAllBlockedByIssueIds=function(a){px(this,11,a)};h.getBlockingIssueIdsList=function(){return ex(this,12,1)};h.getBlockingIssueIdsList_asString=function(){return jn(this,12)};h.setBlockingIssueIdsList=function(a){Er(this,12,a)};h.addAllBlockingIssueIds=function(a){px(this,12,a)};h.getCanonicalIssueId_asString=function(){return In(this,13)};h.setCanonicalIssueId=function(a){Xo(this,13,a)};
h.getDuplicateIssueIdsList_asString=function(){return jn(this,14)};h.setDuplicateIssueIdsList=function(a){Er(this,14,a)};h.getInProd=function(){return Ri(this,15)};h.setInProd=function(a){op(this,15,a)};h.getSloSnoozeUntil=function(){return X(this,ej,16)};h.setSloSnoozeUntil=function(a){Zi(this,ej,16,a)};h.getSloEndTime=function(){return X(this,ej,25)};h.setSloEndTime=function(a){Zi(this,ej,25,a)};h.hasSloEndTime=function(){return Ji(this,ej,25)};h.getRetention=function(){return Ii(this,17)};
h.setRetention=function(a){return $m(this,17,a)};h.getEntityStatus=function(){return X(this,Yo,18)};h.setEntityStatus=function(a){return Zi(this,Yo,18,a)};h.getIsArchived=function(){return Ri(this,19)};h.setIsArchived=function(a){return op(this,19,a)};h.getEffort=function(){return X(this,Pp,24)};h.setEffort=function(a){Zi(this,Pp,24,a)};h.hasEffort=function(){return Ji(this,Pp,24)};h.getAccessLimit=function(){return X(this,To,26)};h.setAccessLimit=function(a){return Zi(this,To,26,a)};var wid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wid,W);h=wid.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getIssueState=function(){return X(this,vid,2)};h.setIssueState=function(a){return Zi(this,vid,2,a)};h.getVersion=function(){return Um(this,3)};h.setVersion=function(a){return pn(this,3,a)};h.getEtag=function(){return io(this,16)};
h.setEtag=function(a){return dp(this,16,a)};h.getCreatedTime=function(){return X(this,ej,4)};h.setCreatedTime=function(a){return Zi(this,ej,4,a)};h.getModifiedTime=function(){return X(this,ej,5)};h.setModifiedTime=function(a){return Zi(this,ej,5,a)};h.getMajorModifiedTime=function(){return X(this,ej,14)};h.setMajorModifiedTime=function(a){return Zi(this,ej,14,a)};h.getResolvedTime=function(){return X(this,ej,6)};h.setResolvedTime=function(a){return Zi(this,ej,6,a)};
h.getVerifiedTime=function(){return X(this,ej,7)};h.setVerifiedTime=function(a){return Zi(this,ej,7,a)};h.getSloId_asLegacyNumberOrString=function(){return Rp(this,9)};h.getSloId_asString=function(){return In(this,9)};h.setSloId=function(a){return Xo(this,9,a)};h.getSloStatus=function(){return X(this,Wq,10)};h.setSloStatus=function(a){Zi(this,Wq,10,a)};h.getTeamId=function(){return En(this,13)};h.getTeamId_asLegacyNumberOrString=function(){return Rp(this,13)};
h.getTeamId_asString=function(){return In(this,13)};h.setTeamId=function(a){return Xo(this,13,a)};h.getRetentionState=function(){return X(this,Zo,11)};h.setRetentionState=function(a){Zi(this,Zo,11,a)};h.getAccessLimit=function(){return X(this,Uo,12)};h.setAccessLimit=function(a){return Zi(this,Uo,12,a)};h.getParentIssueIdsList_asString=function(){return jn(this,17)};h.setParentIssueIdsList=function(a){return Er(this,17,a)};h.getAncestorsMap=function(){return xc(this,19,Xq,Ub)};
h.getChildIssueCount=function(){return Um(this,20)};h.setChildIssueCount=function(a){return pn(this,20,a)};h.getDescendantIssueCount=function(){return Um(this,21)};h.setDescendantIssueCount=function(a){return pn(this,21,a)};h.getOpenDescendantIssueCount=function(){return Um(this,22)};h.setOpenDescendantIssueCount=function(a){return pn(this,22,a)};h.getIsArchived=function(){return Ri(this,18)};h.setIsArchived=function(a){return op(this,18,a)};var xid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xid.messageId)};Y(xid,W);xid.prototype.getIt=function(){return X(this,wid,14,jb)};xid.prototype.setIt=function(a){return Zi(this,wid,14,a,jb)};xid.messageId="b.IssueMetadata";var yid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yid,W);yid.prototype.getIt=function(){return X(this,sid,4)};yid.prototype.setIt=function(a){return Zi(this,sid,4,a)};var zid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zid,W);var Aid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Aid.messageId)};Y(Aid,W);Aid.prototype.getIt=function(){return X(this,zid,2,jb)};Aid.prototype.setIt=function(a){return Zi(this,zid,2,a,jb)};Aid.messageId="b.UpdateIssueReadTimestampResponse";var YP=function(){this.executor=p(pO)};YP.prototype.delete=function(a,b){b=(new rhd).setIt((new qhd).setIssueId(Number(a)).setReason(Hdd[AXa(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};YP.prototype.undelete=function(a){var b=(new thd).setIt((new FP).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
YP.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:xid}).then(K2a)};YP.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new yid,e=d.setIt;a=(new sid).setIssueIdsList(a.map(Number));b=op(a,2,b);c=$m(b,3,$dd[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:Aid}).then(J2a)};
var Bid=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:Lq}).then(g1a).then(function(c){return Object.assign({},c,{id:b})})},Cid=function(a,b){var c=(new rid).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:uid}).then(function(d){d=d.getIt();return Ni(d,Lq,1,Oi()).map(g1a)}).then(function(d){var e=to(d,function(f){return f.id});return b.map(function(f){var g;return(g=e.get(f))!=null?
g:nr(f)})})},Did=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:j1a(b),responseConstructor:Lq}).then(g1a)};YP.\u0275fac=function(a){return new (a||YP)};YP.\u0275prov=Fc({token:YP,factory:YP.\u0275fac,providedIn:"root"});var $P=function(){BO.call(this,{freshUntil:6E4});this.activeSession=p(Qu);this.batchApiAdapter=p(TO);this.batchApiConfig=p(ZP);this.issueService=p(YP);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Dm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=this.activeSession.isInternalSession()};Y($P,BO);
$P.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)};$P.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(hn)}))};$P.prototype.copy=function(a){return a&&Em(a)};
$P.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(nr(a));c.manualUpdate(a,function(m){b(m!=null?m:nr(a))});return z(k,ie(c.batchAdaptedGet(a)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=c.copy(d))!=null?e:nr(a),b(f),z(k,Did(c.issueService,f),3);g=k.yieldResult;c.announce(g);return k.return(g)})};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275prov=Fc({token:$P,factory:$P.\u0275fac,providedIn:"root"});
var ZP=function(){this.issueService=p(YP);this.maxBatchSize=100;this.bufferTimeMs=0};ZP.prototype.call=function(a){var b=this;return pe(function(){return Cid(b.issueService,[].concat(q(a)))}).pipe(A(function(c){return to(c,function(d){return d.id})}))};ZP.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:nr(a)};ZP.\u0275fac=function(a){return new (a||ZP)};ZP.\u0275prov=Fc({token:ZP,factory:ZP.\u0275fac,providedIn:"root"});var aQ=function(){this.refreshRequest=new sf};aQ.prototype.getObservable=function(){return this.refreshRequest};var Eid=function(a,b){return bQ(a,function(){return b})},bQ=function(a,b){return a.getObservable().pipe(zf(void 0)).pipe(Af(function(){return b()}))};aQ.\u0275fac=function(a){return new (a||aQ)};aQ.\u0275prov=Fc({token:aQ,factory:aQ.\u0275fac,providedIn:"root"});var dQ=function(){BO.call(this);var a=this;this.batchApiAdapter=p(TO);this.refreshMonitor=p(aQ);this.issueBatchConfig=p(cQ);this.issueApi=p(RP);this.issueExperimentalFieldsFridge=p($P);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=Dm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(dQ,BO);h=dQ.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(hn)}))};
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 hid(this.issueApi,d).pipe(A(function(e){return{results:e}}),jf(function(e){ln("issueFullFridge -> listRecentIssues() API error",e);return ee({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=l(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=nr("0"),d.triage.phase=c,gid(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("de");};h.copy=function(a){return a&&Em(a)};h.watch=function(a,b){return le([BO.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return e4a([c],[d])[0]}))};
h.watchSet=function(a,b){return le([BO.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return e4a(c,d)}))};h.watchMany=function(a,b){var c=this;return BO.prototype.watchMany.call(this,a,b).pipe(Af(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(A(function(e){return e4a(d.results,e)}),A(function(e){return Object.assign({},d,{results:e})}))}))};
h.peek=function(a){var b=BO.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return e4a([b],[a])[0]};h.poke=function(a,b){var c=this,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return d=l,z(r,Promise.all([BO.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(r.yieldResult);f=e.next().value;g=e.next().value;k=f;m=g;return r.return(e4a([k],[m])[0])})};dQ.\u0275fac=function(a){return new (a||dQ)};
dQ.\u0275prov=Fc({token:dQ,factory:dQ.\u0275fac,providedIn:"root"});var cQ=function(){this.issueApi=p(RP);this.maxBatchSize=100;this.bufferTimeMs=0};cQ.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 to(d,function(e){return e.issueId})}))};cQ.prototype.split=function(a,b){return b.get(a)};
cQ.\u0275fac=function(a){return new (a||cQ)};cQ.\u0275prov=Fc({token:cQ,factory:cQ.\u0275fac,providedIn:"root"});var f4a=window,x4a=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},Fid=function(a){if(g4a())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var z4a=Jo("debug-logging")(),q4a=window,Gid,w4a=!1,y4a={};var C4a=Red("last-visit"),D4a=Red("last-visit-count"),F4a=Sed("last-visit"),E4a=Sed("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var Hid=function(){this.activeSession=p(Qu);this.transport=(new pD(2523,this.activeSession.getSessionIdentifier())).build()};Hid.\u0275fac=function(a){return new (a||Hid)};Hid.\u0275prov=Fc({token:Hid,factory:Hid.\u0275fac,providedIn:"root"});var Iid=function(){var a=new pD(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new bL(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new J$c(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};Iid.\u0275fac=function(a){return new (a||Iid)};Iid.\u0275prov=Fc({token:Iid,factory:Iid.\u0275fac,providedIn:"root"});var Jid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jid,W);var Kid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kid,W);var Lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lid,W);h=Lid.prototype;h.setUserAction=function(a){return Vn(this,1,a)};h.getIssueId=function(){return En(this,3)};h.getIssueId_asString=function(){return In(this,3)};h.setIssueId=function(a){return Kn(this,3,a)};h.getEnvironmentType=function(){return xi(this,4)};h.setEnvironmentType=function(a){return yj(this,4,a)};h.getFrontendAccessMode=function(){return xi(this,5)};
h.setFrontendAccessMode=function(a){return yj(this,5,a)};var Mid=Jo("debug-logging")(),eQ=function(){this.activeSession=p(Qu);this.streamz=p(Iid);this.clearcutTransport=p(Hid);this.pageLoadTime=new Ncd(this.streamz.service);this.userLatency=new Pcd(this.streamz.service);this.userActionCounter=new Ocd(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
eQ.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);Mid&&console.log("Clearcut stub",{action:b,duration:a})};var fQ=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);Mid&&console.log("Clearcut stub",{action:c,duration:b})},Nid=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);Mid&&console.log("Clearcut stub",{action:b})};eQ.\u0275fac=function(a){return new (a||eQ)};
eQ.\u0275prov=Fc({token:eQ,factory:eQ.\u0275fac,providedIn:"root"});var Oid=Lo("journey-log"),Pid=Ko("journey-log"),Qid=[{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"}],Rid={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},Sid=function(){this.clearcut=p(eQ)},Tid=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=Pid())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));Oid(e);if(Rid.successEvents.includes(b)){b=e;c=Rid.abortEvents;d=Rid.successEvents;e=Rid.startEvents;for(var f=Rid.successMarker,g,k=b.length-1;k>=0;k--){var m=l(b[k]),r=m.next().value;m=m.next().value;if(c.includes(r))break;if(f===r)break;if(d.includes(r)){if(g&&w)break;var w=m}else w&&
e.includes(r)&&(g=m)}w=g&&w?[g,w]:void 0;w&&(w=l(w),g=w.next().value,w=w.next().value-g,fQ(a.clearcut,w,H4a("journey","global-search-text")),or("journey","global-search-text","duration",w),Tid(a,Rid.successMarker))}};Sid.\u0275fac=function(a){return new (a||Sid)};Sid.\u0275prov=Fc({token:Sid,factory:Sid.\u0275fac,providedIn:"root"});var Uid=function(){var a=this;this.clearcut=p(eQ);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)))}},Vid=function(a){g4a()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new f4a.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
Uid.\u0275fac=function(a){return new (a||Uid)};Uid.\u0275prov=Fc({token:Uid,factory:Uid.\u0275fac,providedIn:"root"});var I4a={},Wid={logInfo:function(){console.log(K4a());console.log("\nDuplicate Requests:");console.table(J4a())},getCounts:function(){return I4a},getDupes:J4a,getAggregates:K4a};var Xid={attributes:!1,childList:!0,subtree:!0},gQ=function(){var a=this;this.ngZone=p(Tg);this.router=p(oF);this.activatedRoute=p(Vj);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(M4a),A(function(){return L4a(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()})},Yid=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,Xid)};gQ.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;I4a[c]=~~I4a[c]+1;this.xhr$.next(c);return b.handle(a)};gQ.\u0275fac=function(a){return new (a||gQ)};gQ.\u0275prov=Fc({token:gQ,factory:gQ.\u0275fac,providedIn:"root"});var Zid={provide:CDc,useExisting:gQ,multi:!0};var hQ=function(){gj.apply(this,arguments)};Y(hQ,gj);hQ.create=gj.create;hQ.prototype.emit=function(a){gj.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 iQ=function(){this.cdr=p(Px);this.zone=p(Tg);this.destroyed=!1};iQ.prototype.ngOnDestroy=function(){this.destroyed=!0};iQ.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};iQ.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};iQ.\u0275fac=function(a){return new (a||iQ)};iQ.\u0275prov=Fc({token:iQ,factory:iQ.\u0275fac});var jQ=function(){Z.apply(this,arguments);var a=this;this.ngZone=p(Tg);this.activeSubject$=new Wj(!1);this.active$=this.activeSubject$.pipe(pf(),Bf(this.destroyed$),O4a(this.ngZone));this.onUserEvent=EIc(function(){a.activeSubject$.next(!0);$id(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),$id(a))}};Y(jQ,Z);jQ.\u0275dir=Z.\u0275dir;
jQ.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)};
jQ.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 $id=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};jQ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(jQ)))(b||jQ)}}();jQ.\u0275prov=Fc({token:jQ,factory:jQ.\u0275fac,providedIn:"root"});var ajd=[ak,ck,bk],kQ=function(){Z.call(this);var a=this;this.router=p(oF);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(M4a));this.navigationOver$=this.router.events.pipe(we(function(c){return ajd.some(function(d){return c instanceof d})}));bjd(this,Hya).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=bjd(this,ZRc);ve(this.navigationOver$.pipe(mf(Fx)),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)});bjd(this,rr).pipe(A(function(c){return c.url}),pf()).subscribe(function(){a.locationChangeStart.next()});bjd(this,ak).pipe(A(function(c){return c.url}),
pf()).subscribe(function(){a.locationChangeSuccess.next()});b=p(Vj).queryParams.pipe(Ef(bjd(this,RRc)));ve(this.routeChangeStart.pipe(mf(Fx)),this.navigationOver$.pipe(mf(b))).pipe(Af(Td),Bf(this.destroyed$)).subscribe(function(c){c=l(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});bjd(this,ak).subscribe(function(){a.viewContentLoaded.next()})};Y(kQ,Z);kQ.\u0275dir=Z.\u0275dir;
var bjd=function(a,b){return a.router.events.pipe(we(function(c){return c instanceof b}),A(function(c){return c}),Bf(a.destroyed$))};kQ.\u0275fac=function(a){return new (a||kQ)};kQ.\u0275prov=Fc({token:kQ,factory:kQ.\u0275fac,providedIn:"root"});var cjd=Jo("onedev-darkmode"),lQ=function(){var a=p(kQ),b=p(Qu),c=p(Vj);Z.call(this);var d=this;this.journeyTracker=p(Sid);this.preapply=function(){return function(k){return function(m,r){d.trackEvent("editIssue",k,m,r)}}};G4a();A4a(b.getUserTypeLabel());b=b.getUserPreferences();pr("dimension7",cjd()?"dark":"default");var e;pr("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}pr("dimension2",e);pr("dimension5",b.showRecentEventsFirst?"newestFirst":"oldestFirst");this.subscriptions.add(a.viewContentLoaded.pipe(zf(void 0)).subscribe(function(){var k=L4a(c.snapshot);B4a("page_location",k);t4a("page_view",{page_path:k})}))};Y(lQ,Z);lQ.\u0275dir=Z.\u0275dir;
lQ.prototype.trackEvent=function(a,b,c,d){or(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=H4a(a,b,c);b=l(Qid);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){Tid(d,e);break}}};var djd=function(a,b,c){t4a("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},ejd=function(a,b){a.trackEvent("editIssue","updateStatus",b)};lQ.\u0275fac=function(a){return new (a||lQ)};
lQ.\u0275prov=Fc({token:lQ,factory:lQ.\u0275fac,providedIn:"root"});var Q4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q4a,W);var fjd=!1;var nQ=function(){BO.call(this);var a=this;this.batchApiAdapter=p(TO);this.issueApi=p(RP);this.userResources=p(pP);this.refreshMonitor=p(aQ);this.issueService=p(YP);this.activeSession=p(Qu);this.hotlistFridge=p(rP);this.analytics=p(lQ);this.issueExperimentalFieldsFridge=p($P);this.issueFullBatchConfig=p(mQ);this.issueFridge=p(dQ);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=Dm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(fjd)var b=void 0;else fjd=!0,b=S4a();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(nQ,BO);h=nQ.prototype;h.announce=function(a,b){BO.prototype.announce.call(this,T4a(a));this.issueFridge.announce(hWa(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(hWa(c))}),A(function(c){return T4a(c)}),jf(function(c){b.issueFridge.clearIsGetting(a);return fe(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(hn)}))};
h.watch=function(a,b){return le([BO.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return iWa(d,c)}))};h.watchSet=function(a){return le([BO.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=to(c,function(e){return e.issueId});return b.map(function(e){return iWa(d.get(e.issueId),e)})}),A(function(b){return b.filter(hn)}))};
h.peek=function(a){var b=BO.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return iWa(a,b)};h.poke=function(a,b){var c=this;return y(function(d){return d.nextAddress==1?z(d,Promise.all([BO.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))&&Em(a))b(a),this.announce(a)};h.copy=function(a){return a&&Em(a)};
var gjd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};jO(a.activeSession)&&(d.voted=c);return ihd(a.userResources,b,d).pipe(Cf(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,jO(a.activeSession)&&(e.userData.voted=c))})}))},hjd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return ihd(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(Cf(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};nQ.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(ihd(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});ce(e)})};
var ijd=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)}))};nQ.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
nQ.prototype.updateHotlists=function(a,b,c){var d=this,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=l([].concat(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=l([].concat(q(b),q(c))),D=x.next();!D.done;D=x.next())d.hotlistFridge.clearIsSaving(D.value)}),
4)}if(w.nextAddress!=2)return(m=w.yieldResult)&&d.announce(m),w.return(m);r=be(w);d.poke(a);throw r;})};var kjd=function(a,b,c){return jjd(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&ejd(a.analytics,"DUPLICATE");return a.poke(b)})};h=nQ.prototype;h.removeDuplicate=function(a,b){var c=this;return jjd(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};h.addBlocking=function(a,b){return jjd(this,"ADD","BLOCKING",a,b)};
h.removeBlocking=function(a,b){return jjd(this,"REMOVE","BLOCKING",a,b)};h.addBlockedBy=function(a,b){return jjd(this,"ADD","BLOCKED_BY",a,b)};h.removeBlockedBy=function(a,b){return jjd(this,"REMOVE","BLOCKED_BY",a,b)};
var jjd=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};ljd(a,b);var f=[d].concat(q(e));e=l(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=l(f),k=g.next();!k.done;k=g.next())a.clearIsSaving(k.value)})},oQ=function(a,
b,c){c=c===void 0?{}:c;var d=c.markRead===void 0?!0:c.markRead;var e=c.eagerUpdate===void 0?!0:c.eagerUpdate;var f=c.userActivityType===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c.userActivityType;var g,k,m,r;return y(function(w){if(w.nextAddress==1)return a.activeSession.isAnonymous()?w.return():z(w,a.issueService.markRead(b,d,f),2);g=w.yieldResult;if(e)for(k=l(b),m=k.next();!m.done;m=k.next())r=m.value,a.manualUpdate(String(r),function(x){x.userData&&(x.userData.lastViewedTimeMicros=g.readTimestamp)});
return w.return(g.readTimestamp?Math.round(g.readTimestamp/1E3):void 0)})},ljd=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:[]}}})};nQ.\u0275fac=function(a){return new (a||nQ)};nQ.\u0275prov=Fc({token:nQ,factory:nQ.\u0275fac,providedIn:"root"});var mQ=function(){this.issueApi=p(RP);this.maxBatchSize=100;this.bufferTimeMs=0};mQ.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 to(d,function(e){return e.issueId})}))};
mQ.prototype.split=function(a,b){return b.get(a)};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275prov=Fc({token:mQ,factory:mQ.\u0275fac,providedIn:"root"});var pQ=function(){BO.call(this);var a=this;this.api=p(sO);this.activeSession=p(Qu);this.refreshMonitor=p(aQ);this.recordType="issue-recommendation";this.isEqual=Dm;this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(pQ,BO);h=pQ.prototype;
h.fetchOne=function(a){if(this.activeSession.isExternalSession())return ee(void 0);a=U4a(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 U4a(c)});a=Jq(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:gs(d.resource),recommendationType:d.type,
recommendations:[d]}})}))};h.watch=function(a){if(!a.includes("-"))throw Error("ee");return BO.prototype.watch.call(this,a)};h.poke=function(a){if(!a.includes("-"))throw Error("fe");return BO.prototype.poke.call(this,a)};h.watchSet=function(a){if(a.some(function(b){return!b.includes("-")}))throw Error("ge");return BO.prototype.watchSet.call(this,a)};var mjd=function(a,b){if(b.length===0)return ee([]);b=b.map(function(c){return c+"-ANY_ISSUE_EDIT"});return a.watchSet(b)};
pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275prov=Fc({token:pQ,factory:pQ.\u0275fac,providedIn:"root"});var tr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tr,W);var njd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(njd,W);h=njd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setRelationshipType=function(a){return $m(this,2,a)};h.getIssueRelationship=function(){return X(this,tr,3)};h.setIssueRelationship=function(a){return Zi(this,tr,3,a)};h.setSignificanceOverride=function(a){return $m(this,4,a)};var ojd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ojd,W);h=ojd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setRelationshipType=function(a){return $m(this,2,a)};h.setRequestsList=function(a){return $i(this,3,a)};h.addAndReturnRequests=function(){return Cc(this,3,njd)};h.setSignificanceOverride=function(a){return $m(this,4,a)};var pjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pjd,W);h=pjd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setRelationshipType=function(a){return $m(this,2,a)};h.setSignificanceOverride=function(a){return $m(this,4,a)};var qjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qjd,W);h=qjd.prototype;h.setRelationshipType=function(a){return $m(this,1,a)};h.getSourceIssueIdsList_asString=function(){return jn(this,2)};h.setSourceIssueIdsList=function(a){return Er(this,2,a)};h.getQuery=function(){return xi(this,3)};h.setQuery=function(a){return Ym(this,3,a)};h.clearQuery=function(){Zw(this,3)};var qQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qQ,W);var rjd=function(a,b){return Er(a,1,b)};qQ.prototype.setRelationshipType=function(a){return $m(this,2,a)};var sjd=function(a,b){return pn(a,3,b)},tjd=function(a,b){return pn(a,4,b)};qQ.prototype.getQuery=function(){return xi(this,5)};qQ.prototype.setQuery=function(a){return Ym(this,5,a)};qQ.prototype.clearQuery=function(){Zw(this,5)};var ujd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ujd.messageId)};Y(ujd,W);ujd.prototype.getIt=function(){return X(this,ojd,5,jb)};ujd.prototype.setIt=function(a){return Zi(this,ojd,5,a,jb)};ujd.messageId="b.BatchCreateIssueRelationshipsRequest";var vjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vjd.messageId)};Y(vjd,W);vjd.prototype.getIssueRelationshipsList=function(){return Ni(this,tr,1,Oi(),jb)};vjd.messageId="b.BatchCreateIssueRelationshipsResponse";var wjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wjd.messageId)};Y(wjd,W);wjd.prototype.getIt=function(){return X(this,pjd,5,jb)};wjd.prototype.setIt=function(a){return Zi(this,pjd,5,a,jb)};wjd.messageId="b.BatchDeleteIssueRelationshipsRequest";var xjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xjd.messageId)};Y(xjd,W);xjd.prototype.getIt=function(){return X(this,qjd,4,jb)};xjd.prototype.setIt=function(a){return Zi(this,qjd,4,a,jb)};xjd.messageId="b.BatchGetIssueRelationshipsRequest";var yjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yjd,W);yjd.prototype.getIssueRelationshipsList=function(){return Ni(this,tr,1,Oi())};yjd.prototype.getTotalSize=function(){return Um(this,2)};var zjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zjd.messageId)};Y(zjd,W);zjd.messageId="b.BatchGetIssueRelationshipsResponse";var Ajd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ajd.messageId)};Y(Ajd,W);Ajd.prototype.getIssueRelationship=function(){return X(this,tr,1,jb)};Ajd.prototype.setIssueRelationship=function(a){return Zi(this,tr,1,a,jb)};Ajd.messageId="b.CreateIssueRelationshipResponse";var Bjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bjd.messageId)};Y(Bjd,W);Bjd.prototype.getIt=function(){return X(this,qQ,6,jb)};Bjd.prototype.setIt=function(a){return Zi(this,qQ,6,a,jb)};Bjd.messageId="b.GetIssueDescendantsRequest";var Cjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Cjd.messageId)};Y(Cjd,W);Cjd.messageId="b.GetIssueDescendantsResponse";var Djd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Djd.messageId)};Y(Djd,W);Djd.prototype.getIssueRelationshipsList=function(){return Ni(this,tr,1,Oi(),jb)};Djd.messageId="b.ListIssueRelationshipsResponse";var Ejd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ejd.messageId)};Y(Ejd,W);Ejd.prototype.getIssueRelationship=function(){return X(this,tr,1,jb)};Ejd.prototype.setIssueRelationship=function(a){return Zi(this,tr,1,a,jb)};Ejd.messageId="b.UpdateIssueRelationshipResponse";var rQ=function(){this.executor=p(oO)};h=rQ.prototype;h.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+tN[b],responseConstructor:Djd}).pipe(A(function(c){return c.getIssueRelationshipsList().map(W4a)}))};h.create=function(a,b,c){b=tN[b];c=V4a(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:Ajd}).pipe(A(function(d){return W4a(d.getIssueRelationship())}))};
h.update=function(a,b,c){b=tN[b];var d=V4a(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:Ejd}).pipe(A(function(e){return W4a(e.getIssueRelationship())}))};h.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+tN[b],responseConstructor:null})};
h.batchGet=function(a,b){b=tN[b];a=(new xjd).setIt((new qjd).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:zjd}).pipe(A(function(c){return Ni(c,yjd,1,Oi(),jb).map(X4a)}))};
var Fjd=function(a,b,c){var d=tN.CHILD;c=c.map(function(e){e=V4a(e);return(new njd).setIssueRelationship(e)});b=(new ujd).setIt((new ojd).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:vjd}).pipe(A(function(e){return e.getIssueRelationshipsList().map(W4a)}))},Gjd=function(a,b,c){var d=tN.CHILD,e=new wjd,f=e.setIt;b=(new pjd).setIssueId(b).setRelationshipType(d);
c=Er(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
rQ.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=tN[c];b=(new Bjd).setIt(tjd(sjd(rjd(new qQ,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:Cjd}).pipe(A(function(f){var g=new Map;f=l(xc(f,1,yjd,Ub,jb).entries());for(var k=f.next();!k.done;k=f.next()){var m=l(k.value);k=m.next().value;m=m.next().value;g.set(String(k),
X4a(m))}return g}))};rQ.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};rQ.\u0275fac=function(a){return new (a||rQ)};rQ.\u0275prov=Fc({token:rQ,factory:rQ.\u0275fac,providedIn:"root"});var sQ={},Hjd=(sQ.BUG="BUG",sQ.FEATURE_REQUEST="FEATURE_REQUEST",sQ.CUSTOMER_ISSUE="CUSTOMER_ISSUE",sQ.INTERNAL_CLEANUP="INTERNAL_CLEANUP",sQ.PROCESS="PROCESS",sQ.VULNERABILITY="VULNERABILITY",sQ.PRIVACY_ISSUE="PRIVACY_ISSUE",sQ.EPIC="STORY",sQ.STORY="TASK",sQ.TASK="TASK",sQ.PROJECT="TASK",sQ.FEATURE="TASK",sQ.MILESTONE="TASK",sQ.PROGRAM="PROJECT",sQ);var tQ=function(){AO.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=p(rQ);this.issueFullFridge=p(nQ);this.refreshMonitor=p(aQ);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=Dm;this.activeMoveOperation$=new Wj(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=EWa(function(b,c){return Ijd(a,b,c)});this.assignParentToOneIssue=function(b,c){return Ijd(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=DWa(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=EWa(function(b){var c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra,$a;return y(function(pb){switch(pb.nextAddress){case 1:d=c5a(b);if(d.length===0)return pb.return();e=d.map(function(Yb){return Yb.issues.map(function(lc){return lc.parentId})}).flat();f=d.map(function(Yb){return Yb.newParentId});g=Jq([].concat(q(e),q(f)));k=l(g);for(m=k.next();!m.done;m=k.next())r=m.value,
a.setIsSaving(r);Yd(pb,2);w=l(d);x=w.next();case 4:if(x.done){Zj(pb,3);break}D=x.value;H=l(D.newRelations);J=H.next();O={};case 7:if(J.done){x=w.next();pb.jumpTo(4);break}O.newRelation=J.value;R=D.issues.find(function(Yb){return function(lc){return lc.issueId===Yb.newRelation.targetIssueId}}(O)).parentId;return D.newParentId===R?z(pb,ie(a.issueRelationshipService.update(D.newParentId,"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})),8):z(pb,ie(a.issueRelationshipService.create(D.newParentId,
"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})).catch(function(Yb){var lc,fc;if(!(Yb==null?0:(lc=Yb.error)==null?0:(fc=lc.details)==null?0:fc.includes("ALREADY_EXISTS")))throw Yb;}),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:ba=a.activeMoveOperation$.value;oa=l(b.map(function(Yb){return Yb.eventTimestamps}).flat());
for(ta=oa.next();!ta.done;ta=oa.next())ka=ta.value,ba.delete(ka);a.activeMoveOperation$.next(ba);Ca=l(g);for(ja=Ca.next();!ja.done;ja=Ca.next())ua=ja.value,a.clearIsSaving(ua);Promise.all(g.map(function(Yb){return a.poke(Yb)}));xa=l(d);for(Ra=xa.next();!Ra.done;Ra=xa.next())$a=Ra.value,c&&$a.done.reject(c),$a.done.resolve();ce(pb)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(tQ,AO);
tQ.prototype.fetchOne=function(a){var b=this;return Jjd(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(A(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),jf(function(c){return cq(c)&&c.status===403?ee(void 0):fe(function(){return c})}))})};
tQ.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:[]}):Jjd(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(A(Y4a),A(function(e){return{results:e}}))});default:wb(a.type)}};tQ.prototype.copy=function(a){return a&&Em(a)};
var Jjd=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()},Kjd=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})}))},Ljd=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},Mjd=function(a,b,c){return Pfd(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
tQ.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=b5a(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:Zj(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 Ijd=function(a,b,c){var d,e,f,g,k,m,r,w,x;return y(function(D){switch(D.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return D.return({added:d,notAdded:e});g=Njd(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}});Ojd(a,b,k);m=l(k);r=m.next();case 2:if(r.done){D.jumpTo(4);break}w=r.value;Yd(D,5);return z(D,ie(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:w.targetIssueId,afterIssueId:w.afterIssueId})),
7);case 7:d.push(w.targetIssueId);Zj(D,3);break;case 5:x=be(D);if(!cq(x))throw x;f.push(x);e.push(w.targetIssueId);case 3:r=m.next();D.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),D.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},Ojd=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=a5a(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})},Pjd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){if(O.nextAddress==1)return d=[],e=[],f=[],c.length===0?O.return({added:d,notAdded:e}):z(O,Promise.allSettled(c.map(function(R){return ie(a.issueRelationshipService.create(R,"CHILD",{targetIssueId:b,afterIssueId:Njd(a,R)}))})),2);g=O.yieldResult;k=l(g.entries());for(m=k.next();!m.done;m=k.next())r=m.value,w=l(r),x=w.next().value,D=w.next().value,H=x,J=D,J.status==="fulfilled"&&
d.push(c[H]),J.status==="rejected"&&(e.push(c[H]),f.push(J.reason));Promise.all(c.map(function(R){return a.poke(R)}));return O.return({added:d,notAdded:e,errors:f})})},Qjd=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=l(c),g=f.next(),k={};!g.done;k={issue$jscomp$52:void 0},g=f.next())k.issue$jscomp$52=g.value,a.manualUpdate(k.issue$jscomp$52.parentId,function(V){return function(ba){ba.relatedChildren=b5a(ba.relatedChildren,
V.issue$jscomp$52.issueId);--ba.totalChildCount}}(k));var m=void 0,r;if((r=b.position)==null?0:r.issueId){var w;if(((w=b.position)==null?void 0:w.position)==="after")m=b.position.issueId;else{var x;if(((x=b.position)==null?void 0:x.position)==="before"){var D,H;f=(H=(D=a.memory.getData(d))==null?void 0:D.relatedChildren)!=null?H:[];D=l(f.entries());for(H=D.next();!H.done;H=D.next())if(g=l(H.value),H=g.next().value,g=g.next().value,g.targetIssueId===b.position.issueId){b=void 0;m=(b=f[H-1])==null?
void 0:b.targetIssueId;break}}}}var J=c.map(function(V,ba){return{targetIssueId:V.issueId,afterIssueId:ba?c[ba-1].issueId:m}});Qfd(a,d)!==void 0?a.manualUpdate(d,function(V){V.relatedChildren=a5a(V.relatedChildren,J);V.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:a5a([],J),totalChildCount:J.length});b=new CWa;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},Njd=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};tQ.\u0275fac=function(a){return new (a||tQ)};tQ.\u0275prov=Fc({token:tQ,factory:tQ.\u0275fac,providedIn:"root"});var Rjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rjd,W);var uQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uQ,W);uQ.prototype.getTrackerId=function(){return En(this,2)};uQ.prototype.getTrackerId_asString=function(){return In(this,2)};uQ.prototype.setTrackerId=function(a){Kn(this,2,a)};uQ.prototype.setFilterSignalsList=function(a){return rx(this,3,a)};var vr=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 Sjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sjd,W);h=Sjd.prototype;h.getIterationId_asString=function(){return In(this,1)};h.getWorkspaceId=function(){return En(this,2)};h.getWorkspaceId_asString=function(){return In(this,2)};h.getType=function(){return Ii(this,3)};h.setType=function(a){return $m(this,3,a)};h.getName=function(){return xi(this,4)};h.setName=function(a){return Ym(this,4,a)};h.getHotlistId=function(){return En(this,7)};
h.setHotlistId=function(a){return Xo(this,7,a)};h.getStatus=function(){return Ii(this,8)};h.setStatus=function(a){return $m(this,8,a)};h.getTagsList=function(a){return Ln(this,9,Oi(a))};h.getTags=function(a){return jx(this,9,a)};h.setVelocity=function(a){return Fp(this,11,a)};h.getStartTime=function(){return X(this,ej,12)};h.setStartTime=function(a){Zi(this,ej,12,a)};h.getEndTime=function(){return X(this,ej,13)};h.setEndTime=function(a){Zi(this,ej,13,a)};
h.hasEndTime=function(){return Ji(this,ej,13)};h.getEtag=function(){return xi(this,18)};h.setEtag=function(a){return Ym(this,18,a)};var vQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vQ,W);vQ.prototype.setContextsList=function(a){return rx(this,1,a)};vQ.prototype.addContexts=function(a){return Ac(this,1,Cb,a,void 0,Db)};vQ.prototype.getContexts=function(a){return jx(this,1,a)};var Tjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tjd,W);var Ujd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ujd,W);var Vjd=function(a){var b=new Ujd;return $i(b,1,a)};var wQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wQ,W);wQ.prototype.getTitle=function(){return xi(this,2)};wQ.prototype.setTitle=function(a){return Ym(this,2,a)};var Wjd=function(a,b){return Ym(a,3,b)},Xjd=function(a,b){return Xo(a,4,b)},Yjd=function(a,b){return Ym(a,5,b)};wQ.prototype.getClientId=function(){return Um(this,6)};wQ.prototype.setClientId=function(a){return pn(this,6,a)};wQ.prototype.getWorkspaceId=function(){return xi(this,7)};var Zjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Zjd.messageId)};Y(Zjd,W);Zjd.prototype.setTaskIdsList=function(a){return Zm(this,1,a,jb)};Zjd.messageId="mc.BatchUpdateTasksDismissStateRequest";var $jd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$jd.messageId)};Y($jd,W);$jd.prototype.setTaskIdsList=function(a){return Zm(this,1,a,jb)};$jd.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var akd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,akd.messageId)};Y(akd,W);akd.prototype.setTaskIdsList=function(a){return Zm(this,1,a,jb)};akd.prototype.setTaskStatus=function(a){return $m(this,2,a,jb)};akd.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bkd,W);bkd.prototype.setFilterSignalsList=function(a){return rx(this,1,a)};var ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ckd,W);ckd.prototype.setFilterSignalsList=function(a){return rx(this,1,a)};var dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dkd,W);dkd.prototype.setFilterSignalsList=function(a){return rx(this,1,a)};var ekd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ekd,W);ekd.prototype.getCommentId=function(){return xi(this,2)};ekd.prototype.setCommentId=function(a){return Ym(this,2,a)};var fkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fkd,W);fkd.prototype.setTaskResourceTypesList=function(a){return rx(this,1,a)};fkd.prototype.setMaxTaskAgeDays=function(a){return pn(this,2,a)};fkd.prototype.setIssueFilters=function(a){return Zi(this,uQ,3,a)};var gkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gkd,W);gkd.prototype.setFilterSignalsList=function(a){return rx(this,1,a)};var hkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hkd,W);hkd.prototype.setFilterSignalsList=function(a){return rx(this,1,a)};var ikd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ikd,W);ikd.prototype.setTaskResourceTypesList=function(a){return rx(this,1,a)};ikd.prototype.setMaxTaskAgeDays=function(a){return pn(this,2,a)};ikd.prototype.setIssueFilters=function(a){return Zi(this,uQ,4,a)};var jkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jkd,W);jkd.prototype.getId=function(){return xi(this,1)};jkd.prototype.setId=function(a){return Ym(this,1,a)};jkd.prototype.getTitle=function(){return xi(this,2)};jkd.prototype.setTitle=function(a){return Ym(this,2,a)};var kkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kkd,W);var xQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xQ.messageId)};Y(xQ,W);xQ.prototype.getResponse=function(){return X(this,kkd,1,jb)};xQ.prototype.getMutableResponse=function(){return Ui(this,kkd,1,void 0,jb)};xQ.prototype.hasResponse=function(){return Ji(this,kkd,1,jb)};xQ.messageId="b.GetGoogleTasksTaskListsResponse";var yQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yQ,W);yQ.prototype.getCommentId=function(){return xi(this,1)};yQ.prototype.setCommentId=function(a){return Ym(this,1,a)};yQ.prototype.getContent=function(){return xi(this,3)};yQ.prototype.setContent=function(a){return Ym(this,3,a)};var zQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zQ.messageId)};Y(zQ,W);zQ.prototype.getResponse=function(){return X(this,yQ,1,jb)};zQ.prototype.getMutableResponse=function(){return Ui(this,yQ,1,void 0,jb)};zQ.prototype.hasResponse=function(){return Ji(this,yQ,1,jb)};zQ.messageId="b.LatestDriveMentionResponse";var AQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AQ,W);AQ.prototype.getCreatedTimestamp=function(){return En(this,1)};AQ.prototype.setOwnedByMe=function(a){return op(this,3,a)};AQ.prototype.getMimeType=function(){return xi(this,15)};AQ.prototype.setMimeType=function(a){return Ym(this,15,a)};var lkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lkd,W);h=lkd.prototype;h.setResourceId=function(a){Ym(this,17,a)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return Ym(this,2,a)};h.getLastModifiedTimestamp=function(){return En(this,3)};h.getIconName=function(){return xi(this,10)};h.getExternalLink=function(){return xi(this,16)};h.getIsDeleted=function(){return Ri(this,19)};h.setIsDeleted=function(a){op(this,19,a)};
h.getDriveResource=function(){return jm(this,AQ,5,mkd)};h.hasDriveResource=function(){return cj(this,AQ,5,mkd)};var mkd=[5,6,7,8,9,18,22,23,24];var nkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nkd,W);nkd.prototype.getName=function(){return xi(this,1)};nkd.prototype.setName=function(a){return Ym(this,1,a)};nkd.prototype.getContent=function(){return xi(this,2)};nkd.prototype.setContent=function(a){return Ym(this,2,a)};var okd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(okd,W);h=okd.prototype;h.getTaskId=function(){return xi(this,1)};h.setTaskStatus=function(a){return $m(this,3,a)};h.getResource=function(){return X(this,lkd,6)};h.setResource=function(a){return Zi(this,lkd,6,a)};h.getNote=function(){return X(this,nkd,22)};h.getCreatedTimestamp=function(){return En(this,7)};var pkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pkd,W);pkd.prototype.getTask=function(){return X(this,okd,1)};pkd.prototype.hasTask=function(){return Ji(this,okd,1)};var BQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BQ.messageId)};Y(BQ,W);BQ.prototype.getResponse=function(){return X(this,pkd,1,jb)};BQ.prototype.getMutableResponse=function(){return Ui(this,pkd,1,void 0,jb)};BQ.prototype.hasResponse=function(){return Ji(this,pkd,1,jb)};BQ.messageId="b.TasksCreateGoogleTasksResponse";var qkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qkd,W);var v5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v5a,W);h=v5a.prototype;h.getPriority=function(){return Ii(this,1)};h.setPriority=function(a){return $m(this,1,a)};h.getAccessLevel=function(){return Ii(this,2)};h.setAccessLevel=function(a){return $m(this,2,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return u6a(this,3,Oi(a))};h.getHotlistIdsList_asString=function(){return jn(this,3)};h.setHotlistIdsList=function(a){return Er(this,3,a)};
h.addHotlistIds=function(a,b){return ox(this,3,a,b)};h.addAllHotlistIds=function(a){px(this,3,a)};h.removeHotlistIds=function(a){return lAc(this,3,a)};var s5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s5a,W);s5a.prototype.getCategory=function(){return Ii(this,1)};s5a.prototype.setCategory=function(a){return $m(this,1,a)};var p5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p5a,W);h=p5a.prototype;h.getTaskId=function(){return xi(this,1)};h.getTitle=function(){return xi(this,3)};h.setTitle=function(a){return Ym(this,3,a)};h.getCreatedTimestamp=function(){return X(this,ej,4)};h.getLastModifiedTimestamp=function(){return X(this,ej,5)};h.getExternalLink=function(){return xi(this,6)};h.getDriveResource=function(){return jm(this,qkd,8,w5a)};
h.hasDriveResource=function(){return cj(this,qkd,8,w5a)};var w5a=[8,9,10,11,12,16,17];var rkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rkd,W);var skd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,skd.messageId)};Y(skd,W);skd.prototype.getResponsesList=function(){return Ni(this,rkd,1,Oi(),jb)};skd.messageId="b.TasksMyTasksResponse";var tkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tkd,W);tkd.prototype.getCommentNumber=function(){return hx(this,1)};tkd.prototype.setCommentNumber=function(a){return Ac(this,1,Eb,void 0,a,Fb,void 0,1)};var I5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I5a,W);var G5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G5a,W);h=G5a.prototype;h.getDataCase=function(){return Mo(this,J5a)};h.clearData=function(){return $w(this,J5a)};h.getSignal=function(){return Ii(this,1)};h.setSignal=function(a){return $m(this,1,a)};h.getCommentNumbers=function(){return jm(this,tkd,2,J5a)};var J5a=[2,3];var D5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D5a,W);D5a.prototype.getComeBackTimestamp=function(){return X(this,ej,1)};var F5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F5a,W);F5a.prototype.getComeBackTimestamp=function(){return X(this,ej,2)};var C5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(C5a,W);C5a.prototype.hasFutureAvailability=function(){return cj(this,F5a,1,E5a)};var E5a=[1,2];var xr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xr,W);xr.prototype.getDataCase=function(){return Mo(this,ukd)};xr.prototype.clearData=function(){return $w(this,ukd)};xr.prototype.getSignal=function(){return Ii(this,1)};xr.prototype.setSignal=function(a){return $m(this,1,a)};var ukd=[2,3];var y5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(y5a,W);h=y5a.prototype;h.getDataCase=function(){return Mo(this,A5a)};h.clearData=function(){return $w(this,A5a)};h.getSignal=function(){return Ii(this,1)};h.setSignal=function(a){return $m(this,1,a)};h.getCommentId=function(){return Oo(this,2,A5a)};h.setCommentId=function(a){return Ro(this,2,A5a,a)};var A5a=[2];var K5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K5a,W);K5a.prototype.getSignal=function(){return Ii(this,1)};K5a.prototype.setSignal=function(a){return $m(this,1,a)};var M5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M5a,W);M5a.prototype.getSignal=function(){return Ii(this,1)};M5a.prototype.setSignal=function(a){return $m(this,1,a)};var N5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N5a,W);N5a.prototype.getSignal=function(){return Ii(this,1)};N5a.prototype.setSignal=function(a){return $m(this,1,a)};var n5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(n5a,W);h=n5a.prototype;h.getTimestamp=function(){return X(this,ej,1)};h.setTimestamp=function(a){return Zi(this,ej,1,a)};h.hasTimestamp=function(){return Ji(this,ej,1)};h.getUrl=function(){return X(this,vm,2)};h.setUrl=function(a){return Zi(this,vm,2,a)};h.hasUrl=function(){return Ji(this,vm,2)};var ur=[3,4,5,6,7,9,10];var j5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(j5a,W);j5a.prototype.getTask=function(){return X(this,p5a,1)};j5a.prototype.hasTask=function(){return Ji(this,p5a,1)};var vkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vkd,W);var wkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wkd.messageId)};Y(wkd,W);wkd.prototype.getResponsesList=function(){return Ni(this,vkd,1,Oi(),jb)};wkd.messageId="b.TasksNeedsAttentionResponse";var xkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xkd,W);xkd.prototype.getRationale=function(){return xi(this,2)};xkd.prototype.setRationale=function(a){yj(this,2,a)};var CQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CQ,W);CQ.prototype.getValue=function(){return Um(this,1)};CQ.prototype.setValue=function(a){return Tn(this,1,a)};CQ.prototype.hasValue=function(){return zn(this,1)};var DQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DQ,W);DQ.prototype.getUrl=function(){return X(this,vm,2)};DQ.prototype.setUrl=function(a){return Zi(this,vm,2,a)};DQ.prototype.hasUrl=function(){return Ji(this,vm,2)};var f5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f5a,W);h=f5a.prototype;h.getId=function(){return xi(this,1)};h.setId=function(a){return yj(this,1,a)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return yj(this,2,a)};h.getUrl=function(){return X(this,vm,3)};h.setUrl=function(a){return Zi(this,vm,3,a)};h.hasUrl=function(){return Ji(this,vm,3)};h.getDescription=function(){return xi(this,4)};h.setDescription=function(a){return yj(this,4,a)};
h.hasDescription=function(){return wm(this,4)};h.getPriority=function(){return X(this,Rjd,5)};h.setPriority=function(a){return Zi(this,Rjd,5,a)};h.getScore=function(){return X(this,CQ,6)};h.setScore=function(a){return Zi(this,CQ,6,a)};h.getConfidence=function(){return X(this,xkd,10)};h.setConfidence=function(a){return Zi(this,xkd,10,a)};var ykd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ykd,W);h=ykd.prototype;h.getId=function(){return xi(this,1)};h.setId=function(a){return yj(this,1,a)};h.getTitle=function(){return xi(this,2)};h.setTitle=function(a){return yj(this,2,a)};h.getUrl=function(){return X(this,vm,3)};h.setUrl=function(a){return Zi(this,vm,3,a)};h.hasUrl=function(){return Ji(this,vm,3)};h.getDescription=function(){return xi(this,4)};h.setDescription=function(a){return yj(this,4,a)};
h.hasDescription=function(){return wm(this,4)};h.getPriority=function(){return X(this,Rjd,5)};h.setPriority=function(a){return Zi(this,Rjd,5,a)};h.getScore=function(){return X(this,CQ,6)};h.setScore=function(a){return Zi(this,CQ,6,a)};var h5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h5a,W);h=h5a.prototype;h.getUri=function(){return X(this,XM,1)};h.setUri=function(a){return Zi(this,XM,1,a)};h.getUrl=function(){return X(this,vm,2)};h.setUrl=function(a){return Zi(this,vm,2,a)};h.hasUrl=function(){return Ji(this,vm,2)};h.getLabel=function(){return xi(this,3)};h.setLabel=function(a){return yj(this,3,a)};h.hasLabel=function(){return wm(this,3)};var d5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d5a,W);h=d5a.prototype;h.getUri=function(){return X(this,XM,2)};h.setUri=function(a){return Zi(this,XM,2,a)};h.getObjective=function(){return X(this,ykd,1)};h.setObjective=function(a){return Zi(this,ykd,1,a)};h.getTeam=function(){return X(this,DQ,3)};h.setTeam=function(a){Zi(this,DQ,3,a)};h.hasTeam=function(){return Ji(this,DQ,3)};var zkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zkd,W);var EQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EQ.messageId)};Y(EQ,W);EQ.prototype.getResponse=function(){return X(this,zkd,1,jb)};EQ.prototype.getMutableResponse=function(){return Ui(this,zkd,1,void 0,jb)};EQ.prototype.hasResponse=function(){return Ji(this,zkd,1,jb)};EQ.messageId="b.TeamObjectivesResponse";var e6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e6a,W);var Akd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Akd,W);Akd.prototype.getIssue=function(){return X(this,Wp,1)};Akd.prototype.setIssue=function(a){return Zi(this,Wp,1,a)};var Bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bkd,W);Bkd.prototype.getIssue=function(){return jm(this,Akd,1,Ckd)};Bkd.prototype.setIssue=function(a){return mp(this,1,Ckd,a)};var Ckd=[1];var yr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yr,W);yr.prototype.getId=function(){return xi(this,1)};yr.prototype.setId=function(a){return Ym(this,1,a)};yr.prototype.getPayloadOrUndefined=function(){return dAc(this,Bkd,9)};var Dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dkd,W);Dkd.prototype.getWorkspaceId=function(){return En(this,1)};Dkd.prototype.getWorkspaceId_asString=function(){return In(this,1)};Dkd.prototype.getType=function(){return Ii(this,2)};Dkd.prototype.setType=function(a){return $m(this,2,a)};var Ekd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ekd,W);Ekd.prototype.getTypedWorkspaceIdsList=function(){return Ni(this,Dkd,1,Oi())};Ekd.prototype.getIterationIdsList_asString=function(){return jn(this,2)};var Fkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fkd,W);Fkd.prototype.getEmail=function(){return xi(this,1)};Fkd.prototype.setEmail=function(a){return Ym(this,1,a)};var Ar=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ar,W);Ar.prototype.getId=function(){return xi(this,1)};Ar.prototype.setId=function(a){return Ym(this,1,a)};Ar.prototype.getVersion=function(){return xi(this,2)};Ar.prototype.setVersion=function(a){return Ym(this,2,a)};var Gkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gkd,W);h=Gkd.prototype;h.getWorkspaceId=function(){return En(this,1)};h.getWorkspaceId_asString=function(){return In(this,1)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getTimeZone=function(){return X(this,Ar,8)};h.setTimeZone=function(a){return Zi(this,Ar,8,a)};h.hasTimeZone=function(){return Ji(this,Ar,8)};h.getMembersList=function(){return Ni(this,Fkd,9,Oi())};
h.setMembersList=function(a){return $i(this,9,a)};h.getUpdateTime=function(){return X(this,ej,12)};h.setUpdateTime=function(a){Zi(this,ej,12,a)};h.hasUpdateTime=function(){return Ji(this,ej,12)};h.getBookmarkGroupId_asString=function(){return In(this,14)};h.setBookmarkGroupId=function(a){return Xo(this,14,a)};h.getTeamId=function(){return xi(this,20)};h.setTeamId=function(a){return Ym(this,20,a)};var Hkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hkd,W);Hkd.prototype.getWorkspacesMap=function(){return xc(this,1,Gkd,Ub)};Hkd.prototype.getIterationsMap=function(){return xc(this,2,Sjd,Ub)};var d6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d6a,W);h=d6a.prototype;h.getContextsMap=function(){return xc(this,1,Ekd,Vb)};h.getData=function(){return X(this,Hkd,2)};h.setData=function(a){return Zi(this,Hkd,2,a)};h.clearData=function(){return Zw(this,2)};h.hasData=function(){return Ji(this,Hkd,2)};h.getFilter=function(){return X(this,vQ,3)};h.setFilter=function(a){return Zi(this,vQ,3,a)};var Ikd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ikd,W);var FQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FQ.messageId)};Y(FQ,W);FQ.prototype.getResponse=function(){return X(this,Ikd,1,jb)};FQ.prototype.getMutableResponse=function(){return Ui(this,Ikd,1,void 0,jb)};FQ.prototype.hasResponse=function(){return Ji(this,Ikd,1,jb)};FQ.messageId="b.WorkItemsResponse";var Jkd=[1,2],GQ=function(){this.executor=p(oO);this.activeSession=p(Qu)},Kkd=function(a,b,c){c=c===void 0?!0:c;b=(new Zjd).setTaskIdsList(b);c=op(b,2,c,jb);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},Lkd=function(a,b,c){c=c===void 0?!0:c;b=(new $jd).setTaskIdsList(b);c=op(b,2,c,jb);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},Mkd=function(a,b,c){b=(new akd).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=rn(c);Zi(d,ej,3,c,jb)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},Nkd=function(a,b,c,d,e){b=(new ikd).setTaskResourceTypesList(b.map(O5a));c=$m(b,3,P5a(d)).setMaxTaskAgeDays(c);b=new uQ;var f;d=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;b.setTrackerId(d);c.setIssueFilters(b);b.setFilterSignalsList(e.buganizerSignals.map(S5a));var g=(new ckd).setFilterSignalsList(e.driveSignals.map(U5a)),k=(new bkd).setFilterSignalsList(e.changelistSignals.map(W5a));
d=(new dkd).setFilterSignalsList(e.gerritSignals.map(Y5a));f=(new gkd).setFilterSignalsList(e.googleTasksSignals.map(Z5a));b=c.setIssueFilters(b);b=Zi(b,ckd,5,g);b=Zi(b,bkd,6,k);d=Zi(b,dkd,7,d);Zi(d,gkd,8,f);e=(new hkd).setFilterSignalsList(e.irmSignals.map($5a));Zi(c,hkd,9,e);return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:wkd,body:c}).pipe(A(l5a))},Okd=function(a,b,c,d){var e=new uQ;d=$m(e,1,Q5a(d));var f;e=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;
d.setTrackerId(e);b=(new fkd).setTaskResourceTypesList(b.map(O5a)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:skd,body:b}).pipe(A(q5a))},Pkd=function(a,b){if(!b.length)return ee([]);var c=new Tjd;b=Zm(c,1,b);c=(new vQ).setContextsList(Jkd);b=Zi(b,vQ,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:FQ,body:b}).pipe(A(f6a))},Qkd=function(a,b){if(!b.length)return ee([]);b=b.map(function(c){return(new XM).setResourcePath(c)});
b=Vjd(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:EQ}).pipe(A(i5a))};GQ.prototype.saveGTask=function(a){a=Xjd(Yjd(Wjd((new wQ).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:BQ}).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("he");return b}))};
var Rkd=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:xQ}).pipe(A(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Ni(c,jkd,1,Oi()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};GQ.\u0275fac=function(a){return new (a||GQ)};GQ.\u0275prov=Fc({token:GQ,factory:GQ.\u0275fac,providedIn:"root"});var Skd={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},HQ=function(){AO.call(this);this.api=p(GQ);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=Skd};Y(HQ,AO);HQ.prototype.fetchAll=function(a){return a.sources.length===0?ee({results:[]}):Okd(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};HQ.\u0275fac=function(a){return new (a||HQ)};
HQ.\u0275prov=Fc({token:HQ,factory:HQ.\u0275fac,providedIn:"root"});var Ewb=["assigned-to-me","recent-stuff-i-follow"],Tkd=["BUGANIZER","CRITIQUE","DRIVE"],Ukd=["BUGANIZER"],Vkd=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],Wkd={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"}},Xkd={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"]},Ykd={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:[]},Zkd;Zkd={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 $kd={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:Xkd},IQ=function(){AO.call(this);this.api=p(GQ);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=$kd};Y(IQ,AO);IQ.prototype.fetchAll=function(a){return a.sources.length===0?ee({results:[]}):Nkd(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};
IQ.\u0275fac=function(a){return new (a||IQ)};IQ.\u0275prov=Fc({token:IQ,factory:IQ.\u0275fac,providedIn:"root"});var JQ=function(){BO.call(this);this.userAccess=p(JP);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Y(JQ,BO);JQ.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(A(function(b){return l(b).next().value}))};JQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return pe(function(){return Ghd(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};JQ.\u0275fac=function(a){return new (a||JQ)};
JQ.\u0275prov=Fc({token:JQ,factory:JQ.\u0275fac,providedIn:"root"});var g6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g6a,W);var ald=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ald.messageId)};Y(ald,W);ald.messageId="b.PrincipalTypeInfoBatchResponse";var LQ=function(){this.principalResources=p(KQ);this.bulkApiAdapter=p(HP);this.principalTypeGetter=this.bulkApiAdapter.adapt(bld(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(bld(this,!0))},bld=function(a,b){return function(c){return cld(a.principalResources,c,b).then(function(d){return k6a(c,d)})}};LQ.prototype.get=function(a){return dld(this,a,!1)};
var dld=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:l6a()})};LQ.\u0275fac=function(a){return new (a||LQ)};LQ.\u0275prov=Fc({token:LQ,factory:LQ.\u0275fac,providedIn:"root"});
var KQ=function(){this.executor=p(pO)},cld=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=Jq(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:ald}).then(j6a).then(function(e){for(var f={},g=l(b),k=g.next();!k.done;k=g.next()){k=k.value;var m=void 0;f[k]=(m=e[k])!=null?m:l6a()}return f})};KQ.\u0275fac=function(a){return new (a||KQ)};KQ.\u0275prov=Fc({token:KQ,factory:KQ.\u0275fac,providedIn:"root"});var MQ=function(){BO.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=p(LQ);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Y(MQ,BO);MQ.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)}))};MQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(hn)}))};
MQ.\u0275fac=function(a){return new (a||MQ)};MQ.\u0275prov=Fc({token:MQ,factory:MQ.\u0275fac,providedIn:"root"});var NQ=function(){BO.call(this);this.api=p(RP);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Y(NQ,BO);NQ.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:IVa(a==null?void 0:a.events,b==null?void 0:b.events)};
NQ.prototype.fetchOne=function(a){var b=l(a.split("___")),c=b.next().value;b=b.next().value;dn(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=dn(b))!=null?d:50;return kid(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(A(function(f){return{id:{query:c,pageSize:e},events:f}}))};NQ.\u0275fac=function(a){return new (a||NQ)};NQ.\u0275prov=Fc({token:NQ,factory:NQ.\u0275fac,providedIn:"root"});var eld=["ASSIGNMENT","RESPONSE","CLOSURE"],fld=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),gld=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),V_b=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var Dr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dr,W);h=Dr.prototype;h.getId=function(){return En(this,1)};h.getId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getId_asString=function(){return In(this,1)};h.setId=function(a){return Kn(this,1,a)};h.getFrequency=function(){return Ii(this,3)};h.setFrequency=function(a){return $m(this,3,a)};h.getOrdinal=function(){return Um(this,4)};h.setOrdinal=function(a){return pn(this,4,a)};
h.getTimeZone=function(){return X(this,Ar,5)};h.setTimeZone=function(a){return Zi(this,Ar,5,a)};h.hasTimeZone=function(){return Ji(this,Ar,5)};h.getTimeOfDay=function(){return X(this,Br,6)};h.setTimeOfDay=function(a){return Zi(this,Br,6,a)};h.setDaysRemaining=function(a){return Fp(this,7,a)};h.getTypesList=function(){return Ln(this,8,Oi())};h.setTypesList=function(a){return rx(this,8,a)};var hld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hld,W);h=hld.prototype;h.getTeamId=function(){return En(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getTeamId_asString=function(){return In(this,1)};h.setTeamId=function(a){return Xo(this,1,a)};h.getEffectiveSloEditPolicy=function(){return Ii(this,3)};var Fr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fr.messageId)};Y(Fr,W);Fr.prototype.getIt=function(){return X(this,Gr,10,jb)};Fr.prototype.setIt=function(a){return Zi(this,Gr,10,a,jb)};Fr.messageId="b.SloState";var ild=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ild,W);ild.prototype.getQuery=function(){return xi(this,1)};ild.prototype.setQuery=function(a){return Ym(this,1,a)};ild.prototype.clearQuery=function(){Zw(this,1)};var Cr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cr,W);Cr.prototype.getComponentId=function(){return En(this,1)};Cr.prototype.getComponentId_asString=function(){return In(this,1)};Cr.prototype.setComponentId=function(a){return Xo(this,1,a)};Cr.prototype.getEffectiveSloEditPolicy=function(){return Ii(this,2)};var jld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jld.messageId)};Y(jld,W);jld.messageId="b.GetComponentSloEditPolicyResponse";var kld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kld.messageId)};Y(kld,W);kld.prototype.getTeamSloEditPolicy=function(){return X(this,hld,1,jb)};kld.messageId="b.GetTeamSloEditPolicyResponse";var lld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lld,W);var mld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mld.messageId)};Y(mld,W);mld.prototype.getIt=function(){return X(this,lld,1,jb)};mld.prototype.setIt=function(a){return Zi(this,lld,1,a,jb)};mld.messageId="b.ListSlosResponse";var nld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nld.messageId)};Y(nld,W);nld.prototype.getTeamSloEditPolicy=function(){return X(this,hld,1,jb)};nld.messageId="b.UpdateTeamSloEditPolicyResponse";var OQ=function(){this.activeSession=p(Qu);this.executor=p(oO)};h=OQ.prototype;h.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:Fr}).pipe(A(x6a))};h.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};h.search=function(a){a=(new ild).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:mld}).pipe(A(function(b){b=b.getIt();b=Ni(b,Gr,1,Oi());return(b!=null?b:[]).map(AYa)}))};
h.create=function(a){a=y6a(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:Fr}).pipe(A(x6a))};h.update=function(a){var b=a.sloId;a=y6a(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:Fr}).pipe(A(x6a))};OQ.\u0275fac=function(a){return new (a||OQ)};OQ.\u0275prov=Fc({token:OQ,factory:OQ.\u0275fac,providedIn:"root"});
var PQ=function(){this.observableSlosService=p(OQ);var a=p(gP),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};h=PQ.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))};PQ.\u0275fac=function(a){return new (a||PQ)};PQ.\u0275prov=Fc({token:PQ,factory:PQ.\u0275fac,providedIn:"root"});var QQ=function(){BO.call(this);this.observableSlosService=p(OQ);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Y(QQ,BO);h=QQ.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)};
QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275prov=Fc({token:QQ,factory:QQ.\u0275fac,providedIn:"root"});var old=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new C0a(this.cacheSize,function(c,d){d.subscription.unsubscribe()})};old.prototype.get=function(a){var b=this;return new Vd(function(c){var d=b.lruCache.get(a);d||(d=pld(b,a));return d.obs$.subscribe(c)})};
var pld=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 qld(c,d);a.lruCache.set(b,c);return c},qld=function(a,b){this.obs$=a;this.subscription=b};var RQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,RQ.messageId)};Y(RQ,W);RQ.prototype.getIt=function(){return X(this,xgd,14,jb)};RQ.prototype.setIt=function(a){return Zi(this,xgd,14,a,jb)};RQ.messageId="b.TeamState";var rld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rld,W);h=rld.prototype;h.getPathIdsList_asString=function(){return jn(this,1)};h.setPathIdsList=function(a){return yc(this,1,a,Hb)};h.getPathNamesList=function(a){return Vm(this,2,Oi(a))};h.setPathNamesList=function(a){return Zm(this,2,a)};h.getId=function(){return En(this,3)};h.getId_asLegacyNumberOrString=function(){return gAc(this,3)};h.getId_asString=function(){return Cn(this,3)};
h.setId=function(a){return Yn(this,3,a)};h.getName=function(){return xi(this,4)};h.setName=function(a){return yj(this,4,a)};h.hasName=function(){return wm(this,4)};h.getNameOrUndefined=function(){return gx(this,4)};h.getDescription=function(){return xi(this,5)};h.setDescription=function(a){return yj(this,5,a)};h.hasDescription=function(){return wm(this,5)};var sld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sld,W);h=sld.prototype;h.getId=function(){return En(this,1)};h.getId_asLegacyNumberOrString=function(){return gAc(this,1)};h.getId_asString=function(){return Cn(this,1)};h.setId=function(a){return Yn(this,1,a)};h.getName=function(){return xi(this,2)};h.setName=function(a){return yj(this,2,a)};h.hasName=function(){return wm(this,2)};h.getNameOrUndefined=function(){return gx(this,2)};
h.getDescription=function(){return xi(this,3)};h.setDescription=function(a){return yj(this,3,a)};h.hasDescription=function(){return wm(this,3)};var tld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tld,W);tld.prototype.setTeamIdsList=function(a){return Er(this,1,a)};tld.prototype.setView=function(a){return $m(this,2,a)};var uld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uld.messageId)};Y(uld,W);uld.prototype.setTeamIdsList=function(a){return yc(this,1,a,Hb,jb)};uld.messageId="b.BatchChildTeamsRequest";var vld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vld,W);var wld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wld.messageId)};Y(wld,W);wld.messageId="b.BatchChildTeamsResponse";var xld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xld,W);var yld=function(a){return Ni(a,xgd,1,Oi())};var SQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,SQ.messageId)};Y(SQ,W);SQ.prototype.getIt=function(){return X(this,xld,2,jb)};SQ.prototype.setIt=function(a){return Zi(this,xld,2,a,jb)};SQ.messageId="b.BatchGetTeamsResponse";var zld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zld.messageId)};Y(zld,W);zld.prototype.getTeamSuggestionsList=function(){return Ni(this,rld,1,Oi(),jb)};zld.prototype.setTeamSuggestionsList=function(a){$i(this,1,a,jb)};zld.messageId="b.TeamSuggestionResult";var Ald=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ald.messageId)};Y(Ald,W);Ald.prototype.getIt=function(){return X(this,vq,3,jb)};Ald.prototype.setIt=function(a){return Zi(this,vq,3,a,jb)};Ald.messageId="b.UpdateTeamSloRequest";var UQ=function(){var a=this;this.executor=p(oO);this.teamsBatchApiConfig=p(TQ);this.batchApiAdapter=p(TO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new old(function(b){return a.batchAdaptedGet(b)},100)};UQ.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:RQ}).pipe(A(A6a))};UQ.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var VQ=function(a,b){return a.getTeam(b).pipe(A(function(c){return c!=null?c:C6a(b)}),jf(function(){return ee(C6a(b))}))},Bld=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=l(c);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&d.set(e.teamId,e);return d}))};
UQ.prototype.getChildTeams=function(a){a=(new uld).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:wld}).pipe(A(function(b){b=[].concat(q(xc(b,1,vld,Vb,jb).entries()));return new Map(b.map(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Ni(d,sld,1,Oi());return[c,d.map(z6a)]}))}))};
var WQ=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:zld}).pipe(A(function(c){return c.getTeamSuggestionsList().map(B6a)}))},Cld=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:DP}).pipe(A(n1a))},Dld=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(A1a);var f=b.playbooks.map(o1a);b=(new DP).setId(b.id);b=aq(b,2,Mq,e,jb);f=aq(b,3,Nq,f,jb);return c.call(a,
{url:d,body:f,responseConstructor:DP}).pipe(A(n1a))},Eld=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&&Om(e.user)===c}))!==void 0}))},Fld=function(a,b){b=(new tld).setTeamIdsList([].concat(q(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:SQ,body:b}).pipe(A(function(c){return yld(c.getIt())}),A(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),
(f=on((e=X(d,uq,7))==null?void 0:En(e,3)))!=null?f:0]}))}))};
UQ.prototype.updateTeam=function(a){var b=new RQ,c=new xgd,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(dn).filter(hn));d=Zm(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(Z_a));op(d,9,a.deleted);e=new uq;d=a.extra;e.setVersion(a.version).setSlo($_a(a.slo)).setInheritEscalationOwner(!0);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(an(d.escalationOwner));
if(d==null?0:d.defaultEscalationOwner)f=an(d.defaultEscalationOwner),Zi(e,Xm,7,f);if(d==null?0:d.escalationOwnerOverride)d.escalationOwnerOverride.emailAddress===""?(d=new MGc,mp(e,10,W_a,d)):(d=an(d.escalationOwnerOverride),mp(e,9,W_a,d));Zi(c,uq,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:RQ}).pipe(A(A6a))};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275prov=Fc({token:UQ,factory:UQ.\u0275fac,providedIn:"root"});
var TQ=function(){this.executor=p(oO)};TQ.prototype.call=function(a){a=(new tld).setTeamIdsList([].concat(q(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:SQ,body:a}).pipe(A(function(b){return yld(b.getIt()).map(X_a)}),A(function(b){return to(b,function(c){return c.teamId})}),jf(function(){return ee(new Map)}))};TQ.prototype.split=function(a,b){return b.get(a)};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275prov=Fc({token:TQ,factory:TQ.\u0275fac,providedIn:"root"});var XQ=function(){AO.call(this);this.teamsApi=p(UQ);this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Y(XQ,AO);XQ.prototype.fetchAll=function(a){if(a.myTeams)return WQ(this.teamsApi,"").pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("ne");};XQ.\u0275fac=function(a){return new (a||XQ)};XQ.\u0275prov=Fc({token:XQ,factory:XQ.\u0275fac,providedIn:"root"});var YQ=function(){BO.call(this,{freshUntil:6E4});this.activeSession=p(Qu);this.teamsApi=p(UQ);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Dm;this.isEnabled=(this.activeSession.getFlag("enableTeamScope")||this.activeSession.getFlag("enablePlaybook"))&&this.activeSession.isInternalSession()};Y(YQ,BO);
YQ.prototype.fetchOne=function(a){var b=this;return this.isEnabled?pe(function(){return Cld(b.teamsApi,a).pipe(A(function(c){return c!=null?c:D6a(a)}),jf(function(){return ee(void 0)}))}):ee(void 0)};YQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.watch(c)})).pipe(A(function(c){return c.filter(hn)}))};YQ.prototype.copy=function(a){return a&&Em(a)};
YQ.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(D6a(a));c.manualUpdate(a,function(m){b(m!=null?m:D6a(a))});return z(k,ie(Cld(c.teamsApi,a)),2);case 2:return d=k.yieldResult,f=(e=c.copy(d))!=null?e:D6a(a),b(f),z(k,ie(Dld(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("oe");case 4:return c.announce(g),k.return(g)}})};
YQ.\u0275fac=function(a){return new (a||YQ)};YQ.\u0275prov=Fc({token:YQ,factory:YQ.\u0275fac,providedIn:"root"});var ZQ=function(){BO.call(this);this.teamsApi=p(UQ);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Y(ZQ,BO);ZQ.prototype.fetchOne=function(a){return a==="0"?ee(void 0):this.teamsApi.getTeam(a).pipe(jf(function(){return ee(void 0)}))};ZQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(hn)}))};ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275prov=Fc({token:ZQ,factory:ZQ.\u0275fac,providedIn:"root"});var Gld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gld,W);Gld.prototype.setTrackerIdsList=function(a){return Er(this,1,a)};var Hld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hld,W);Hld.prototype.getTrackersList=function(){return Ni(this,qed,1,Oi())};var Ild=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ild.messageId)};Y(Ild,W);Ild.prototype.getIt=function(){return X(this,Hld,9,jb)};Ild.prototype.setIt=function(a){return Zi(this,Hld,9,a,jb)};Ild.messageId="b.BatchGetTrackersResponse";var Jld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jld,W);Jld.prototype.getTrackersList=function(){return Ni(this,qed,1,Oi())};Jld.prototype.getNextPageToken=function(){return xi(this,2)};Jld.prototype.getTotalSize=function(){return Um(this,3)};var Kld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Kld.messageId)};Y(Kld,W);Kld.prototype.getIt=function(){return X(this,Jld,4,jb)};Kld.prototype.setIt=function(a){return Zi(this,Jld,4,a,jb)};Kld.messageId="b.ListTrackersResponse";var $Q=function(){this.jspbExecutor=p(oO)};$Q.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:lo}).pipe(A(fTa))};$Q.prototype.batchGet=function(a){a=(new Gld).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:Ild,body:a}).pipe(A(gTa))};
$Q.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:Kld,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(A(hTa))};$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275prov=Fc({token:$Q,factory:$Q.\u0275fac,providedIn:"root"});var aR=function(){BO.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=p($Q);this.activeSession=p(Qu);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};Lld(this)};Y(aR,BO);var Lld=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};aR.prototype.fetchOne=function(a){return this.trackerApi.get(a)};aR.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
aR.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:[]}}))};aR.\u0275fac=function(a){return new (a||aR)};aR.\u0275prov=Fc({token:aR,factory:aR.\u0275fac,providedIn:"root"});var bR=function(){Z.apply(this,arguments);this.router=p(oF);this.activatedRoute=p(Vj);this.params={};this.routeParams$=new Wj({});this.issueId$=this.routeParams$.pipe(A(function(a){return a.issueId}),pf());this.assignParams.bind(this)};Y(bR,Z);bR.\u0275dir=Z.\u0275dir;
var Mld=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 Hya}),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)})},Nld=function(a,b){return a.routeParams$.pipe(A(function(c){return c[b]}))};
bR.prototype.assignParams=function(a,b){for(var c=l(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[E6a(d.value)];this.routeParams$.next(a);b=l(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=l(c.value),c=d.next().value,d=d.next().value,this.params[E6a(c)]=d;a=l(Object.entries(a));for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.params[E6a(b)]=c};bR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bR)))(b||bR)}}();
bR.\u0275prov=Fc({token:bR,factory:bR.\u0275fac,providedIn:"root"});var cR=function(){var a=p(kQ);Z.call(this);var b=this;this.paramsService=p(bR);this.issueFullFridge=p(nQ);this.componentIdOverride$=new Wj(null);this.hotlistIdOverride$=new Wj(null);this.issueIdOverride$=new Wj(null);this.teamIdOverride$=new Wj(null);this.routeIssueId$=this.paramsService.issueId$.pipe(A(G6a),xf({refCount:!0,bufferSize:1}));this.routeComponentId$=Nld(this.paramsService,"componentId").pipe(pf());this.routeHotlistId$=Nld(this.paramsService,"hotlistId").pipe(pf());this.routeTeamId$=Nld(this.paramsService,
"teamId").pipe(pf());this.issueId$=le([this.issueIdOverride$,this.routeIssueId$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),A(G6a),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=l(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=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d}),A(G6a),
pf(),xf({refCount:!0,bufferSize:1}));this.hotlistId$=le([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),A(F6a),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){pr("dimension4",c)}));
this.subscriptions.add(this.teamId$.subscribe(function(c){pr("dimension1",c)}))};Y(cR,Z);cR.\u0275dir=Z.\u0275dir;cR.prototype.getComponentId=function(){return this.componentId$};cR.prototype.getHotlistId=function(){return this.hotlistId$};cR.prototype.getIssueId=function(){return this.issueId$};cR.prototype.getTeamId=function(){return this.teamId$};cR.\u0275fac=function(a){return new (a||cR)};cR.\u0275prov=Fc({token:cR,factory:cR.\u0275fac,providedIn:"root"});var dR=function(){var a=this;this.issueFullFridge=p(nQ);this.teamFridge=p(ZQ);this.componentFridge=p(YO);this.eventsForIssue=p(TP);this.activatedRoute=p(Vj);this.contextSensitiveRegistry=p(cR);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(A(y7a),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(M6a));this.lastViewedTimeMicros$=this.issueJs$.pipe(A(N6a));this.lastViewedTimeMicros$.pipe(A(function(b){return!b}));this.title$=this.issueJs$.pipe(A(O6a));this.issueJs$.pipe(A(f7a));this.accessLimitLevel$=this.issueJs$.pipe(A(W6a));this.voted$=this.issueJs$.pipe(A(g7a));this.status$=this.issueJs$.pipe(A(P6a));this.priority$=
this.issueJs$.pipe(A(Q6a));this.assignee$=this.issueJs$.pipe(A(R6a));this.issueJs$.pipe(A(S6a));this.teamId$=this.issueJs$.pipe(A(T6a));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(V6a));this.collaboratorsUsers$=this.issueJs$.pipe(A(X6a));this.issueJs$.pipe(A(function(b){var c,d;return(d=(c=wo(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(A(Y6a));this.issueJs$.pipe(A(Z6a));
this.issueJs$.pipe(A($6a));this.issueJs$.pipe(A(a7a));this.postmortems$=this.issueJs$.pipe(A(b7a));this.postmortems$.pipe(A(function(b){return b.length>0}));this.issueJs$.pipe(A(c7a));this.effort$=this.issueJs$.pipe(A(d7a));this.staffing$=this.issueJs$.pipe(A(e7a));this.isDeleted$=this.issueJs$.pipe(A(i7a));this.accessLevel$=this.issueJs$.pipe(A(k7a));this.modifiedTime$=this.issueJs$.pipe(A(l7a));this.issueJs$.pipe(A(n7a));this.retentionState$=this.issueJs$.pipe(A(q7a));this.canonicalIssueId$=this.issueJs$.pipe(A(o7a));
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(r7a));this.createdTimeMicros$=this.issueJs$.pipe(A(s7a));this.componentId$=this.issueJs$.pipe(A(U6a));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(t7a));this.isEffortEnabled$=this.component$.pipe(A(u7a));this.component$.pipe(A(v7a))};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275prov=Fc({token:dR,factory:dR.\u0275fac,providedIn:"root"});var w7a=RegExp("comment([0-9]+)"),x7a=RegExp("comment[0-9]+version([0-9]+)");var Old={admin:!1,writer:!0,appender:!0,reader:!0},fR=function(){var a=this;this.issueDetailsBrain=p(dR);this.permissionsFridge=p(JQ);this.activeSession=p(Qu);this.accessPolicyApi=p(RO);this.errorHandler=p(wO);this.userAccess=p(JP);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+hs(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(Af(function(c){return c?a.permissionsFridge.watch(qq(c)):
ee(void 0)}),A(function(c){return c!=null?c:Old}),zf(Old),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!!Jr(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(A(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!Jr(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(A(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!Jr(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(zf([]),A(function(c){return c.some(function(d){return eR(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Jr(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(zf([]),A(function(c){return c.some(function(d){return eR(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!Jr(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;le([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c?d?"Un-CC yourself in order to change this setting.":"":"Edit issue permission is required to modify the CC list."}));this.isImplicitAccessEnabled$=this.issueDetailsBrain.componentId$.pipe(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!!Jr(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=le([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(zf(void 0),pf(),Af(function(c){return c?KP(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 Jr(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 Jr(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;var b=p(Ee);this.issuePermissions$.pipe(fj(b)).subscribe();this.isImplicitAccessEnabled$.pipe(fj(b)).subscribe();this.userIsComponentAdmin$.pipe(fj(b)).subscribe()},eR=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0};h=fR.prototype;
h.canUndeleteComment=function(a){return vo(a)&&a.commentDeletionStatus==="DELETED"?this.hasAclToAdmin()?ee(!0):Lm(a.lastCommentEditorUser)!==this.activeSession.getUserEmail()?ee(!1):this.hasAclToComment$:ee(!1)};h.canDeleteComment=function(a){return vo(a)&&a.commentDeletionStatus==="ACTIVE"?Om(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=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c!==void 0&&c.commentEditState==="ENABLED"&&a.commentDeletionStatus!=="DELETED"&&a.commentDeletionStatus!=="PURGED"&&a.commentNumber?a.commentNumber===1?e:d&&Om(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
h.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?eR(this,b)?ee(!0):this.hasAclToAdmin$:ee(!1):ee(!1)};h.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?eR(this,b)?ee(!0):this.hasAclToAdmin$:ee(!1):ee(!1)};fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275prov=Fc({token:fR,factory:fR.\u0275fac,providedIn:"root"});var gR=function(a){a=a===void 0?[]:a;this.internalValue$=new Wj(new Set);this.value$=this.internalValue$.asObservable().pipe(A(function(b){return new Set(b)}),pf(Dm),xf({refCount:!0,bufferSize:1}));this.reset(a)};h=gR.prototype;h.reset=function(a){this.value.clear();a=l(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
h.add=function(){for(var a=l(ad.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 Ns=function(a,b){return a.internalValue$.pipe(A(function(c){return c.has(b)}),pf())};gR.prototype[Symbol.iterator]=function(){return this.value.values()};
gR.prototype.toString=function(){return"[ReactiveSet](["+[].concat(q(this.value.values())).join(", ")+"])"};gR.prototype.indexOf=function(a){return[].concat(q(this.value.values())).indexOf(a)};
da.Object.defineProperties(gR.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 hR={},Pld=(hR.ISSUE_DEDUPLICATION=new Set(["VERY_HIGH"]),hR.ISSUE_DEDUPLICATION_BATCH=new Set(["VERY_HIGH"]),hR.NEEDS_INFO=new Set(["VERY_HIGH"]),hR.COMPONENT_ROUTING=new Set(["VERY_HIGH"]),hR.HOTLIST=new Set(["VERY_HIGH"]),hR.ANY_ISSUE_EDIT=new Set(["VERY_HIGH"]),hR.TYPE_UNSPECIFIED=new Set([]),hR),iR=function(){this.activeSession=p(Qu);this.issuePermissionService=p(fR);this.issueFridge=p(dQ);this.issueRecommendationFridge=p(pQ);this.refreshMonitor=p(aQ);this.hiddenRecommendationIds=new gR},
Rld=function(a,b){return bQ(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION")}).pipe(Af(function(c){return Qld(a,c==null?void 0:c.recommendations)}))},Sld=function(a,b){return bQ(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION_BATCH")}).pipe(Af(function(c){return Qld(a,c==null?void 0:c.recommendations)}))},Tld=function(a,b){return bQ(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-NEEDS_INFO")}).pipe(Af(function(c){return Qld(a,
c==null?void 0:c.recommendations)}))},Uld=function(a,b){return bQ(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING")}).pipe(Af(function(c){var d=z7a(a.activeSession),e;c=((e=c==null?void 0:c.recommendations)!=null?e:[]).filter(function(f){return f.source!==d});return Qld(a,c)}))},Vld=function(a,b){return bQ(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ANY_ISSUE_EDIT")}).pipe(Af(function(c){return Qld(a,c==null?void 0:c.recommendations)}))},
Xld=function(a,b){return bQ(a.refreshMonitor,function(){return mjd(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 Wld(a,d).pipe(A(function(e){return e?d:void 0}))})).pipe(A(function(d){return d.filter(hn)}))}))},Qld=function(a,b){if(!b||!b.length)return ee(void 0);b=b.map(function(c){return Wld(a,c).pipe(A(function(d){return d?c:void 0}))});return le(b).pipe(A(function(c){return c.filter(hn)[0]}))},
Wld=function(a,b){if(!a.activeSession.isInternalSession())return ee(!1);var c=Pld[b.type];if(!c||!c.has(b.confidence))return ee(!1);c=gs(b.resource);if(!c)return ee(!1);c=a.issueFridge.watch(c);return le([c,a.issuePermissionService.hasAclToEdit$,Ns(a.hiddenRecommendationIds,b.name)]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Yld(a,{recommendation:b,hasAclToEdit:f,issue:d,shouldHide:e})}))},Yld=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 yo(e)&&!!(c==null?0:(f=c.content)==null?0:f.recommendedIssue);case "HOTLIST":return!0;case "ISSUE_DEDUPLICATION_BATCH":var g;return yo(e)&&!!(c==null?0:(g=c.content)==null?0:g.issueDeduplicationBatch);case "NEEDS_INFO":if(!a.activeSession.getFlag("enableNeedsInfoUi"))return!1;var k,m;return((k=c.content)==null?0:(m=k.issueModification)==null?0:m.addState)&&Om(R6a(e))!==Om(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,D,H,J;return((x=c.content)==null?0:(D=x.issueModification)==null?0:D.addState)||((H=c.content)==null?0:(J=H.issueModification)==null?0:J.removeState)?!0:!1;default:return!1}};iR.\u0275fac=function(a){return new (a||iR)};
iR.\u0275prov=Fc({token:iR,factory:iR.\u0275fac,providedIn:"root"});var jR=function(){this.activeSession=p(Qu);this.butterBar=p(gO);this.teamExperimentalFieldsFridge=p(YQ);this.duckieService=p(lO);this.errorHandler=p(wO);this.issueFridge=p(dQ);this.recommendationsApi=p(tO);this.recommendationTriggerService=p(iR);this.executionCache=new Wj(new Map);this.sourceId=this.activeSession.getEnvironmentType()==="QA"?"1109":"1463"},$ld=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Zld(a),z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",
function(f){if(f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("qe");f.playbooks.push(b)}),2);c=e.yieldResult;d=tba(c.playbooks,function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("re");return e.return(d)})},amd=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})}))},bmd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Zld(a),
z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",function(f){if(!f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("se");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("re");return e.return(d)})},fmd=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:Zld(a);if(!b.instructions)throw Error("te");
if(!b.searchQuery)throw Error("ue");if(!c.length)return w.return([]);d="Triage these bugs: "+c.join(", ")+"\nwith playbook:\n===Start Of Playbook===\n"+b.instructions+"\n===End Of Playbook===";Yd(w,2);return z(w,ie(a.duckieService.generateAnswers(d)),4);case 4:return e=w.yieldResult,f=e.response,g=sWa(f,a.sourceId),z(w,cmd(a,g),5);case 5:k=w.yieldResult;if(!a.activeSession.getFlag("clearExistingRecommendations")){w.jumpTo(6);break}return z(w,dmd(a,c),6);case 6:return z(w,emd(a,k,b.searchQuery),8);
case 8:m=w.yieldResult;var x=m.length;$r(a.butterBar,x===0?"Playbook execution complete. No recommendations generated.":"Playbook execution complete. Generated "+x+" recommendation(s).");return w.return(m);case 2:return r=be(w),r instanceof Error&&(console.error(r),xO(a.errorHandler,"Error connecting to Duckie. Please try again.")),w.return([])}})},emd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return z(f,gmd(a,b),2);d=f.yieldResult;e=d.recommendations;a.executionCache.value.set(c,
to(e,function(g){return gs(g.resource)}));a.executionCache.next(a.executionCache.value);return f.return(e)})},hmd=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):Vld(a.recommendationTriggerService,b)}),Af(function(d){return d?Ns(a.recommendationTriggerService.hiddenRecommendationIds,d.name).pipe(A(function(e){return e?void 0:d})):ee(void 0)}))},gmd=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}))})},Zld=function(a){if(!a.teamExperimentalFieldsFridge.isEnabled)throw Error("ve");},dmd=function(a,b){var c;return y(function(d){c=b.map(function(e){return{parent:"recommendationSources/"+
a.sourceId,type:"ANY_ISSUE_EDIT",resource:"issues/"+e,recommendations:[]}});return z(d,a.recommendationsApi.batchReplaceRecommendations({parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",requests:c}),0)})},cmd=function(a,b){return y(function(c){return c.nextAddress==1?z(c,Promise.all(b.map(function(d){return y(function(e){return e.return(imd(a,d))})})),2):c.return(c.yieldResult.filter(hn))})},imd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return(c=gs(b.resource))?
z(f,ie(a.issueFridge.watch(c)),2):f.return(void 0);d=f.yieldResult;e=pWa(b,d);return f.return(oWa(e)?void 0:e)})};jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275prov=Fc({token:jR,factory:jR.\u0275fac,providedIn:"root"});var jmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jmd,W);h=jmd.prototype;h.getFormattingMode=function(){return Ii(this,1)};h.setFormattingMode=function(a){return $m(this,1,a)};h.getSource=function(){return xi(this,2)};h.setSource=function(a){return Ym(this,2,a)};h.getIssueId=function(){return En(this,3)};h.getIssueId_asString=function(){return In(this,3)};h.setIssueId=function(a){return Xo(this,3,a)};h.getIdPrefix=function(){return xi(this,4)};
h.setIdPrefix=function(a){return Ym(this,4,a)};var kmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kmd.messageId)};Y(kmd,W);kmd.prototype.getIt=function(){return X(this,jmd,8,jb)};kmd.prototype.setIt=function(a){return Zi(this,jmd,8,a,jb)};kmd.messageId="b.FormatCommentRequest";var kR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kR,W);kR.prototype.getFormattedComment=function(){return X(this,yp,1)};kR.prototype.setFormattedComment=function(a){Zi(this,yp,1,a)};kR.prototype.hasFormattedComment=function(){return Ji(this,yp,1)};kR.prototype.getMentionsList=function(a){return Ni(this,$cd,2,Oi(a))};var lmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lmd.messageId)};Y(lmd,W);lmd.prototype.getIt=function(){return X(this,kR,3,jb)};lmd.prototype.setIt=function(a){return Zi(this,kR,3,a,jb)};lmd.messageId="b.FormatCommentResponse";var lR=function(){this.executor=p(oO);this.activeSession=p(Qu)};lR.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?C7a(a):mmd(this,a).pipe(A(B7a))};
var mmd=function(a,b){var c,d=(new jmd).setFormattingMode(zp(b.formattingMode)).setSource(b.comment).setIssueId((c=dn(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=Ym(d,5,c);b=$m(d,6,vdd[b.audience]);return a.executor.post({url:"action/formatComment",body:(new kmd).setIt(b),responseConstructor:lmd})};
lR.\u0275fac=function(a){return new (a||lR)};lR.\u0275prov=Fc({token:lR,factory:lR.\u0275fac,providedIn:"root"});var nmd=function(){this.executor=p(oO)},omd=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:Sn,body:vUa(b)}).pipe(A(function(c){return OTa(c)}))};nmd.\u0275fac=function(a){return new (a||nmd)};nmd.\u0275prov=Fc({token:nmd,factory:nmd.\u0275fac,providedIn:"root"});var nR=function(){var a=this;this.userPreferencesManagerBase=p(mR);this.activeSession=p(Qu);this.destroyed$=new wf(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(A(Em));this.commentFormattingPreferences$=this.preferences$.pipe(A(function(b){return b.commentFormattingPreferences||{}}));this.lastPublishFormattingMode$=this.commentFormattingPreferences$.pipe(A(function(b){var c;return(c=b.lastPublishMode)!=null?c:"UNSPECIFIED_FORMATTING_MODE"}),
pf());this.commentCreateOverride$=this.commentFormattingPreferences$.pipe(A(function(b){return b.commentCreateOverride}),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(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=l(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.isCreateCommentFormatLiteral$=this.currentCommentFormattingMode$.pipe(A(function(b){return b==="LITERAL"}));this.themePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)!=
null?c:Em(VN.themePreferences)}),Kr());this.listViewPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.listViewPreferences)!=null?c:Em(VN.listViewPreferences)}),Kr());this.layoutPreferences$=this.preferences$.pipe(A(function(b){return a.getLayoutPreferences(b)}),Kr());this.dateTimePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.dateTimePreferences)!=null?c:Em(VN.dateTimePreferences)}),Kr());this.homepagePreferences$=this.preferences$.pipe(A(function(b){return a.getHomepagePreferences(b)}),
Kr());this.keyboardPrefs$=this.preferences$.pipe(A(function(b){var c;return(c=b.keyboardPreferences)!=null?c:Em(VN.keyboardPreferences)}),Kr());this.displayColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),Kr());this.sortColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),Kr());this.bugScreensaverPreferences$=this.preferences$.pipe(A(function(b){var c;
return(c=b.bugScreensaverPreferences)!=null?c:Em(VN.bugScreensaverPreferences)}),Kr());this.teamWarningPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:Em(VN.teamWarningPreferences)}),Kr());this.commentFilterPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:Em(VN.commentFilterPreferences)}),Kr());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:VN.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:VN.showInlineImages}),pf())};nR.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};nR.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var pmd=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(A(a.getLayoutPreferences))},qmd=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)===b)return f.return();e=Object.assign({},c.commentFormattingPreferences||{},{lastPublishMode:b});return z(f,ie(a.save({commentFormattingPreferences:e})),
0)})},rmd=function(a,b){return a.save({homepagePreferences:b}).pipe(A(a.getHomepagePreferences))};nR.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:Em(VN.dateTimePreferences)};var smd=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},tmd=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
nR.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:VN.resultsPerPage}))};var umd=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:[]}))};nR.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 vmd=function(a,b){return a.save({teamWarningPreferences:b}).pipe(A(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:Em(VN.teamWarningPreferences)}))};nR.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:Em(VN.layoutPreferences)};nR.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:Em(VN.homepagePreferences)};var oR=function(a){return Em(a.preferencesSubject$.getValue())};
nR.\u0275fac=function(a){return new (a||nR)};nR.\u0275prov=Fc({token:nR,factory:nR.\u0275fac,providedIn:"root"});var mR=function(){this.activeSession=p(Qu);this.userPreferencesResources=p(nmd);this.preferences$=new Wj(Em(VN));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),wmd(a));this.preferences$.next(a)};
mR.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?ee(xmd(this,a)):omd(this.userPreferencesResources,a).pipe(A(function(){return xmd(b,a)}))};
var xmd=function(a,b){var c=Em(a.preferences$.value);c=Object.assign({},c,b);wmd(c);a.preferences$.next(c);return c},wmd=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=VN.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=VN.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=VN.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=VN.notificationPreferences.collaboratorPriority)};mR.\u0275fac=function(a){return new (a||mR)};mR.\u0275prov=Fc({token:mR,factory:mR.\u0275fac,providedIn:"root"});var pR=function(){this.userPreferencesManager=p(nR);this.codefont$=this.userPreferencesManager.codeFont$};pR.\u0275fac=function(a){return new (a||pR)};pR.\u0275prov=Fc({token:pR,factory:pR.\u0275fac,providedIn:"root"});var ymd=new ed("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var zmd=["child"],qR=function(){this.codefont=p(pR)};qR.prototype.ngOnInit=function(){};qR.prototype.ngOnChanges=function(){no(this.child.nativeElement,this.content.content)};qR.\u0275fac=function(a){return new (a||qR)};
qR.\u0275cmp=C({type:qR,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&jg(zmd,7);if(a&2){var c;ng(c=og())&&(b.child=c.first)}},inputs:{content:"content"},standalone:!1,features:[Ig([{provide:ymd,useValue:"LITERAL"}]),xx],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&&yg("codefont",U(2,2,b.codefont.codefont$))},dependencies:[ly],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var rR=new ed("buganizerWindow",{factory:function(){return window}});var sR=function(){this.window=p(rR)};sR.prototype.openInNewTab=function(a){a=Bh(a);qi(this.window,a,"_blank")};var Mr=function(a,b){b=Bh(b);qi(a.window,b)},Amd=function(a,b){a=a.window.location;b=Ch(b);b!==void 0&&(a.href=b)};sR.\u0275fac=function(a){return new (a||sR)};sR.\u0275prov=Fc({token:sR,factory:sR.\u0275fac,providedIn:"root"});var tR=function(){};tR.\u0275fac=function(a){return new (a||tR)};tR.\u0275cmp=C({type:tR,selectors:[["b-glue"]],standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(eg(),K(0,"span",0),fg(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 Bmd=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)};Bmd.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};
Bmd.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var uR=function(){this._document=p(Uh)};uR.prototype.copy=function(a){a=new Bmd(a,this._document);var b=a.copy();a.destroy();return b};uR.\u0275fac=function(a){return new (a||uR)};uR.\u0275prov=Fc({token:uR,factory:uR.\u0275fac,providedIn:"root"});new ed("CDK_COPY_TO_CLIPBOARD_CONFIG");var Cmd=["el"],vR=function(){this.clipboard=p(uR);this.snackBar=p(uC);this.domSafe=p(sR);this.scrollStrategy=p(Tz).close();this.opened=!1};vR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};vR.prototype.hide=function(){this.opened=!1};vR.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};vR.\u0275fac=function(a){return new (a||vR)};
vR.\u0275cmp=C({type:vR,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&jg(Cmd,7);if(a&2){var c;ng(c=og())&&(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();eg();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);fg(6);L()();E(7,F7a,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=sg(1),B(7),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[kz,Yy,kA,jA,tR,nC,jC,FK,DA],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 Dmd=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new hQ};Dmd.\u0275fac=function(a){return new (a||Dmd)};
Dmd.\u0275cmp=C({type:Dmd,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:[xL,rI],encapsulation:2,changeDetection:0});var M7a="entity agent_name agent_server_id borg_user borg_job cell task_index task_attempt_uid project_id resource.type start_time end_time rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code severity min_latency max_latency text_payload log_text_payload site_path has_sampled_trace snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label insert_id".split(" "),nca={EQUALS:"=",
NOT_EQUALS:"!=",REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~",CONTAINS:":"},K7a="entity agent_name agent_server_id borg_user borg_job cell rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code text_payload log_text_payload site_path snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label".split(" "),J7a="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid".split(" "),
L7a=["has_sampled_trace"];var wR=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"};
wR.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};wR.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};wR.\u0275fac=function(a){return new (a||wR)};wR.\u0275prov=Fc({token:wR,factory:wR.\u0275fac,providedIn:"root"});var U7a=function(a,b){return b.id},Emd=0,Fmd=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=Emd++},Gmd={passive:!1,capture:!0},Hmd={passive:!0,capture:!0},Imd={passive:!0},xR=function(){var a=this;this._elementRef=p(Jd);this._ngZone=p(Tg);this._platform=p(Yh);this._intl=p(wR);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new gj;this.previewChange=new gj;this.activeDateChange=new gj;this.dragStarted=new gj;this.dragEnded=new gj;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=a8a(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);X7a(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=X7a(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=a8a(d))&&a._mouseupHandler({target:d})};var b=p(fi),c=p(di);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(bi).load(sA);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[b.listen(d,"touchmove",a._touchmoveHandler,Gmd),b.listen(d,"mouseenter",a._enterHandler,Hmd),b.listen(d,"focus",a._enterHandler,Hmd),b.listen(d,"mouseleave",a._leaveHandler,Hmd),b.listen(d,"blur",a._leaveHandler,Hmd),b.listen(d,"mousedown",a._mousedownHandler,Imd),b.listen(d,"touchstart",a._mousedownHandler,Imd)];a._platform.isBrowser&&d.push(b.listen("window",
"mouseup",a._mouseupHandler),b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};h=xR.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 Y7a(a,this.startValue,this.endValue)};h._isRangeEnd=function(a){return Z7a(a,this.startValue,this.endValue)};h._isInRange=function(a){return $7a(a,this.startValue,this.endValue,this.isRange)};h._isComparisonStart=function(a){return Y7a(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 Z7a(a,this.comparisonStart,this.comparisonEnd)};h._isInComparisonRange=function(a){return $7a(a,this.comparisonStart,this.comparisonEnd,this.isRange)};h._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};h._isPreviewStart=function(a){return Y7a(a,this.previewStart,this.previewEnd)};h._isPreviewEnd=function(a){return Z7a(a,this.previewStart,this.previewEnd)};
h._isInPreview=function(a){return $7a(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=X7a(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};xR.\u0275fac=function(a){return new (a||xR)};
xR.\u0275cmp=C({type:xR,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:[xx],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,R7a,3,6,"tr",0),Qf(1,V7a,4,1,"tr",1,Q7a,!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(),Rf(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(),Bg(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),B(),I("id",b._comparisonEndDateLabelId),B(),Bg(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[Yx],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 yR=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new sf;this.selection=a};yR.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};yR.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};yR.prototype._isValidDateInstance=function(a){return qFc(a)&&this._adapter.isValid(a)};yR.\u0275fac=function(){Ze()};yR.\u0275prov=Fc({token:yR,factory:yR.\u0275fac});
var zR=function(a){yR.call(this,null,a)};Y(zR,yR);zR.prototype.add=function(a){yR.prototype.updateSelection.call(this,a,this)};zR.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};zR.prototype.isComplete=function(){return this.selection!=null};zR.prototype.clone=function(){var a=new zR(this._adapter);a.updateSelection(this.selection,this);return a};zR.\u0275fac=function(a){return new (a||zR)(Zc(mA))};zR.\u0275prov=Fc({token:zR,factory:zR.\u0275fac});
var Jmd={provide:yR,useFactory:function(){return p(yR,{optional:!0,skipSelf:!0})||new zR(p(mA))}};var Kmd=new ed("MAT_DATE_RANGE_SELECTION_STRATEGY");var Lmd=function(a,b){return b.id},Mmd=0,AR=function(){this._changeDetectorRef=p(Px);this._dateFormats=p(qA,{optional:!0});this._dateAdapter=p(mA,{optional:!0});this._dir=p(ei,{optional:!0});this._rangeStrategy=p(Kmd,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.activeDrag=null;this.selectedChange=new gj;this._userSelection=new gj;this.dragStarted=new gj;this.dragEnded=new gj;this.activeDateChange=new gj;this._monthLabel=pg.apply(null,[""].concat(q([])));this._weeks=pg.apply(null,[[]].concat(q([])));
this._firstWeekOffset=pg.apply(null,[0].concat(q([])));this._rangeStart=pg.apply(null,[null].concat(q([])));this._rangeEnd=pg.apply(null,[null].concat(q([])));this._comparisonRangeStart=pg.apply(null,[null].concat(q([])));this._comparisonRangeEnd=pg.apply(null,[null].concat(q([])));this._previewStart=pg.apply(null,[null].concat(q([])));this._previewEnd=pg.apply(null,[null].concat(q([])));this._isRange=pg.apply(null,[!1].concat(q([])));this._todayDate=pg.apply(null,[null].concat(q([])));this._weekdays=
pg.apply(null,[[]].concat(q([])));p(bi).load(fz);this._activeDate=new Cm};h=AR.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);pA(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=BR(this._activeDate,c?1:-1);break;case 39:this.activeDate=BR(this._activeDate,c?-1:1);break;case 38:this.activeDate=BR(this._activeDate,-7);break;case 40:this.activeDate=BR(this._activeDate,7);break;case 36:this.activeDate=BR(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=BR(this._activeDate,ZVc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?CR(this._activeDate,-1):DR(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?CR(this._activeDate,1):DR(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd()==null||Jh(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}pA(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 Cm));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=ER(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 ER(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
h._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=Nmd(this._dateAdapter,"narrow"),c=Nmd(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:Mmd++}});this._weekdays.set(c.slice(a).concat(c.slice(0,a)))};
h._createWeekCells=function(){for(var a=ZVc(this.activeDate),b=Omd,c=[[]],d=0,e=this._firstWeekOffset();d<a;d++,e++){e==7&&(c.push([]),e=0);var f=ER(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),d+1),g=this._shouldEnableDate(f),k=this._dateAdapter.format(f,this._dateFormats.display.dateA11yLabel),m=this.dateClass?this.dateClass(f,"month"):void 0;c[c.length-1].push(new Fmd(d+1,b[d],k,g,m,this._getCellCompareValue(f),f))}this._weeks.set(c)};
h._shouldEnableDate=function(a){return!!a&&(!this.minDate||pA(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||pA(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(AR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=nA(this._dateAdapter,oA(this._dateAdapter,a))||new Cm;this._activeDate=rFc(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=nA(this._dateAdapter,oA(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}}});AR.\u0275fac=function(a){return new (a||AR)};
AR.\u0275cmp=C({type:AR,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&jg(xR,5);if(a&2){var c;ng(c=og())&&(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:[xx],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"),Qf(3,b8a,5,2,"th",2,Lmd),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),Rf(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:[xR],encapsulation:2,changeDetection:0});var FR=function(){this._changeDetectorRef=p(Px);this._dateAdapter=p(mA,{optional:!0});this._dir=p(ei,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.selectedChange=new gj;this.yearSelected=new gj;this.activeDateChange=new gj;this._years=pg.apply(null,[[]].concat(q([])));this._todayYear=pg.apply(null,[0].concat(q([])));this._selectedYear=pg.apply(null,[null].concat(q([])));this._activeDate=new Cm};h=FR.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 Cm));for(var b=this._dateAdapter.getYear(this._activeDate)-e8a(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=ER(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);pA(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=CR(this._activeDate,c?1:-1);break;case 39:this.activeDate=CR(this._activeDate,c?-1:1);break;case 38:this.activeDate=CR(this._activeDate,-4);break;case 40:this.activeDate=CR(this._activeDate,4);break;case 36:this.activeDate=CR(this._activeDate,-e8a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=CR(this._activeDate,24-e8a(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=CR(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=CR(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}pA(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 e8a(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=ER(a,b,1);c=ZVc(c);return ER(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};h._createCellForYear=function(a){var b=ER(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Fmd(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=ER(a,0,1);this._dateAdapter.getYear(b)==a;b=BR(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(FR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=nA(this._dateAdapter,oA(this._dateAdapter,a))||new Cm;this._activeDate=rFc(this._dateAdapter,a,this.minDate,this.maxDate);d8a(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=nA(this._dateAdapter,oA(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}}});FR.\u0275fac=function(a){return new (a||FR)};
FR.\u0275cmp=C({type:FR,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&jg(xR,5);if(a&2){var c;ng(c=og())&&(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:[xR],encapsulation:2,changeDetection:0});var GR=function(){this._changeDetectorRef=p(Px);this._dateFormats=p(qA,{optional:!0});this._dateAdapter=p(mA,{optional:!0});this._dir=p(ei,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.selectedChange=new gj;this.monthSelected=new gj;this.activeDateChange=new gj;this._months=pg.apply(null,[[]].concat(q([])));this._yearLabel=pg.apply(null,[""].concat(q([])));this._todayMonth=pg.apply(null,[null].concat(q([])));this._selectedMonth=pg.apply(null,[null].concat(q([])));this._activeDate=new Cm};
h=GR.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=ER(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);pA(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=DR(this._activeDate,c?1:-1);break;case 39:this.activeDate=DR(this._activeDate,c?-1:1);break;case 38:this.activeDate=DR(this._activeDate,-4);break;case 40:this.activeDate=DR(this._activeDate,4);break;case 36:this.activeDate=DR(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=DR(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=CR(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=CR(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}pA(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 Cm));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=ER(this._dateAdapter.getYear(this.activeDate),a,1);b=ZVc(b);return ER(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
h._createCellForMonth=function(a,b){var c=ER(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 Fmd(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=ER(b,a,1);this._dateAdapter.getMonth(b)==a;b=BR(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(GR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=nA(this._dateAdapter,oA(this._dateAdapter,a))||new Cm;this._activeDate=rFc(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=nA(this._dateAdapter,
oA(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}}});GR.\u0275fac=function(a){return new (a||GR)};
GR.\u0275cmp=C({type:GR,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&jg(xR,5);if(a&2){var c;ng(c=og())&&(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:[xR],encapsulation:2,changeDetection:0});var IR=function(){var a=this;this._intl=p(wR);this.calendar=p(HR);this._dateAdapter=p(mA,{optional:!0});this._dateFormats=p(qA,{optional:!0});this._periodButtonLabelId=p(di).getId("mat-calendar-period-label-");p(bi).load(fz);var b=p(Px);this._updateLabels();this.calendar.stateChanges.subscribe(function(){a._updateLabels();b.markForCheck()})},Pmd=function(a){return a.calendar.minDate?!a.calendar.minDate||!a._isSameView(a.calendar.activeDate,a.calendar.minDate):!0};
IR.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)};IR.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):d8a(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
IR.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-e8a(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+ER(a,0,1).getFullYear();b=""+ER(b,0,1).getFullYear();return[a,b]};
da.Object.defineProperties(IR.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}}});
IR.\u0275fac=function(a){return new (a||IR)};
IR.\u0275cmp=C({type:IR,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&&(eg(),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(),Bd(),K(7,"svg",5),M(8,"polygon",6),L()(),Cd(),M(9,"div",7),fg(10),K(11,"button",8),N("click",function(){Pmd(b)&&(b.calendar.activeDate=b.calendar.currentView=="month"?DR(b.calendar.activeDate,-1):CR(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24))}),Bd(),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"?DR(b.calendar.activeDate,1):CR(b.calendar.activeDate,b.calendar.currentView=="year"?1:24))}),Bd(),K(15,"svg",9),M(16,"path",12),L()()()());a&2&&(B(2),I("id",b._periodButtonLabelId),B(),Ag(b.periodButtonDescription),B(),Kf("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),B(2),Ag(b.periodButtonText),B(),yg("mat-calendar-invert",b.calendar.currentView!=="month"),B(4),I("disabled",!Pmd(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:[jC,lC,DA],encapsulation:2,changeDetection:0});
var HR=function(){var a=this;this._dateAdapter=p(mA,{optional:!0});this._dateFormats=p(qA,{optional:!0});this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new gj;this.yearSelected=new gj;this.monthSelected=new gj;this.viewChanged=new gj(!0);this._userSelection=new gj;this._userDragDrop=new gj;this._activeDrag=null;this.stateChanges=new sf;this._intlChanges=p(wR).changes.subscribe(function(){a._changeDetectorRef.markForCheck();
a.stateChanges.next()})};h=HR.prototype;h.ngAfterContentInit=function(){this._calendarHeaderPortal=new cA(this.headerComponent||IR);this.activeDate=this.startAt||new Cm;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(Lh())&&(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(HR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=nA(this._dateAdapter,oA(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=nA(this._dateAdapter,oA(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=nA(this._dateAdapter,oA(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=rFc(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))}}});HR.\u0275fac=function(a){return new (a||HR)};
HR.\u0275cmp=C({type:HR,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(jg(AR,5),jg(GR,5),jg(FR,5));if(a&2){var c;ng(c=og())&&(b.monthView=c.first);ng(c=og())&&(b.yearView=c.first);ng(c=og())&&(b.multiYearView=c.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",
startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Ig([Jmd]),xx],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,f8a,0,0,"ng-template",0),K(1,"div",1),F(2,g8a,1,11,"mat-month-view",2)(3,h8a,1,6,"mat-year-view",3)(4,i8a,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:[gA,dz,AR,GR,FR],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 Qmd=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},JR=function(){var a=this;this._elementRef=p(Jd);this._dateAdapter=p(mA,{optional:!0});this._dateFormats=p(qA,{optional:!0});this.dateChange=new gj;this.dateInput=new gj;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=nA(a._dateAdapter,oA(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=nA(a._dateAdapter,oA(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||pA(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=nA(a._dateAdapter,oA(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
pA(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=JR.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 Qmd(b,b._elementRef.nativeElement)),b.dateChange.emit(new Qmd(b,b._elementRef.nativeElement)))})};
h.ngAfterViewInit=function(){this._isInitialized=!0};h.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(qFc(d)&&qFc(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"];Jh(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!Jh(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=nA(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 Qmd(this,this._elementRef.nativeElement)))};
h._onChange=function(){this.dateChange.emit(new Qmd(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=oA(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=nA(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};h._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
da.Object.defineProperties(JR.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()}}});
JR.\u0275fac=function(a){return new (a||JR)};JR.\u0275dir=df({type:JR,inputs:{value:"value",disabled:[2,"disabled","disabled",bh]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[xx]});var Rmd=new ed("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a)}}}),KR=function(){var a=this;this._elementRef=p(Jd);this._animationsDisabled=pi();this._changeDetectorRef=p(Px);this._globalModel=p(yR);this._dateAdapter=p(mA);this._ngZone=p(Tg);this._rangeSelectionStrategy=p(Kmd,{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(bi).load(fz);this._closeButtonText=p(wR).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,c=p(fi);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=KR.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()};KR.\u0275fac=function(a){return new (a||KR)};
KR.\u0275cmp=C({type:KR,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&jg(HR,5);if(a&2){var c;ng(c=og())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(zg(b.color?"mat-"+b.color:""),yg("mat-datepicker-content-touch",b.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!b._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",
1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"mat-calendar",1),N("yearSelected",
function(d){return b.datepicker._selectYear(d)})("monthSelected",function(d){return b.datepicker._selectMonth(d)})("viewChanged",function(d){return b.datepicker._viewChanged(d)})("_userSelection",function(d){return b._handleUserSelection(d)})("_userDragDrop",function(d){return b._handleUserDragDrop(d)}),L(),E(2,j8a,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){yg("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();zg(b.datepicker.panelClass);I("id",b.datepicker.id)("startAt",b.datepicker.startAt)("startView",b.datepicker.startView)("minDate",b.datepicker._getMinDate())("maxDate",b.datepicker._getMaxDate())("dateFilter",b.datepicker._getDateFilter())("headerComponent",
b.datepicker.calendarHeaderComponent)("selected",b._model.selection)("dateClass",b.datepicker.dateClass)("comparisonStart",b.comparisonStart)("comparisonEnd",b.comparisonEnd)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName);B();I("cdkPortalOutlet",b._actionsPortal);B();yg("cdk-visually-hidden",!b._closeButtonFocused);I("color",b.color||"primary");B();Ag(b._closeButtonText)}},dependencies:[kz,HR,gA,jC],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 LR=function(){var a=this;this._injector=p(Ae);this._viewContainerRef=p(hg);this._dateAdapter=p(mA,{optional:!0});this._dir=p(ei,{optional:!0});this._model=p(yR);this._animationsDisabled=pi();this._scrollStrategy=p(Rmd);this._inputStateChanges=Rd.EMPTY;this._document=p(Uh);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new gj;this.monthSelected=new gj;this.viewChanged=new gj(!0);this.openedStream=new gj;this.closedStream=
new gj;this._opened=!1;this.id=p(di).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new sf;this._changeDetectorRef=p(Px);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};h=LR.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 Xh&&(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 Smd=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=LR.prototype;
h.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=Lh(),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 cA(KR,this._viewContainerRef),d=this._overlayRef=ni(this._injector,new gi({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?Zra(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 jFc(Yz(new Xz))};
h._getDropdownStrategy=function(){var a=gFc(Vz(Wz(hFc($h(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 Uz(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&&!Jh(d)||b.datepickerInput&&Jh(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!Jh(d,e)})})))};
da.Object.defineProperties(LR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=nA(this._dateAdapter,oA(this._dateAdapter,a))}},color:{configurable:!0,enumerable:!0,get:function(){var a;(a=this._color)||(this.datepickerInput?(a=this.datepickerInput,a=a._formField?a._formField.color:void 0):a=void 0);return a},set:function(a){this._color=a}},disabled:{configurable:!0,enumerable:!0,
get:function(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(a){a!==this._disabled&&(this._disabled=a,this.stateChanges.next(void 0))}},panelClass:{configurable:!0,enumerable:!0,get:function(){return this._panelClass},set:function(a){var b=b===void 0?/\s+/:b;var c=[];if(a!=null)for(a=Array.isArray(a)?a:(""+a).split(b),a=l(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);this._panelClass=c}},opened:{configurable:!0,
enumerable:!0,get:function(){return this._opened},set:function(a){a?this.open():this.close()}}});LR.\u0275fac=function(a){return new (a||LR)};
LR.\u0275dir=df({type:LR,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",bh],disabled:[2,"disabled","disabled",bh],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",bh],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",bh]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[xx]});var Tmd={provide:lE,useExisting:Xc(function(){return MR}),multi:!0},Umd={provide:mE,useExisting:Xc(function(){return MR}),multi:!0},MR=function(){JR.call(this);this._formField=p(XQc,{optional:!0});this._openedSubscription=this._closedSubscription=Rd.EMPTY;this._ariaOwns=pg.apply(null,[null].concat(q([])));this._validator=Gwa(JR.prototype._getValidators.call(this))};Y(MR,JR);h=MR.prototype;h.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
h.ngOnDestroy=function(){JR.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(MR.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(Smd(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=nA(this._dateAdapter,
oA(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=nA(this._dateAdapter,oA(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()}}});MR.\u0275fac=function(a){return new (a||MR)};
MR.\u0275dir=df({type:MR,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&&(Sf("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:[Ig([Tmd,Umd,{provide:GRc,useExisting:MR}]),Gf]});var Vmd=["button"],Wmd=[[["","matDatepickerToggleIcon",""]]],Xmd=function(){};Xmd.\u0275fac=function(a){return new (a||Xmd)};Xmd.\u0275dir=df({type:Xmd,selectors:[["","matDatepickerToggleIcon",""]]});var NR=function(){this._intl=p(wR);this._changeDetectorRef=p(Px);this._stateChanges=Rd.EMPTY;var a=p(new yx("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};h=NR.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(NR.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}}});NR.\u0275fac=function(a){return new (a||NR)};
NR.\u0275cmp=C({type:NR,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&kg(c,Xmd,5);if(a&2){var d;ng(d=og())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&jg(Vmd,5);if(a&2){var c;ng(c=og())&&(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),yg("mat-datepicker-toggle-active",b.datepicker&&
b.datepicker.opened)("mat-accent",b.datepicker&&b.datepicker.color==="accent")("mat-warn",b.datepicker&&b.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",bh],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[xx],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&&(eg(Wmd),K(0,"button",1,0),F(2,k8a,2,0,":svg:svg",2),fg(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:[lC],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 OR=function(){LR.apply(this,arguments)};Y(OR,LR);OR.\u0275dir=LR.\u0275dir;OR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(OR)))(b||OR)}}();OR.\u0275cmp=C({type:OR,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ig([Jmd,{provide:LR,useExisting:OR}]),Gf],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var PR=function(){};PR.\u0275fac=function(a){return new (a||PR)};PR.\u0275mod=cf({type:PR});PR.\u0275inj=Gc({providers:[wR],imports:[mC,lA,tz,hA,KR,NR,IR,Zy,Rz]});var l8a=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var Ymd=["el"],q8a=function(a,b){return b.label},QR=function(){Z.apply(this,arguments);this.domSafe=p(sR);this.clipboard=p(uR);this.snackBar=p(uC);this.activeSession=p(Qu);this.contextSensitiveRegistry=p(cR);this.formattingMode=p(ymd);this.analytics=p(lQ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.scrollStrategy=p(Tz).close();this.urls=[];this.opened=!1};Y(QR,Z);QR.\u0275dir=Z.\u0275dir;
QR.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.activeSession.isInternalSession()){var a=Ir(this.contextSensitiveRegistry.getIssueId());a:{var b=this.originalHref;try{var c=null,d=(new URL(b)).hostname;switch(d.includes("analog")?"Analog":d.includes("sherlog")?"Sherlog":d.includes("eye3")?"Third Eye":"PRODUCT_UNSPECIFIED"){case "Analog":var e=new URL("https://nexus.corp.google.com/debug/dashboard");var f=new URL(b);if(f.searchParams.has("text_query")){var g=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var m=[];else{var r=k.split("/");if(r.length!==2)m=[];else{var w=(new Date(r[1])).getTime()*1E3;m=[Nr("start_time","=",[(new Date(r[0])).getTime()*1E3]),Nr("end_time","=",[w])]}}f=[];var x=f.concat,D=q(m);m=[];for(var H,J=[],O=l(g.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),R=O.next();!R.done;R=O.next()){var V=R.value;J.push(V[1]+":"+V[2])}(H=J.length>0?Nr("site_path",
"!=",J):null)&&m.push(H);O=void 0;for(var ba=l(g.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),oa=ba.next();!oa.done;oa=ba.next()){var ta=oa.value,ka=ta[1];var Ca=ta[2];var ja=oca()(Ca)?Ca:void 0;g=ja;var ua=ta[3];if(ua.length>=2&&ua.charAt(0)==='"'&&ua.charAt(ua.length-1)==='"')var xa=ua.substring(1,ua.length-1);else if(ua==="true"||ua==="false")xa=ua==="true";else{var Ra=Number(ua);xa=sca(Ra)?Ra:void 0}R=xa;if(g)if(ka!=="source_location.file"||
H){ka==="source_location.line"&&O&&(O=Nr("site_path",O.operator,[O.values[0]+":"+R]));var $a=P7a(ka);$a&&m.push(Nr($a,g,[J7a.includes($a)?Number(R):R]))}else O=Nr("site_path",g,[R])}O&&m.push(O);var pb=x.call(f,D,q(m))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("xe");x=[];J=l(f.searchParams);for(var Yb=J.next();!Yb.done;Yb=J.next()){var lc=l(Yb.value),fc=lc.next().value,qc=lc.next().value,sb=O7a(fc,qc,f.searchParams);sb&&x.push.apply(x,q(sb))}pb=x}e.searchParams.set("filters",
I7a(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 Zb=ib.searchParams,tc,ld=encodeURIComponent((tc=Zb.get("dataid"))!=null?tc:""),Rb=new URL("https://nexus.corp.google.com/trace/"+ld),mc=m8a(ib);Rb.searchParams.set("account",
mc.account);Rb.searchParams.set("account_type",mc.accountType);var Mc;Rb.searchParams.set("version",(Mc=Zb.get("version"))!=null?Mc:"");var fd;Rb.searchParams.set("pipeline",(fd=Zb.get("config"))!=null?fd:"");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(ge){Nc="";break a}Nc=
void 0}Nc&&this.urls.push({label:"Open in Nexus",originalHref:Nc,href:Nc,icon:"nexus-logo"})}};QR.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()})};QR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var Zmd=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=cVa(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};QR.prototype.hide=function(){this.opened=!1};QR.prototype.openLink=function(a,b){dVa(a)||(a.preventDefault(),a.stopPropagation(),Mr(this.domSafe,b))};QR.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var $md=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};QR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(QR)))(b||QR)}}();
QR.\u0275cmp=C({type:QR,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(jg(Ymd,7),jg(kA,7));if(a&2){var c;ng(c=og())&&(b.el=c.first);ng(c=og())&&(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();eg();K(0,"a",2,0);N("click",function(d){u(c);dVa(d)||(d.preventDefault(),d.stopPropagation(),Zmd(b)?($md(b),b.opened=!0):b.openLink(d,b.href));return v()});F(2,n8a,2,0,"b-glue");K(3,"span",null,1);fg(5);L()();E(6,s8a,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=sg(1),yg("needs-contextual-popup",Zmd(b)),I("href",b.originalHref,Pe)("rel",b.EXTERNAL_LINK_REL),B(2),G(Zmd(b)?
2:-1),B(4),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[kz,Yy,kA,jA,tR,nC,jC,FK,DA],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 and=function(){this.session=p(Qu)};and.\u0275fac=function(a){return new (a||and)};and.\u0275prov=Fc({token:and,factory:and.\u0275fac,providedIn:"root"});var bnd=new ed("IssueCard");var RR=function(){};RR.prototype.visit=function(){};RR.\u0275fac=function(a){return new (a||RR)};RR.\u0275prov=Fc({token:RR,factory:RR.\u0275fac,providedIn:"root"});var cnd=["el"],dnd=function(){this.viewContainerRef=p(hg)};dnd.\u0275fac=function(a){return new (a||dnd)};dnd.\u0275dir=df({type:dnd,selectors:[["","issueCardHost",""]],standalone:!1});var SR=function(){Z.apply(this,arguments);this.issueReferenceResolver=p(RR);this.issueCard=p(bnd,{optional:!0});this.hovercardReady=new wf(1)};Y(SR,Z);SR.\u0275dir=Z.\u0275dir;SR.prototype.ngOnInit=function(){};
SR.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())})};
SR.prototype.visit=function(a){if(!dVa(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})}};SR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(SR)))(b||SR)}}();
SR.\u0275cmp=C({type:SR,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(jg(cnd,7),jg(dnd,5));if(a&2){var c;ng(c=og())&&(b.el=c.first);ng(c=og())&&(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();eg();K(0,"onedev-hovercard",null,0);E(2,t8a,2,1,"div",2);L();K(3,"a",3,1);N("click",function(d){u(c);return v(b.visit(d))});fg(5);L()}a&2&&(a=sg(1),B(3),I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,Pe))},dependencies:[WK,XK,dL,YK,dnd],encapsulation:2,changeDetection:0});var end=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],TR={},fnd=(TR.UNSPECIFIED=[],TR.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],TR.CONFIRMED=["PENDING_OWNER"],TR.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],TR.FIXED=["REOPENED"],TR.WONT_FIX=["REOPENED"],TR),UR={},gnd=(UR.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",UR.NEEDS_INFO="Needs more info",UR.PENDING_TRIAGE="Pending triage",UR.PENDING_OWNER="Pending owner",UR.REPORTER_RESPONDED="Reporter responded",UR.EXPECTED="Expected",
UR.PLANNED="Planned",UR.COMMITTED="Committed",UR.REOPENED="Reopened",UR),VR={},hnd=(VR.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",VR.NEEDS_INFO="needs-info",VR.PENDING_TRIAGE="pending-triage",VR.PENDING_OWNER="pending-owner",VR.REPORTER_RESPONDED="reporter-responded",VR.EXPECTED="expected",VR.PLANNED="planned",VR.COMMITTED="committed",VR.REOPENED="reopened",VR),ind=uVa(vVa(hnd)),WR={},au=(WR.UNSPECIFIED="unspecified",WR.NEW="new",WR.CONFIRMED="confirmed",WR.IN_PROGRESS="in-progress",WR.FIXED="fixed",
WR.WONT_FIX="wont-fix",WR),jnd=uVa(vVa(au)),rt=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),knd={},lnd=(knd.NEW="status:new modified:7d",knd.CONFIRMED="status:assigned modified:7d",knd.IN_PROGRESS="status:accepted modified:30d",knd.FIXED="status:fixed|verified modified:30d",knd.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",knd),mnd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],YR={},nnd=(YR.UNSPECIFIED=mnd,YR.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],YR.CONFIRMED=mnd,YR.IN_PROGRESS=mnd,YR.FIXED=mnd,YR.WONT_FIX=mnd,YR);var ond=new Set([1049953,209989]);var pnd=new gR,qnd=pnd.value$.pipe(mf(),lf(0,Lr));var rnd=mo().user.email,snd={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return Pr(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},tnd={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return qVa(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||qVa(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},und={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},vnd={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=ro((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return ond.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},
wnd={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return yo(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},xnd={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return yo(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
rnd||EVa(a)===rnd)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},ynd={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!pnd.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},znd={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"},And={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=gKb.get("NEW"))==null?void 0:b.some(function(d){return v8a(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},Bnd={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},Cnd={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return EVa(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},Dnd=new Map([["NEW",[And,xnd,znd]],["CONFIRMED",[ynd,und,znd]],["IN_PROGRESS",[tnd,vnd,znd]],["FIXED",[znd]],["WONT_FIX",[znd]]]),gKb=new Map([["NEW",[Bnd,tnd,snd]],["CONFIRMED",[ynd,tnd,und,Bnd]],["IN_PROGRESS",[tnd,vnd,Cnd]],["FIXED",[wnd]],["WONT_FIX",[wnd]]]),End={INACTIVE_1Y:und,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:znd,MY_ISSUES:xnd,NEEDS_ATTENTION:And,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return Pr(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:tnd,PAST_DEADLINE:vnd,REOPENED:wnd,TRENDING:ynd,
USER_RESPONDED:snd,HIGH_PRIORITY:Bnd,NOT_ASSIGNED:Cnd};var ZR=function(){this.issueFridge=p(dQ);this.issueExperimentalFieldsFridge=p($P);this.activeSession=p(Qu)},Gnd=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,Fnd(a,d),5);case 5:return g.return();case 3:f=be(g),console.error(f),ce(g)}})},Fnd=function(a,b){return y(function(c){return Or(b)!==
"NEW"||Pr(b)!=="NEEDS_INFO"||a.activeSession.getUserEmail()!==Om(b.snapshot[0].reporterUser)?c.jumpTo(0):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})};ZR.\u0275fac=function(a){return new (a||ZR)};ZR.\u0275prov=Fc({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});var $R=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(dQ);this.teamFridge=p(ZQ);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(hn).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(A(function(b){return Q0a(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=to(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),xf({refCount:!0,bufferSize:1}))};Y($R,Z);$R.\u0275dir=Z.\u0275dir;
$R.\u0275fac=function(){var a;return function(b){return(a||(a=Hd($R)))(b||$R)}}();$R.\u0275prov=Fc({token:$R,factory:$R.\u0275fac,providedIn:"root"});var aS=function(){var a=this;this.teamFridge=p(ZQ);this.userPrefsManager=p(nR);this.teamUserActivity=p($R);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=[];Hnd(this);this.starredTeamIds$.pipe(fj(this.destroyRef)).subscribe(function(b){a.starredTeamIds=
b});this.starredTriageViews$.pipe(fj(this.destroyRef)).subscribe(function(b){a.starredTriageViews=b})},Hnd=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:qTa(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:qTa(Date.now()),starredTeams:d,starredTriageViews:e}),0)}})};aS.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)})};
aS.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])})};aS.prototype.reset=function(){var a=this;return y(function(b){return z(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};
var Ind=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}])})};aS.\u0275fac=function(a){return new (a||aS)};aS.\u0275prov=Fc({token:aS,factory:aS.\u0275fac,providedIn:"root"});var Jnd={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"},Knd={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},Lnd={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},Mnd={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},Nnd={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},Ond={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Pnd={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},Qnd={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Rnd={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},Snd={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},Tnd={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},Und={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},Vnd=new Map([["NEW",[Und,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var bS={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var Xnd=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 Wj(!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 m,r;return(k==null?void 0:(m=k.triage.find(function(w){return w.id===Number(g.triageId)}))==null?void 0:(r=m.scope)==null?void 0:r.trim())||"teamid:"+g.teamId+"+"}),xf({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(A(function(k){return k==null?void 0:k.triage.find(function(m){return""+m.id===g.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(A(function(k){var m;return(m=k==null?void 0:k.config)!=null?m:[]}));this.byPhase=new Map(end.map(function(k){return[k,Wnd(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 Iq(k,function(m){return m.issueId})}),
xf({refCount:!0,bufferSize:1}));this.triageName$=le([this.teamName$,this.teamExperiments$]).pipe(A(function(k){var m=l(k);k=m.next().value;m=m.next().value;m=m==null?void 0:m.triage.find(function(r){return r.id===Number(g.triageId)});return Qr(k,m)}))};Xnd.prototype.phase=function(a){return this.byPhase.get(a)};
var Wnd=function(a,b){var c=a.triageScope$.pipe(A(function(m){m=Sr(m,"modified:365d");m=Sr(m,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":m=Sr(m,"status:open")}return[m,b].join("____b-internal____")}),pf()),d=c.pipe(A(B8a),Cf(a.setLoading),Af(function(m){return a.issueFridge.watchMany(m)}),Cf(a.setNotLoading),xf({refCount:!0,bufferSize:1})),e=d.pipe(A(function(m){return m.results}),A(function(m){return m.map(function(r){return r.issueId})}),pf(Dm)).pipe(Af(function(m){return m.length?
le(m.map(function(r){return a.issueFridge.watch(r)})):ee([])}));d=d.pipe(A(function(m){var r;return(r=m.totalSize)!=null?r:0}));e=e.pipe(A(function(m){return C8a(m,b)}),xf({refCount:!0,bufferSize:1}));var f=e.pipe(A(function(m){return u8a(m).length})),g=le([e,f,qnd]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return w8a(m,gKb.get(b)).length+r}),A(function(m){return m===0?"":m>=250?"250+":""+m}));d=le([d,f]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return m+
r}));var k;return{phase:b,displayName:(k=rt.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:g,totalCount$:d}};
Xnd.prototype.reload=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.setLoading(),z(c,Promise.all(Jq([].concat(q(a.byPhase.values())).map(function(d){return Jr(d.query$)})).map(function(d){return Pfd(a.issueFridge,B8a(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,z(c,Promise.all(Jq(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 Ynd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){d=d||[];var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="CUSTOM_FIELD"){f=f.customFieldConfig;var g=f.defaultValues.find(function(k){var m;if(b&&((m=k.phases)==null||!m.includes(b)))return!1;var r;return!c||(r=k.subphases)!=null&&r.includes(c)?!0:!1});g&&e.push({customFieldId:f.customFieldId,defaultValues:[g]})}return e}))},Znd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){var e=[];
d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="HOTLIST"){f=f.hotlistConfig;var g=void 0;if(!b||(g=f.phases)!=null&&g.includes(b))g=void 0,(!c||(g=f.subphases)!=null&&g.includes(c))&&e.push(f)}return e}))},cS=function(){this.teamFridge=p(ZQ);this.issueFullFridge=p(nQ);this.issueFridge=p(dQ);this.teamExperimentalFieldsFridge=p(YQ);this.cache=new Map};cS.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)};
cS.prototype.create=function(a,b){return new Xnd(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};cS.\u0275fac=function(a){return new (a||cS)};cS.\u0275prov=Fc({token:cS,factory:cS.\u0275fac,providedIn:"root"});var dS=function(){this.triageDataFactory=p(cS);this.isSidebarOpen$=new Wj(!1);this.internalCurrentIssueIds$=new Wj([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(pf(Dm));this.currentIssueId$=this.currentIssueIds$.pipe(A(function(a){return a[0]}),pf());this.internalSelectedIssueIds$=new Wj([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(pf(Dm));this.mode=0};dS.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};dS.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
dS.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};dS.prototype.setMode=function(a){this.mode=a};dS.\u0275fac=function(a){return new (a||dS)};dS.\u0275prov=Fc({token:dS,factory:dS.\u0275fac,providedIn:"root"});var $nd={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var aod=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};
aod.prototype.setData=function(a){a=bod(a);this.originalIssue=Em(a);var b=Em(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=Lm(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.ccUsers=Nm(b.ccUsers);this.cc=this.ccUsers.map(Lm);this.collaboratorsUsers=Nm(b.collaboratorsUsers);this.collaborators=this.collaboratorsUsers.map(Lm);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=Lm(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=Lm(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 cod(e)}));
c=l(a.customFields);a=c.next();for(d={};!a.done;d={fieldResource:void 0},a=c.next())d.fieldResource=a.value,a=d.fieldResource.allowedValue?d.fieldResource.allowedValue.map(function(e){return{value:e,displayText:e}}):null,(b=this.customField.find(function(e){return function(f){return f.customFieldId===e.fieldResource.customFieldId}}(d)))?(b.type=d.fieldResource.type,b.customFieldName=d.fieldResource.name,b.choices=a,this.customFieldMap[String(d.fieldResource.customFieldId)]=b):(b=new cod({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 bod=function(a){a=Em(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},dod=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,m,r=(m=(k=b.value)==null?void 0:k.split(","))!=null?
m:[],w;a.blockedByIssueId=Jq([].concat(q((w=a.blockedByIssueId)!=null?w:[]),q(r)))}break;case "blockingIssueId":if(b.actionType==="REMOVE"){var x,D,H=new Set((D=(x=b.value)==null?void 0:x.split(","))!=null?D:[]),J,O;a.blockingIssueId=(O=(J=a.blockingIssueId)==null?void 0:J.filter(function(zh){return!H.has(zh)}))!=null?O:[]}else{var R,V;r=(V=(R=b.value)==null?void 0:R.split(","))!=null?V:[];var ba;a.blockingIssueId=Jq([].concat(q((ba=a.blockingIssueId)!=null?ba:[]),q(r)))}break;case "ccs":if(b.actionType===
"REMOVE"){var oa,ta,ka=new Set((ta=(oa=b.value)==null?void 0:oa.split(","))!=null?ta:[]),Ca,ja;a.cc=(ja=(Ca=a.cc)==null?void 0:Ca.filter(function(zh){return!ka.has(zh)}))!=null?ja:[]}else{var ua,xa;r=(xa=(ua=b.value)==null?void 0:ua.split(","))!=null?xa:[];var Ra;a.cc=Jq([].concat(q((Ra=a.cc)!=null?Ra:[]),q(r)))}break;case "changelists":if(b.actionType==="REMOVE"){var $a,pb,Yb=new Set((pb=($a=b.value)==null?void 0:$a.split(","))!=null?pb:[]),lc,fc;a.changelist=(fc=(lc=a.changelist)==null?void 0:lc.filter(function(zh){return!Yb.has(zh)}))!=
null?fc:[]}else{var qc,sb;r=(sb=(qc=b.value)==null?void 0:qc.split(","))!=null?sb:[];var Ob;a.changelist=Jq([].concat(q((Ob=a.changelist)!=null?Ob:[]),q(r)))}break;case "collaborators":if(b.actionType==="REMOVE"){var ib,Zb,tc=new Set((Zb=(ib=b.value)==null?void 0:ib.split(","))!=null?Zb:[]),ld,Rb;a.collaborators=(Rb=(ld=a.collaborators)==null?void 0:ld.filter(function(zh){return!tc.has(zh)}))!=null?Rb:[]}else{var mc,Mc;r=(Mc=(mc=b.value)==null?void 0:mc.split(","))!=null?Mc:[];var fd;a.collaborators=
Jq([].concat(q((fd=a.collaborators)!=null?fd:[]),q(r)))}break;case "comment":break;case "componentId":a.componentId=b.value||null;break;case "customField":var Nc=b.customFieldValue,ge,Xe,Ue;k=Nc.textValue||Nc.dateValue||Nc.enumValue||Nc.numericValue||((r=Nc.repeatedTextValue)==null?void 0:r.values)||((ge=Nc.repeatedDateValue)==null?void 0:ge.values)||((Xe=Nc.repeatedEnumValue)==null?void 0:Xe.values)||((Ue=Nc.repeatedNumericValue)==null?void 0:Ue.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 Gh,Jw;a.foundInVersion=(Jw=(Gh=a.foundInVersion)==null?void 0:Gh.filter(function(zh){return zh!==b.value}))!=null?Jw:[]}else{r=b.value!=null?[b.value]:[];var bp;a.foundInVersion=Jq([].concat(q((bp=a.foundInVersion)!=
null?bp:[]),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:[]),Kw;a.gerritChanges=((Kw=a.gerritChanges)!=null?Kw:[]).map(function(zh){return fr(zh)}).filter(function(zh){return!Hq.has(zh)}).map(gr).filter(hn)}else{var ek,Dl;r=(Dl=(ek=b.value)==null?void 0:ek.split(","))!=null?Dl:[];ge=((Nc=a.gerritChanges)!=null?Nc:[]).map(function(zh){return fr(zh)});a.gerritChanges=Jq([].concat(q(ge),q(r))).map(gr).filter(hn)}break;
case "hotlists":if(b.actionType==="REMOVE"){var cp,Lw,VK=new Set((Lw=(cp=b.value)==null?void 0:cp.split(",").map(Number))!=null?Lw:[]),El,aA;a.hotlistId=(aA=(El=a.hotlistId)==null?void 0:El.filter(function(zh){return!VK.has(zh)}))!=null?aA:[]}else{var gX,o9;r=(o9=(gX=b.value)==null?void 0:gX.split(",").map(Number))!=null?o9:[];var p9;a.hotlistId=Jq([].concat(q((p9=a.hotlistId)!=null?p9:[]),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?dn(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=dn(b.value))?a.sloStartTime=
{seconds:r,nanos:0}:a.sloStartTime=null;break;case "staffing":var q9;a.staffing=(q9=b.staffingValue)!=null?q9:null;break;case "status":a.setStatus(b.value);break;case "targetedToVersion":if(b.actionType==="REMOVE"){var hX,Zx;a.targetedToVersion=(Zx=(hX=a.targetedToVersion)==null?void 0:hX.filter(function(zh){return zh!==b.value}))!=null?Zx:[]}else{r=b.value!=null?[b.value]:[];var ay;a.targetedToVersion=Jq([].concat(q((ay=a.targetedToVersion)!=null?ay:[]),q(r)))}break;case "title":a.title=b.value||
"";break;case "type":a.type=b.value;break;case "verifiedInVersion":if(b.actionType==="REMOVE"){var cO,dO;a.verifiedInVersion=(dO=(cO=a.verifiedInVersion)==null?void 0:cO.filter(function(zh){return zh!==b.value}))!=null?dO:[]}else{r=b.value!=null?[b.value]:[];var iX;a.verifiedInVersion=Jq([].concat(q((iX=a.verifiedInVersion)!=null?iX:[]),q(r)))}break;case "verifier":a.verifier=b.value||null;break;default:wb(b.fieldName)}},hod=function(a){for(var b=[],c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=
c.next()){d=d.value;var e=eod(a,d.customFieldId);if(!Dm(e?Im(e):null,Im(d))){if(e=Jm(d))d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=a.originalIssue.snapshot[0];eS(Lm(c.assigneeUser),a.assignee,"assignee",b);eS(c.componentId,a.componentId,"componentId",b);eS(c.deletionReason,a.deletionReason,"deletionReason",b);eS(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);eS(c.inProd,a.inProd,"inProd",b);eS(c.isArchived,
a.isArchived,"isArchived",b);eS(c.isDeleted,a.isDeleted,"isDeleted",b);eS(c.priority,a.priority,"priority",b);eS(Lm(c.reporterUser),a.reporter,"reporter",b);eS(c.severity,a.severity,"severity",b);eS(c.status,a.status,"status",b);eS(c.title,a.title,"title",b);eS(c.type,a.type,"type",b);eS(Lm(c.verifierUser),a.verifier,"verifier",b);var f,g,k,m;eS((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(m=(g=a.sloStartTime)==null?void 0:g.seconds)!=null?m:null,"sloStartTime",b);var r,w,x,D;eS((x=
(r=c.sloEndTime)==null?void 0:r.seconds)!=null?x:null,(D=(w=a.sloEndTime)==null?void 0:w.seconds)!=null?D:null,"sloEndTime",b);eS(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var H,J;eS((J=(H=c.effort)==null?void 0:H.estimate)!=null?J:null,a.effortEstimate,"effortEstimate",b);fS(Nm(c.ccUsers).map(Lm),a.cc,"ccs",b);fS(Nm(c.collaboratorsUsers).map(Lm),a.collaborators,"collaborators",b);fod(c.staffing,a.staffing,b);fS(c.changelist,a.changelist,"changelists",b);god(c.gerritChanges,a.gerritChanges,
b);fS(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);fS(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);fS(c.foundInVersion,a.foundInVersion,"foundInVersion",b);fS(c.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);fS(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);fS(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},eS=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:b!=null?String(b):void 0})},fS=function(a,
b,c,d){var e=ySa(b||[],new Set(a));a=ySa(a||[],new Set(b));e=l(e);for(b=e.next();!b.done;b=e.next())d.push({fieldName:c,value:String(b.value),actionType:"ADD"});e=l(a);for(a=e.next();!a.done;a=e.next())d.push({fieldName:c,value:String(a.value),actionType:"REMOVE"})},god=function(a,b,c){var d=e3a(b!=null?b:[],a!=null?a:[]);a=e3a(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"})},fod=function(a,b,c){var d,e=lWa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,g=lWa((f=a==null?void 0:a.plannedAllocations)!=null?f:[]);a=[].concat(q(e.entries())).filter(function(k){var m=l(k);k=m.next().value;m=m.next().value;var r,w=new (Function.prototype.bind.apply(Set,[null,((r=g.get(k))!=null?r:[]).map(function(x){return Go(x)})]));return!g.has(k)||m.some(function(x){return!w.has(Go(x))})}).map(function(k){k=l(k);k.next();return k.next().value});
b=a.map(function(k){var m=k[0];return m.user?Go(m,k.length>1):m.placeholder?"Placeholder: "+m.placeholder.count+" "+m.placeholder.role:""}).join(", ");d=[].concat(q(g.entries())).filter(function(k){k=l(k).next().value;return!e.has(k)}).map(function(k){k=l(k);k.next();return k.next().value});f=d.map(function(k){k=l(k).next().value;if(k.user){var m;return(m=k.user.user)==null?void 0:m.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:""}).join(", ");a.length&&c.push({fieldName:"staffing",
staffingValue:{plannedAllocations:a.flat()},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d.flat()},actionType:"REMOVE",value:f})};h=aod.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:mn("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:mn("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=xo.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&&Lm(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
h.setStatus=function(a){this.status=a;a=xo.get(this.status);(a==null?void 0:a.assigneeRequirement)==="FORBIDDEN"&&this.assigneeUser?this.assignee="":(a==null?void 0:a.assigneeRequirement)!=="REQUIRED"||this.assigneeUser||(this.assignee=this.currentUserEmail);this.status!=="VERIFIED"||this.verifier||(this.verifier=this.currentUserEmail)};h.setInProd=function(a){this.inProd=a};h.setCollaborators=function(a){this.collaborators=a};h.setStaffing=function(a){this.staffing=a};
h.setSloEndTime=function(a){this.sloEndTime=a};h.setSloSnoozeType=function(a){this.sloSnoozeType=a};h.setCodeChanges=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=gr(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var eod=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},Znb=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 fr(d)})));return c},iod=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return fr(b)}):
[]},cod=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};
cod.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var jod=new Map([["assignee",function(a,b){a.assigneeUser=Pm(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Pm).filter(hn)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Pm(b.reporter)}],["verifier",function(a,b){a.verifierUser=Pm(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 gS=function(){this.$window=p(rR)};gS.\u0275fac=function(a){return new (a||gS)};gS.\u0275prov=Fc({token:gS,factory:gS.\u0275fac,providedIn:"root"});var hS=function(){this.session=p(Qu);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},ws=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},kod=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"};
hS.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 lod=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":ws(a)},Tib=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},mod=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},nod=function(a){if(a=mod(a))return a+"#recommended-access-settings"},ood=function(a){if(a=mod(a))return a+"#fully-public-component"},pod=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"},e7b=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},Lu=function(){return"http://go/buganizer-retention"};hS.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 ufc=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"},qod=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};hS.\u0275fac=function(a){return new (a||hS)};hS.\u0275prov=Fc({token:hS,factory:hS.\u0275fac,providedIn:"root"});var rod=function(){this.dialogRef=p(SB);this.data=p(UB);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};rod.\u0275fac=function(a){return new (a||rod)};
rod.\u0275cmp=C({type:rod,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,D8a,2,1,"button",3),K(5,"button",4),N("click",
function(){return b.dialogRef.close(!0)}),Q(6),L()());a&2&&(B(),Ag(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:[nC,jC,YB,$B,ZB],encapsulation:2});var iS=function(){this.dialog=p(VB)},sod=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
iS.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;TB(this.dialog.open(rod,{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()})};iS.\u0275fac=function(a){return new (a||iS)};iS.\u0275prov=Fc({token:iS,factory:iS.\u0275fac,providedIn:"root"});var jS=function(){this.activeSession=p(Qu);this.documentationLinks=p(hS);this.confirmationDialogService=p(iS)},uod=function(a,b){return new Promise(function(c){tod(a,b,function(){c(!0)},function(){c(!1)})})},tod=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Dh("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Fh([Dh('A security "Vulnerability" is a weakness in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. \n\nThis issue type is subject to stricter SLOs than other types. Please refer to the security guidelines for more information on on proper usage.\n\n',
{preserveNewlines:!0}),Hh("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if(b==="PRIVACY_ISSUE"){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var g={};f=Fh([Dh('The "Privacy Issue" type tracks situations in which Google systems risk falling out of alignment with internal privacy  standards and requirements, and is subject to stricter SLOs than other types. ',{preserveNewlines:!0}),Hh("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Dh(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),Hh("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Dh(". Incidents should be filed at ",{preserveNewlines:!0}),Hh("a",(g.href="http://goto.google.com/privacy-incidents",g.target="_blank",g),"go/privacy-incidents"),Dh(".\n\nDO NOT use this type unless you are on one of the following teams or have been specifically requested by one of these teams to file a Privacy Issue bug: Privacy Incident Management, Privacy Investigations, Privacy Remediation.",
{preserveNewlines:!0})])}a.confirmationDialogService.open({title:e,content:f,onConfirm:c!=null?c:function(){},onDismiss:d!=null?d:function(){}})}};jS.\u0275fac=function(a){return new (a||jS)};jS.\u0275prov=Fc({token:jS,factory:jS.\u0275fac,providedIn:"root"});var vod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vod.messageId)};Y(vod,W);vod.messageId="b.TimeZoneDataList";var kS=function(){var a=this;this.executor=p(oO);this.activeSession=p(Qu);this.cachedDisplayNames=void 0;this.memoizedTimezones=new old(function(b){a:{var c=l(a.activeSession.session.preload.timezones);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b===d.timeZoneId_){c=d;break a}c=void 0}return c?ee(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:jo}).pipe(A($Sa))},10)};kS.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var wod=function(a){return a.cachedDisplayNames?ee(Em(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:vod}).pipe(A(function(b){b=Ni(b,jo,1,Oi(),jb).map(function(c){c=$Sa(c);var d=PVc($k(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};kS.\u0275fac=function(a){return new (a||kS)};kS.\u0275prov=Fc({token:kS,factory:kS.\u0275fac,providedIn:"root"});var xod=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"]]),yod=["P0","P1","P2","P3","P4"],zod="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE INACTIVE".split(" "),Aod="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),Bod=["HIGH","MEDIUM","LOW","ZERO"],Cod="SWE SRE PM TPGM UX UXD UXR DATASCI LD DEVREL TW GTM CE OTHER".split(" "),
Dod=["S0","S1","S2","S3","S4"],Eod=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),Fod=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"]]),God=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"]]),G8a=new Set("PROGRAM PROJECT MILESTONE FEATURE EPIC STORY TASK".split(" ")),Hod=Aod.map(function(a){return{value:a,displayText:Qm(a),altText:xod.get(a),icon:God.get(a),group:H8a(a)?1:0}}),lS=function(){this.priorities=yod;this.severities=Dod;this.editIssueTypes=Aod;this.editIssueTypeChoices=Hod;this.issueTypesDisplayNames=Fod;this.issueTypesShortDescriptions=xod;this.issuePrioritiesDisplayNames=Eod;this.issueTypeIcons=God;
this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}];this.isWTDMType=H8a};lS.\u0275fac=function(a){return new (a||lS)};lS.\u0275prov=Fc({token:lS,factory:lS.\u0275fac,providedIn:"root"});var mS=function(){var a=p(nR),b=p(kS),c=p(lS);Z.call(this);var d=this;this.errorHandler=p(wO);this.cachedFormatters=new Map;this.userPrefs=VN.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=l(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(mS,Z);mS.\u0275dir=Z.\u0275dir;mS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new wl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var Iod=function(a,b){return a.formatPrefChange$.subscribe(b)};mS.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};mS.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275prov=Fc({token:mS,factory:mS.\u0275fac,providedIn:"root"});var nS=function(){this.dateFormatter=p(mS)};
nS.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(Bm(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(Bm(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275prov=Fc({token:nS,factory:nS.\u0275fac,providedIn:"root"});var oS=function(){this.customFieldFormatter=p(nS);this.hotlistFridge=p(rP);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"]},Lod=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=F8a(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=E8a(b.bulkEditOps));b=Jod(f).map(function(g){return Kod(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+"."},Jod=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.fieldName==="status"?c.push(d):b.push(d);return b.concat(c)},Kod=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=b.customFieldValue,e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):b.fieldName==="effortEstimate"&&d?e=d:e=a.FIELD_TEXT_MAP[b.fieldName]||
b.fieldName;b.fieldName==="hotlists"?f=b.value.split(",").map(function(g){var k,m;return(k=(m=a.hotlistFridge.peek(String(g)))==null?void 0:m.name)?"'"+k+"'":g}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?pj(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 "'+xo.get(b.value).displayValue+'"'};oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275prov=Fc({token:oS,factory:oS.\u0275fac,providedIn:"root"});var J8a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J8a,W);J8a.prototype.getContentJudgement=function(){return X(this,Vr,2)};J8a.prototype.setContentJudgement=function(a){return Zi(this,Vr,2,a)};var Mod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mod,W);Mod.prototype.getIssueId=function(){return En(this,1)};Mod.prototype.getIssueId_asString=function(){return Cn(this,1)};Mod.prototype.setIssueId=function(a){return Yn(this,1,a)};var Nod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nod,W);h=Nod.prototype;h.getFilename=function(){return xi(this,1)};h.setFilename=function(a){return yj(this,1,a)};h.getMimeType=function(){return xi(this,2)};h.setMimeType=function(a){return yj(this,2,a)};h.getSize=function(){return En(this,5)};h.setSize=function(a){return Kn(this,5,a)};var pS=function(){this.activeSession=p(Qu)},Ood=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},vt=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:Pod(a,b,!0,c.trackerId,d)):a=Pod(a,b,!1,"",d);return a},Pod=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},Du=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}},Qod=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};
pS.\u0275fac=function(a){return new (a||pS)};pS.\u0275prov=Fc({token:pS,factory:pS.\u0275fac,providedIn:"root"});var qS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qS.messageId)};Y(qS,W);qS.prototype.getIt=function(){return X(this,ap,14,jb)};qS.prototype.setIt=function(a){return Zi(this,ap,14,a,jb)};qS.messageId="b.Attachment";var rS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rS.messageId)};Y(rS,W);rS.prototype.getAttachmentsList=function(){return Ni(this,qS,1,Oi(),jb)};rS.prototype.setAttachmentsList=function(a){return $i(this,1,a,jb)};rS.prototype.addAllAttachments=function(a){aq(this,1,qS,a,jb)};rS.messageId="b.CreateAttachmentsResponse";var Rod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Rod.messageId)};Y(Rod,W);Rod.prototype.getErrorMessage=function(){return xi(this,2,void 0,jb)};Rod.prototype.setErrorMessage=function(a){yj(this,2,a,jb)};Rod.messageId="b.EncryptedMediaResponse";var sS=function(){this.executor=p(pO);this.httpClient=p(Qy);this.activeSession=p(Qu);this.trackerHelpers=p(pS)},Sod=function(a,b){var c=(new Nod).setFilename(b.filename).setMimeType(b.mimeType);b.encryptedBlobId!=null&&yj(c,3,b.encryptedBlobId);yj(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:Rod}).then(I8a)},Uod=function(a,b,c){var d=Tod(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 Ly&&e.body)return e.body}))}))},Tod=function(a){var b=/(g?bugs-qa\.chromium\.org)/,c=/g-issues\.(.*)\.(.*)\/$/,d=/[^-]issues\.(.*)\.(.*)\/$/,e=vt(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()?Hs(a.activeSession)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":iO(a.activeSession)?Hs(a.activeSession)?"https://partnerissuetracker.usercontent.corp.google.com":"https://partnerissuetracker-qa.usercontent.corp.google.com":Hs(a.activeSession)?"https://issuetracker.usercontent.google.com":"https://issuetracker-qa.usercontent.corp.google.com"};
sS.\u0275fac=function(a){return new (a||sS)};sS.\u0275prov=Fc({token:sS,factory:sS.\u0275fac,providedIn:"root"});var tS=function(){this.executor=p(pO)};tS.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})};tS.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:qS}).then(L8a)};
tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275prov=Fc({token:tS,factory:tS.\u0275fac,providedIn:"root"});var Vod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vod,W);h=Vod.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getComment=function(){return X(this,Zp,2)};h.setComment=function(a){return Zi(this,Zp,2,a)};h.setSignificanceOverride=function(a){return $m(this,3,a)};h.getContentJudgement=function(){return X(this,Wo,4)};
h.setContentJudgement=function(a){return Zi(this,Wo,4,a)};var Wod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wod,W);h=Wod.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCommentNumber=function(){return Um(this,2)};h.setCommentNumber=function(a){return pn(this,2,a)};var Xod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xod,W);h=Xod.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCommentNumber=function(){return Um(this,2)};h.setCommentNumber=function(a){return pn(this,2,a)};h.getComment=function(){return X(this,Zp,3)};h.setComment=function(a){return Zi(this,Zp,3,a)};var Yod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yod,W);h=Yod.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getCommentNumber=function(){return Um(this,2)};h.setCommentNumber=function(a){return pn(this,2,a)};h.getRestrictedRetention=function(){return Ii(this,3)};h.setRestrictedRetention=function(a){return $m(this,3,a)};var uS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uS.messageId)};Y(uS,W);uS.prototype.getIt=function(){return X(this,sp,2,jb)};uS.prototype.setIt=function(a){return Zi(this,sp,2,a,jb)};uS.messageId="b.CommentReaction";var Zod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zod,W);Zod.prototype.getIt=function(){return X(this,Vod,5)};Zod.prototype.setIt=function(a){return Zi(this,Vod,5,a)};var vS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vS.messageId)};Y(vS,W);vS.prototype.getIt=function(){return X(this,Zp,19,jb)};vS.prototype.setIt=function(a){return Zi(this,Zp,19,a,jb)};vS.messageId="b.IssueComment";var $od=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($od,W);$od.prototype.getIssueCommentsList=function(){return Ni(this,Zp,1,Oi())};var apd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,apd.messageId)};Y(apd,W);apd.prototype.getIt=function(){return X(this,$od,2,jb)};apd.prototype.setIt=function(a){return Zi(this,$od,2,a,jb)};apd.messageId="b.ListIssueCommentHistoryResponse";var bpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bpd,W);bpd.prototype.getIt=function(){return X(this,Xod,5)};bpd.prototype.setIt=function(a){return Zi(this,Xod,5,a)};var cpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cpd,W);cpd.prototype.getIt=function(){return X(this,Yod,4)};cpd.prototype.setIt=function(a){return Zi(this,Yod,4,a)};var wS=function(){this.executor=p(oO)};h=wS.prototype;h.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(e_a(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:vS}).pipe(A(L2a))};
h.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new Vod).setIssueId(a).setComment((new Zp).setComment(b).setFormattingMode(zp(c)));d&&b.setContentJudgement(vXa(d));d=(new Zod).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 bpd).setIt((new Xod).setIssueId(a).setCommentNumber(b).setComment((new Zp).setComment(c).setFormattingMode(zp(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:vS}).pipe(A(L2a))};h.listHistory=function(a,b){var c=(new Wod).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:apd}).pipe(A(M2a))};
h.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new uS;var g=a.setIt,k=new sp;d=(new Ap).setType((f=Gdd[d])!=null?f:0);f=op(d,1,e);f=g.call(a,bq(k,2,Ap,f));return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:uS}).pipe(A(N2a))};
h.updateRetention=function(a,b,c){c=(new cpd).setIt((new Yod).setIssueId(a).setCommentNumber(b).setRestrictedRetention(IXa(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:vS}).pipe(A(L2a))};wS.\u0275fac=function(a){return new (a||wS)};wS.\u0275prov=Fc({token:wS,factory:wS.\u0275fac,providedIn:"root"});var xS=function(){this.observableApi=p(wS)};h=xS.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))};xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275prov=Fc({token:xS,factory:xS.\u0275fac,providedIn:"root"});var dpd=function(){this.dialogRef=p(SB);this.data=p(UB);this.documentationLinks=p(hS);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};dpd.prototype.close=function(a){this.dialogRef.close(a)};dpd.\u0275fac=function(a){return new (a||dpd)};
dpd.\u0275cmp=C({type:dpd,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"),Qf(7,N8a,2,1,"li",null,Pf),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),Rf(b.userEmails),B(6),I("href",b.readMoreLink,Pe))},dependencies:[nC,
jC,YB,$B,ZB],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var yS=function(){this.matDialogService=p(VB);this.analytics=p(lQ);this.butterBar=p(gO);this.logger=p(uO);this.accessPolicy=p(RO)},fpd=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var g,k,m;return y(function(r){switch(r.nextAddress){case 1:if(d.every(function(w){return w.length===0}))return r.return(!0);Yd(r,2);return z(r,epd(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 $r(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),r.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return r.return(!0);case 2:return m=be(r),a.logger.error(m),r.return(!1)}})},epd=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||[])))})};yS.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(dpd,{width:"400px",data:d}),z(g,ie(TB(e)),2);f=g.yieldResult;return g.return(!!f)})};yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275prov=Fc({token:yS,factory:yS.\u0275fac,providedIn:"root"});var gpd=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};gpd.prototype.cancel=function(){this.state=4};var hpd={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var zS=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};zS.prototype.reset=function(){this.value="";ipd(this)};var ipd=function(a){for(var b=l(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},jpd=function(a){return a.fromTemplate&&a.initialComment===a.value};
zS.prototype.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(Em(c.blobRef));return a};zS.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var kpd=function(a){return!a.isEmpty()&&!O7b(a)};zS.prototype.isEmpty=function(){return!this.value&&!lpd(this)};
var O7b=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},lpd=function(a){return a.uploads.some(function(b){return b.state===2})};var AS=function(){var a=this;this.userPreferencesManager=p(nR);this.timeZonesApi=p(kS);this.cachedFormatters=new C0a(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)}))};
AS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new wl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};AS.prototype.formatUserCalendar=function(a){var b=this;return le([this.userCalendarFormat$,this.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
AS.prototype.formatUserTime=function(a){var b=this;return le([this.userTimeFormat$,this.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var mpd=function(a,b){return le([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},npd=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))},fsb=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new Am;c&&d.setTime(c);c=new Am;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 gG("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new gG(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"};AS.\u0275fac=function(a){return new (a||AS)};AS.\u0275prov=Fc({token:AS,factory:AS.\u0275fac,providedIn:"root"});var BS=new ed("routeParams",{factory:function(){return p(bR).params}});var CS=function(){this.routeParams=p(BS);this.issueComments=p(xS);this.draftStore=p(gS);this.errorHandler=p(wO);this.activeSession=p(Qu);this.dateFormatter=p(AS)};
CS.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 opd(b,c,d,b.routeParams.do_attribution)})}return a?ee(this.draftStore.$window.sessionStorage.getItem(Tr(a))||""):ee("")};
var opd=function(a,b,c,d){var e,f,g,k,m,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=eVa(g)),z(x,ie(a.dateFormatter.formatUserCalendar(new Date(Number(e.lastModified)/1E3))),5);case 5:return m=x.yieldResult,d?(r="> From issue "+b+" on "+m+":",x.return(r+"\n\n"+k)):x.return(k);case 2:return w=be(x),yO(a.errorHandler,w),x.return("")}})};
CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275prov=Fc({token:CS,factory:CS.\u0275fac,providedIn:"root"});var ppd=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 Jr(f.comment$)};this.judgementForNewContent=function(){return Jr(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=l(g);g=k.next().value;k=k.next().value;g=new zS(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 Wj(void 0);this.judgementForNewContent$=le([this.componentJudgementForNewContent$.pipe(zf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return k!=null?k:g}),xf({bufferSize:1,refCount:!0}))};ppd.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var qpd=function(a){var b=a.comment(),c,d=((c=a.judgementForNewContent())==null?void 0:c.severity)==="NONE_DETECTED"?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=l(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,f.state===2&&f.blobRef&&(f=Em({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},rpd=function(a){var b=
qpd(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},DS=function(){this.defaultCommentSource=p(CS);this.issueFullFridge=p(nQ);this.activeSession=p(Qu);this.userPreferencesManager=p(nR)};DS.prototype.create=function(a){return new ppd(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275prov=Fc({token:DS,factory:DS.\u0275fac,providedIn:"root"});var ES=function(){this.activeSession=p(Qu)},FS=function(a,b){var c,d;return((c=b.componentPathInfo)==null?void 0:(d=c.allCustomField)==null?void 0:d.filter(function(e){return Wub(a,e.type)}))||[]},Wub=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}};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275prov=Fc({token:ES,factory:ES.\u0275fac,providedIn:"root"});var R8a=[{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"}],S8a=[{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 GS=function(){};GS.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var HS=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},spd=function(a){return HS(a.assignmentBounds)||HS(a.responseBounds)||HS(a.closureBounds)},tpd=function(a,b){switch(b){case "ASSIGNMENT":return HS(a.assignmentBounds);case "RESPONSE":return HS(a.responseBounds);case "CLOSURE":return HS(a.closureBounds);default:return spd(a)}},upd=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&U8a(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&U8a(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&U8a(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(V8a),b[0]):c.length>0?(c.sort(V8a),{sloBounds:c[0].sloBounds,sloMetric:""}):null};GS.\u0275fac=function(a){return new (a||GS)};GS.\u0275prov=Fc({token:GS,factory:GS.\u0275fac,providedIn:"root"});var vpd=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=T8a({isInternal:this.activeSession.isInternalSession(),isProd:Hs(this.activeSession)});this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=
this.issueFullFridge.watch(this.issueId);this.issueSnapshot$=this.issue$.pipe(A(function(m){return m==null?void 0:m.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(A(function(m){var r;return m==null?void 0:(r=m.aggregatedData)==null?void 0:r.sloStatus}),A(function(m){return!!m&&spd(m)}));this.isWtdmType$=this.issueSnapshot$.pipe(A(function(m){return(m==null?void 0:m.type)!=null&&g.constants.isWTDMType(m.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(A(function(m){return!m&&!g.enableNonWtdmFieldPerTypeVisibility}));
this.isSloStatusPrimary$=le([this.hasSloDefined$,this.isWtdmType$]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return m||!r}));this.isSeverityPrimary$=this.isWtdmType$.pipe(A(function(m){return!m}));this.isChangelistPrimary$=le([this.isWtdmType$,this.issueSnapshot$]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;var w;return!m||!!(r==null?0:(w=r.changelist)==null?0:w.length)||(r==null?void 0:r.type)==="STORY"||(r==null?void 0:r.type)==="TASK"}));this.customFields$=
this.issue$.pipe(A(function(m){var r,w;return(w=m==null?void 0:(r=m.customFields)==null?void 0:r.filter(function(x){return Wub(g.customFieldHelper,x.type)}))!=null?w:[]}));this.visibleFields$=this.issue$.pipe(A(function(m){var r;return(r=m==null?void 0:m.visibleFields)!=null?r:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(A(function(m){return m.map(function(r){return r.customFieldId}).filter(hn)}),A(function(m){return new Set(m)}),xf({refCount:!0,bufferSize:1}));this.visibleGlobalCustomFields$=
le([this.customFields$,this.visibleFieldIds$]).pipe(A(function(m){var r=l(m);m=r.next().value;var w=r.next().value;return new Map(m.filter(function(x){return x.shared&&w.has(x.customFieldId)}).map(function(x){return[x.customFieldId,x]}))}),A(function(m){return k.map(function(r){return m.get(r.customFieldId)}).filter(hn)}),xf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=le([this.visibleFieldIds$,this.customFields$]).pipe(A(function(m){m=l(m);var r=m.next().value;return m.next().value.filter(function(w){return!w.shared&&
r.has(w.customFieldId)})}),xf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=le([this.visibleFieldIds$,this.customFields$]).pipe(A(function(m){m=l(m);var r=m.next().value;return m.next().value.filter(function(w){return!r.has(w.customFieldId)})}),xf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=le([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(A(function(m){var r=l(m);m=r.next().value;var w=r.next().value;
var x=r.next().value;var D=r.next().value;r=r.next().value;return(m?0:4)+(w?0:1)+(!g.showSloStatus||x?0:1)+(!g.showChangelists||D?0:2)+r.length}),xf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(A(function(m){return m>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(A(function(m){return m===1?"Show 1 additional field":"Show "+m+" additional fields"}))},IS=function(){this.issueFullFridge=p(nQ);this.constants=p(lS);this.activeSession=p(Qu);this.sloStatusHelpersService=
p(GS);this.customFieldHelper=p(ES)};IS.prototype.create=function(a){return new vpd(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService,this.customFieldHelper)};IS.\u0275fac=function(a){return new (a||IS)};IS.\u0275prov=Fc({token:IS,factory:IS.\u0275fac,providedIn:"root"});var JS=function(){Z.apply(this,arguments);this.analytics=p(lQ);this.clearcut=p(eQ);this.userActivity=p(jQ);this.stopActivityTracking$=new sf;this.issueToTrackingState=new Map;this.getState=so(this.issueToTrackingState,W8a);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(JS,Z);
JS.\u0275dir=Z.\u0275dir;var wpd=function(a,b){a.getState(b);a.userActivity.active$.pipe(pf(),Bf(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},bs=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),xpd(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
JS.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)){fQ(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new Lid).setIssueId(a).setUserAction(1).setEnvironmentType(b.environmentType).setFrontendAccessMode(b.frontendAccessMode);var f=new Kid,g=new Jid;e=kAc(g,1,e);d=kAc(e,2,d);d=Zi(f,Jid,1,d);a=Zi(a,Kid,2,d);b.clearcutTransport.transport.dispatch(a);
c.sessionStartTime=Date.now()}};var Iu=function(a,b,c){a.getState(b).variations.add(c)},xpd=function(a,b,c,d){fQ(a.clearcut,b,c);d=l(d);for(var e=d.next();!e.done;e=d.next())fQ(a.clearcut,b,c+"-"+e.value)};JS.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JS)))(b||JS)}}();JS.\u0275prov=Fc({token:JS,factory:JS.\u0275fac,providedIn:"root"});var ypd={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},zpd={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},Apd={type:"START",displayText:"Start work",description:"Change issue status to '"+Sm.get("ACCEPTED")+"'"},Bpd={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+Sm.get("FIXED")+"'"},Cpd={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+Sm.get("VERIFIED")+
"'"},Dpd={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+Sm.get("ASSIGNED")+"'"};var Fpd=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)&&Om(f.assigneeUser)}),
A(en));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&&Om(f.snapshot.assigneeUser)}),xf({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=le([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;return e.defaultAssigneeQuickActionEnabled&&
g&&f!==g?zpd:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(A(function(f){return f&&Epd(e,f)}))},Gpd=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)})},Epd=function(a,b){a=a.activeSession.getUserEmail();var c=b.status;if(Om(b.verifierUser)===a&&c==="FIXED")return Cpd;if(Om(b.assigneeUser)===a)switch(c){case "ASSIGNED":return Apd;case "ACCEPTED":return Bpd;default:return Dpd}switch(c){case "NEW":return ypd;case "ASSIGNED":return ypd;case "ACCEPTED":return ypd;
default:return Dpd}},KS=function(){this.activeSession=p(Qu);this.issueFullFridge=p(nQ);this.componentTemplatesFridge=p(dP)};KS.prototype.create=function(a){return new Fpd(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};KS.\u0275fac=function(a){return new (a||KS)};KS.\u0275prov=Fc({token:KS,factory:KS.\u0275fac,providedIn:"root"});var Hpd={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},Ipd=function(){this.fields=new gR};Ipd.prototype.get=function(a){return this.fields.has(X8a(a))};
var Jpd=function(a,b){return Ns(a.fields,X8a(b))},as=function(a,b){a.fields.add(X8a(b))},LS=function(a,b){a.fields.delete(X8a(b))},Kpd=function(a){var b=[],c=[],d=[];a=l(a.fields);for(var e=a.next();!e.done;e=a.next())if(e=e.value,typeof e==="string"&&e.startsWith("customField:"))b.push(e.split(":")[1]);else{var f=void 0,g=Hpd,k=(f=Ked.get(g))!=null?f:new Set(Object.values(g));Ked.set(g,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var Y8a={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var MS=function(){};MS.prototype.transform=function(a){return $8a(a)};MS.\u0275fac=function(a){return new (a||MS)};MS.\u0275pipe=ef({name:"appendDomain",type:MS,pure:!0,standalone:!1});var d9a={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"},f9a=RegExp("(^|[/;,\\-\\s])+(\\d+)","g"),g9a=RegExp("(b|b-qa|issues)\\/(\\d+)","g"),Lpd=/[\u200b\u2060\u200c\u200d]/u;var NS=function(){var a=this;this.activeSession=p(Qu);this.butterBar=p(gO);this.issueInteractionsTracking=p(JS);this.issueApi=p(SP);this.componentFridge=p(YO);this.permissionsFridge=p(JQ);this.eventsForIssueFridge=p(TP);this.statusMessages=p(oS);this.errorHandler=p(wO);this.confirmationDialogService=p(iS);this.principalTypes=p(LQ);this.issuePermissionService=p(fR);this.accessPolicy=p(RO);this.issueTypeDialog=p(jS);this.logger=p(uO);this.issueFullFridge=p(nQ);this.confirmNoAccessService=p(yS);this.issueService=
p(YP);this.attachmentsMember=p(tS);this.userPreferencesManager=p(nR);this.issueComments=p(xS);this.draftStore=p(gS);this.attachmentApi=p(sS);this.issueFieldsFactory=p(IS);this.issueQuickActionsFactory=p(KS);this.issueCommentDraftFactory=p(DS);this.implicitTriageService=p(ZR);this.analytics=p(lQ);this.isSavingMap=new Map;this.savingState=so(this.isSavingMap,function(){return new Ipd});this.issueFieldsMap=new Map;this.issueFields=so(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=so(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=so(this.editableIssueMap,function(b){return Mpd(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=so(this.subscriptions,function(){return new Rd});this.issueCommentDraftMap=new Map;this.issueCommentDraft=so(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)}};NS.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()};
NS.prototype.updateComponent=function(a,b,c,d){var e=this,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(g=Npd(e,f))&&g.actions&&g.actions.length?z(x,e.getRetentionState(a),2):x.return();k=x.yieldResult;Opd(e,g);m={issueId:a,componentId:b};r=Object.assign({},m,{setLimitViewTrusted:d});w=c?e.issueApi.moveIssueExternal(a,r):e.issueApi.moveIssue(a,m);return x.return(Ppd(e,w,g,{originalRetentionState:k}))})};
var xUb=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=OS(a,d))!=null?e:Promise.resolve())})},Qpd=function(a,b,c,d){var e,f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:e=ISa(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,uod(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=Z8a(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(qq(b));a.issueFullFridge.poke(b);Zj(w,7);break;case 6:m=be(w),yO(a.errorHandler,m);case 7:return w.return(Promise.resolve());case 4:return f.setType(e),w.return((r=OS(a,f))!=null?r:Promise.resolve())}})},zUb=function(a,b,c){var d,
e,f;return y(function(g){d=HSa(c);if(!d)return a.logger.warn("unknown priority: "+c),g.return();e=a.editableIssue(b);e.setPriority(d);return g.return((f=OS(a,e))!=null?f:Promise.resolve())})},Spd=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=Npd(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!ya(k.value||"")}))&&f.value?g.return(Rpd(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):g.return():g.return()})},Tpd=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=OS(a,d))!=null?e:Promise.resolve())})},Upd=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,Gpd(e,d,c),2)}return g.return((f=OS(a,d))!=null?f:Promise.resolve())})},yTb=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=OS(a,d))!=null?e:Promise.resolve())})},hUb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.foundInVersion=c;return f.return((e=OS(a,d))!=null?e:Promise.resolve())})},lUb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.verifiedInVersion=c;return f.return((e=OS(a,d))!=null?e:Promise.resolve())})},jUb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.targetedToVersion=
c;return f.return((e=OS(a,d))!=null?e:Promise.resolve())})},nUb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=OS(a,d))!=null?e:Promise.resolve())})},cUb=function(a,b,c){var d,e,f;return y(function(g){d=JSa(c);if(!d)return a.logger.warn("unknown severity: "+c),g.return();e=a.editableIssue(b);e.setSeverity(d);return g.return((f=OS(a,e))!=null?f:Promise.resolve())})};
NS.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=OS(c,d))!=null?e:Promise.resolve())})};NS.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=OS(c,d))!=null?e:Promise.resolve())})};
var eUb=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=OS(a,d))!=null?f:Promise.resolve())})},fUb=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=OS(a,d))!=null?f:Promise.resolve())})};NS.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=OS(d,e))!=null?f:Promise.resolve())})};
var DUb=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,Vpd(a,b,"verifier",[c]),5):z(k,fpd(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=OS(a,d))!=null?g:Promise.resolve())}})},
BUb=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,Vpd(a,b,"assignee",[c]),5):z(k,fpd(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=OS(a,d))!=null?g:Promise.resolve())}})},
Wpd=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,Vpd(a,b,"CC",c),5);e=P0a(d.cc,c);f=e.added;return z(r,fpd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();case 3:return d.cc=c,r.return((m=OS(a,d))!=null?
m:Promise.resolve())}})},Xpd=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,Vpd(a,b,"collaborators",c),5);e=P0a(d.collaborators,c);f=e.added;return z(r,fpd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();
case 3:return d.setCollaborators(c),r.return((m=OS(a,d))!=null?m:Promise.resolve())}})},Ypd=function(a,b,c){var d;return y(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(OS(a,d))})};NS.prototype.unarchive=function(a){var b=this,c,d;return y(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=OS(b,c))!=null?d:Promise.resolve())})};
NS.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),as(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:$r(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Zd(g);LS(e,"retention");ae(g,0);break;case 2:f=be(g),yO(c.errorHandler,f),g.jumpTo(3)}})};
var Zpd=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=Npd(a,c);if(!d||!d.actions)return f.jumpTo(0);Opd(a,d);e=a.issueService.delete(b,"ABUSE");return z(f,Ppd(a,e,d),0)})},cbc=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=Npd(a,c);if(!d||!d.actions)return f.jumpTo(0);Opd(a,d);e=a.issueService.undelete(b);return z(f,Ppd(a,e,d),0)})};
NS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return d=c.savingState(a),z(m,ie(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=m.yieldResult;g=(f=e)==null?void 0:f.userData;if(g==null||d.get("subscribe"))return m.return();Yd(m,3,4);as(d,"subscribe");return z(m,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:Zd(m);LS(d,"subscribe");ae(m,0);break;case 3:k=be(m),yO(c.errorHandler,k),m.jumpTo(4)}})};
var $pd=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);$r(a.butterBar,"Restoring attachment...");as(d,"undeleteAttachment");return z(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:$r(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Zd(f);LS(d,"undeleteAttachment");ae(f,0);break;case 2:e=be(f),yO(a.errorHandler,
e),f.jumpTo(3)}})},aqd=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);$r(a.butterBar,"Deleting attachment...");as(e,"deleteAttachment");return z(g,a.attachmentsMember.delete(b,c,d),5);case 5:$r(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Zd(g);LS(e,"deleteAttachment");ae(g,0);break;case 2:f=be(g),yO(a.errorHandler,
f),g.jumpTo(3)}})};
NS.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=qpd(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var g=rpd(d);Opd(this,g);return Ppd(this,function(){return y(function(k){switch(k.nextAddress){case 1:return z(k,bqd(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}c.activeSession.isExternalSession()&&cqd(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(Tr(a));case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var m=c.attachmentApi;var r=f.attachmentsWithJudgements,w=(new Mod).setIssueId(String(a));r!==void 0&&(r=r.map(K8a),$i(w,3,r));m=m.executor.post({url:"action/issues/"+a+"/attachments",body:w,responseConstructor:rS}).then(M8a);return z(k,m,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),g)};
var bqd=function(a,b){var c,d;return y(function(e){if(!oR(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)})},Mpd=function(a,b){var c=a.issueFullFridge.watch(b).pipe(A(function(e){var f=
new aod;e&&(e=dqd(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new Wj(new aod);a.getSubscription(b).add(c.subscribe(d));return d},OS=function(a,b){function c(H){k=H}function d(H){m=H}var e=b.issueId,f=Npd(a,b);if(!f)return null;for(var g=!1,k=[],m=[],r=e,w=l(f.actions),x=w.next();!x.done;x=w.next()){x=x.value;var D=x.value||"";if(x.actionType!=="REMOVE")switch(x.fieldName){case "ccs":c(D.split(",").filter(Boolean));break;case "verifier":case "assignee":case "collaborators":d(D.split(",").filter(Boolean));
break;case "duplicateOfIssueId":ya(D)||(k=b.cc,r=String(D),g=!0)}}return Rpd(a,e,{actionIssueId:r,implicitAppenders:k,implicitEditors:m,isDeduping:g,isRemovingSelfFromCc:f.actions.length===1&&f.actions[0].fieldName==="ccs"&&f.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===f.actions[0].value,requestData:f})},Rpd=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var g=c.isDeduping;var k=c.isRemovingSelfFromCc;var m=c.requestData;var r,w,x,D,
H,J,O,R,V,ba,oa,ta,ka,Ca;return y(function(ja){switch(ja.nextAddress){case 1:return z(ja,Promise.all([eqd(a,e,"appender",d),eqd(a,f,"writer",d)]),2);case 2:r=ja.yieldResult;w=l(r);x=w.next().value;D=w.next().value;H=x;J=D;O=H.noAccessEmails||[];R=J.noAccessEmails||[];V=[].concat(q(O),q(R));if(V.length===0)return ja.return(fqd(a,m,g,k));Yd(ja,3);return z(ja,Promise.all(V.map(function(ua){return gqd(a,ua)})),5);case 5:return ba=ja.yieldResult,oa=c4a({userPrincipals:ba,newEditors:R,newImplicitUsers:V,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),ta=oa.title,ka=oa.content,z(ja,sod(a.confirmationDialogService,{title:ta,content:Dh(ka),confirmButtonText:"Allow"}),6);case 6:if(Ca=ja.yieldResult)return ja.return(fqd(a,m,g,k));a.permissionsFridge.poke(qq(b));a.issueFullFridge.poke(b);Zj(ja,0);break;case 3:be(ja),a.butterBar.showWarning("Could not determine email type."),ce(ja)}})},fqd=function(a,b,c,d){Opd(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 Ppd(a,e,b)},eqd=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("Ee");var g=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map($8a),c,g,d):Promise.resolve(e)},dqd=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=Em(b);e=Ia(b.snapshot);c=Kpd(d);d=c.customFields;c=l(c.fields);for(var f=c.next();!f.done;f=c.next()){var g=void 0;(g=jod.get(f.value))==null||g(e,a)}d=l(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$17:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$17=Gm(f),c=(e.customField||[]).find(function(k){return function(m){return m.customFieldId===k.customFieldId$jscomp$17}}(c)),f=a.customFieldMap[f],c&&f&&(c.textValue=
f.textValue,c.dateValue=f.dateValue,c.enumValue=f.enumValue,c.numericValue=f.numericValue);return b},Npd=function(a,b){var c=hod(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(j9a(e)))});return c.actions.length?c:null},Opd=function(a,b){var c=String(b.issueId);$r(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");bs(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=l(b.actions);
for(c=b.next();!c.done;c=b.next())as(a,j9a(c.value))},Ppd=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,oQ(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,hqd(a,c,e,d),5);case 5:Zj(g,0);break;case 2:f=be(g),iqd(a,c,f),ce(g)}})},hqd=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,g,k,m;return y(function(r){f=a.savingState(String(b.issueId));g=l(b.actions);for(k=g.next();!k.done;k=g.next())m=k.value,LS(f,j9a(m));Gnd(a.implicitTriageService,b.issueId,b.actions);return c?z(r,jqd(a,b,e),0):r.jumpTo(0)})},iqd=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=l(b.actions);for(var f=b.next();!f.done;f=b.next())LS(e,j9a(f.value));a.permissionsFridge.poke(qq(d));a.issueFullFridge.poke(d);cq(c)&&c.status===403&&dq(c)?xO(a.errorHandler,dq(c)):yO(a.errorHandler,c)},jqd=
function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H;return y(function(J){switch(J.nextAddress){case 1:return z(J,a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=Lod(a.statusMessages,b,e.customFieldMap,(g=(f=d)==null?void 0:f.name)!=null?g:"");if(!c){J.jumpTo(3);break}return z(J,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:m=J.yieldResult;r=l(m);w=r.next().value;x=r.next().value;D=w;H=x;if(H!=="INDEFINITE"&&
c&&D){var O=c.retentionPeriod?lVa(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var R=D.retentionPeriod?lVa(Math.floor(D.retentionPeriod.seconds*1E3/864E5)):"indefinite";O=O===R?"":" Issue retention period changed from "+O+" to "+R+"."}else O="";k+=O;case 3:$r(a.butterBar,k),ce(J)}})},Vpd=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,kqd(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},kqd=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,eqd(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(sod(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Dh("This issue is in a component with Expanded Access enabled, and you do not have access to view this issue by default. Removing yourself from "+d+" may also remove your ability to view the issue. Are you sure you would like to do this?")})):f.return(!0)})};NS.prototype.getRetentionState=function(a){return ie(this.issueFullFridge.watch(a).pipe(A(q7a)))};NS.prototype.getRetention=function(a){return ie(this.issueFullFridge.watch(a).pipe(A(n7a)))};
NS.prototype.getEffortSpec=function(a){var b=this;return ie(this.issueFullFridge.watch(a).pipe(A(U6a),Af(function(c){return c?b.componentFridge.watch(c):ee(void 0)}),A(t7a)))};var gqd=function(a,b){return y(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(dld(a.principalTypes,b,!0))})};
NS.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=l(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};
var cqd=function(a,b){var c,d,e,f,g,k,m,r,w,x;y(function(D){if(D.nextAddress==1)return z(D,ie(a.issueFullFridge.watch(b)),2);if(D.nextAddress!=3)return(c=D.yieldResult)&&(d=c.aggregatedData)!=null&&d.createdTimeMicros?z(D,ie(a.eventsForIssueFridge.watch(b)),3):D.return();e=D.yieldResult;if(!e)return D.return();f=a.activeSession.getUserEmail();g=lqd(a,e.events,f);k=a.getLabel(c,g,f);x=Date.now()-Math.max((m=c.aggregatedData)==null?void 0:m.createdTimeMicros,(w=(r=g)==null?void 0:r.modifiedDate)!=null?
w:0);a.analytics.trackEvent("comment","create",k,x);ce(D)})};NS.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 lqd=function(a,b,c){return mqd(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})},mqd=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};NS.\u0275fac=function(a){return new (a||NS)};NS.\u0275prov=Fc({token:NS,factory:NS.\u0275fac,providedIn:"root"});var PS=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(dR);this.issuePermissionService=p(fR);this.editIssueService=p(NS);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 EVa(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){var b;return Mm((b=wo(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(PS,Z);PS.\u0275dir=Z.\u0275dir;
var nqd=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,BUb(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;}})},oqd=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=Wpd(a.editIssueService,c,d.cc.filter(function(m){return m!==b.email}))):f=Wpd(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(m){m=
m.includes(b.email);return b.action==="set_user"?m:!m}),xe(6E4))),4);case 4:Zd(k);a.ccInProgress$.next(!1);ae(k,0);break;case 3:throw g=be(k),g;}})};PS.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PS)))(b||PS)}}();PS.\u0275prov=Fc({token:PS,factory:PS.\u0275fac});var pqd=function(a){return["chip","gmat-caption",a]},qqd=function(){this.variant="grey";this.isTall=!1};qqd.\u0275fac=function(a){return new (a||qqd)};
qqd.\u0275cmp=C({type:qqd,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},standalone:!1,ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(eg(),K(0,"div",0)(1,"div",1),fg(2),L()());a&2&&I("ngClass",Kg(1,pqd,b.variant))},dependencies:[Yx],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 rqd=function(a){this.chip=a};rqd.\u0275fac=function(a){return new (a||rqd)(Ye(qqd))};rqd.\u0275dir=df({type:rqd,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&xg("color","var(--chip-"+b.chip.variant+"-icon")("font-size",b.chip.isTall?"16px":"12px")("height",b.chip.isTall?"16px":"12px")("margin","0 4px 0 0")("width",b.chip.isTall?"16px":"12px")},standalone:!1});var QS=function(){};QS.\u0275fac=function(a){return new (a||QS)};QS.\u0275mod=cf({type:QS});QS.\u0275inj=Gc({imports:[ty]});var sqd=function(){};sqd.\u0275fac=function(a){return new (a||sqd)};sqd.\u0275cmp=C({type:sqd,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 tqd=function(){};tqd.\u0275fac=function(a){return new (a||tqd)};tqd.\u0275mod=cf({type:tqd});tqd.\u0275inj=Gc({});var uqd=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],vqd=function(a){return{"with-avatar":a}},wqd=function(){};wqd.prototype.ngOnInit=function(){};wqd.\u0275fac=function(a){return new (a||wqd)};
wqd.\u0275cmp=C({type:wqd,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&&(eg(uqd),K(0,"div",0)(1,"div",1)(2,"div",2),E(3,k9a,1,2,"img",3),K(4,"div",4),Q(5),L(),E(6,l9a,2,1,"div",5),L(),E(7,m9a,4,1,"div",6),K(8,"div",7),E(9,q9a,7,3,"ng-container",8)(10,r9a,4,1,"ng-container",8)(11,s9a,23,5,"ng-container",8),fg(12),L()(),fg(13,1),L());a&2&&(B(2),I("ngClass",Kg(8,vqd,b.person.imageUrl)),B(),I("ngIf",b.person.imageUrl),B(2),Ag(b.person.name||b.person.email),B(),I("ngIf",b.person.name),B(),I("ngIf",b.outOfOfficeDescription),B(2),I("ngIf",b.person.title||b.person.department),
B(),I("ngIf",b.person.location),B(),I("ngIf",b.person.ldap))},dependencies:[QS,qqd,rqd,ty,Yx,fy,tqd,sqd,$y,Yy],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 xqd=new ed("API_VERSION"),yqd=new ed("REQUEST_SERVICE for people-pa_api_client"),zqd={$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"},RS=function(a,b,c){this.gapiVersion=
a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new qOc(b,c)};RS.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return sOc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:Mva(a,zqd,b)})};RS.\u0275fac=function(a){return new (a||RS)(Zc(xqd,8),Zc(yqd),Zc(oOc,8))};RS.\u0275prov=Fc({token:RS,factory:RS.\u0275fac,providedIn:"root"});var Aqd=function(){};
Aqd.\u0275fac=function(a){return new (a||Aqd)};Aqd.\u0275prov=Fc({token:Aqd,factory:function(a){return RS.\u0275fac(a)},providedIn:"root"});var Bqd=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new qOc(b,c)};Bqd.\u0275fac=function(a){return new (a||Bqd)(Zc(xqd,8),Zc(yqd),Zc(oOc,8))};Bqd.\u0275prov=Fc({token:Bqd,factory:Bqd.\u0275fac,providedIn:"root"});var Cqd=function(){};Cqd.\u0275fac=function(a){return new (a||Cqd)};
Cqd.\u0275prov=Fc({token:Cqd,factory:function(a){return Bqd.\u0275fac(a)},providedIn:"root"});var t9a=/.*@google.com/,Dqd=new ed("onedevPeopleServiceConfig"),Eqd={},SS=function(){},Gqd=function(a,b){return Fqd(a,[b]).pipe(A(function(c){return c[0]}))};SS.\u0275fac=function(a){return new (a||SS)};SS.\u0275prov=Fc({token:SS,factory:SS.\u0275fac});
var TS=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new sf;this.config=Eqd;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(TS,SS);
var Fqd=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 x9a(b,c)}))};TS.prototype.ngOnDestroy=function(){this.destroy$.next()};TS.\u0275fac=function(a){return new (a||TS)(Zc(Aqd),Zc(Cqd),Zc(Dqd,8))};
TS.\u0275prov=Fc({token:TS,factory:TS.\u0275fac});var Hqd=function(){};Hqd.\u0275fac=function(a){return new (a||Hqd)};Hqd.\u0275mod=cf({type:Hqd});Hqd.\u0275inj=Gc({providers:[TS,{provide:SS,useExisting:TS}]});var Iqd=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(Iqd,Bj);Iqd.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
da.Object.defineProperties(Iqd.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return vD(this,"dayOfWeek")?Aj(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return vD(this,"periodEndMinutes")?Aj(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return vD(this,"periodStartMinutes")?Aj(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var Jqd=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(Jqd,Bj);Jqd.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:US},keys:["debugOptions","userIds"],objects:{debugOptions:Kqd}}};
da.Object.defineProperties(Jqd.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return vD(this,"debugOptions")?Aj(this,"debugOptions"):this.debugOptions=new Kqd},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return vD(this,"userIds")?Aj(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var Lqd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Y(Lqd,Bj);Lqd.prototype.getPartialClassMetadata=function(){return{arrays:{results:Mqd},keys:["results"]}};
da.Object.defineProperties(Lqd.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return vD(this,"results")?Aj(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var Nqd=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(Nqd,Bj);
Nqd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Nqd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"committedUntil")?Aj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return vD(this,"eventSummary")?Aj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextAvailable")?Aj(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"occupiedUntil")?Aj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var Oqd=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(Oqd,Bj);Oqd.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:Pqd}}};
da.Object.defineProperties(Oqd.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return vD(this,"geoCoordinates")?Aj(this,"geoCoordinates"):this.geoCoordinates=new Pqd},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return vD(this,"label")?Aj(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return vD(this,"location")?Aj(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var Qqd=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(Qqd,Bj);Qqd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Qqd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"committedUntil")?Aj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextAvailable")?Aj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"occupiedUntil")?Aj(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var Rqd=function(){this.Serializable$values={}};Y(Rqd,Bj);Rqd.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var Sqd=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(Sqd,Bj);
Sqd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Sqd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"committedUntil")?Aj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return vD(this,"eventSummary")?Aj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"inMeetingsUntil")?Aj(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextAvailable")?Aj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"occupiedUntil")?Aj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var Tqd=function(){this.Serializable$values={}};Y(Tqd,Bj);
Tqd.prototype.getPartialClassMetadata=function(){return{keys:[]}};var Pqd=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(Pqd,Bj);Pqd.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
da.Object.defineProperties(Pqd.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return vD(this,"latitude")?Aj(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return vD(this,"longitude")?Aj(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var Uqd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Y(Uqd,Bj);Uqd.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};da.Object.defineProperties(Uqd.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return vD(this,"timeZone")?Aj(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var Vqd=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(Vqd,Bj);
Vqd.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
da.Object.defineProperties(Vqd.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return vD(this,"experimentalBuildingId")?Aj(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return vD(this,"experimentalDeskId")?Aj(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return vD(this,"experimentalFloorId")?Aj(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return vD(this,"label")?Aj(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var Wqd=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(Wqd,Bj);Wqd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
da.Object.defineProperties(Wqd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"comeBackTime")?Aj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return vD(this,"committedUntil")?Aj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return vD(this,"eventSummary")?Aj(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var Xqd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Y(Xqd,Bj);Xqd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
da.Object.defineProperties(Xqd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"comeBackTime")?Aj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var Yqd=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(Yqd,Bj);
Yqd.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
da.Object.defineProperties(Yqd.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return vD(this,"code")?Aj(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return vD(this,"details")?Aj(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return vD(this,"message")?Aj(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var VS=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(VS,Bj);VS.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
da.Object.defineProperties(VS.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"endTime")?Aj(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"startTime")?Aj(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var Zqd=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(Zqd,Bj);Zqd.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
da.Object.defineProperties(Zqd.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return vD(this,"computationDuration")?Aj(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"overrideCurrentTime")?Aj(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var $qd=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($qd,Bj);$qd.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:WS}}};
da.Object.defineProperties($qd.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextCommitmentStatus")?Aj(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new WS},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextCommitmentTime")?Aj(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var ard=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Y(ard,Bj);ard.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:VS}}};da.Object.defineProperties(ard.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return vD(this,"timeRange")?Aj(this,"timeRange"):this.timeRange=new VS},set:function(a){this.Serializable$values.timeRange=a}}});
var brd=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(brd,Bj);brd.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:crd},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:drd}}};
da.Object.defineProperties(brd.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return vD(this,"availabilities")?Aj(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"nextPollTime")?Aj(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return vD(this,"workingHours")?
Aj(this,"workingHours"):this.workingHours=new drd},set:function(a){this.Serializable$values.workingHours=a}}});var Kqd=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(Kqd,Bj);Kqd.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:Zqd}}};
da.Object.defineProperties(Kqd.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return vD(this,"forceEnableUserStatusCache")?Aj(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return vD(this,"timeSettings")?Aj(this,"timeSettings"):this.timeSettings=new Zqd},set:function(a){this.Serializable$values.timeSettings=a}}});
var Mqd=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(Mqd,Bj);Mqd.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:Yqd,userAvailabilities:brd,userId:US}}};
da.Object.defineProperties(Mqd.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return vD(this,"status")?Aj(this,"status"):this.status=new Yqd},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return vD(this,"userAvailabilities")?
Aj(this,"userAvailabilities"):this.userAvailabilities=new brd},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return vD(this,"userId")?Aj(this,"userId"):this.userId=new US},set:function(a){this.Serializable$values.userId=a}}});
var crd=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(crd,Bj);crd.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:erd,status:WS,timeRange:VS}}};
da.Object.defineProperties(crd.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return vD(this,"contexts")?Aj(this,"contexts"):this.contexts=new erd},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return vD(this,"status")?Aj(this,"status"):
this.status=new WS},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return vD(this,"timeRange")?Aj(this,"timeRange"):this.timeRange=new VS},set:function(a){this.Serializable$values.timeRange=a}}});
var erd=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(erd,Bj);
erd.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:Uqd,upcomingCommitmentContext:$qd,upcomingOoo:ard,workingElsewhere:frd}}};
da.Object.defineProperties(erd.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"localTime")?Aj(this,"localTime"):this.localTime=new Uqd},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return vD(this,"upcomingCommitmentContext")?Aj(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new $qd},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return vD(this,"upcomingOoo")?Aj(this,"upcomingOoo"):this.upcomingOoo=new ard},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return vD(this,"workingElsewhere")?Aj(this,"workingElsewhere"):this.workingElsewhere=new frd},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var US=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(US,Bj);US.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
da.Object.defineProperties(US.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return vD(this,"email")?Aj(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return vD(this,"obfuscatedGaiaId")?Aj(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var grd=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(grd,Bj);grd.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:Oqd,homeLocation:Rqd,officeLocation:Vqd}}};
da.Object.defineProperties(grd.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return vD(this,"customLocation")?Aj(this,"customLocation"):this.customLocation=new Oqd},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return vD(this,"homeLocation")?Aj(this,"homeLocation"):this.homeLocation=new Rqd},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return vD(this,
"officeLocation")?Aj(this,"officeLocation"):this.officeLocation=new Vqd},set:function(a){this.Serializable$values.officeLocation=a}}});
var WS=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(WS,Bj);WS.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:Nqd,doNotDisturb:Qqd,inMeeting:Sqd,inactive:Tqd,outOfOffice:Wqd,outsideWorkingHours:Xqd}}};
da.Object.defineProperties(WS.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return vD(this,"calendarBusy")?Aj(this,"calendarBusy"):this.calendarBusy=new Nqd},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return vD(this,"doNotDisturb")?Aj(this,"doNotDisturb"):this.doNotDisturb=new Qqd},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return vD(this,
"inMeeting")?Aj(this,"inMeeting"):this.inMeeting=new Sqd},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return vD(this,"inactive")?Aj(this,"inactive"):this.inactive=new Tqd},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return Aj(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return vD(this,"outOfOffice")?Aj(this,"outOfOffice"):
this.outOfOffice=new Wqd},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return vD(this,"outsideWorkingHours")?Aj(this,"outsideWorkingHours"):this.outsideWorkingHours=new Xqd},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var frd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Y(frd,Bj);
frd.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:grd}}};da.Object.defineProperties(frd.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return vD(this,"location")?Aj(this,"location"):this.location=new grd},set:function(a){this.Serializable$values.location=a}}});var drd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Y(drd,Bj);
drd.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:Iqd},keys:["availableTime"]}};da.Object.defineProperties(drd.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return vD(this,"availableTime")?Aj(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var hrd=new ed("API_VERSION"),ird=new ed("REQUEST_SERVICE for waldo_service_api"),XS=function(){};XS.\u0275fac=function(a){return new (a||XS)};
XS.\u0275mod=cf({type:XS});XS.\u0275inj=Gc({});var jrd={$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"},krd=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new qOc(b,c)};krd.\u0275fac=function(a){return new (a||krd)(Zc(hrd,8),Zc(ird),Zc(oOc,8))};
krd.\u0275prov=Fc({token:krd,factory:krd.\u0275fac});var lrd=function(){};lrd.\u0275fac=function(a){return new (a||lrd)};lrd.\u0275prov=Fc({token:lrd,factory:function(a){return krd.\u0275fac(a)},providedIn:XS});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var YS=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};
YS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof YS&&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 mrd(this))}};YS.prototype.continue_=function(a,b){this.blocked_=!1;nrd(this,a,b)};
var nrd=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;ord(a)},qrd=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new prd(a);a.silentlyCanceled_=!1}};YS.prototype.callback=function(a){qrd(this);nrd(this,!0,a)};YS.prototype.errback=function(a){qrd(this);nrd(this,!1,a)};YS.prototype.addCallback=function(a,b){return rrd(this,a,null,b)};YS.prototype.finally=function(a){var b=this;return srd(new Promise(function(c,d){rrd(b,function(e){a();c(e)},function(e){a();d(e)})}))};
var rrd=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=sB(b):(b=sB(b),c=sB(c)));a.sequence_.push([b,c,d]);e&&ord(a);return a};YS.prototype.then=function(a,b,c){var d,e,f=new QC(function(g,k){e=g;d=k});rrd(this,e,function(g){g instanceof mrd?f.cancel():d(g);return trd},this);return f.then(a,b,c)};YS.prototype.$goog_Thenable=!0;YS.prototype.branch=function(a){var b=new YS;rrd(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
YS.prototype.isError=function(a){return a instanceof Error};
var urd=function(a){return hzc(a.sequence_,function(b){return typeof b[1]==="function"})},trd={},ord=function(a){if(a.unhandledErrorId_&&a.fired_&&urd(a)){var b=a.unhandledErrorId_,c=vrd[b];c&&(ra.clearTimeout(c.id_),delete vrd[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===trd&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(MLc(b)||typeof ra.Promise==="function"&&b instanceof ra.Promise)d=!0,a.blocked_=!0}catch(m){b=m,a.hadError_=!0,urd(a)||(c=!0)}}a.result_=b;d&&(k=vj(a.continue_,a,!0),d=vj(a.continue_,a,!1),b instanceof YS?(rrd(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new wrd(b),vrd[b.id_]=b,a.unhandledErrorId_=b.id_)},srd=function(a){var b=new YS;a.then(function(c){b.callback(c)},function(c){b.errback(c)});return b},prd=function(){pa.call(this)};
Qw(prd,pa);prd.prototype.message="Deferred has already fired";prd.prototype.name="AlreadyCalledError";var mrd=function(){pa.call(this)};Qw(mrd,pa);mrd.prototype.message="Deferred was canceled";mrd.prototype.name="CanceledError";var wrd=function(a){this.id_=ra.setTimeout(vj(this.throwError,this),0);this.error_=a};wrd.prototype.throwError=function(){delete vrd[this.id_];throw this.error_;};var vrd={};var C9a=function(a,b){var c=b||{};b=c.document||document;var d=xh(a).toString(),e=(new IC(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},g=new YS(xrd,f),k=null,m=c.timeout!=null?c.timeout:5E3;m>0&&(k=window.setTimeout(function(){yrd(e,!0);g.errback(new zrd(1,"Timeout reached for loading script "+d))},m),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(yrd(e,c.cleanupWhenDone||!1,k),g.callback(null))};e.onerror=function(){yrd(e,
!0,k);g.errback(new zrd(0,"Error while loading script "+d))};f=c.attributes||{};Ota(f,{type:"text/javascript",charset:"UTF-8"});pLc(e,f);ri(e,a);Ard(b).appendChild(e);return g},Ard=function(a){var b=JC("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},xrd=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&yrd(a,!0,this.timeout_)}},yrd=function(a,b,c){c!=null&&ra.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){NC(a)},
0)},zrd=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);pa.call(this,c);this.code=a};Qw(zrd,pa);var y9a=null,E9a=new WeakMap;var ZS=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 A9a().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return G9a(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Y(ZS,tOc);
ZS.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(F9a(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}))}))}))};
ZS.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)})})};ZS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&D9a(a,b,this.gapiConfigUpdates[b])};var Brd=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;ZS.call(this,a,c,d,e);this.waldoApiKey=b};Y(Brd,ZS);Brd.prototype.makeRequest=function(a){var b=ZS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var $S=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(nla(this.trigger.pipe(hf(200))));this.responseHandler=function(c){if(c.hasResults){c=l(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){var f=e.status.outOfOffice;if(f.comeBackTime){var g=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===g.getFullYear()&&k.getMonth()===g.getMonth()&&k.getDate()===g.getDate()?"at "+f.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(f.getFullYear()!==(new Date).getFullYear()?f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));f=" - back "+f}else f="";f="Out of Office"+f}else f="";b.result.next({emailAddress:d,
availability:f,timezone:e.hasContexts&&e.contexts.hasLocalTime?e.contexts.localTime.timeZone:""})}else b.result.next({emailAddress:d,availability:"",timezone:""})}}};this.batchedTrigger.pipe(Bf(this.destroyed)).subscribe(function(c){c=[].concat(q(new Set(c)));Crd(b,c.slice(0,100));c=l(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},Crd=function(a,b){var c,d;y(function(e){for(var f=new Jqd,g=[],k=l(b),m=k.next();!m.done;m=k.next()){m=m.value;var r=new US;r.email=m;g.push(r)}f.userIds=
g;c=f;f=a.apiStub;var w=w===void 0?{}:w;var x=x===void 0?{}:x;d=sOc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:Mva(w,jrd,x),responseCtor:Lqd});d.pipe(Bf(a.destroyed)).subscribe(a.responseHandler);ce(e)})},Drd=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}))},Erd=function(a,b){return Drd(a,b).pipe(A(function(c){return c.availability}))};$S.prototype.ngOnDestroy=function(){this.destroyed.next()};$S.\u0275fac=function(a){return new (a||$S)(Zc(lrd))};$S.\u0275prov=Fc({token:$S,factory:$S.\u0275fac});var Frd=function(){var a=this;this.waldoAvailabilityService=p($S);this.user="";this.userSubject=new wf(1);this.availability=this.userSubject.pipe(Af(function(b){return Erd(a.waldoAvailabilityService,b)}))};Frd.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};Frd.\u0275fac=function(a){return new (a||Frd)};
Frd.\u0275cmp=C({type:Frd,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[xx],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,H9a,6,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.availability))},dependencies:[fy,ly],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 Grd=function(a){this.proxiedService=a};Y(Grd,tOc);Grd.prototype.makeRequest=function(a){var b=this;return pe(function(){return b.proxiedService.makeRequest(a)})};var Hrd=new ed("environment"),Ird={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},aT=function(){};aT.\u0275fac=function(a){return new (a||aT)};aT.\u0275mod=cf({type:aT});aT.\u0275inj=Gc({imports:[ty,XS]});var Jrd=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"),Krd=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,Lrd=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,Mrd=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,Nrd=function(a){return Jrd.test(a)||Krd.test(a)||Lrd.test(a)||Mrd.test(a)};var Ord=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ord,W);h=Ord.prototype;h.getSize=function(){return kx(this,1)};h.setSize=function(a){return Tn(this,1,a)};h.getWidth=function(){return kx(this,12)};h.setWidth=function(a){return Tn(this,12,a)};h.getHeight=function(){return kx(this,13)};h.setHeight=function(a){return Tn(this,13,a)};h.setStretch=function(a){return aj(this,33,a)};h.setCrop=function(a){return aj(this,2,a)};
h.setCircleCrop=function(a){return aj(this,51,a)};h.setImageCrop=function(a){return aj(this,32,a)};h.setSmartCrop=function(a){return aj(this,19,a)};h.setSmartCropNoClip=function(a){return aj(this,52,a)};h.setSmartCropUseFace=function(a){return aj(this,67,a)};h.setDetectFaces=function(a){aj(this,80,a)};h.setCenterCrop=function(a){return aj(this,20,a)};h.setPad=function(a){return aj(this,60,a)};h.setDownload=function(a){aj(this,3,a)};h.setHtml=function(a){aj(this,4,a)};
h.setObjectId=function(a){kAc(this,7,a)};h.setLooseFaceCrop=function(a){return aj(this,65,a)};h.setFaceCropVersion=function(a){Tn(this,94,a)};h.setFrameId=function(a){kAc(this,29,a)};h.setTileX=function(a){Tn(this,9,a)};h.setTileY=function(a){Tn(this,10,a)};h.setTileZoom=function(a){Tn(this,11,a)};h.setTileGeneration=function(a){aj(this,14,a)};h.setForceTileGeneration=function(a){aj(this,34,a)};h.setTilePyramidAsProto=function(a){aj(this,72,a)};h.setExpirationTime=function(a){Tn(this,15,a)};
h.setExpirationTimeInMinutes=function(a){Tn(this,107,a)};h.setImageFilter=function(a){return yj(this,16,a)};h.setKillAnimation=function(a){return aj(this,17,a)};h.setUnfiltered=function(a){aj(this,18,a)};h.setUnfilteredWithTransforms=function(a){aj(this,45,a)};h.setIncludeMetadata=function(a){aj(this,22,a)};h.setIncludePublicMetadata=function(a){aj(this,54,a)};h.setStripGoogleData=function(a){aj(this,82,a)};h.setPreserveGoogleData=function(a){aj(this,83,a)};
h.setStripMetadata=function(a){aj(this,93,a)};h.setStripGeoinfo=function(a){aj(this,95,a)};h.setEsPortraitApprovedOnly=function(a){return aj(this,21,a)};h.setBypassTakedown=function(a){aj(this,23,a)};h.getToken=function(){return Ml(this,24)};h.setToken=function(a){yj(this,24,a)};h.hasToken=function(){return wm(this,24)};h.setVersionedToken=function(a){yj(this,36,a)};h.setSkipRefererCheck=function(a){aj(this,6,a)};h.setRotate=function(a){return Tn(this,26,a)};
h.setHorizontalFlip=function(a){aj(this,30,a)};h.setVerticalFlip=function(a){aj(this,31,a)};h.getOverlay=function(){return aw(this,27)};h.setOverlay=function(a){return aj(this,27,a)};h.setQueryString=function(a){yj(this,28,a)};h.setRequestJpeg=function(a){return aj(this,57,a)};h.setRequestPng=function(a){return aj(this,58,a)};h.setRequestGif=function(a){aj(this,59,a)};h.setRequestAvif=function(a){aj(this,103,a)};h.setRequestWebp=function(a){return aj(this,35,a)};
h.setRequestWebpUnlessMaybeTransparent=function(a){aj(this,41,a)};h.setRequestAnimatedWebp=function(a){aj(this,64,a)};h.setNoWebp=function(a){aj(this,48,a)};h.setRequestH264=function(a){return aj(this,49,a)};h.setLossy=function(a){aj(this,97,a)};h.setNoOverlay=function(a){return aj(this,37,a)};h.setBorderSize=function(a){Tn(this,38,a)};h.setBorderRadius=function(a){Tn(this,86,a)};h.setBorderColor=function(a){Tn(this,39,a)};h.setBackgroundColor=function(a){Tn(this,87,a)};
h.setPadColor=function(a){Tn(this,88,a)};h.setSubstitutionColor=function(a){Tn(this,89,a)};h.setNoSilhouette=function(a){aj(this,40,a)};h.setFocusBlur=function(a){Tn(this,42,a)};h.setFocalPlane=function(a){Tn(this,43,a)};h.setQualityLevel=function(a){return Tn(this,44,a)};h.setQualityBucket=function(a){return Tn(this,62,a)};h.setNoUpscale=function(a){aj(this,46,a)};h.setPreserveAspectRatio=function(a){aj(this,61,a)};h.setForceTransformation=function(a){aj(this,50,a)};
h.setNoDefaultImage=function(a){aj(this,53,a)};h.setNoCorrectExifOrientation=function(a){aj(this,55,a)};h.setSelectFrameNumber=function(a){Tn(this,56,a)};h.setVideoFormat=function(a){Tn(this,63,a)};h.setVideoMultiFormat=function(a){yj(this,81,a)};h.setVideoManifest=function(a){aj(this,98,a)};h.setDownloadVideo=function(a){aj(this,90,a)};h.setVideoBegin=function(a){Kn(this,68,a)};h.setVideoLength=function(a){Kn(this,69,a)};h.setMatchVersion=function(a){aj(this,66,a)};
h.setImageDigest=function(a){aj(this,70,a)};h.setInternalClient=function(a){Tn(this,71,a)};h.setMonogram=function(a){aj(this,73,a)};h.setForceMonogram=function(a){return aj(this,84,a)};h.setMonogramDogfood=function(a){aj(this,91,a)};h.setIgnoreLowResProfilePhoto=function(a){aj(this,96,a)};h.setAutoloop=function(a){aj(this,74,a)};h.getImageVersion=function(){return lx(this,75)};h.setImageVersion=function(a){Kn(this,75,a)};h.setPitchDegrees=function(a){nx(this,76,a)};
h.setYawDegrees=function(a){nx(this,77,a)};h.setRollDegrees=function(a){nx(this,78,a)};h.setFovDegrees=function(a){nx(this,79,a)};h.setBadge=function(a){Tn(this,85,a)};h.setColorProfile=function(a){Tn(this,92,a)};h.setToneMap=function(a){aj(this,113,a)};h.setNoToneMap=function(a){aj(this,114,a)};h.setDeepCrop=function(a){yj(this,99,a)};h.setRequestVideoFast=function(a){aj(this,100,a)};h.setVideoFormatFilters=function(a){yj(this,102,a)};h.setDummyCacheKeyModifier=function(a){aj(this,104,a)};
h.setGainMap=function(a){aj(this,105,a)};h.setNoGainMap=function(a){aj(this,106,a)};h.setForceCookieRedirect=function(a){aj(this,108,a)};h.setStoryboardLevel=function(a){Tn(this,109,a)};h.setStoryboardMosaic=function(a){Tn(this,110,a)};h.setPregenTimestamps=function(a){yj(this,111,a)};h.setClientExperimentLabel=function(a){yj(this,112,a)};h.setMediaProvenance=function(a){Tn(this,115,a)};Wr.prototype.set=function(a,b){Prd(this,a,b,!1)};Wr.prototype.setValue=function(a){this.value_=a};Wr.prototype.add=function(a,b){Prd(this,a,b,!0)};var Prd=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 Wr);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("Ge`"+b);a.value_=c};Wr.prototype.setAll=function(a){var b=KIc(a);a=JIc(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var Qrd=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};Wr.prototype.get=function(a){return(a=Qrd(this,a))?a.value_:void 0};Wr.prototype.getValues=function(){var a=[];Rrd(this,a);return a};var Rrd=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)Rrd(a.childNodes_[c],b)};
Wr.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]}Srd(c,a,b)}else Srd(this,"",b);return b};var Srd=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)Srd(a.childNodes_[d],b+d,c)};h=Wr.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("He`"+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 Wr(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&&Ita(this.childNodes_)};var Vrd=function(){if(!Trd){var a=Trd=new Wr,b;for(b in Urd)a.add(b,Urd[b])}},Trd,bT=function(a,b){this.types=a;this.setters=b},Urd={a:new bT([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new bT([3],[function(a,b){a.setAutoloop(b)}]),b:new bT([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new bT([0],[function(a,b){a.setBadge(b)}]),bc:new bT([0],[function(a,b){a.setBackgroundColor(b)}]),br:new bT([0],[function(a,
b){a.setBorderRadius(b)}]),c:new bT([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new bT([3],[function(a,b){a.setCircleCrop(b)}]),ci:new bT([3],[function(a,b){a.setImageCrop(b)}]),ckm:new bT([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new bT([0],[function(a,b){a.setColorProfile(b)}]),cr:new bT([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new bT([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new bT([3],[function(a,b){a.setDownload(b)}]),dc:new bT([5],
[function(a,b){a.setDeepCrop(b)}]),df:new bT([3],[function(a,b){a.setDetectFaces(b)}]),dv:new bT([3],[function(a,b){a.setDownloadVideo(b)}]),e:new bT([0],[function(a,b){a.setExpirationTime(b)}]),em:new bT([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new bT([4],[function(a,b){a.setImageFilter(b)}]),fg:new bT([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new bT([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new bT([3],[function(a,b){a.setForceMonogram(b)}]),fo:new bT([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new bT([3],[function(a,b){a.setForceTransformation(b)}]),fv:new bT([3],[function(a,b){a.setVerticalFlip(b)}]),g:new bT([3],[function(a,b){a.setTileGeneration(b)}]),gce:new bT([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new bT([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new bT([3],[function(a,b){a.setGainMap(b)}]),h:new bT([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new bT([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new bT([0],
[function(a,b){a.setInternalClient(b)}]),id:new bT([3],[function(a,b){a.setImageDigest(b)}]),il:new bT([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new bT([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new bT([0],[function(a,b){a.setImageVersion(b)}]),j:new bT([1],[function(a,b){a.setFrameId(b)}]),k:new bT([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new bT([0],[function(a,b){a.setQualityLevel(b)}]),lf:new bT([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new bT([3],[function(a,b){a.setLossy(b)}]),m:new bT([0],[function(a,b){a.setVideoFormat(b)}]),md:new bT([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new bT([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new bT([3],[function(a,b){a.setMonogram(b)}]),mp:new bT([0],[function(a,b){a.setMediaProvenance(b)}]),mv:new bT([3],[function(a,b){a.setMatchVersion(b)}]),n:new bT([3],[function(a,b){a.setCenterCrop(b)}]),nc:new bT([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new bT([3],[function(a,
b){a.setNoDefaultImage(b)}]),ng:new bT([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new bT([3],[function(a,b){a.setNoGainMap(b)}]),no:new bT([3],[function(a,b){a.setNoOverlay(b)}]),ns:new bT([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new bT([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new bT([3],[function(a,b){a.setNoToneMap(b)}]),nu:new bT([3],[function(a,b){a.setNoUpscale(b)}]),nw:new bT([3],[function(a,b){a.setNoWebp(b)}]),o:new bT([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),
p:new bT([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new bT([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new bT([0],[function(a,b){a.setPadColor(b)}]),pd:new bT([3],[function(a,b){a.setPad(b)}]),pf:new bT([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new bT([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new bT([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new bT([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new bT([4],[function(a,b){a.setPregenTimestamps(b)}]),
q:new bT([4],[function(a,b){a.setQueryString(b)}]),r:new bT([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new bT([3],[function(a,b){a.setRequestAvif(b)}]),rf:new bT([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new bT([3],[function(a,b){a.setRequestGif(b)}]),rh:new bT([3],[function(a,b){a.setRequestH264(b)}]),rj:new bT([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new bT([2],[function(a,b){a.setRollDegrees(b)}]),rp:new bT([3],[function(a,b){a.setRequestPng(b)}]),
rw:new bT([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new bT([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new bT([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new bT([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new bT([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new bT([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new bT([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new bT([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new bT([3],
[function(a,b){a.setStripMetadata(b)}]),t:new bT([4],[function(a,b){a.setToken(b)}]),tm:new bT([3],[function(a,b){a.setToneMap(b)}]),u:new bT([3],[function(a,b){a.setUnfiltered(b)}]),ut:new bT([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new bT([0],[function(a,b){a.setQualityBucket(b)}]),vb:new bT([0],[function(a,b){a.setVideoBegin(b)}]),vf:new bT([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new bT([0],[function(a,b){a.setVideoLength(b)}]),vm:new bT([3],[function(a,b){a.setVideoManifest(b)}]),
w:new bT([0],[function(a,b){a.setWidth(b)}]),x:new bT([0],[function(a,b){a.setTileX(b)}]),y:new bT([0],[function(a,b){a.setTileY(b)}]),ya:new bT([2],[function(a,b){a.setYawDegrees(b)}]),z:new bT([0],[function(a,b){a.setTileZoom(b)}])};
Vrd.prototype.parse=function(a){var b=new Ord,c=new Ord;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(f.length==0)d=!1;else{var g=f,k=!1;var m=g;var r=g.charAt(0);r!=r.toLowerCase()&&(k=!0,m=g.charAt(0).toLowerCase()+g.substring(1));var w=Trd;for(r=1;r<=m.length;++r){var x=w,D=m.substring(0,r);if(D.length==0?x.isEmpty():!Qrd(x,D))break}m=r==1?null:(m=w.get(m.substring(0,r-1)))?{option:g.substring(0,r-1),value:g.substring(r-1),signed:k,attributes:m}:null;if(m){g=
[];k=[];r=!1;for(w=0;w<m.attributes.types.length;w++){x=m.attributes.types[w];var H=m.value;D=e;if(m.signed&&x==1)for(var J=H.length;J<12&&D<a.length-1;)H+="-"+a[D+1],J=H.length,++D;else if(x==2)for(;D<a.length-1&&a[D+1].match(/^[\d\.]/);)H+="-"+a[D+1],++D;J=m.attributes.setters[w];H=Wrd(this,x)(m.option,H,b,c,J);if(H===null){r=!0;e=D;break}else g.push(x),k.push(H)}if(!r)for(m=0;m<k.length;m++)w=g[m],H=k[m],Xrd(this,w)(f,H);d=d&&r}else d=!1}}a=d}return new Yrd(b,c,a)};
var Zrd=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};h=Vrd.prototype;h.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=Gm(b);if(isNaN(b))return 1;Zrd(a,b,c,d,e,Number);return null};h.logIntParseError_=function(){};h.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=Km(b);if(isNaN(b))return 1;Zrd(a,b,c,d,e,Number);return null};h.logFloatParseError_=function(){};
h.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;Zrd(a,!0,c,d,e,Boolean);return null};h.logBoolParseError_=function(){};h.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;Zrd(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;Zrd(a,b,c,d,e,function(f){return f?1:0});return null};
var Wrd=function(a,b){switch(b){case 0:return vj(a.parseAndSetIntOption_,a);case 2:return vj(a.parseAndSetFloatOption_,a);case 3:return vj(a.parseAndSetBoolOption_,a);case 4:return vj(a.parseAndSetStringOption_,a);case 1:return vj(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},Xrd=function(a,b){switch(b){case 0:return vj(a.logIntParseError_,a);case 2:return vj(a.logFloatParseError_,a);case 3:return vj(a.logBoolParseError_,a);case 4:case 1:return vj(a.logStringParseError_,a);default:return function(){}}},
Yrd=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};Yrd.prototype.isValid=function(){return this.valid_};h=I9a.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 J9a=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;$rd(this,a)};J9a.prototype.getParsedOptions=function(){return this.parsedOptions_};var asd=function(a){a.parser_==null&&(a.parser_=new Vrd);return a.parser_},$rd=function(a,b){a.parsedOptions_=b?typeof b==="string"?asd(a).parse(b):b:asd(a).parse("")},cT=function(a,b){return a==b?!1:!0};h=J9a.prototype;
h.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,21),aw(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};h.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,56),kx(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};h.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,74),aw(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
h.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,23),Ri(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};h.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,38),kx(b.signatureFlagProto_,38))&&c.setBorderSize(a)};h.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,85),kx(b.signatureFlagProto_,85))&&c.setBadge(a)};
h.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,87),kx(b.signatureFlagProto_,87))&&c.setBackgroundColor(a)};h.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,86),kx(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};h.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,2),Ri(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
h.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,39),kx(b.signatureFlagProto_,39))&&c.setBorderColor(a)};h.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,51),aw(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};h.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,32),aw(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
h.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,104),aw(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};h.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,92),kx(b.signatureFlagProto_,92))&&c.setColorProfile(a)};h.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,108),aw(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
h.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,94),kx(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};h.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,3),Ri(b.signatureFlagProto_,3))&&c.setDownload(a)};h.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,99),Ml(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
h.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,80),aw(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};h.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,90),aw(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};h.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,15),kx(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
h.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,107),kx(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};h.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,16),Ml(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};h.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,34),Ri(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
h.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,30),aw(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};h.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,84),aw(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};h.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,mx(c,79),mx(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
h.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,50),aw(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};h.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,31),aw(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};h.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,14),Ri(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
h.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,112),Ml(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};h.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,83),aw(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};h.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,105),aw(b.signatureFlagProto_,105))&&c.setGainMap(a)};
h.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,4),Ri(b.signatureFlagProto_,4))&&c.setHtml(a)};h.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(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_;cT(a,aw(c,22),aw(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
h.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,71),kx(b.signatureFlagProto_,71))&&c.setInternalClient(a)};h.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,70),aw(b.signatureFlagProto_,70))&&c.setImageDigest(a)};h.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,96),aw(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
h.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,54),aw(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};h.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};h.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,dx(c,29,kw),dx(b.signatureFlagProto_,29,kw))&&c.setFrameId(a)};
h.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,17),aw(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};h.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,42),kx(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};h.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,44),kx(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
h.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,65),aw(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};h.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,97),aw(b.signatureFlagProto_,97))&&c.setLossy(a)};h.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,63),kx(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
h.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,91),aw(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};h.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,81),Ml(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};h.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,73),aw(b.signatureFlagProto_,73))&&c.setMonogram(a)};
h.setMediaProvenance=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,115),kx(b.signatureFlagProto_,115))&&c.setMediaProvenance(a)};h.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,66),aw(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};h.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,20),Ri(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
h.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,55),aw(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};h.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,53),aw(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};h.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,95),aw(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
h.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,106),aw(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};h.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,37),Ri(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};h.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,40),aw(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};
h.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,36),Ml(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};h.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,114),aw(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};h.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,46),aw(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};
h.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,48),Ri(b.signatureFlagProto_,48))&&c.setNoWebp(a)};h.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,dx(c,7,kw),dx(b.signatureFlagProto_,7,kw))&&c.setObjectId(a)};h.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(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_;cT(a,Ri(c,19),Ri(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};h.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,43),kx(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};h.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,61),aw(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};
h.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,88),kx(b.signatureFlagProto_,88))&&c.setPadColor(a)};h.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,60),aw(b.signatureFlagProto_,60))&&c.setPad(a);return this};h.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,67),Ri(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};
h.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,72),Ri(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};h.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,mx(c,76),mx(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};h.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,52),Ri(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};
h.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,111),Ml(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};h.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,28),Ml(b.signatureFlagProto_,28))&&c.setQueryString(a)};h.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,6),Ri(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};
h.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,26),kx(b.signatureFlagProto_,26))&&c.setRotate(a);return this};h.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,103),Ri(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};h.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,100),aw(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};
h.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,59),aw(b.signatureFlagProto_,59))&&c.setRequestGif(a)};h.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,49),Ri(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};h.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,57),aw(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};
h.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,mx(c,78),mx(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};h.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,58),aw(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};h.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,35),Ri(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};
h.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,64),Ri(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};h.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ri(c,41),Ri(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};h.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,33),aw(b.signatureFlagProto_,33))&&c.setStretch(a);return this};
h.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};h.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,110),kx(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};h.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,89),kx(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
h.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,82),aw(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};h.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,109),kx(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};h.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,93),aw(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
h.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a)};h.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,113),aw(b.signatureFlagProto_,113))&&c.setToneMap(a)};h.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,18),aw(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};
h.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,45),aw(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};h.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,62),kx(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};h.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,lx(c,68),lx(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
h.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,Ml(c,102),Ml(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};h.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,lx(c,69),lx(b.signatureFlagProto_,69))&&c.setVideoLength(a)};h.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;cT(a,aw(c,98),aw(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};
h.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};h.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,9),kx(b.signatureFlagProto_,9))&&c.setTileX(a)};h.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,10),kx(b.signatureFlagProto_,10))&&c.setTileY(a)};
h.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,mx(c,77),mx(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};h.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;cT(a,kx(c,11),kx(b.signatureFlagProto_,11))&&c.setTileZoom(a)};h.setOptions=function(a){$rd(this,a);return this};
h.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;dT(this,"s",b.getSize(),a.getSize());dT(this,"w",b.getWidth(),a.getWidth());eT(this,"c",Ri(b,2),Ri(a,2));eT(this,"d",Ri(b,3),Ri(a,3));dT(this,"h",b.getHeight(),a.getHeight());eT(this,"s",aw(b,33),aw(a,33));eT(this,"h",Ri(b,4),Ri(a,4));eT(this,"p",Ri(b,19),Ri(a,19));eT(this,"pp",Ri(b,52),Ri(a,52));eT(this,"pf",Ri(b,67),Ri(a,67));eT(this,"n",Ri(b,20),Ri(a,20));dT(this,"r",kx(b,26),kx(a,26));
eT(this,"r",Ri(b,6),Ri(a,6));eT(this,"o",b.getOverlay(),a.getOverlay());var c=dx(b,7,kw);fT(this,"o",c,dx(a,7,kw));c=dx(b,29,kw);fT(this,"j",c,dx(a,29,kw));dT(this,"x",kx(b,9),kx(a,9));dT(this,"y",kx(b,10),kx(a,10));dT(this,"z",kx(b,11),kx(a,11));eT(this,"g",Ri(b,14),Ri(a,14));dT(this,"e",kx(b,15),kx(a,15));fT(this,"f",Ml(b,16),Ml(a,16));eT(this,"k",aw(b,17),aw(a,17));eT(this,"u",aw(b,18),!0);eT(this,"ut",aw(b,45),!0);eT(this,"i",aw(b,22),!0);eT(this,"a",aw(b,21),aw(a,21));eT(this,"b",Ri(b,23),Ri(a,
23));dT(this,"b",kx(b,38),kx(a,38));dT(this,"c",kx(b,39),kx(a,39),16,8);fT(this,"q",Ml(b,28),Ml(a,28));eT(this,"fh",aw(b,30),aw(a,30));eT(this,"fv",aw(b,31),aw(a,31));eT(this,"fg",Ri(b,34),Ri(a,34));eT(this,"ci",aw(b,32),aw(a,32));fT(this,"t",b.getToken(),a.getToken());fT(this,"nt0",Ml(b,36),Ml(a,36));eT(this,"rw",Ri(b,35),Ri(a,35));eT(this,"rwu",Ri(b,41),Ri(a,41));eT(this,"rwa",Ri(b,64),Ri(a,64));eT(this,"nw",Ri(b,48),Ri(a,48));eT(this,"rh",Ri(b,49),Ri(a,49));eT(this,"no",Ri(b,37),Ri(a,37));eT(this,
"ns",aw(b,40),aw(a,40));dT(this,"k",kx(b,42),kx(a,42));dT(this,"p",kx(b,43),kx(a,43));dT(this,"l",kx(b,44),kx(a,44));dT(this,"v",kx(b,62),kx(a,62));eT(this,"nu",aw(b,46),aw(a,46));eT(this,"ft",aw(b,50),aw(a,50));eT(this,"cc",aw(b,51),aw(a,51));eT(this,"nd",aw(b,53),aw(a,53));eT(this,"ip",aw(b,54),aw(a,54));eT(this,"nc",aw(b,55),aw(a,55));dT(this,"a",kx(b,56),kx(a,56));eT(this,"rj",aw(b,57),aw(a,57));eT(this,"rp",aw(b,58),aw(a,58));eT(this,"rg",aw(b,59),aw(a,59));eT(this,"pd",aw(b,60),aw(a,60));eT(this,
"pa",aw(b,61),aw(a,61));dT(this,"m",kx(b,63),kx(a,63));dT(this,"vb",lx(b,68),lx(a,68));dT(this,"vl",lx(b,69),lx(a,69));eT(this,"lf",aw(b,65),aw(a,65));eT(this,"mv",aw(b,66),aw(a,66));eT(this,"id",aw(b,70),aw(a,70));dT(this,"ic",kx(b,71),!0);eT(this,"pg",Ri(b,72),Ri(a,72));eT(this,"mo",aw(b,73),aw(a,73));eT(this,"al",aw(b,74),aw(a,74));dT(this,"iv",b.getImageVersion(),a.getImageVersion());dT(this,"pi",mx(b,76),mx(a,76));dT(this,"ya",mx(b,77),mx(a,77));dT(this,"ro",mx(b,78),mx(a,78));dT(this,"fo",mx(b,
79),mx(a,79));eT(this,"df",aw(b,80),aw(a,80));fT(this,"mm",Ml(b,81),Ml(a,81));eT(this,"sg",aw(b,82),aw(a,82));eT(this,"gd",aw(b,83),aw(a,83));eT(this,"fm",aw(b,84),aw(a,84));dT(this,"ba",kx(b,85),kx(a,85));dT(this,"br",kx(b,86),kx(a,86));dT(this,"bc",kx(b,87),kx(a,87),16,8);dT(this,"pc",kx(b,88),kx(a,88),16,8);dT(this,"sc",kx(b,89),kx(a,89),16,8);eT(this,"dv",aw(b,90),aw(a,90));eT(this,"md",aw(b,91),aw(a,91));dT(this,"cp",kx(b,92),kx(a,92));eT(this,"sm",aw(b,93),aw(a,93));dT(this,"cv",kx(b,94),kx(a,
94));eT(this,"ng",aw(b,95),aw(a,95));eT(this,"il",aw(b,96),aw(a,96));eT(this,"lo",aw(b,97),aw(a,97));eT(this,"vm",aw(b,98),aw(a,98));fT(this,"dc",Ml(b,99),Ml(a,99));eT(this,"rf",aw(b,100),aw(a,100));fT(this,"vf",Ml(b,102),Ml(a,102));eT(this,"ra",Ri(b,103),Ri(a,103));eT(this,"ckm",aw(b,104),aw(a,104));eT(this,"gm",aw(b,105),aw(a,105));eT(this,"ngm",aw(b,106),aw(a,106));dT(this,"em",kx(b,107),kx(a,107));eT(this,"cr",aw(b,108),aw(a,108));dT(this,"sl",kx(b,109),kx(a,109));dT(this,"sb",kx(b,110),kx(a,
110));fT(this,"pt",Ml(b,111),Ml(a,111));fT(this,"gce",Ml(b,112),Ml(a,112));eT(this,"tm",aw(b,113),aw(a,113));eT(this,"ntm",aw(b,114),aw(a,114));dT(this,"mp",kx(b,115),kx(a,115));return this.components_.join("-")};
var dT=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 I9a;e.append(g==16?"0x":"");g=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":jIc("0",f));g.call(e,f);e.append(c);bsd(a,b,e.toString(),!!Number(d))}},eT=function(a,b,c,d){c&&bsd(a,b,"",!!d)},fT=function(a,b,c,d){c&&bsd(a,b,String(c),!!Number(d))},bsd=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};Qw(Xr,J9a);h=Xr.prototype;h.setCrop=function(a){a&&gT(this);return Xr.superClass_.setCrop.call(this,a)};h.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Xr.superClass_.setHeight.call(this,a)};h.setStretch=function(a){a&&gT(this);return Xr.superClass_.setStretch.call(this,a)};h.setQualityLevel=function(a){return Xr.superClass_.setQualityLevel.call(this,a)};h.setImageFilter=function(a){a&&(a=a.replace(";",":"));return Xr.superClass_.setImageFilter.call(this,a)};
h.setImageCrop=function(a){a&&gT(this);return Xr.superClass_.setImageCrop.call(this,a)};h.setCircleCrop=function(a){a&&gT(this);return Xr.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 Xr.superClass_.setSize.call(this,a)};h.setSmartCrop=function(a){a&&gT(this);return Xr.superClass_.setSmartCrop.call(this,a)};
h.setSmartCropNoClip=function(a){a&&gT(this);return Xr.superClass_.setSmartCropNoClip.call(this,a)};h.setSmartCropUseFace=function(a){a&&gT(this);return Xr.superClass_.setSmartCropUseFace.call(this,a)};h.setCenterCrop=function(a){a&&gT(this);return Xr.superClass_.setCenterCrop.call(this,a)};h.setPad=function(a){a&&gT(this);return Xr.superClass_.setPad.call(this,a)};h.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Xr.superClass_.setWidth.call(this,a)};
var gT=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};Xr.prototype.build=function(){var a=this.getParsedOptions().valueProto_;aw(a,18)||aw(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),gT(this)));return Xr.superClass_.build.call(this)};var csd=/^[^\/]*\/\//,hT=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(csd))&&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_=Ut(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},dsd=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},iT=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"&&(dsd(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)dsd(a,
a.components_[0]);else if(a.components_[0]=="image")dsd(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(dsd(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_};hT.prototype.isValid=function(){iT(this);return this.valid_};var esd=function(a){iT(a);return a.obfuscated_},fsd=function(a){iT(a);return a.isFreeformUrl_};
hT.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};hT.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var gsd=function(a){iT(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};hT.prototype.hasOptions=function(){switch(iT(this).length){case 7:return!0;case 6:return gsd(this)==null;case 5:return!1;case 3:return!0;case 2:return gsd(this)==null;case 1:return!1;default:return!1}};
var jT=function(a,b){if(fsd(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=iT(a)[b]}else if(esd(a))a:{var c=gsd(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=iT(a)[b]}else a:{c=gsd(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=iT(a)[b]}return a};h=hT.prototype;h.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=jT(this,0));return this.obfuscatedGaiaId_};h.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=jT(this,1));return this.photoId_};h.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=jT(this,2));return this.imageVersion_};h.getOptions=function(){this.options_==void 0&&(this.options_=jT(this,4));return this.options_};
h.getFilename=function(){this.filename_==void 0&&(this.filename_=jT(this,5));return this.filename_};var M9a=function(){};M9a.prototype.parse=function(a,b){return new K9a(a,b===void 0?!1:b)};var K9a=function(a,b){hT.call(this,a,b===void 0?!1:b)};Y(K9a,hT);K9a.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new Vrd).parse(a)}return this.parsedOptions_};Qw(Yr,Xr);var L9a;Yr.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Yr.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=Yr.superClass_.build.call(this),b=[];gsd(this.parsedImageUrl_)!=null&&b.push(gsd(this.parsedImageUrl_));var c=fsd(this.parsedImageUrl_);if(esd(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=jT(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=jT(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_=jT(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=Ut(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//",
"://"));return a};var hsd=/\/\/lh[3-6]\./,isd=function(a,b,c,d){if(!a||!Nrd(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(hsd,"//lh3.");return(new Yr(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 jsd=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],kT=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 Gqd(c.peopleService,d)}),A(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var g=d.imageUrl;if(Nrd(g)){var k=new Yr(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)};kT.prototype.ngOnInit=function(){var a=this;this.person$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&ksd(this)};var ksd=function(a){a.waldoService&&a.person$.pipe(Af(function(b){return b?Erd(a.waldoService,b.email):ee("")}),Bf(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
da.Object.defineProperties(kT.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});kT.\u0275fac=function(a){return new (a||kT)(Ye(SS),Ye($S,8))};
kT.\u0275cmp=C({type:kT,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&&(eg(jsd),E(0,N9a,4,4,"onedev-person-hovercard-body",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.person$))},dependencies:[ty,fy,Hqd,wqd,aT,ly],encapsulation:2,
changeDetection:0});var lsd=[[["onedev-hovercard-action"],["",8,"actions"]]],lT=function(){};lT.prototype.ngOnInit=function(){};lT.\u0275fac=function(a){return new (a||lT)};
lT.\u0275cmp=C({type:lT,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&&(eg(lsd),E(0,O9a,3,3,"onedev-person-hovercard",1))},dependencies:[kT,XK,YK],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 mT=function(){this.isNonObfuscatedEmail=po};mT.\u0275fac=function(a){return new (a||mT)};
mT.\u0275cmp=C({type:mT,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&&(eg(),F(0,Q9a,5,4)(1,S9a,1,1,"ng-container"),E(2,T9a,1,0,"ng-template",null,0,Og));a&2&&G(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[ky,WK,dL,lT],
encapsulation:2,changeDetection:0});var nT=function(){Z.apply(this,arguments);this.domSafe=p(sR);this.cdr=p(iQ,{self:!0});this.actionService=p(PS,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Y(nT,Z);nT.\u0275dir=Z.\u0275dir;
nT.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 U9a=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";or("personCard","assigneeAction",b);nqd(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},V9a=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";or("personCard","ccAction",b);oqd(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};nT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nT)))(b||nT)}}();
nT.\u0275cmp=C({type:nT,selectors:[["b-issue-person-card"]],inputs:{email:"email"},standalone:!1,features:[Ig([iQ]),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,W9a,9,8,"ng-container",1),T(2,"async"),K(3,"onedev-hovercard-action",2),N("click",function(c){or("personCard","showAssignedIssuesAction");var d=As.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
Amd(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:[ZK,lT,ly],encapsulation:2,changeDetection:0});var msd=function(){this.activeSession=p(Qu);this.isMentioningMe=!1};msd.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};msd.\u0275fac=function(a){return new (a||msd)};
msd.\u0275cmp=C({type:msd,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=sg(4),yg("me",b.isMentioningMe),I("onedevHovercardTrigger",a),B(2),S("@",b.username),B(3),I("email",b.email))},dependencies:[nT,WK,dL],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 X9a=RegExp("^https?:\\/\\/((?:screenshot\\.googleplex\\.com|screenshot\\.corp\\.google\\.com|3p-screenshot\\.corp\\.google\\.com|screen\\.corp\\.google\\.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),Y9a=RegExp("^http(?:s?):\\/\\/(?:za|za\\.corp\\.google\\.com|alerts|plx-alerts\\.corp\\.google\\.com)\\/chart(?:\\/?)\\?(.*)"),b$a=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)"),Z9a=RegExp("^https:\\/\\/static\\.corp\\.google\\.com\\/");var oT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,oT.messageId)};Y(oT,W);oT.prototype.getUrl=function(){return xi(this,1,void 0,jb)};oT.prototype.setUrl=function(a){return yj(this,1,a,jb)};oT.prototype.hasUrl=function(){return wm(this,1,jb)};oT.messageId="b.ImageRedirectRequest";var pT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pT.messageId)};Y(pT,W);pT.prototype.getUrl=function(){return xi(this,1,void 0,jb)};pT.prototype.setUrl=function(a){return yj(this,1,a,jb)};pT.prototype.hasUrl=function(){return wm(this,1,jb)};pT.messageId="b.ImageRedirectResponse";var nsd=function(){this.executor=p(oO)},osd=function(a,b){b=(new oT).setUrl(b);return a.executor.post({url:"action/imageRedirect",body:b,responseConstructor:pT}).pipe(A(function(c){return c.getUrl()}))};nsd.\u0275fac=function(a){return new (a||nsd)};nsd.\u0275prov=Fc({token:nsd,factory:nsd.\u0275fac,providedIn:"root"});var qT=function(){var a=this;this.imageRedirector=p(nsd);this.src$=new Wj("");this.showImage$=new Wj(!1);this.error$=new Wj(!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=l(b);b.next();return b.next().value}),Af(function(b){var c=l(b).next().value;return(b=d$a(c,!0))?ee(b):osd(a.imageRedirector,c).pipe(jf(function(){a.error$.next(!0);return c}))}))};qT.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
da.Object.defineProperties(qT.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}}});qT.\u0275fac=function(a){return new (a||qT)};
qT.\u0275cmp=C({type:qT,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,i$a,3,3),T(1,"async"),Nf(2,j$a,2,4,"mat-icon",0));a&2&&G(U(1,1,b.error$)===!1?0:2)},dependencies:[Yy,
FK,DA,tR,ly],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 psd={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},qsd=function(){var a=this;this.activeSession=p(Qu);this.userPreferencesManager=p(nR);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=psd;this.src$=new Wj("");this.isMarkdownImage$=new Wj(!1);this.displayMode$=le([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?
!d&&c?"COLLAPSE":d?"SHOW":"HIDE":"HIDE"}),zf("HIDE"))};da.Object.defineProperties(qsd.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}}});qsd.\u0275fac=function(a){return new (a||qsd)};
qsd.\u0275cmp=C({type:qsd,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,m$a,3,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.src$))?0:-1,c)}},dependencies:[qT,ly],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 rT=function(){this.content=Cj;this.canEditComment=!1;this.checkboxChange=new hQ;this.appRef=p(Yg);this.flags=p(and);this.session=p(Qu);this.viewContainerRef=p(hg);this.elementRef=p(Jd);this.destroyRef=p(Ee);this.allComponentRefs=[]};
rT.prototype.ngOnChanges=function(){rsd(this);no(this.elementRef.nativeElement,this.content);for(var a=this.elementRef.nativeElement,b=this.viewContainerRef,c=a.querySelectorAll("*"),d=0;d<c.length;d++){var e=c[d],f=e.dataset.bId;f&&(e.id=f)}c=l(a.querySelectorAll("a"));for(d=c.next();!d.done;d=c.next())if(d=d.value,(f=d.getAttribute("href"))&&$9a(f)&&d&&cVa(d)&&f===d.textContent&&(e=d.nextSibling,ssd(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;n$a(f);if(g){var m=f.dataset.bImgAlt;if($9a(g))ssd(this,f,g,m,e,!0);else if(this.flags.session.getFlag("enableMarkdownInlineImages"))e=this.createComponent(qT,f,e).instance,e.src=g,m&&(e.alt=
m);else{var r=document.createElement("a");m?r.appendChild(document.createTextNode(m)):r.appendChild(document.createTextNode(g));f.appendChild(r);tsd(this,r,g,k||g,e)}}break;case "checkbox":f=b;m=e.dataset.bCheckboxChecked!=null;n$a(e);usd(this,e,m,f);break;case "url":f=b;m=e.dataset.bOriginalHref;g=e.dataset.bRedirectedHref;m&&g&&(e.removeAttribute("href"),tsd(this,e,m,g,f));break;case "broken-url":if(m=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(vR,f,b).instance,
f.originalHref=m,f=f.getNgContentParentEl(),e=l(e),m=e.next();!m.done;m=e.next())f.appendChild(m.value);break;case "mention":f=void 0;m=e;g=b;e="";((f=m.textContent)==null?void 0:f[0])==="@"&&(e=m.textContent.slice(1));n$a(m);f=this.createComponent(msd,m,g).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(m=e.href,g=e.dataset.bIssueId,k=e.dataset.bCommentNumber,m&&g){f=void 0;r=Number(k);k=Array.from(e.childNodes);var w=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(w,e);f=this.createComponent(SR,w,b).instance;f.href=m;f.issueId=g;f.commentNumber=r;f=f.el.nativeElement;m=l(k);for(g=m.next();!g.done;g=m.next())f.appendChild(g.value);e.remove()}}b=a.querySelectorAll("a");for(c=0;c<b.length;c++)d=b[c],d.getAttribute("target")||d.setAttribute("target","_self");b=a.querySelectorAll("table");for(c=0;c<b.length;c++)d=b[c],d.parentNode&&(e=document.createElement("div"),e.classList.add("table-overflow"),e.tabIndex=-1,d.parentNode.insertBefore(e,
d),e.appendChild(d));a=l(a.querySelectorAll("pre"));for(b=a.next();!b.done;b=a.next())b.value.tabIndex=-1};rT.prototype.ngOnDestroy=function(){rsd(this)};
var ssd=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(qsd,g,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},usd=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(Dmd,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!a.session.getFlag("enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(fj(a.destroyRef)).subscribe(function(g){a.checkboxChange.emit({checked:g,
startPos:f})})},tsd=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(QR,b,e).instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=l(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)};rT.prototype.createComponent=function(a,b,c){a=Epa(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);VBc(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var rsd=function(a){for(var b=l(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};rT.\u0275fac=function(a){return new (a||rT)};rT.\u0275dir=df({type:rT,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[xx]});var sT=function(){this.codefont=p(pR);this.canEditComment=!1;this.checkboxChange=new hQ};sT.prototype.ngOnInit=function(){};sT.\u0275fac=function(a){return new (a||sT)};
sT.\u0275cmp=C({type:sT,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,features:[Ig([{provide:ymd,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&&(yg("codefont",U(2,4,b.codefont.codefont$)),I("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[rT,ly],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 vsd=["child"],wsd=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},tT=function(){this.codefont=p(pR)};tT.prototype.ngOnInit=function(){};tT.\u0275fac=function(a){return new (a||tT)};
tT.\u0275cmp=C({type:tT,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},standalone:!1,features:[Ig([{provide:ymd,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"),Qf(2,o$a,1,1,"b-plain-format-section",1,Pf),L());a&2&&(yg("codefont",U(1,2,b.codefont.codefont$)),B(2),Rf(b.content.plainSection))},dependencies:function(){return[xsd,ly]},styles:[wsd()],changeDetection:0});var xsd=function(){};
xsd.prototype.ngOnInit=function(){};xsd.\u0275fac=function(a){return new (a||xsd)};xsd.\u0275cmp=C({type:xsd,selectors:[["b-plain-format-section"]],inputs:{section:"section"},standalone:!1,decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Wf(0),F(1,p$a,1,1,"b-plain-format-quoted-section",0)(2,q$a,1,1,"b-plain-format-unquoted-section",0),Xf());a&2&&(B(),G(b.section.isQuoted?1:2))},dependencies:function(){return[uT,ysd]},encapsulation:2,changeDetection:0});
var uT=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++zsd};uT.prototype.ngOnInit=function(){};uT.prototype.ngOnChanges=function(){r$a(this)};var r$a=function(a){var b=a.child.nativeElement;if(a.showQuote)no(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};uT.\u0275fac=function(a){return new (a||uT)};
uT.\u0275cmp=C({type:uT,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&jg(vsd,7);if(a&2){var c;ng(c=og())&&(b.child=c.first)}},inputs:{section:"section"},standalone:!1,features:[xx],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,s$a,2,1,"a",1)(2,t$a,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:[wsd()],changeDetection:0});var zsd=0,ysd=function(){};ysd.prototype.ngOnInit=function(){};ysd.\u0275fac=function(a){return new (a||ysd)};
ysd.\u0275cmp=C({type:ysd,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:[rT],encapsulation:2,changeDetection:0});var vT=function(){this.canEditComment=!1;this.checkboxChange=new hQ;this.contentRendered=new hQ};vT.prototype.ngOnInit=function(){};vT.prototype.ngAfterViewInit=function(){this.contentRendered.emit()};vT.\u0275fac=function(a){return new (a||vT)};
vT.\u0275cmp=C({type:vT,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,u$a,1,1,"b-literal-format-presenter",0),F(1,v$a,1,2,"b-markdown-format-presenter",1),F(2,w$a,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:[qR,sT,tT],encapsulation:2,changeDetection:0});var wT=function(){Z.apply(this,arguments);var a=this;this.formatter=p(lR);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(Asd,jf(function(){var c={literalFormat:{content:Dh(b.comment)}};return ee({formattedComment:c,isFallback:!0})}))}))};Y(wT,Z);wT.\u0275dir=Z.\u0275dir;
wT.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()})}))};wT.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()})};
wT.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};da.Object.defineProperties(wT.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});wT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wT)))(b||wT)}}();
wT.\u0275cmp=C({type:wT,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},standalone:!1,features:[Gf,xx],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,x$a,2,5,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[vT,ly],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 Asd=A(function(a){return{formattedComment:a,isFallback:!1}});var Bsd=/^\s*(?:hotlistid|h):(\d+)\s*$/i,Csd=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,Dsd=/^\s*savedsearchid:(\d+)\s*$/i,xT=function(){Z.call(this);var a=this;this.$log=p(uO);this.activeSession=p(Qu);this.contextSensitiveRegistry=p(cR);this.analytics=p(lQ);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new Wj({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(Csd))?a.contextSensitiveRegistry.componentIdOverride$.next(b[1]):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(Bsd))?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(xT,Z);xT.\u0275dir=Z.\u0275dir;xT.prototype.clear=function(){Esd(this,"")};var Esd=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},Fsd=function(a){return"assignee:"+a+" status:open"},Gsd=function(a,b){return a.currentQuery===Fsd("me")||a.currentQuery===Fsd(b===void 0?"":b)};
xT.prototype.getStarred=function(){return"star:true"};xT.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var Hsd=function(a){return"verifier:"+a+" status:open | status:fixed"},Isd=function(a){return(a=a.currentQuery.match(Bsd))?Number(a[1]):0},Jsd=function(a){return(a=a.currentQuery.match(Dsd))?a[1]:void 0},Ksd=function(a){return(a=a.currentQuery.match(Csd))?a[1]:void 0};xT.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var Lsd=function(a,b){a.searchHandlerStack.push(b);return function(){La(a.searchHandlerStack,b)}};xT.\u0275fac=function(a){return new (a||xT)};xT.\u0275prov=Fc({token:xT,factory:xT.\u0275fac,providedIn:"root"});var Msd=function(a,b){return[a,b]},yT=function(){this.size=this.name=""};yT.prototype.ngOnInit=function(){};yT.\u0275fac=function(a){return new (a||yT)};
yT.\u0275cmp=C({type:yT,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&&(zg(Lg(3,Msd,b.name,b.size)),I("svgIcon",b.name))},dependencies:[Yy],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 Nsd=["input"],Osd=["formField"],Psd=function(a,b){this.source=a;this.value=b},Qsd={provide:lE,useExisting:Xc(function(){return zT}),multi:!0},Rsd=new ed("MatRadioGroup"),Ssd=new ed("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent",disabledInteractive:!1}}}),zT=function(){this._changeDetector=p(Px);this._value=null;this._name=p(di).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 gj;this._disabledInteractive=!1};h=zT.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 Psd(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(zT.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()}}});zT.\u0275fac=function(a){return new (a||zT)};
zT.\u0275dir=df({type:zT,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&kg(c,AT,5);if(a&2){var d;ng(d=og())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",bh],required:[2,"required","required",bh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[Ig([Qsd,{provide:Rsd,useExisting:zT}])]});
var AT=function(){var a=this;this._elementRef=p(Jd);this._changeDetector=p(Px);this._focusMonitor=p(bz);this._radioDispatcher=p(Nz);this._defaultOptions=p(Ssd,{optional:!0});this._ngZone=p(Tg);this._renderer=p(fi);this.id=this._uniqueId=p(di).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new gj;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=pi();this._injector=p(Ae);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};p(bi).load(sA);var b=p(Rsd,{optional:!0}),c=p(new yx("tabindex"),{optional:!0});this.radioGroup=b;var d,e;this._disabledInteractive=(e=(d=this._defaultOptions)==null?void 0:d.disabledInteractive)!=null?e:!1;c&&(this.tabIndex=ch(c,0))};h=AT.prototype;h.focus=function(a,b){b?cz(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 Psd(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(AT.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"}}});AT.\u0275fac=function(a){return new (a||AT)};
AT.\u0275cmp=C({type:AT,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(jg(Nsd,5),jg(Osd,7,Jd));if(a&2){var c;ng(c=og())&&(b._inputElement=c.first);ng(c=og())&&(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),yg("mat-primary",b.color==="primary")("mat-accent",
b.color==="accent")("mat-warn",b.color==="warn")("mat-mdc-radio-checked",b.checked)("mat-mdc-radio-disabled",b.disabled)("mat-mdc-radio-disabled-interactive",b.disabledInteractive)("_mat-animation-noopable",b._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:ch(a)}],checked:[2,"checked","checked",bh],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",bh],required:[2,"required","required",bh],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:["*"],decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type",
"radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(a,b){if(a&1){var c=t();eg();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);fg(12);L()()}a&2&&(I("labelPosition",b.labelPosition),B(2),yg("mdc-radio--disabled",b.disabled),B(2),I("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),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:[vA,tA],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 Tsd=new ed("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var Usd=["switch"],Vsd=function(a,b){this.source=a;this.checked=b},BT=function(){this._elementRef=p(Jd);this._focusMonitor=p(bz);this._changeDetectorRef=p(Px);this.defaults=p(Tsd);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=pi();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new gj;this.toggleChange=new gj;p(bi).load(sA);
var a=p(new yx("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=p(di).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=BT.prototype;h._createChangeEvent=function(a){return new Vsd(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 Vsd(this,this.checked))))};h._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
da.Object.defineProperties(BT.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"}}});BT.\u0275fac=function(a){return new (a||BT)};
BT.\u0275cmp=C({type:BT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&jg(Usd,5);if(a&2){var c;ng(c=og())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Sf("id",b.id),Kf("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),zg(b.color?"mat-"+b.color:""),yg("mat-mdc-slide-toggle-focused",b._focused)("mat-mdc-slide-toggle-checked",b.checked)("_mat-animation-noopable",b._noopAnimations))},inputs:{name:"name",
id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",bh],color:"color",disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],checked:[2,"checked","checked",bh],hideIcon:[2,"hideIcon","hideIcon",bh],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",bh]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ig([{provide:lE,useExisting:Xc(function(){return BT}),multi:!0},{provide:mE,useExisting:BT,multi:!0}]),xx],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();eg();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,C$a,5,0,"span",11);L()()();K(12,"label",12);N("click",function(d){u(c);return v(d.stopPropagation())});fg(13);L()()}a&2&&(a=sg(2),I("labelPosition",b.labelPosition),B(),yg("mdc-switch--selected",
b.checked)("mdc-switch--unselected",!b.checked)("mdc-switch--checked",b.checked)("mdc-switch--disabled",b.disabled)("mat-mdc-slide-toggle-disabled-interactive",b.disabledInteractive),I("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex)("disabled",b.disabled&&!b.disabledInteractive),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:[vA,tA],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 CT=new ed("CDK_TABLE");new ed("text-column-options");var DT=function(){this.template=p(gg)};DT.\u0275fac=function(a){return new (a||DT)};DT.\u0275dir=df({type:DT,selectors:[["","cdkCellDef",""]]});var ET=function(){this.template=p(gg)};ET.\u0275fac=function(a){return new (a||ET)};ET.\u0275dir=df({type:ET,selectors:[["","cdkHeaderCellDef",""]]});var FT=function(){this.template=p(gg)};FT.\u0275fac=function(a){return new (a||FT)};FT.\u0275dir=df({type:FT,selectors:[["","cdkFooterCellDef",""]]});
var GT=function(){this._table=p(CT,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};GT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};GT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};GT.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
GT.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
da.Object.defineProperties(GT.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)}}});
GT.\u0275fac=function(a){return new (a||GT)};GT.\u0275dir=df({type:GT,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(kg(c,DT,5),kg(c,ET,5),kg(c,FT,5));if(a&2){var d;ng(d=og())&&(b.cell=d.first);ng(d=og())&&(b.headerCell=d.first);ng(d=og())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",bh],stickyEnd:[2,"stickyEnd","stickyEnd",bh]},features:[Ig([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:GT}])]});
var Wsd=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,q(a._columnCssClassName))},HT=function(){Wsd.call(this,p(GT),p(Jd))};Y(HT,Wsd);HT.\u0275fac=function(a){return new (a||HT)};HT.\u0275dir=df({type:HT,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Gf]});
var IT=function(){var a=p(GT),b=p(Jd);Wsd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(IT,Wsd);IT.\u0275fac=function(a){return new (a||IT)};IT.\u0275dir=df({type:IT,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Gf]});var JT=function(){var a=p(GT),b=p(Jd);Wsd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(JT,Wsd);
JT.\u0275fac=function(a){return new (a||JT)};JT.\u0275dir=df({type:JT,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Gf]});var KT=function(){this.template=p(gg);this._differs=p(Sx)};KT.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};KT.\u0275fac=function(a){return new (a||KT)};KT.\u0275dir=df({type:KT,features:[xx]});var LT=function(){KT.call(this,p(gg),p(Sx));this._table=p(CT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(LT,KT);
LT.prototype.ngOnChanges=function(a){KT.prototype.ngOnChanges.call(this,a)};LT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};LT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(LT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});LT.\u0275fac=function(a){return new (a||LT)};
LT.\u0275dir=df({type:LT,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",bh]},features:[Gf,xx]});var MT=function(){KT.call(this,p(gg),p(Sx));this._table=p(CT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(MT,KT);MT.prototype.ngOnChanges=function(a){KT.prototype.ngOnChanges.call(this,a)};MT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
MT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(MT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});MT.\u0275fac=function(a){return new (a||MT)};MT.\u0275dir=df({type:MT,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",bh]},features:[Gf,xx]});
var NT=function(){KT.call(this,p(gg),p(Sx));this._table=p(CT,{optional:!0})};Y(NT,KT);NT.\u0275fac=function(a){return new (a||NT)};NT.\u0275dir=df({type:NT,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Gf]});var OT=function(){this._viewContainer=p(hg);OT.mostRecentCellOutlet=this};OT.prototype.ngOnDestroy=function(){OT.mostRecentCellOutlet===this&&(OT.mostRecentCellOutlet=null)};OT.mostRecentCellOutlet=null;
OT.\u0275fac=function(a){return new (a||OT)};OT.\u0275dir=df({type:OT,selectors:[["","cdkCellOutlet",""]]});var Xsd=function(){};Xsd.\u0275fac=function(a){return new (a||Xsd)};Xsd.\u0275cmp=C({type:Xsd,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&&Yf(0,0)},dependencies:[OT],encapsulation:2});var Ysd=function(){};Ysd.\u0275fac=function(a){return new (a||Ysd)};
Ysd.\u0275cmp=C({type:Ysd,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&&Yf(0,0)},dependencies:[OT],encapsulation:2});var Zsd=function(){};Zsd.\u0275fac=function(a){return new (a||Zsd)};
Zsd.\u0275cmp=C({type:Zsd,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yf(0,0)},dependencies:[OT],encapsulation:2});var PT=function(){this.templateRef=p(gg);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"};PT.\u0275fac=function(a){return new (a||PT)};
PT.\u0275dir=df({type:PT,selectors:[["ng-template","cdkNoDataRow",""]]});var $sd=new ed("CDK_SPL");var atd=["top","bottom","left","right"],btd=function(a,b,c,d,e,f,g){var k=this;c=c===void 0?!0:c;d=d===void 0?!0:d;this._isNativeHtmlTable=a;this._stickCellCss=b;this._isBrowser=c;this._needsPositionStickyOnElement=d;this.direction=e;this._positionListener=f;this._tableInjector=g;this._elemSizeCache=new WeakMap;var m;this._resizeObserver=((m=globalThis)==null?0:m.ResizeObserver)?new globalThis.ResizeObserver(function(r){return k._updateCachedSizes(r)}):null;this._updatedStickyColumnsParamsToReplay=
[];this._stickyColumnsReplayTimeout=null;this._cachedCellWidths=[];this._destroyed=!1;this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},ctd=function(a,b,c){(c.includes("left")||c.includes("right"))&&a._removeFromStickyColumnReplayQueue(b);var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e.nodeType===e.ELEMENT_NODE&&d.push.apply(d,[e].concat(q(Array.from(e.children))));Ge({write:function(){for(var f=
l(d),g=f.next();!g.done;g=f.next())a._removeStickyStyle(g.value,c)}},{injector:a._tableInjector})},dtd=function(a,b,c,d,e,f){e=e===void 0?!0:e;f=f===void 0?!0:f;if(b.length&&a._isBrowser&&(c.some(function(V){return V})||d.some(function(V){return V}))){var g=b[0],k=g.children.length,m=a.direction==="rtl",r=m?"right":"left",w=m?"left":"right",x=c.lastIndexOf(!0),D=d.indexOf(!0),H,J,O;f&&a._updateStickyColumnReplayQueue({rows:[].concat(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=l(b),ba=V.next();!ba.done;ba=V.next()){ba=ba.value;for(var oa=0;oa<k;oa++){var ta=ba.children[oa];c[oa]&&a._addStickyStyle(ta,r,J[oa],oa===x);d[oa]&&a._addStickyStyle(ta,w,O[oa],oa===D)}}a._positionListener&&H.some(function(ka){return!!ka})&&(a._positionListener.stickyColumnsUpdated({sizes:x===-1?[]:H.slice(0,x+1).map(function(ka,Ca){return c[Ca]?
ka:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:H.slice(D).map(function(ka,Ca){return d[Ca+D]?ka:null}).reverse()}))}},{injector:a._tableInjector})}else{(m=a._positionListener)==null||m.stickyColumnsUpdated({sizes:[]});var R;(R=a._positionListener)==null||R.stickyEndColumnsUpdated({sizes:[]})}},etd=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,g=[],k=[],m=[];Ge({earlyRead:function(){for(var r=0,w=0;r<e.length;r++)if(f[r]){g[r]=
w;var x=e[r];m[r]=a._isNativeHtmlTable?Array.from(x.children):[x];x=a._retrieveElementSize(x).height;w+=x;k[r]=x}},write:function(){for(var r=f.lastIndexOf(!0),w=0;w<e.length;w++)if(f[w])for(var x=g[w],D=w===r,H=l(m[w]),J=H.next();!J.done;J=H.next())a._addStickyStyle(J.value,d,x,D);if(d==="top"){var O;(O=a._positionListener)==null||O.stickyHeaderRowsUpdated({sizes:k,offsets:g,elements:m})}else{var R;(R=a._positionListener)==null||R.stickyFooterRowsUpdated({sizes:k,offsets:g,elements:m})}}},{injector:a._tableInjector})}},
ftd=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=btd.prototype;h.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
h._removeStickyStyle=function(a,b){if(a.classList.contains(this._stickCellCss)){for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);atd.some(function(e){return b.indexOf(e)===-1&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}};
h._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};h._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=l(atd),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
h._getCellWidths=function(a,b){if(b!==void 0&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(this._retrieveElementSize(a[c]).width);return this._cachedCellWidths=b};h._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};h._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;e>0;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
h._retrieveElementSize=function(a){var b=this._elemSizeCache.get(a);if(b)return b;b=a.getBoundingClientRect();b={width:b.width,height:b.height};if(!this._resizeObserver)return b;this._elemSizeCache.set(a,b);this._resizeObserver.observe(a,{box:"border-box"});return b};h._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
h._removeFromStickyColumnReplayQueue=function(a){var b=new Set(a);a=l(this._updatedStickyColumnsParamsToReplay);for(var c=a.next();!c.done;c=a.next())c=c.value,c.rows=c.rows.filter(function(d){return!b.has(d)});this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(function(d){return!!d.rows.length})};
h._updateCachedSizes=function(a){var b=this,c=!1;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.borderBoxSize)==null?0:e.length)?{width:d.borderBoxSize[0].inlineSize,height:d.borderBoxSize[0].blockSize}:{width:d.contentRect.width,height:d.contentRect.height};e=void 0;f.width!==((e=this._elemSizeCache.get(d.target))==null?void 0:e.width)&&D$a(d.target)&&(c=!0);this._elemSizeCache.set(d.target,f)}c&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&
clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(function(){if(!b._destroyed){for(var g=l(b._updatedStickyColumnsParamsToReplay),k=g.next();!k.done;k=g.next())k=k.value,dtd(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};var gtd=[[["caption"]],[["colgroup"],["col"]],"*"],htd=function(){this.viewContainer=p(hg);this.elementRef=p(Jd);var a=p(CT);a._rowOutlet=this;a._outletAssigned()};htd.\u0275fac=function(a){return new (a||htd)};htd.\u0275dir=df({type:htd,selectors:[["","rowOutlet",""]]});var itd=function(){this.viewContainer=p(hg);this.elementRef=p(Jd);var a=p(CT);a._headerRowOutlet=this;a._outletAssigned()};itd.\u0275fac=function(a){return new (a||itd)};
itd.\u0275dir=df({type:itd,selectors:[["","headerRowOutlet",""]]});var jtd=function(){this.viewContainer=p(hg);this.elementRef=p(Jd);var a=p(CT);a._footerRowOutlet=this;a._outletAssigned()};jtd.\u0275fac=function(a){return new (a||jtd)};jtd.\u0275dir=df({type:jtd,selectors:[["","footerRowOutlet",""]]});var ktd=function(){this.viewContainer=p(hg);this.elementRef=p(Jd);var a=p(CT);a._noDataRowOutlet=this;a._outletAssigned()};ktd.\u0275fac=function(a){return new (a||ktd)};
ktd.\u0275dir=df({type:ktd,selectors:[["","noDataRowOutlet",""]]});
var QT=function(){var a=this;this._differs=p(Sx);this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._dir=p(ei,{optional:!0});this._platform=p(Yh);this._viewRepeater=p(OEc);this._viewportRuler=p(Th);this._stickyPositioningListener=p($sd,{optional:!0,skipSelf:!0});this._document=p(Uh);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 gj;this.viewChange=new Wj({start:0,end:Number.MAX_VALUE});this._injector=p(Ae);p(new yx("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=QT.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();Wra(this.dataSource)&&this.dataSource.disconnect(this)};
var mtd=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();hCc(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});a._updateNoDataRow();a.contentChanged.next();
ltd(a)}else a._updateNoDataRow(),a.contentChanged.next()},ntd=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=I$a(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});ctd(a._stickyStyler,b,["top"]);etd(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},otd=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=I$a(a._footerRowOutlet,
"tfoot");c&&(c.style.display=b.length?"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});ctd(a._stickyStyler,b,["bottom"]);etd(a._stickyStyler,b,c,"bottom");ftd(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},ltd=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)ctd(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=QT.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&&ltd(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();H$a(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=H$a(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=H$a(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=H$a(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=[];Wra(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;Wra(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||[];mtd(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)});ntd(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)});otd(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});dtd(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};h._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
h._getRowDefs=function(a,b){if(this._rowDefs.length==1)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};h._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
h._renderRow=function(a,b,c,d){d=d===void 0?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};h._renderCellTemplateForItem=function(a,b){a=l(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,OT.mostRecentCellOutlet&&OT.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 LT?c.headerCell.template:a instanceof MT?c.footerCell.template:c.cell.template}):[]};h._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();mtd(this)};
h._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&ntd(this);this._footerRowDefs.reduce(a,!1)&&otd(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,ltd(this))};
h._setupStickyStyler=function(){var a=this;this._stickyStyler=new btd(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;ltd(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(QT.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(),ltd(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});QT.\u0275fac=function(a){return new (a||QT)};
QT.\u0275cmp=C({type:QT,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(kg(c,PT,5),kg(c,GT,5),kg(c,NT,5),kg(c,LT,5),kg(c,MT,5));if(a&2){var d;ng(d=og())&&(b._noDataRow=d.first);ng(d=og())&&(b._contentColumnDefs=d);ng(d=og())&&(b._contentRowDefs=d);ng(d=og())&&(b._contentHeaderRowDefs=d);ng(d=og())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&yg("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",bh],fixedLayout:[2,"fixedLayout","fixedLayout",bh]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ig([{provide:CT,useExisting:QT},{provide:OEc,useClass:PEc},{provide:$sd,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,
b){a&1&&(eg(gtd),fg(0),fg(1,1),F(2,E$a,1,0),F(3,F$a,7,0)(4,G$a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[itd,htd,ktd,jtd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var ptd=function(){};ptd.\u0275fac=function(a){return new (a||ptd)};ptd.\u0275mod=cf({type:ptd});ptd.\u0275inj=Gc({imports:[Sz]});var RT=function(){DT.apply(this,arguments)};Y(RT,DT);RT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RT)))(b||RT)}}();RT.\u0275dir=df({type:RT,selectors:[["","matCellDef",""]],features:[Ig([{provide:DT,useExisting:RT}]),Gf]});var ST=function(){ET.apply(this,arguments)};Y(ST,ET);ST.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ST)))(b||ST)}}();ST.\u0275dir=df({type:ST,selectors:[["","matHeaderCellDef",""]],features:[Ig([{provide:ET,useExisting:ST}]),Gf]});
var TT=function(){FT.apply(this,arguments)};Y(TT,FT);TT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TT)))(b||TT)}}();TT.\u0275dir=df({type:TT,selectors:[["","matFooterCellDef",""]],features:[Ig([{provide:FT,useExisting:TT}]),Gf]});var UT=function(){GT.apply(this,arguments)};Y(UT,GT);UT.prototype._updateColumnCssClassName=function(){GT.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
da.Object.defineProperties(UT.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});UT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(UT)))(b||UT)}}();UT.\u0275dir=df({type:UT,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ig([{provide:GT,useExisting:UT},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:UT}]),Gf]});var VT=function(){HT.apply(this,arguments)};Y(VT,HT);
VT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VT)))(b||VT)}}();VT.\u0275dir=df({type:VT,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Gf]});var WT=function(){IT.apply(this,arguments)};Y(WT,IT);WT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(WT)))(b||WT)}}();
WT.\u0275dir=df({type:WT,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[Gf]});var XT=function(){JT.apply(this,arguments)};Y(XT,JT);XT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XT)))(b||XT)}}();XT.\u0275dir=df({type:XT,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Gf]});var YT=function(){LT.apply(this,arguments)};Y(YT,LT);YT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YT)))(b||YT)}}();YT.\u0275dir=df({type:YT,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",bh]},features:[Ig([{provide:LT,useExisting:YT}]),Gf]});var ZT=function(){MT.apply(this,arguments)};Y(ZT,MT);ZT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ZT)))(b||ZT)}}();
ZT.\u0275dir=df({type:ZT,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",bh]},features:[Ig([{provide:MT,useExisting:ZT}]),Gf]});var $T=function(){NT.apply(this,arguments)};Y($T,NT);$T.\u0275fac=function(){var a;return function(b){return(a||(a=Hd($T)))(b||$T)}}();
$T.\u0275dir=df({type:$T,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ig([{provide:NT,useExisting:$T}]),Gf]});var aU=function(){};Y(aU,Xsd);aU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(aU)))(b||aU)}}();
aU.\u0275cmp=C({type:aU,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ig([{provide:Xsd,useExisting:aU}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yf(0,0)},dependencies:[OT],encapsulation:2});var bU=function(){};Y(bU,Ysd);bU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bU)))(b||bU)}}();
bU.\u0275cmp=C({type:bU,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[Ig([{provide:Ysd,useExisting:bU}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yf(0,0)},dependencies:[OT],encapsulation:2});var cU=function(){};Y(cU,Zsd);cU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(cU)))(b||cU)}}();
cU.\u0275cmp=C({type:cU,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ig([{provide:Zsd,useExisting:cU}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yf(0,0)},dependencies:[OT],encapsulation:2});
var dU=function(){PT.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(dU,PT);dU.\u0275fac=function(a){return new (a||dU)};dU.\u0275dir=df({type:dU,selectors:[["ng-template","matNoDataRow",""]],features:[Ig([{provide:PT,useExisting:dU}]),Gf]});var qtd=[[["caption"]],[["colgroup"],["col"]],"*"],eU=function(){QT.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Y(eU,QT);eU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(eU)))(b||eU)}}();
eU.\u0275cmp=C({type:eU,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Ig([{provide:QT,useExisting:eU},{provide:CT,useExisting:eU},{provide:OEc,useClass:PEc},{provide:$sd,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&&(eg(qtd),fg(0),fg(1,1),F(2,J$a,1,0),F(3,K$a,7,0)(4,L$a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[itd,htd,ktd,jtd],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 rtd={SUGGESTIONS:0,AUTOMATIC_ACTIONS:1,0:"SUGGESTIONS",1:"AUTOMATIC_ACTIONS"},fU=function(){Z.apply(this,arguments);var a=this;this.data=p(UB);this.playbookService=p(jR);this.matDialogRef=p(SB);this.changeDetectorRef=p(Px);this.appSearchState=p(xT);this.FormattingMode=bo;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?
amd(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=rtd;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(fU,Z);fU.\u0275dir=Z.\u0275dir;
fU.prototype.ngOnInit=function(){var a=this;this.playbook$.pipe(Bf(this.destroyed$)).subscribe(function(b){b&&(a.originalPlaybook=b,a.draftPlaybook=Em(b),b.instructions&&(a.formattedComment={markdownFormat:{content:Dh(b.instructions)}}),a.changeDetectorRef.detectChanges())})};fU.prototype.hasChanges=function(){return!Dm(this.originalPlaybook,this.draftPlaybook)};
var std=function(a){return y(function(b){if(b.nextAddress==1)return a.hasChanges()?a.originalPlaybook?z(b,bmd(a.playbookService,a.draftPlaybook),3):z(b,$ld(a.playbookService,a.draftPlaybook),3):b.return();a.matDialogRef.close();a.isEditing=!1;ce(b)})},P$a=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)}};fU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(fU)))(b||fU)}}();
fU.\u0275cmp=C({type:fU,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,M$a,2,1,"textarea",9)(12,O$a,4,1),L(),F(13,Z$a,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 std(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:[Yy,wT,Ij,qE,xE,nC,jC,lC,YB,$B,ZB,yT,pH,nH,sH,zT,AT,BT,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,DA],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 gU=function(){this.matDialog=p(VB)};gU.prototype.open=function(a){return ie(TB(this.matDialog.open(fU,{width:"80vw",height:"80vh",maxWidth:"1200px",maxHeight:"800px",data:{searchQuery:a}})))};gU.\u0275fac=function(a){return new (a||gU)};gU.\u0275prov=Fc({token:gU,factory:gU.\u0275fac,providedIn:"root"});var ttd=function(a){this.allowExecution=a;this.queue=[]};ttd.prototype.addTask=function(a){this.queue.push(a);utd(this)};var utd=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=l(a.queue),c=b.next().value;a.queue=qj(b);c();utd(a)}else setTimeout(function(){utd(a)},0)};var hU=function(){var a=this;this.location=p(ki);this.platformLocation=p(uy);this.activatedRoute=p(Vj);this.router=p(oF);this.scheduler=new ttd(function(){return!Rc(a.router.navigationTransitions.currentNavigation)})};hU.prototype.hash=function(a,b){typeof a!=="undefined"&&vtd(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var vtd=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})})};
hU.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var wtd=function(a,b){a.path(b,!0)};h=hU.prototype;h.getPath=function(){var a=l(this.location.path().split("?")).next().value;return l(a.split("#")).next().value};h.setPath=function(a,b){var c=this;a=a===void 0?"":a;b=b===void 0?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};
h.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};h.getSearch=function(){return $$a(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(){$t(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)};hU.\u0275fac=function(a){return new (a||hU)};hU.\u0275prov=Fc({token:hU,factory:hU.\u0275fac,providedIn:"root"});var iU=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};iU.\u0275fac=function(a){return new (a||iU)};iU.\u0275cmp=C({type:iU,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,aab,1,2,"mat-spinner",0),F(1,bab,1,3,"mat-spinner",1));a&2&&(G(b.large?0:-1),B(),G(b.large?-1:1))},dependencies:[AK,II],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 xtd={EMPTY:0,EXISTS:1,RUNNING:2,COMPLETE:3,0:"EMPTY",1:"EXISTS",2:"RUNNING",3:"COMPLETE"},jU=function(){var a=this;this.playbookService=p(jR);this.bLocation=p(hU);this.playbookDialogService=p(gU);this.appSearchState=p(xT);this.issueIds=[];this.PlaybookState=xtd;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?amd(a.playbookService,b):ee(void 0)}))};
jU.prototype.ngOnInit=function(){var a=this;this.playbook$.subscribe(function(b){b&&(a.playbookState=1)})};var eab=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("Ie");a.playbookState=2;return z(c,fmd(a.playbookService,b,a.issueIds),3)}a.playbookState=3;ce(c)})};
jU.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)})};jU.\u0275fac=function(a){return new (a||jU)};
jU.\u0275cmp=C({type:jU,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,cab,3,0,"button",0)(1,gab,5,1);a&2&&G(b.playbookState===b.PlaybookState.EMPTY?0:1)},dependencies:[Yy,iU,nC,jC],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 ytd=function(){this.text="..."};ytd.\u0275fac=function(a){return new (a||ytd)};
ytd.\u0275cmp=C({type:ytd,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("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 kU=function(){};kU.\u0275fac=function(a){return new (a||kU)};kU.\u0275mod=cf({type:kU});kU.\u0275inj=Gc({imports:[cP,BK]});var ztd=function(){};ztd.\u0275fac=function(a){return new (a||ztd)};ztd.\u0275mod=cf({type:ztd});ztd.\u0275inj=Gc({imports:[$y,kU,pC]});var lU=function(){this.prefs=p(nR);this.links=p(hS);this.change=new hQ;this.checked$=new Wj(!1);this.disabled$=new Wj(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/"},Atd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=b.checked?"MARKDOWN":"PLAIN",z(d,qmd(a.prefs,c),2);a.change.emit(c);ce(d)})};
da.Object.defineProperties(lU.prototype,{initialValue:{configurable:!0,enumerable:!0,set:function(a){this.checked$.next(a==="MARKDOWN");this.disabled$.next(a==="LITERAL")}}});lU.\u0275fac=function(a){return new (a||lU)};
lU.\u0275cmp=C({type:lU,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 Atd(b,e)}),Q(3," Markdown\n"),L(),F(4,hab,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:[xL,rI,Yy,nC,lC,FK,DA,ly],encapsulation:2,changeDetection:0});var mU=function(){var a=this;this.errorHandler=p(wO);this.eventsForIssueFridge=p(TP);this.issueFullFridge=p(nQ);this.issueCommentsService=p(xS);this.issueInteractionsTracking=p(JS);this.butterBar=p(gO);this.editIssueService=p(NS);this.formattedCommentsForIssueFridge=p(VP);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(){Btd(a)})};mU.prototype.ngOnDestroy=function(){this.rawComment$.complete()};mU.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};mU.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
mU.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:Zj(g,3);break;case 2:e=be(g),yO(c.errorHandler,e),(f=c.savingState)==null||LS(f,"commentEdit");case 3:return g.return(b)}})};
var Btd=function(a){$r(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=DVa(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||LS(b,"commentEdit")};mU.\u0275fac=function(a){return new (a||mU)};
mU.\u0275prov=Fc({token:mU,factory:mU.\u0275fac});var nU=function(){var a=p(nR);Z.call(this);var b=this;this.activeSession=p(Qu);this.appEvents=p(aP);this.markdownCheckboxService=p(mU);this.init=new hQ;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=bo;this.activeSession.isInternalSession()&&a.commentDisplayOverride$.pipe(Bf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(nU,Z);nU.\u0275dir=Z.\u0275dir;
nU.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
nU.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)};
nU.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next({issueId:this.issueId,commentNumber:this.note.commentNumber});this.init.next(this)};nU.\u0275fac=function(a){return new (a||nU)};
nU.\u0275cmp=C({type:nU,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},standalone:!1,features:[Ig([mU]),Gf,xx],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,iab,1,2,"b-formatted-comment-presenter",2)(3,jab,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:[vT,wT],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 oU=function(){};oU.\u0275fac=function(a){return new (a||oU)};oU.\u0275mod=cf({type:oU});oU.\u0275inj=Gc({imports:[cP,kT,eL]});var pU=function(){};pU.\u0275fac=function(a){return new (a||pU)};pU.\u0275mod=cf({type:pU});pU.\u0275inj=Gc({imports:[cP,eL,oU]});var cs=function(a,b){this.char=a;this.modifiers=b};var Ctd={category:"Edit Issue Page",keys:[ds("r")],displayAs:"Shift+r",description:"Refresh"},Dtd={category:"Issue List",keys:["u",ds("r")],displayAs:"u / Shift+r",description:"Refresh search results"},fs={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[ds("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:Ctd,REFRESH_ISSUE_LIST:Dtd,TOGGLE_LEFT_SIDEBAR:{category:"General",keys:["<"],
displayAs:"<",description:"Toggle left sidebar"},TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_RIGHT_SIDEBAR:{category:"General",keys:[">"],displayAs:">",description:"Toggle right sidebar"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};/*

 Copyright 2016 Craig Campbell

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Etd=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(Etd.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 Ftd=new ed("HotkeyOptions");var qU=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 Etd(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new Etd("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};h=qU.prototype;
h.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=l(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(g,k){var m=!0;if(g){var r=g.target,w=r.nodeName.toUpperCase();(" "+r.className+" ").indexOf(" mousetrap ")>-1?m=!0:c.preventIn.indexOf(w)>-1&&a.allowIn.map(function(x){return x.toUpperCase()}).indexOf(w)===-1&&(m=!1)}if(m)return a.callback.apply(c,[g,k])},b);return a};
h.remove=function(a){var b=[];if(!a){a=l(this.hotkeys);for(var c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}if(Array.isArray(a)){a=l(a);for(c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}b=this.hotkeys.indexOf(a);return b>-1?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
h.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(this.hotkeys[b].combo.indexOf(a)>-1)return this.hotkeys[b];return null};h.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
h.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return b>-1?(this.add(a),this.pausedHotkeys.splice(b,1)):null};h.reset=function(){this.mousetrap.reset()};qU.\u0275fac=function(a){return new (a||qU)(Zc(Ftd))};qU.\u0275prov=Fc({token:qU,factory:qU.\u0275fac});var Gtd=function(){};Gtd.\u0275fac=function(a){return new (a||Gtd)};Gtd.\u0275mod=cf({type:Gtd});Gtd.\u0275inj=Gc({imports:[ty]});var Htd;var Itd="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),Jtd=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},rU=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?(Htd||(c={},Htd=(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=Htd,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},Ktd=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},sU=function(a,b){var c="";b&&(c=b.id);rU(a,"activedescendant",c)},Ltd=function(a,b){rU(a,"label",b)};var tU=function(){var a=p(kQ),b=p(nR);Z.call(this);var c=this;this.rawHotkeysService=p(qU);this.ngZone=p(Tg);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(Itd,d);e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||Mtd(e)?!0:!1}return e};this.destroyed$.subscribe(function(){Ntd(c)})};Y(tU,Z);tU.\u0275dir=Z.\u0275dir;tU.prototype.isEnabled=function(){return this.enabled};tU.prototype.isPaused=function(){return this.paused};
var uU=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)));Otd(a);return function(){var f=new Set(d.map(function(m){return m.onPress})),g,k=((g=a.hotkeyGroups.get(c))!=null?g:[]).filter(function(m){return!f.has(m.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);Otd(a)}},Ntd=function(a){var b=[].concat(q(a.rawHotkeysService.hotkeys));b=l(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},Otd=function(a){Ntd(a);for(var b=l(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=Ptd(a,c.value);c=l(c);for(var d=c.next(),e={};!d.done;e={binding$jscomp$9:void 0},d=c.next())e.binding$jscomp$9=d.value,d=new Etd(oab(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)}},Mtd=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)})},Ptd=function(a,b){var c=[];b=l(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:void 0},d=b.next()){e.hotkeySpec=d.value;d=l(e.hotkeySpec.keys.entries());for(var f=d.next(),g={};!f.done;g={index$jscomp$5678:void 0},f=d.next()){var k=l(f.value);f=k.next().value;k=k.next().value;g.index$jscomp$5678=f;c.push(new Qtd(k,function(m,r){return function(){a.ngZone.run(function(){m.hotkeySpec.onPress(r.index$jscomp$5678)})}}(e,g),e.hotkeySpec.allowIn))}}Fba(c,
function(m,r){return m.strokeLength>r.strokeLength?-1:m.strokeLength<r.strokeLength?1:0});return c};tU.prototype.pause=function(){this.paused=!0};tU.prototype.unpause=function(){this.paused=!1};var Rtd=function(a){return[].concat(q(a.hotkeyGroups.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Iq(c,pab)}})};tU.\u0275fac=function(a){return new (a||tU)};tU.\u0275prov=Fc({token:tU,factory:tU.\u0275fac,providedIn:"root"});
var Qtd=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 vU=function(){Z.apply(this,arguments);this.hotkeys=p(tU);this.tooltip=p(DA,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new hQ};Y(vU,Z);vU.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+")"}};
vU.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(uU(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};vU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(vU)))(b||vU)}}();
vU.\u0275dir=df({type:vU,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&yg("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},standalone:!1,features:[Gf,xx]});var wU=function(){};wU.\u0275fac=function(a){return new (a||wU)};wU.\u0275mod=cf({type:wU});wU.\u0275inj=Gc({});var xU=function(){this.segments=[];this.clickMain=new hQ;this.clickSegment=new hQ};xU.prototype.ngOnInit=function(){};da.Object.defineProperties(xU.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});xU.\u0275fac=function(a){return new (a||xU)};
xU.\u0275cmp=C({type:xU,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,tab,6,1),L());a&2&&(B(),yg("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:[Yy,nC,jC,eK,pH,nH,sH],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 Std=function(a,b){return b.value},Ttd=function(){this.choices=[];this.value="";this.valueChange=new hQ};Ttd.\u0275fac=function(a){return new (a||Ttd)};
Ttd.\u0275cmp=C({type:Ttd,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&&Qf(0,vab,3,5,"button",0,Std);a&2&&Rf(b.choices)},dependencies:[Yy,
nC,jC,FK,DA],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 Utd=[xU,Ttd],yU=function(){};yU.\u0275fac=function(a){return new (a||yU)};yU.\u0275mod=cf({type:yU});yU.\u0275inj=Gc({imports:[cP,pC,fK,GK]});var Vtd=function(){};Vtd.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};Vtd.\u0275fac=function(a){return new (a||Vtd)};
Vtd.\u0275cmp=C({type:Vtd,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:[Yy,nC,lC,FK,DA],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var zU=function(){Z.call(this);this.templateRef=p(gg);this.viewContainer=p(hg);this.cdr=p(Px);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Y(zU,Z);zU.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
da.Object.defineProperties(zU.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())})}}});zU.\u0275fac=function(a){return new (a||zU)};zU.\u0275dir=df({type:zU,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},standalone:!1,features:[Gf]});var AU=function(){var a=this;this.cdr=p(iQ,{self:!0});this.events=p(aP);this.ngZone=p(Tg);this.HOTKEYS=fs;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new hQ;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=vB(function(b){a.widthChanged.emit(b);
a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=vB(function(){or("sidebar","resizeKeyboard")},2E3)};AU.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};AU.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};
AU.prototype.onDrag=function(a){this.setWidth(this.widthAtDragStart+(a-(this.dragStart||0))*(this.isLTR?1:-1));this.cdr.markForCheck()};var xab=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};AU.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
AU.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(AU.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}}});AU.\u0275fac=function(a){return new (a||AU)};
AU.\u0275cmp=C({type:AU,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},standalone:!1,features:[Ig([iQ])],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&&(eg(),K(0,"div",0)(1,"div",1),fg(2),L(),F(3,wab,2,6,"button",2)(4,yab,1,3,"div",3),L());a&2&&(zg(b.direction),xg("width",b.width+"px"),yg("isDragging",b.isDragging)("isClosed",b.isClosed),B(),xg("width",b.lastOpenPosition+"px"),B(2),G(b.isClosed?3:4))},dependencies:[Yy,vU,nC,lC,FK,DA,Lz],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 Wtd=new ed("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),Xtd=new ed("isScrolledOnScreen",{factory:function(){return{fully:zab,partially:Aab}}}),BU=function(){this.intersectionObserverBuilder=p(Wtd);this.isScrolledOnScreen=p(Xtd)};BU.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?Bab(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):Cab(a,this.isScrolledOnScreen,b)};
var Ytd=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(Mla(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)):Fx}),A(function(){}),nf(1))};BU.\u0275fac=function(a){return new (a||BU)};BU.\u0275prov=Fc({token:BU,factory:BU.\u0275fac,providedIn:"root"});var CU=function(){};CU.prototype.onClick=function(a,b){Ztd(b)&&a.preventDefault()};var Ztd=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};CU.\u0275fac=function(a){return new (a||CU)};CU.\u0275dir=df({type:CU,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c,c.target)})},standalone:!1});q(Utd);var DU=function(){};DU.\u0275fac=function(a){return new (a||DU)};DU.\u0275mod=cf({type:DU});DU.\u0275inj=Gc({imports:[cP,wU,pC,GK,Rz,yU]});var $td=new ed("GM2_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var EU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};EU.\u0275fac=function(a){return new (a||EU)(Ye($td))};EU.\u0275dir=df({type:EU,selectors:[["mat-select"]],hostAttrs:[1,"gmat-mdc-select"],standalone:!1});var aud={provide:$1c,deps:[[new HAc,new IAc,new GAc($1c)],[new HAc,new GAc($td)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:Nh(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},FU=function(){};FU.\u0275fac=function(a){return new (a||FU)};FU.\u0275mod=cf({type:FU});FU.\u0275inj=Gc({providers:[aud],imports:[eI,eE]});var bud=new ed("GM2_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var GU=function(){uC.apply(this,arguments);this.additionalClasses=["gmat-mdc-snack-bar"];this.gmatOptions=p(bud)};Y(GU,uC);GU.prototype.openFromComponent=function(a,b){a=uC.prototype.openFromComponent.call(this,a,b);b=a.containerInstance._elementRef.nativeElement.closest(".cdk-overlay-pane");if(this.gmatOptions.disableGmatStyle)throw Error("wb");b==null||b.classList.add.apply(b.classList,q(this.additionalClasses));return a};
GU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GU)))(b||GU)}}();GU.\u0275prov=Fc({token:GU,factory:GU.\u0275fac});var HU=function(){};HU.\u0275fac=function(a){return new (a||HU)};HU.\u0275mod=cf({type:HU});HU.\u0275inj=Gc({providers:[{provide:uC,useClass:GU}],imports:[vC]});var IU=function(){};IU.\u0275fac=function(a){return new (a||IU)};IU.\u0275mod=cf({type:IU});IU.\u0275inj=Gc({imports:[tz,yL,HU,cP,lA,DU,FU,QL,pC,GK,oU,pU,eL]});var cud=function(a,b){return[a,b]},dud=[[["b-callout-body"]],[["b-callout-actions"]]],JU=function(){this.messageType="info";this.format="default"};JU.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"}};JU.\u0275fac=function(a){return new (a||JU)};
JU.\u0275cmp=C({type:JU,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&zg(Lg(2,cud,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&&(eg(dud),K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),fg(3),L(),K(4,"div",3),fg(5,1),L()());
a&2&&(B(2),I("svgIcon",b.getIconName()))},dependencies:[Yy],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 KU=function(){};KU.\u0275fac=function(a){return new (a||KU)};KU.\u0275dir=df({type:KU,selectors:[["b-callout-body"],["b-callout-actions"]],standalone:!1});var LU=function(){};LU.\u0275fac=function(a){return new (a||LU)};LU.\u0275mod=cf({type:LU});LU.\u0275inj=Gc({imports:[cP]});var MU=function(){};MU.\u0275fac=function(a){return new (a||MU)};MU.\u0275mod=cf({type:MU});MU.\u0275inj=Gc({imports:[cP]});var NU=function(){};NU.\u0275fac=function(a){return new (a||NU)};NU.\u0275mod=cf({type:NU});NU.\u0275inj=Gc({imports:[yA,AT,Zy]});var OU=function(){};OU.\u0275fac=function(a){return new (a||OU)};OU.\u0275mod=cf({type:OU});OU.\u0275inj=Gc({imports:[BT,Zy]});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};PU.\u0275mod=cf({type:PU});PU.\u0275inj=Gc({imports:[ptd,Zy]});var eud=function(){};eud.\u0275fac=function(a){return new (a||eud)};eud.\u0275mod=cf({type:eud});eud.\u0275inj=Gc({imports:[cP,LU,IU,OE,pC,cK,MU,RE,tH,NU,OU,PU,EA]});var QU={},fud=(QU.assignee="single_value",QU.attachments="collection",QU.blockedByIssueId="collection",QU.blockingIssueId="collection",QU.ccs="collection",QU.changelists="collection",QU.collaborators="collection",QU.comment="single_value",QU.componentId="single_value",QU.customField="any_value",QU.deletionReason="single_value",QU.duplicateOfIssueId="single_value",QU.effortEstimate="single_value",QU.foundInVersion="collection",QU.gerritChanges="collection",QU.hotlists="collection",QU.inProd="single_value",
QU.isArchived="single_value",QU.isDeleted="single_value",QU.parentId="collection",QU.priority="single_value",QU.readState="single_value",QU.reporter="single_value",QU.severity="single_value",QU.sloEndTime="single_value",QU.sloSnoozeType="single_value",QU.sloStartTime="single_value",QU.staffing="single_value",QU.status="single_value",QU.targetedToVersion="collection",QU.title="single_value",QU.type="single_value",QU.verifiedInVersion="collection",QU.verifier="single_value",QU),Nab=new Set(Object.entries(fud).filter(function(a){a=
l(a);a.next();return a.next().value==="collection"}).map(function(a){return l(a).next().value})),Mab=new Set("componentId priority reporter severity status title type".split(" "));var Oab=new Set(["INACTIVE","NOT_REPRODUCIBLE","INFEASIBLE","OBSOLETE","INTENDED_BEHAVIOR"]),RU={},Fab=(RU.TYPE_UNSPECIFIED=new Set([]),RU.ISSUE_DEDUPLICATION=new Set([]),RU.HOTLIST=new Set([]),RU.ISSUE_DEDUPLICATION_BATCH=new Set([]),RU.NEEDS_INFO=new Set(["comment"]),RU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists".split(" ")),RU.ANY_ISSUE_EDIT=new Set("componentId priority severity type assignee hotlists comment".split(" ")),RU),SU={},Gab=(SU.TYPE_UNSPECIFIED=
new Set([]),SU.ISSUE_DEDUPLICATION=new Set([]),SU.HOTLIST=new Set([]),SU.ISSUE_DEDUPLICATION_BATCH=new Set(["duplicateOfIssueId"]),SU.NEEDS_INFO=new Set(["comment"]),SU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists ccs".split(" ")),SU.ANY_ISSUE_EDIT=new Set("comment componentId priority severity type assignee hotlists ccs status customField".split(" ")),SU);var TU=function(){this.userPreferencesManager=p(nR);this.recommendation=void 0;this.isParentRowActive=!1;this.onClick=new hQ;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"}))};TU.prototype.handleClick=function(){this.onClick.emit()};
TU.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};TU.prototype.getRecommendationText=function(){return this.recommendation?Pab(this.recommendation,!1):""};TU.\u0275fac=function(a){return new (a||TU)};
TU.\u0275cmp=C({type:TU,selectors:[["recommendation-chip"]],inputs:{recommendation:"recommendation",isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},standalone:!1,decls:1,vars:1,consts:[["type","button",1,"recommendation-chip",3,"small","aria-label","hovered"],["type","button",1,"recommendation-chip",3,"click","keydown","aria-label"],["svgIcon","devai",1,"icon-s"],[1,"recommendation-text"]],template:function(a,b){a&1&&F(0,Qab,5,8,"button",0);a&2&&G(b.recommendation?0:-1)},dependencies:[Yy,
ly],styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--recommendation-chip-bg:#fff}.dark-mode   [_nghost-%COMP%]    {--recommendation-chip-bg:#28292c}.recommendation-chip[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#5f6368;color:var(--c700);font-size:.8125rem;font-weight:500;line-height:20px;white-space:nowrap;background-color:var(--recommendation-chip-bg)}.recommendation-chip.small[_ngcontent-%COMP%]{padding:0 8px}.recommendation-chip[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%]{display:none}.recommendation-chip.hovered[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus, .recommendation-chip[_ngcontent-%COMP%]:hover{cursor:pointer}.recommendation-chip.hovered[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:hover   .recommendation-text[_ngcontent-%COMP%]{display:inline;padding-left:4px}"],
changeDetection:0});var gud=function(){};gud.\u0275fac=function(a){return new (a||gud)};gud.\u0275mod=cf({type:gud});gud.\u0275inj=Gc({imports:[cP,$y]});var Sab=function(a,b){return b.key},UU=function(){this.phase=void 0;this.actions=[Snd,Lnd,Nnd,Tnd,Rnd];this.onSelect=new hQ},Vab=function(a){var b=P();return b.phase==="NEW"&&a===Snd?[Knd]:b.phase==="CONFIRMED"&&a===Lnd?[Mnd]:b.phase==="IN_PROGRESS"&&a===Nnd?[Ond,Pnd,Qnd]:[]};UU.\u0275fac=function(a){return new (a||UU)};
UU.\u0275cmp=C({type:UU,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),Qf(4,Wab,4,3,null,null,Sab),L());a&2&&(a=sg(3),I("matMenuTriggerFor",a),B(4),Rf(b.actions))},dependencies:[nC,jC,eK,pH,nH,sH],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var hud=["button"],VU=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new hQ};VU.prototype.onClick=function(a){this.onAction.emit(a)};VU.prototype.focus=function(){this.nativeButton.focus()};VU.\u0275fac=function(a){return new (a||VU)};
VU.\u0275cmp=C({type:VU,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&jg(hud,5);if(a&2){var c;ng(c=og())&&(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&&(eg(),E(0,Xab,1,0,"ng-template",null,0,Og),F(2,Zab,3,8,"button",2)(3,abb,3,8,"button",3)(4,cbb,3,8,"button",4)(5,ebb,3,8,"button",5)(6,gbb,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:[nC,jC,lC,FK,DA,ky],encapsulation:2,changeDetection:0});var WU=function(){};WU.\u0275fac=function(a){return new (a||WU)};WU.\u0275mod=cf({type:WU});WU.\u0275inj=Gc({imports:[pC,GK,cP]});var iud=new ed("GM2_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var XU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};XU.\u0275fac=function(a){return new (a||XU)(Ye(iud))};XU.\u0275dir=df({type:XU,selectors:[["mat-slide-toggle"]],hostAttrs:[1,"gmat-mdc-slide-toggle"],standalone:!1});var YU=function(){};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275mod=cf({type:YU});YU.\u0275inj=Gc({providers:[{provide:Tsd,useValue:{color:"primary"}}],imports:[OU]});var jud=0,ZU=function(){this.id="b-slide-toggle-"+ ++jud;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new hQ};ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275cmp=C({type:ZU,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();Ag(b.label)}},dependencies:[XU,BT,FK,DA],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var $U=function(){};$U.\u0275fac=function(a){return new (a||$U)};$U.\u0275mod=cf({type:$U});$U.\u0275inj=Gc({imports:[YU,GK]});var aV=function(){this.refreshMonitor=p(aQ);this.coinonly=null};aV.\u0275fac=function(a){return new (a||aV)};aV.\u0275cmp=C({type:aV,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,ibb,1,1,"ng-template",0);a&2&&I("refreshable",b.refreshMonitor.getObservable())},dependencies:[Frd,zU],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var bV=function(){};bV.\u0275fac=function(a){return new (a||bV)};bV.\u0275mod=cf({type:bV});bV.\u0275inj=Gc({imports:[aT,cP,DU]});var kud=["spanElement"],cV=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};cV.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};cV.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)+"...")};
cV.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};cV.\u0275fac=function(a){return new (a||cV)};
cV.\u0275cmp=C({type:cV,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&jg(kud,5);if(a&2){var c;ng(c=og())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},standalone:!1,features:[xx],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:[FK,DA],encapsulation:2});var dV=function(){};dV.\u0275fac=function(a){return new (a||dV)};dV.\u0275mod=cf({type:dV});dV.\u0275inj=Gc({imports:[cP,GK]});var eV=function(){};eV.prototype.transform=function(a){if(po(a))return a};eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275pipe=ef({name:"omitObfuscatedEmail",type:eV,pure:!0,standalone:!1});var lud=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lud,W);lud.prototype.getDisplayName=function(){return xi(this,1)};lud.prototype.setDisplayName=function(a){return yj(this,1,a)};lud.prototype.getPhotoUrl=function(){return xi(this,2)};var mud=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mud.messageId)};Y(mud,W);mud.messageId="b.UserProfileBatchResponse";var gV=function(){var a=this;this.userProfilesBatchApiConfig=p(fV);this.batchApiAdapter=p(TO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new old(function(b){return a.batchAdaptedGet(b)},100)};gV.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275prov=Fc({token:gV,factory:gV.\u0275fac,providedIn:"root"});var fV=function(){this.executor=p(oO)};
fV.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(q(a)).join(",")}},responseConstructor:mud}).pipe(jf(function(){return ee(new mud)}))};fV.prototype.split=function(a,b){return(a=xc(b,1,lud,Vb,jb).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:xi(a,3),displayName:a.getDisplayName()}:void 0};fV.\u0275fac=function(a){return new (a||fV)};fV.\u0275prov=Fc({token:fV,factory:fV.\u0275fac,providedIn:"root"});var wbb={"alertmanager-buganizer-handler@prod.google.com":"https://g3doc.corp.google.com/production/borg/alertmanager/g3doc/templates/AlertManager-darkred.png","android-ftslo-regression-actuator@prod.google.com":"https://g3doc.corp.google.com/company/teams/dx-velocity/images/atn_favicon.png","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","blunderbuss-prod@prod.google.com":"https://moma.corp.google.com/team_logos/f5955dadc5abc82300946ee12bf0b610",
"boq-android-culprit-assistant@prod.google.com":"https://g3doc.corp.google.com/wireless/android/engprod/culpritassistant/g3doc/images/aca_logo.png?cl=head","bugjuggler-beta@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler-beta@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head",
"chrome-devtools-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-continuous-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-daily-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","dx-workflow-gitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","gado-bug-service@prod.google.com":"https://g3doc.corp.google.com/hardware/gchips/productivity/g3doc/koala/images/buganizer_profile_picture.png",
"issuetracker-recommendation-automation@prod.google.com":"https://gstatic.com/buganizer/img/v2/logo_spark.svg","koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head","mendel-toolbox@google.com":"https://g3doc.corp.google.com/experiments/mendel/g3doc/logo_mendel_bkg-green_32px.svg?cl=head","modem-explorer-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","modem-tools-bug-workbench@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"octave-services-koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head","piper-bugupdater@google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","piper-bugupdater@prod.google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","pixel-camera-astro-robo-michael@prod.google.com":"https://g3doc.corp.google.com/company/teams/pixel-camera-astro/images/robo-michael.jpg?cl=head",
"pixel-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/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"},nud={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher",
"blunderbuss-prod@prod.google.com":"Blunderbuss","boq-android-culprit-assistant@prod.google.com":"Culprit Assistant","bug-agent-ads-dqm-alert-handler@system.gserviceaccount.com":"Ads DQM Alert Handler Agent","bug-agent-ai-bugreport-analyzer@system.gserviceaccount.com":"AI Bugreport Analyzer Agent","bug-agent-ai-summary@system.gserviceaccount.com":"AI Summary Agent","bug-agent-anabase@system.gserviceaccount.com":"BAP Anabase Agent","bug-agent-anr-agent@system.gserviceaccount.com":"ANR Agent","bug-agent-baseline-validation@system.gserviceaccount.com":"Baseline Validation Agent",
"bug-agent-buganizer-cleanup@system.gserviceaccount.com":"Buganizer Cleanup Bot","bug-agent-bugwise@system.gserviceaccount.com":"Bugwise Agent","bug-agent-chrome-moderation@system.gserviceaccount.com":"Chrome Moderation Agent","bug-agent-culprit-assistant@system.gserviceaccount.com":"Culprit Assistant Agent","bug-agent-fatal-exception-agent@system.gserviceaccount.com":"Fatal Exception Agent","bug-agent-geminet@system.gserviceaccount.com":"Packet Capture Agent","bug-agent-launcher-assigner@system.gserviceaccount.com":"Assigner Agent",
"bug-agent-native-crash-agent@system.gserviceaccount.com":"Native Crash Agent","bug-agent-ooo-reassignment-agent@system.gserviceaccount.com":"OOO Reassignment Agent","bug-agent-playbooks@system.gserviceaccount.com":"Playbooks Agent","bug-agent-primes-bug-enrichment@system.gserviceaccount.com":"Primes Bug Enrichment Agent","bug-agent-sample-module@system.gserviceaccount.com":"Sample Module Agent","bug-agent-slo@system.gserviceaccount.com":"SLO Agent","bug-agent-watchdog-agent@system.gserviceaccount.com":"Watchdog Agent",
"bug-agent-zombie-auto-triage@system.gserviceaccount.com":"Zombie Auto Triage Agent","bugcorder@prod.google.com":"Bug Agent Platform","chrome-devtools-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","chrome-devtools-continuous-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","chrome-devtools-daily-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","dx-workflow-gitwatcher@prod.google.com":"GitWatcher","gado-bug-service@prod.google.com":"Gado Bug Service","issuetracker-recommendation-automation@prod.google.com":"Buganizer Automation",
"pixel-modem-tools-bug-traffic-control@prod.google.com":"Riemann Bug Traffic Control\ud83d\udea6","pmw-data-prod-jobs@prod.google.com":"Riemann Bug Bot","supply-chain-hw-dam2-async@prod.google.com":"DAM Agent","support-bugs-automation-jobs@prod.google.com":"Support Bugs Automation"};var oud=new ed("overrideDisplayMap",{factory:function(){return nud}}),hV=function(){var a=this;this.session=p(Qu);this.userProfiles=p(gV);this.overrideDisplayMap=p(oud);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.user$=new wf(1);this.showEmail$=new Wj(!1);this.isNonObfuscatedEmail=po;this.userProfile$=this.user$.pipe(Af(function(b){return a.userProfiles.get(Om(b))})).pipe(zf(void 0));this.content$=le([this.user$,this.userProfile$,this.showEmail$]).pipe(A(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=Om(b),f=a.overrideDisplayMap[Om(b)];b=f?f:(d==null?void 0:d.displayName)||Lm(b);return c&&e!==b?e+" ("+b+")":b}));this.vars$=le([this.user$,this.content$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{user:b,email:Om(b),content:c}}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};
da.Object.defineProperties(hV.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)}}});hV.\u0275fac=function(a){return new (a||hV)};
hV.\u0275cmp=C({type:hV,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,pbb,4,1),T(1,"async"));if(a&2){var c;G((c=
U(1,1,b.vars$))?0:-1,c)}},dependencies:[ky,aV,nT,WK,dL,ly],encapsulation:2,changeDetection:0});var iV=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};iV.prototype.getDisplayString=function(){return Lm(this.model)};iV.prototype.getEmailAddress=function(){return Om(this.model)||""};iV.\u0275fac=function(a){return new (a||iV)};
iV.\u0275cmp=C({type:iV,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&&(Wf(0),F(1,qbb,1,4,"b-user-display-name",0)(2,rbb,2,1,"span"),Xf());a&2&&(B(),G(MSa(b.model)&&b.getEmailAddress()&&b.model?1:2))},dependencies:[hV],
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 jV=function(){Z.apply(this,arguments);this.teamsService=p(UQ);this.activeSession=p(Qu);this.teamMembers=new Map;this.teamChildren=new Map};Y(jV,Z);jV.\u0275dir=Z.\u0275dir;
var rud=function(a,b,c){return a.activeSession.getFlag("enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&po(c)?pud(a,b).pipe(Af(function(d){return d.has(c)?ee(!0):qud(a,b).pipe(Af(function(e){return e.length===0?ee(!1):qe(e.map(function(f){return rud(a,f,c)})).pipe(A(function(f){return f.some(Boolean)}))}))})):ee(!1)},qud=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},pud=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 Om(e==null?void 0:e.user)}).filter(hn)}),A(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
jV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(jV)))(b||jV)}}();jV.\u0275prov=Fc({token:jV,factory:jV.\u0275fac,providedIn:"root"});var kV=function(){var a=this;this.userProfiles=p(gV);this.activeSession=p(Qu);this.teamMembershipService=p(jV);this.email$=new wf(1);this.isNonObfuscatedEmail=po;this.teamId$=new Wj(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=l(b);b=c.next().value;c=c.next().value;if(!c)return{email:b,showImage:!1,src:void 0,srcset:void 0};var d=!c.photoUrl,e=d?void 0:
c.photoUrl,f;d?f=void 0:f=c.highResolutionPhotoUrl?c.highResolutionPhotoUrl+" 2x":c.photoUrl+" 1x";return{email:b,showImage:!d,src:e,srcset:f}}));this.isTeamMember$=le([this.teamId$,this.email$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return rud(a.teamMembershipService,b,c)}),zf(!1),jf(function(){return ee(!1)}))},Abb=function(a,b){return!b||a.activeSession.isExternalSession()?!1:wbb[b]!==void 0};
da.Object.defineProperties(kV.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){po(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}}});kV.\u0275fac=function(a){return new (a||kV)};
kV.\u0275cmp=C({type:kV,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&yg("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},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,Cbb,4,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[ky,nT,WK,dL,ly],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 sud=function(){this.transform=Dbb};sud.\u0275fac=function(a){return new (a||sud)};sud.\u0275pipe=ef({name:"toNewEmailPreference",type:sud,pure:!0,standalone:!1});var lV=function(){this.transform=Ebb};lV.\u0275fac=function(a){return new (a||lV)};lV.\u0275pipe=ef({name:"enumToHuman",type:lV,pure:!0,standalone:!1});var tud=function(){this.transform=Fbb};tud.\u0275fac=function(a){return new (a||tud)};tud.\u0275pipe=ef({name:"arrayToHuman",type:tud,pure:!0,standalone:!1});var mV=function(){};
mV.prototype.transform=function(a,b){return th(Gbb(a,b)).toString()};mV.\u0275fac=function(a){return new (a||mV)};mV.\u0275pipe=ef({name:"boldPrefixMatches",type:mV,pure:!0,standalone:!1});var nV=function(){this.transform=Hbb};nV.\u0275fac=function(a){return new (a||nV)};nV.\u0275pipe=ef({name:"yesNo",type:nV,pure:!0,standalone:!1});var uud=function(){this.transform=Ibb};uud.\u0275fac=function(a){return new (a||uud)};uud.\u0275pipe=ef({name:"teamPath",type:uud,pure:!0,standalone:!1});
var vud=function(){this.transform=Jbb};vud.\u0275fac=function(a){return new (a||vud)};vud.\u0275pipe=ef({name:"humanFileSize",type:vud,pure:!0,standalone:!1});var wud=function(){this.transform=Lbb};wud.\u0275fac=function(a){return new (a||wud)};wud.\u0275pipe=ef({name:"omitObfuscatedEmail",type:wud,pure:!0,standalone:!1});var xud=function(){this.transform=Mbb};xud.\u0275fac=function(a){return new (a||xud)};xud.\u0275pipe=ef({name:"toString",type:xud,pure:!0,standalone:!1});var yud=function(){};
yud.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};yud.\u0275fac=function(a){return new (a||yud)};yud.\u0275pipe=ef({name:"isOutOfBounds",type:yud,pure:!0,standalone:!1});var oV=function(){};oV.prototype.transform=function(a){return Pm(a)};oV.\u0275fac=function(a){return new (a||oV)};oV.\u0275pipe=ef({name:"emailToUser",type:oV,pure:!0,standalone:!1});var pV=function(){};pV.\u0275fac=function(a){return new (a||pV)};pV.\u0275mod=cf({type:pV});
pV.\u0275inj=Gc({});var zud=function(){this.session=p(Qu);this.isNonObfuscatedEmail=po;this.getEmailDisplayString=Ubb;this.email="";this.withProfile=!0;this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};zud.\u0275fac=function(a){return new (a||zud)};
zud.\u0275cmp=C({type:zud,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,Nbb,1,1,"b-user-image",3),F(2,Pbb,5,
3)(3,Rbb,1,1,"ng-container"),E(4,Sbb,2,1,"ng-template",null,0,Og),F(6,Tbb,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:[ky,aV,nT,WK,dL,kV,oV],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 qV=function(){Z.apply(this,arguments);var a=this;this.teamsService=p(UQ);this.session=p(Qu);this.principalTypesFridge=p(MQ);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new wf(1);this.providedUser$=new wf(1);this.providedEmail$=new wf(1);this.isNonObfuscatedEmail=po;this.userToDisplayString=Lm;this.isGroup$=this.providedEmail$.pipe(Af(function(b){return a.principalTypesFridge.watch(b)}),we(hn),A(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=
this.providedTeamId$.pipe(Af(function(b){return VQ(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=
l(b);b=c.next().value;c=c.next().value;return Eld(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=l(b);b=c.next().value;c=c.next().value;return b==="PUBLIC"?"PUBLIC_USER":b==="EXTERNAL"?"PARTNER_USER":c?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(A(function(b){return a.enableSmallChip?"user-chip-small":b&&b!=="INTERNAL_NON_TEAM_MEMBER"?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"team-member-chip";if(b==="PARTNER_USER")return"partner-chip";if(b==="PUBLIC_USER")return"public-chip"}else return"internal-non-team-member-chip";return""}));
this.shouldShowIcon$=this.groupMembershipType$.pipe(A(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"people-outline";if(b==="PARTNER_USER")return"enterprise";if(b==="PUBLIC_USER")return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(Ef(this.teamUser$),A(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b===
"INTERNAL_TEAM_MEMBER")return c;if(b==="PARTNER_USER")return"Partner user";if(b==="PUBLIC_USER")return"Public user"}return""}))};Y(qV,Z);qV.\u0275dir=Z.\u0275dir;qV.prototype.ngOnInit=function(){};qV.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)};qV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(qV)))(b||qV)}}();
qV.\u0275cmp=C({type:qV,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},standalone:!1,features:[Gf,xx],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,Xbb,3,3),F(5,Ybb,2,5,"b-user-display-name",2)(6,fcb,4,1),F(7,gcb,3,6,"mat-icon",3),T(8,"async"),L()(),F(9,hcb,1,1,"b-availability-chip",4));if(a&2){var c;zg((c=U(1,8,b.userTypeClass$))!=null?c:"");B(2);var d;zg((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:[ky,Yy,aV,yT,FK,DA,nT,WK,dL,kV,hV,ly,oV],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 rV=function(){};rV.\u0275fac=function(a){return new (a||rV)};rV.\u0275mod=cf({type:rV});rV.\u0275inj=Gc({imports:[cP,bV,MU,GK,oU,pU,eL,pV]});var Aud=function(a,b,c,d){iz.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};hz(this)};Y(Aud,iz);var sV=function(){this.checker=p(ez);this.ngZone=p(Tg);this.document=p(Uh)};sV.prototype.create=function(a){return new Aud(a,this.checker,this.ngZone,this.document)};sV.\u0275fac=function(a){return new (a||sV)};
sV.\u0275prov=Fc({token:sV,factory:sV.\u0275fac,providedIn:"root"});var Bud=["content"],tV=function(){Z.apply(this,arguments);this.focusEscapeNotifierFactory=p(sV);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new hQ;this.dateTimeChange=new hQ;this.cancelClicked=new hQ;this.saveClicked=new hQ;this.dateSelectionChange=new hQ;this.focusEscaped=new hQ;this.timeFormControl=new wE("",Gj)};Y(tV,Z);tV.\u0275dir=Z.\u0275dir;
tV.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){ncb(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||oEc(c)}else{var d;(d=a.focusEscapeNotifier)==null||gz(d)}else a.focusEscaped.emit(b)});mcb(this,this.dateTime)};
var lcb=function(a,b){a.date=b;a.dateTime=cSa(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};tV.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=cSa(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var ncb=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof Cm?b:mVa(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
tV.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var mcb=function(a,b){var c=new wl("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};tV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tV)))(b||tV)}}();
tV.\u0275cmp=C({type:tV,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(jg(HR,7),jg(Bud,7));if(a&2){var c;ng(c=og())&&(b.calendar=c.first);ng(c=og())&&(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,jcb,1,1,"ng-container");L();K(4,"mat-calendar",2);T(5,"toDateTime");T(6,"toDateTime");N("selectedChange",function(d){u(c);return v(lcb(b,d))});L();F(7,
kcb,2,1,"mat-form-field",3);K(8,"div",4);F(9,qcb,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&&(yg("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[ky,nC,jC,HR,rK,Ij,qE,JE,DE,cE,QE,Cud]},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 Cud=function(){};Cud.prototype.transform=function(a){var b;return(b=mVa(a))!=null?b:void 0};Cud.\u0275fac=function(a){return new (a||Cud)};Cud.\u0275pipe=ef({name:"toDateTime",type:Cud,pure:!0,standalone:!1});var Dud=[{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"}],uV=function(){Z.call(this);var a=this;this.overlay=p(iA);this.element=p(Jd);this.hostEl=p(Jd);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new hQ;this.selectedDateTimeChange=
new hQ;this.dateSelectionChange=new hQ;this.includeTimePickerChange=new hQ;this.onClose=new hQ;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Y(uV,Z);h=uV.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&&(gz(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(oEc(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");a.overlayElement.setAttribute("title","Date Picker");return a};
h.attach=function(){var a=this,b=new cA(tV),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 Uz(Vz(Wz($z(this.overlay.position(),this.element)),8),Dud)};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)&&mcb(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()})}};
uV.\u0275fac=function(a){return new (a||uV)};
uV.\u0275dir=df({type:uV,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 Eud=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Fud=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Gud=function(a){this.patternParts_=[];this.dateTimeSymbols_=fG;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
Gud.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(Eud.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};Gud.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)};
Gud.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("Ke`"+f.text.charAt(0));}f=new Hud;c=[0];f.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(d&&c[0]>=a.length);g++){if(this.patternParts_[g].count==0){a:{var k=a;var m=c,r=this.patternParts_[g],w=d;if(r.text.match(Eud)!=null){if(r=m[0],
Iud(k,m),m[0]>r){k=!0;break a}}else{if(k.indexOf(r.text,m[0])==m[0]){m[0]+=r.text.length;k=!0;break a}if(w&&r.text.indexOf(k.substring(m[0]))==0){m[0]+=k.length-m[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[g].abutStart){a:{m=a;r=c;w=g;var x=r[0],D=0;for(k=w;k<this.patternParts_.length;k++){var H=this.patternParts_[k],J=H.count;if(J===0)break;if(k==w&&(J-=D,D++,J==0)){k=0;break a}var O=k>w&&H.numeric,R=r[0];if(!Jud(this,m,r,H,J,f,!1)||O&&r[0]-R<J)k=w-1,r[0]=x}k-=w}if(k<=0)return 0;
g+=k-1}else if(!Jud(this,a,c,this.patternParts_[g],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Le");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=VVc(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 Jud=function(a,b,c,d,e,f,g){Iud(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return Kud(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return Lud(a,b,c,e,d,f);case "E":return Kud(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=Kud(b,c,a,function(k){return f.dayPeriodIndex=
k},g),f.dayPeriodName=e[f.dayPeriodIndex],g?b:!0;case "a":return b=Kud(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},g),g?b:!0;case "y":return Mud(a,b,c,d,e,f);case "Q":return Kud(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return Nud(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return Oud(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=Nud(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=Nud(a,b,c,d,e,function(k){f.minutes=k},g),g?b:!0;case "s":return Nud(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return Pud(a,b,c,f);default:return!1}},Mud=function(a,b,c,d,e,f){var g=c[0];e=Qud(a,b,c,e);e===null&&(e=Qud(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},Lud=function(a,b,c,d,e,f){return e.numeric&&
Nud(a,b,c,e,d,function(g){f.month=g-1})?!0:Kud(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){f.month=g})},Oud=function(a,b,c,d,e){var f=c[0];a=Qud(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},Pud=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=Qud(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=Qud(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},Nud=function(a,b,c,d,e,f,g){g=g||!1;var k=c[0];a=Qud(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},Kud=function(a,b,c,d,e){e=e||!1;for(var f,g=0;g<c.length;g++){f=b;for(var k=c[g],m=e,r=0,w=null,x=a.substring(f[0]).toLowerCase(),D=
0;D<k.length;D++){var H=k[D].toLowerCase();if(m&&H.indexOf(x)==0){r=x.length;w=D;break}k[D].length>r&&x.indexOf(H)==0&&(r=k[D].length,w=D)}w!==null&&(f[0]+=r);f=w;if(f!==null)return d(f),!0}return!1},Iud=function(a,b){(a=a.substring(b[0]).match(Fud))&&(b[0]+=a[0].length)},Qud=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)},Hud=function(){};Hud.prototype.ambiguousYear=!1;var Omd=Array(31).fill(0).map(function(a,b){return""+(b+1)}),vV=function(){var a=mA.apply(this,arguments)||this;a.locale=fG;return a};Y(vV,mA);vV.prototype.setLocale=function(){throw Error("Me");};vV.prototype.getYear=function(a){return a.getYear()};vV.prototype.getMonth=function(a){return a.getMonth()};vV.prototype.getDate=function(a){return a.getDate()};var Nmd=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
vV.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};vV.prototype.clone=function(a){return a.clone()};var ER=function(a,b,c){return new Cm(a,b,c)};vV.prototype.parse=function(a,b){if(a===""||typeof a!=="string")return null;b=new Gud(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new Cm(new Date(a));b.parse(a,c);return c};vV.prototype.format=function(a,b){if(!this.isValid(a))throw Error("Ne");return(new wl(b)).format(a)};
var CR=function(a,b){a=a.clone();a.add(new gG(b));return a},DR=function(a,b){a=a.clone();a.add(new gG(0,b));return a},BR=function(a,b){a=a.clone();a.add(new gG(0,0,b));return a},qFc=function(a){return a instanceof Cm};h=vV.prototype;h.isValid=function(a){return!isNaN(a.getTime())};h.invalid=function(){return new Cm(NaN)};h.sameDate=function(a,b){return a&&b?(new Am(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};vV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(vV)))(b||vV)}}();vV.\u0275prov=Fc({token:vV,factory:vV.\u0275fac});var Rud=fG.DATEFORMATS[3];Rud=Rud.replace(/yyyy/,"yy").replace(/yy/,"yyyy");Rud==="M/d/yyyy"&&(Rud="MM/dd/yyyy");var Sud=fG.TIMEFORMATS.at(-1),Tud={parse:{dateInput:Rud,timeInput:Sud},display:{dateInput:Rud,monthYearLabel:mG.YEAR_MONTH_ABBR,dateA11yLabel:mG.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:mG.YEAR_MONTH_FULL,timeInput:Sud,timeOptionLabel:Sud}};var wV=function(){};wV.\u0275fac=function(a){return new (a||wV)};wV.\u0275mod=cf({type:wV});wV.\u0275inj=Gc({providers:[{provide:mA,useClass:vV},{provide:qA,useValue:Tud}]});var xV=function(){};xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275mod=cf({type:xV});xV.\u0275inj=Gc({imports:[cP,pC,PR,sK,tz,OE,PE,dE,RE,wV]});var Uud=["popupField"],Vud=["fieldContent"],Wud=["popupOverlay"],Xud=["overlayContent"],vcb=function(a){return{q:a}},Yud=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],yV=function(){Z.apply(this,arguments);this.cdr=p(iQ,{self:!0});this.element=p(Jd);this.overlay=p(iA);this.viewContainerRef=p(hg);this.dateFormatter=p(mS);this.activeSession=p(Qu);this.constants=p(lS);this.appEvents=p(aP);this.IssuePriority=Ddd;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 hQ;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};Y(yV,Z);yV.\u0275dir=Z.\u0275dir;
h=yV.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,Zud(a),a.cdr.detectChanges())}));this.subscriptions.add(Iod(this.dateFormatter,function(){$ud(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){Zud(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})&&$ud(this)};h.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
h.getPositionStrategy=function(){return Uz(Vz(Wz($z(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),Yud)};
var Zud=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},Ccb=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();is(a,b,!0,!1);break;case 27:b.stopPropagation(),is(a,b,!1,!0)}},is=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,Zud(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?Bm(c):null),a.type==="ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){avd(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(){is(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};
yV.prototype.schedule=function(a){var b=se.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};yV.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var $ud=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(Bm(b)):a.displayValue=null;a.readonlyTooltip=
null;break;default:a.displayValueOverride?a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};yV.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=aSa(a)),this.type==="NUMERIC"&&a===""&&(a=null),Dm(this.value,a)?this.type==="ENUM"&&is(this,null,!1,!0):(is(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var Ycb=function(a){if(a.type===void 0)throw Error("Oe");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("Pe");default:wb(a.type,"FieldType")}};yV.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);is(this,null,!1,!0)};
var avd=function(a){Zud(a);var b=a.overlayRef.attach(new dA(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()})};yV.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};
yV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(yV)))(b||yV)}}();
yV.\u0275cmp=C({type:yV,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(jg(sH,5),jg(Uud,5),jg(Vud,5),jg(Wud,5),jg(Xud,5));if(a&2){var c;ng(c=og())&&(b.enumMenuTrigger=c.first);ng(c=og())&&(b.popupField=c.first);ng(c=og())&&(b.fieldContent=c.first);ng(c=og())&&(b.popupOverlay=c.first);ng(c=og())&&(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:[Ig([iQ]),Gf,xx],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,Dcb,6,15,"div",7),F(3,Fcb,3,13,"div",8),M(4,"div",9),L(),K(5,"mat-menu",10,0),E(7,Lcb,3,1,"ng-template",11),L()(),E(8,Ucb,12,6,"ng-template",null,1,Og)(10,bdb,6,4,"ng-template",null,2,Og));a&2&&(B(),yg("active",b.isActive&&!b.readonly&&!b.disabled),B(),G(b.type!=="BOOL"?2:-1),B(),G(b.type==="BOOL"?3:-1))},dependencies:[ky,Yy,qF,tV,Ij,qE,xE,vU,nC,jC,eK,pH,nH,oH,sH,FK,DA,ZU,cV,rK,
my],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 zV={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},AV=function(){};AV.\u0275fac=function(a){return new (a||AV)};AV.\u0275mod=cf({type:AV});AV.\u0275inj=Gc({imports:[bV,WU,cP,xV,OE,wU,pC,fK,GK,$U,oU,pV,dV,rV,sK]});var ddb=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],edb={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var bvd=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],cvd=Symbol("Qe"),dvd=Symbol("Qe"),BV=function(){var a=this;this.dateFormatter=p(AS);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[cvd]=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 mpd(a.dateFormatter,b);case "relativepast":return b=js(c),ee(b);case "relativepastshort":var d;return ee((d=js(c,!0))!=null?d:"");case "relativepasttiny":var e;return ee((e=js(c,!0,1))!=null?e:"");default:return wb(a.mode)}}));this[dvd]=this.timestampDate$.pipe(Af(function(b){return b===void 0?ee(""):le(bvd.map(function(c){return npd(a.dateFormatter,
b,c.id).pipe(A(function(d){return{formatted:d,tzName:c.name}}))})).pipe(evd)}));this.vars$=le([this[cvd],this[dvd]]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{formatted:b,title:c}}))};BV.prototype.ngOnInit=function(){};
da.Object.defineProperties(BV.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())}}});BV.\u0275fac=function(a){return new (a||BV)};
BV.\u0275cmp=C({type:BV,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,fdb,3,8,"time",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[ly],encapsulation:2,changeDetection:0});
var evd=Ud(A(function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values(),function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var CV=function(){Z.apply(this,arguments);var a=this;this.changelistApi=p(LO);this.emailToUser=Pm;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(CV,Z);CV.\u0275dir=Z.\u0275dir;CV.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};
CV.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};CV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(CV)))(b||CV)}}();
CV.\u0275cmp=C({type:CV,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},standalone:!1,features:[Gf,xx],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,jdb,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:[hV,BV,ly,oV],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 DV=function(){this.analytics=p(lQ);this.config=Object.assign({},new $K,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};DV.prototype.ngOnInit=function(){};DV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};DV.\u0275fac=function(a){return new (a||DV)};
DV.\u0275cmp=C({type:DV,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,kdb,2,2,"b-changelist-card",4);L()}a&2&&(a=sg(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:[WK,XK,dL,YK,CV],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 EV=function(){this.activeSession=p(Qu);this.analytics=p(lQ);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};EV.prototype.ngOnInit=function(){};EV.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=fr(this.change,this.isInternal))};EV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};EV.\u0275fac=function(a){return new (a||EV)};
EV.\u0275cmp=C({type:EV,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},standalone:!1,features:[xx],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",Hg("",b.change.host," ",b.change.changeNumber)),I("href",b.gerritUrl,Pe),B(),S(" ",b.change.changeNumber," "),B(2),Ag(U(4,
6,b.change.host)))},dependencies:[ny],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 FV=function(){this.gerritChange=this.changelist=void 0};FV.prototype.ngOnInit=function(){};FV.prototype.ngOnChanges=function(a){a.codeChange&&((a=gr(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};FV.\u0275fac=function(a){return new (a||FV)};
FV.\u0275cmp=C({type:FV,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},standalone:!1,features:[xx],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&F(0,ldb,1,1,"b-changelist-chip",0)(1,mdb,1,1,"b-gerrit-change-chip",1);a&2&&G(b.changelist?0:b.gerritChange?1:-1)},dependencies:[DV,EV],encapsulation:2});var GV=function(){};GV.\u0275fac=function(a){return new (a||GV)};GV.\u0275mod=cf({type:GV});GV.\u0275inj=Gc({imports:[cP]});var fvd=function(){this.id=0};fvd.\u0275fac=function(a){return new (a||fvd)};
fvd.\u0275cmp=C({type:fvd,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,ndb,2,2,"b-changelist-card",3),L());a&2&&(a=sg(3),I("href","http://critique.corp.google.com/"+
b.id,Pe)("onedevHovercardTrigger",a),B(),S(" cl/",b.id,"\n"))},dependencies:[WK,XK,dL,YK,CV],encapsulation:2});var HV=function(){};HV.\u0275fac=function(a){return new (a||HV)};HV.\u0275mod=cf({type:HV});HV.\u0275inj=Gc({imports:[cP,pV,rV,eL,GV]});var gvd=function(){};gvd.\u0275fac=function(a){return new (a||gvd)};gvd.\u0275mod=cf({type:gvd});gvd.\u0275inj=Gc({imports:[cP,eL,HV]});var IV=function(){Z.apply(this,arguments);var a=this;this.dialogRef=p(SB);this.data=p(UB);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 hvd(a)}))};Y(IV,Z);IV.\u0275dir=Z.\u0275dir;var hvd=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(q(a.originalSelectedValues),q(b))};
IV.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=fSa(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=l(pdb(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var ivd=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
IV.prototype.closeDialog=function(){this.dialogRef.close()};IV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IV)))(b||IV)}}();
IV.\u0275cmp=C({type:IV,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return ivd(b)})("keydown.shift.enter",function(){return ivd(b)})("keydown.control.enter",function(){return ivd(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=sg(6);b.searchQuery$.next(e.value);return v()})("input",function(){u(c);var e=sg(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)});Qf(10,odb,2,5,"mat-list-option",8,Pf);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(ivd(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;Rf((d=U(12,8,b.matchedValues$))!=null?d:hvd(b));B(6);I("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);Kf("aria-label",b.saveBtnTooltip);B();S(" ",b.saveBtnLabel," ")}},dependencies:[Yy,nC,jC,WB,YB,$B,ZB,iK,xK,tK,FK,DA,ly],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 JV=function(){this.dialog=p(VB);this.dialogRef=null};JV.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(IV,c),z(e,ie(TB(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};JV.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};JV.\u0275fac=function(a){return new (a||JV)};
JV.\u0275prov=Fc({token:JV,factory:JV.\u0275fac,providedIn:"root"});var jvd=function(){};jvd.\u0275fac=function(a){return new (a||jvd)};jvd.\u0275mod=cf({type:jvd});jvd.\u0275inj=Gc({imports:[cP,OE,pC,cK,zK,GK]});var kvd=0,KV=function(){Z.call(this);var a=this;this.teamsService=p(UQ);this.ROUTES=As;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new hQ;this.linkBlurred=new hQ;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new wf(1);this.teamLinkId="b-team-link-content-"+kvd;this.fetchedTeam$=this.providedTeamId$.pipe(pf(),we(function(b){return b!=="0"}),Af(function(b){return VQ(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});kvd++};Y(KV,Z);KV.\u0275dir=Z.\u0275dir;KV.prototype.ngOnInit=function(){};KV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};KV.prototype.trackClick=function(a){or("teamCard","click",a,1)};
KV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};KV.\u0275fac=function(a){return new (a||KV)};
KV.\u0275cmp=C({type:KV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},standalone:!1,features:[Gf,xx],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,qdb,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),Ag(b.teamDescription),B(2),I("routerLink",Gg("/teams/",b.teamId,"/edit")),B(3),I("href",Gg("https://moma.corp.google.com/team/",b.teamId),Pe),B(4),G(b.componentId?20:-1))},dependencies:[Yy,qF,nC,jC],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 LV=function(){};LV.\u0275fac=function(a){return new (a||LV)};LV.\u0275mod=cf({type:LV});LV.\u0275inj=Gc({imports:[cP,pC]});var lvd=0,MV=function(){Z.call(this);var a=this;this.teamsService=p(UQ);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new wf(1);this.teamLinkId="b-team-link-content-"+lvd++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(pf(),we(function(b){return b!=="0"}),Af(function(b){return VQ(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(MV,Z);MV.\u0275dir=Z.\u0275dir;MV.prototype.ngOnInit=function(){};MV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};MV.prototype.trackClick=function(a){or("teamCard","click",a,1)};MV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};MV.\u0275fac=function(a){return new (a||MV)};
MV.\u0275cmp=C({type:MV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},standalone:!1,features:[Gf,xx],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,tdb,2,2),T(1,"async"),Nf(2,wdb,2,2),K(3,"onedev-hovercard",null,0),Wf(5),M(6,"b-team-card",1),Xf(),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:[Yy,WK,dL,KV,ly],encapsulation:2});var NV=function(){};NV.\u0275fac=function(a){return new (a||NV)};NV.\u0275mod=cf({type:NV});NV.\u0275inj=Gc({imports:[cP,eL,LV]});var mvd=0,OV=function(){this.elementRef=p(Jd);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.ariaLabel="";this.counter=mvd++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};OV.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(OV.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"}}});OV.\u0275fac=function(a){return new (a||OV)};
OV.\u0275cmp=C({type:OV,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&&(eg(),K(0,"div",0)(1,"button",1),N("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,xdb,1,1,"b-icon",2),F(3,ydb,2,1,"span",3),F(4,zdb,2,0,"div",4),M(5,"mat-icon",5),L(),K(6,"div",6),fg(7),L()());a&2&&(B(),yg("compact",b.hasCompactTitleBar),Jf("aria-label",Gg("",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:[Yy,yT],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:[Gua("expandCollapseContent",[jj("expanded",ij({height:"*",visibility:"visible"})),jj("collapsed",ij({height:"0",visibility:"hidden"})),kj("expanded <=> collapsed",[hj("200ms")])]),Gua("expandCollapseIcon",[jj("expanded",ij({transform:"rotate(-180deg)"})),jj("collapsed",ij({transform:"*"})),kj("expanded <=> collapsed",[hj("200ms")])])]}});var PV=function(){};PV.\u0275fac=function(a){return new (a||PV)};PV.\u0275mod=cf({type:PV});PV.\u0275inj=Gc({imports:[cP,MU]});var QV=function(){};QV.\u0275fac=function(a){return new (a||QV)};QV.\u0275mod=cf({type:QV});QV.\u0275inj=Gc({});var RV=function(){};RV.\u0275fac=function(a){return new (a||RV)};RV.\u0275mod=cf({type:RV});RV.\u0275inj=Gc({});var nvd=new ed("CDK_DRAG_CONFIG");var ovd={capture:!0},pvd={passive:!1,capture:!0},qvd=function(){};qvd.\u0275fac=function(a){return new (a||qvd)};qvd.\u0275cmp=C({type:qvd,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 SV=function(){var a=this;this._ngZone=p(Tg);this._document=p(Uh);this._styleLoader=p(bi);this._renderer=p(af).createRenderer(null,null);this._scroll=new sf;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=pg.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))}},rvd=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},svd=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,
pvd)})},uvd=function(a,b){a._dragInstances.delete(b);tvd(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
SV.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(qvd),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)},ovd],["selectstart",this._preventDefaultWhileDragging,pvd]];b?e.push(["touchend",d,ovd],["touchcancel",d,ovd]):e.push(["mouseup",d,
ovd]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},pvd]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var g=l(f);f=g.next().value;var k=g.next().value;g=g.next().value;return c._renderer.listen(c._document,f,k,g)})})}};var tvd=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()};
SV.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};SV.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)},ovd);return function(){e()}})}));return ve.apply(null,q(c))};
var vvd=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},wvd=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},xvd=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
SV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return uvd(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};SV.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};SV.\u0275fac=function(a){return new (a||SV)};
SV.\u0275prov=Fc({token:SV,factory:SV.\u0275fac,providedIn:"root"});var yvd=new ed("CDK_DRAG_PARENT");var zvd=new ed("CdkDragHandle"),TV=function(){this.element=p(Jd);this._parentDrag=p(yvd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(SV);this._stateChanges=new sf;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};TV.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=xvd(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
TV.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};da.Object.defineProperties(TV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});TV.\u0275fac=function(a){return new (a||TV)};
TV.\u0275dir=df({type:TV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",bh]},features:[Ig([{provide:zvd,useExisting:TV}])]});var Edb=0;var Avd=function(a){this._document=a;this.positions=new Map};Avd.prototype.clear=function(){this.positions.clear()};Avd.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:Fdb(c)})})};
var Bvd=function(a,b){var c=Mh(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,g=b.left-d;a.positions.forEach(function(k,m){k.clientRect&&c!==m&&c.contains(m)&&Hdb(k.clientRect,f,g)});b.top=e;b.left=d;return{top:f,left:g}};Avd.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var Cvd=new Set(["position"]),Dvd=function(a,b,c,d,e,f,g,k,m,r){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=g;this._initialTransform=k;this._zIndex=m;this._renderer=r};h=Dvd.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=Jdb(c,this._document);this._previewEmbeddedView=c;a.matchSize?Pdb(e,d):e.style.transform=Odb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=Ddb(this._rootElement),Pdb(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
Kdb(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Cvd);ks(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(Dvd.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var Evd={passive:!0},Fvd={passive:!1},Gvd={passive:!1,capture:!0},Ldb=new Set(["position"]),Jvd=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=pg.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(m){k.beforeStarted.next();if(k._handles.length){var r=k._getTargetHandle(m);!r||k._disabledHandles.has(r)||
k.disabled||k._initializeDragSequence(r,m)}else k.disabled||k._initializeDragSequence(k._rootElement,m)};this._pointerMove=function(m){var r=k._getPointerPositionOnPage(m);if(k._hasStartedDragging()){m.cancelable&&m.preventDefault();var w=k._getConstrainedPointerPosition(r);k._hasMoved=!0;k._lastKnownPointerPosition=r;k._updatePointerDirectionDelta(w);if(k._dropContainer)k._updateActiveDropContainer(w,r);else{r=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var x=k._activeTransform;
x.x=w.x-r.x+k._passiveTransform.x;x.y=w.y-r.y+k._passiveTransform.y;k._applyRootElementTransform(x.x,x.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:w,event:m,distance:k._getDragDistance(w),delta:k._pointerDirectionDelta})})}else Math.abs(r.x-k._pickupPositionOnPage.x)+Math.abs(r.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((r=Date.now()>=k._dragStartTime+k._getDragStartDelay(m),x=k._dropContainer,r)?x&&(x.isDragging()||x._activeSiblings.size>
0)||(m.cancelable&&m.preventDefault(),k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(m)})):k._endDragSequence(m))};this._pointerUp=function(m){k._endDragSequence(m)};this._nativeDragStart=function(m){if(k._handles.length){var r=k._getTargetHandle(m);!r||k._disabledHandles.has(r)||k.disabled||m.preventDefault()}else k.disabled||m.preventDefault()};Hvd(Ivd(this,a),b.parentDragRef||null);this._parentPositions=new Avd(c);svd(f,this)};
Jvd.prototype.getPlaceholderElement=function(){return this._placeholder};Jvd.prototype.getRootElement=function(){return this._rootElement};
var Kvd=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},Lvd=function(a,b){a._handles=b.map(function(d){return Qh(d)});a._handles.forEach(function(d){return ks(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},Ivd=function(a,b){var c=Qh(b);if(c!==a._rootElement){a._removeRootElementListeners();var d=a._renderer;a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[d.listen(c,
"mousedown",a._pointerDown,Fvd),d.listen(c,"touchstart",a._pointerDown,Evd),d.listen(c,"dragstart",a._nativeDragStart,Fvd)]});a._initialTransform=void 0;a._rootElement=c}typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},Mvd=function(a,b){a._boundaryElement=b?Qh(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},Hvd=function(a,b){a._parentDragRef=b};h=Jvd.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();uvd(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(),tvd(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();
tvd(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();tvd(this._dragDropRegistry,this)}};
h._startDragSequence=function(a){var b=this;Tdb(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",Udb,Gvd)});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 Dvd(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));Mdb(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=Tdb(b),f=!e&&b.button!==0,g=this._rootElement,k=Mh(b),m=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?xra(b):wra(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||m||e||(this._handles.length&&(d=g.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),
this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(r){return c._updateOnScroll(r)}),this._boundaryElement&&(this._boundaryRect=Fdb(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;Mdb(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:Kvd(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=Sdb(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&&Mh(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=Jdb(this._placeholderRef,this._document)):a=Ddb(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=Tdb(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=Tdb(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,ks(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=Odb(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=Ndb(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(Ndb(Odb(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:Tdb(a)?b.touch:b?b.mouse:0};
h._updateOnScroll=function(a){var b=Bvd(this._parentPositions,a);b&&(a=Mh(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Hdb(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=Ira(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):Qh(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=Ddb(this._placeholder);a.classList.remove("cdk-drag-placeholder");a.classList.add("cdk-drag-anchor");a.style.transform="";c?c.before(a):Qh(b.element).appendChild(a)}};
da.Object.defineProperties(Jvd.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 ks(b,a)}))}}});var Nvd=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};h=Nvd.prototype;h.start=function(a){var b=this._element.childNodes;this._relatedNodes=[];for(var c=0;c<b.length;c++){var d=b[c];this._relatedNodes.push([d,d.nextSibling])}this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._getItemIndexFromPointerPosition(a,b,c),f=this._previousSwap;if(e===-1||this._activeItems[e]===a)return null;var g=this._activeItems[e];if(f.drag===g&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),m=a.getPlaceholderElement();a=g.getRootElement();e>k?a.after(m):a.before(m);ls(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=g;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};h.enter=function(a,b,c,d){var e=this._activeItems.indexOf(a);e>-1&&this._activeItems.splice(e,1);d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;d===-1&&(d=this._getClosestItemIndexToPointer(a,b,c));(b=this._activeItems[d])&&!this._dragDropRegistry.isDragging(b)?(this._activeItems.splice(d,0,a),b.getRootElement().before(a.getPlaceholderElement())):(this._activeItems.push(a),this._element.appendChild(a.getPlaceholderElement()))};
h.withItems=function(a){this._activeItems=a.slice()};h.withSortPredicate=function(a){this._sortPredicate=a};h.reset=function(){for(var a=this._element,b=this._previousSwap,c=this._relatedNodes.length-1;c>-1;c--){var d=l(this._relatedNodes[c]),e=d.next().value;d=d.next().value;e.parentNode===a&&e.nextSibling!==d&&(d===null?a.appendChild(e):d.parentNode===a&&a.insertBefore(e,d))}this._relatedNodes=[];this._activeItems=[];b.drag=null;b.deltaX=b.deltaY=0;b.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeItems};
h.getItemIndex=function(a){return this._activeItems.indexOf(a)};h.getItemAtIndex=function(a){return this._activeItems[a]||null};h.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};h.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
h._getItemIndexFromPointerPosition=function(a,b,c){var d=this._getRootNode().elementFromPoint(Math.floor(b),Math.floor(c));b=d?this._activeItems.findIndex(function(e){e=e.getRootElement();return d===e||e.contains(d)}):-1;return b!==-1&&this._sortPredicate(b,a)?b:-1};h._getRootNode=function(){this._rootNode||(this._rootNode=Ira(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 Ovd=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};h=Ovd.prototype;h.start=function(a){this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(f===-1&&e.length>0)return null;var g=this.orientation==="horizontal",k=e.findIndex(function(J){return J.drag===a}),m=e[f],r=m.clientRect,w=k>f?1:-1,x=this._getItemOffsetPx(e[k].clientRect,r,w),D=this._getSiblingOffsetPx(k,e,w),H=e.slice();ls(e,k,f);e.forEach(function(J,O){if(H[O]!==J){var R=J.drag===a;O=R?x:D;R=R?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=O;var V=Math.round(1/J.drag.scale*
J.offset);g?(R.style.transform=Ndb("translate3d("+V+"px, 0, 0)",J.initialTransform),Hdb(J.clientRect,0,O)):(R.style.transform=Ndb("translate3d(0, "+V+"px, 0)",J.initialTransform),Hdb(J.clientRect,O,0))}});this._previousSwap.overlaps=Gdb(r,b,c);this._previousSwap.drag=m.drag;this._previousSwap.delta=g?d.x:d.y;return{previousIndex:k,currentIndex:f}};
h.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),g=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(d==null||d===-1||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);f>-1&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(g,b),e.splice(d,0,a)):(this._element.appendChild(g),e.push(a));g.style.transform="";this._cacheItemPositions()};
h.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};h.withSortPredicate=function(a){this._sortPredicate=a};
h.reset=function(){var a=this,b;(b=this._activeDraggables)==null||b.forEach(function(c){var d=c.getRootElement();if(d){var e,f=(e=a._itemPositions.find(function(g){return g.drag===c}))==null?void 0:e.initialTransform;d.style.transform=f||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeDraggables};
h.getItemIndex=function(a){return this._getVisualItemPositions().findIndex(function(b){return b.drag===a})};h.getItemAtIndex=function(a){var b;return((b=this._getVisualItemPositions()[a])==null?void 0:b.drag)||null};h.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){Hdb(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=Kvd(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:Fdb(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};h._getVisualItemPositions=function(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions};
h._getItemOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=d?b.left-a.left:b.top-a.top;c===-1&&(e+=d?b.width-a.width:b.height-a.height);return e};h._getSiblingOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=b[a].clientRect;a=b[a+c*-1];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=c===-1?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
h._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d=this.orientation==="horizontal";if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
h._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",g=this._itemPositions.findIndex(function(k){var m=k.drag;k=k.clientRect;if(m===a)return!1;if(d){var r=f?d.x:d.y;if(m===e._previousSwap.drag&&e._previousSwap.overlaps&&r===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return g!==-1&&this._sortPredicate(g,a)?g:-1};var Qvd=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();nia(0,hBc).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=Qh(a);this._document=c;Pvd(this,"vertical").withElementContainer(a);rvd(b,this);this._parentPositions=new Avd(c)};h=Qvd.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 Ovd&&(this._sortStrategy.direction=a);return this};h.connectedTo=function(a){this._siblings=a.slice();return this};
var Pvd=function(a,b){if(b==="mixed")a._sortStrategy=new Nvd(a._document,a._dragDropRegistry);else{var c=new Ovd(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},Rvd=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(q(b)):b.slice()};h=Qvd.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&&Idb(this._domRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
h._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(m,r){if(r!==c._document&&m.clientRect&&!k&&Idb(m.clientRect,a,b)){var w=m.clientRect;m=Vdb(w,b);w=Wdb(w,a);var x=0,D=0;if(m){var H=r.scrollTop;m===1?H>0&&(x=1):r.scrollHeight-H>r.clientHeight&&(x=2)}w&&(m=r.scrollLeft,c._direction==="rtl"?w===2?m<0&&(D=2):r.scrollWidth+m>r.clientWidth&&(D=1):w===1?m>0&&(D=1):r.scrollWidth-m>r.clientWidth&&(D=2));m=l([x,D]);
d=m.next().value;e=m.next().value;if(d||e)k=r}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),g=f.width;f=f.height;g={width:g,height:f,top:0,right:g,bottom:f,left:0};d=Vdb(g,b);e=Wdb(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&&Gdb(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&&Gdb(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=Bvd(a._parentPositions,b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};h._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Ira(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 Svd={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UV=function(){this._document=p(Uh);this._ngZone=p(Tg);this._viewportRuler=p(Th);this._dragDropRegistry=p(SV);this._renderer=p(af).createRenderer(null,null)};UV.prototype.createDrag=function(a,b){b=b===void 0?Svd:b;return new Jvd(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};UV.\u0275fac=function(a){return new (a||UV)};UV.\u0275prov=Fc({token:UV,factory:UV.\u0275fac,providedIn:"root"});var Tvd=new ed("CdkDropList"),VV=function(){var a=this;this.element=p(Jd);this.dropContainer=p(Tvd,{optional:!0,skipSelf:!0});this._ngZone=p(Tg);this._viewContainerRef=p(hg);this._dir=p(ei,{optional:!0});this._changeDetectorRef=p(Px);this._selfHandle=p(zvd,{optional:!0,self:!0});this._parentDrag=p(yvd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(SV);this._destroyed=new sf;this._handles=new Wj([]);this.lockAxis=null;this.scale=1;this.started=new gj;this.released=new gj;this.ended=new gj;this.entered=
new gj;this.exited=new gj;this.dropped=new gj;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(nvd,{optional:!0});this._dragRef=p(UV).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;vvd(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=VV.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);wvd(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)}Ivd(this._dragRef,b||a)};h._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):Qh(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:Rh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=Mvd(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=xvd(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);Lvd(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),ks(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),ks(d,c.disabled))})};da.Object.defineProperties(VV.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}}});VV.\u0275fac=function(a){return new (a||VV)};
VV.\u0275dir=df({type:VV,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&yg("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition",
"freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",bh],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ch]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ig([{provide:yvd,
useExisting:VV}]),xx]});var Uvd=new ed("CdkDropListGroup");var WV=function(){var a=this;this.element=p(Jd);this._changeDetectorRef=p(Px);this._scrollDispatcher=p(Vh);this._dir=p(ei,{optional:!0});this._group=p(Uvd,{optional:!0,skipSelf:!0});this._destroyed=new sf;this.connectedTo=[];this.id=p(di).getId("cdk-drop-list-");this.lockAxis=null;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new gj;this.entered=new gj;this.exited=new gj;this.sorted=new gj;this._unsortedItems=new Set;var b=p(UV),c=p(nvd,{optional:!0});
this._dropListRef=new Qvd(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);WV._dropLists.push(this);this._group&&this._group._items.add(this)};
WV.prototype.addItem=function(a){this._unsortedItems.add(a);a._dragRef._withDropContainer(this._dropListRef);this._dropListRef.isDragging()&&this._syncItemsWithRef(Vvd(this).map(function(b){return b._dragRef}))};WV.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 Vvd=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return Kvd(b._dragRef).compareDocumentPosition(Kvd(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};h=WV.prototype;h.ngOnDestroy=function(){var a=WV._dropLists.indexOf(this);a>-1&&WV._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=Nh(b.connectedTo).map(function(e){return typeof e==="string"?WV._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=LEc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
Rvd(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=Rh(b.autoScrollStep,2);a.hasAnchor=b.hasAnchor;Pvd(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(Vvd(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(WV.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}}});WV._dropLists=[];WV.\u0275fac=function(a){return new (a||WV)};
WV.\u0275dir=df({type:WV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Kf("id",b.id),yg("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",b._dropListRef._activeSiblings.size>0))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis",
"lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",bh],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",bh],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",bh],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor",
"hasAnchor",bh]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Ig([{provide:Uvd,useValue:void 0},{provide:Tvd,useExisting:WV}])]});new ed("CdkDragPlaceholder");new ed("CdkDragPreview");var XV=function(){};XV.\u0275fac=function(a){return new (a||XV)};XV.\u0275mod=cf({type:XV});XV.\u0275inj=Gc({providers:[UV],imports:[Rz]});var Wvd=["addLink"],Xvd=["showFewer"],Yvd=["showMore"],Zvd=["editButton"],$vd=["removeButton"],awd=[[["",8,"value-action"]]],Zdb=function(a,b){return{item:a,$index:b}},seb=function(a){return{q:a}},bwd=[Object.assign({},Ieb("start","bottom"),Jeb("start","top"),{offsetY:8}),Object.assign({},Ieb("center","bottom"),Jeb("center","top"),{offsetY:8}),Object.assign({},Ieb("end","bottom"),Jeb("end","top"),{offsetY:8}),Object.assign({},Ieb("start","top"),Jeb("start","bottom"),{offsetY:-8}),Object.assign({},
Ieb("end","top"),Jeb("end","bottom"),{offsetY:-8})],YV=function(){Z.apply(this,arguments);var a=this;this.cdr=p(iQ,{self:!0});this.dateFormatter=p(mS);this.analytics=p(lQ);this.liveAnnouncer=p(sz);this.principalTypesFridge=p(MQ);this.issuePermissionService=p(fR);this.activeSession=p(Qu);this.customRepeatedEnumDialogService=p(JV);this.OVERLAY_POSITION_LIST=bwd;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 hQ;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 hQ;this.enableTeamAnnotations=
this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=qSa;this.groups$=this.providedValues$.pipe(Af(function(b){return a.extractGroups(b)}),zf(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Y(YV,Z);YV.\u0275dir=Z.\u0275dir;
YV.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};YV.prototype.ngOnInit=function(){feb(this)};
var feb=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})},geb=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})},ieb=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:cwd(a),selectedValues:a.values}),2);(b=c.yieldResult)&&dwd(a,Array.from(b));ce(c)})},ms=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3},cwd=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},dwd=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);Aeb(a)&&ns(a,!0)};h=YV.prototype;h.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
h.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if((d=b.values)==null?0:d.length){d=Math.min(a,b.values.length-1);var e,f,g;(e=b.removeButtons)==null||(f=e.get(d))==null||(g=f.nativeElement)==null||g.focus()}else{var k,m;(k=b.addLinkEl)==null||(m=k.nativeElement)==null||m.focus()}})};
h.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=aSa(a);this.preventDuplicates&&this.values.find(function(f){return Dm(f,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&rSa(this.values)&&rSa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(Fm(this.values)&&Fm(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=l(a.split(/[,; ]/));for(var d=
a.next();!d.done;d=a.next()){var e=d=d.value;this.type==="CODE_CHANGES"&&(gr(d)||(e=g3a(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){ls(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
h.closeAddPopup=function(a){var b,c=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var ns=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()})},Aeb=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},aeb=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Bm(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 qSa(b)?b:pSa(b)?""+b:a.dateFormatter.formatUserCalendar(Bm(b))})};h=YV.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 Ceb=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
YV.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}))}))};YV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YV)))(b||YV)}}();
YV.\u0275cmp=C({type:YV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(jg(Wvd,5),jg(Xvd,5),jg(Yvd,5),jg(Zvd,5,Jd),jg($vd,5),jg(sH,5),jg(hC,5));if(a&2){var c;ng(c=og())&&(b.addLinkEl=c.first);ng(c=og())&&(b.showFewer=c.first);ng(c=og())&&(b.showMore=c.first);ng(c=og())&&(b.editButton=c.first);ng(c=og())&&(b.removeButtons=c);ng(c=og())&&(b.menuTriggers=c);ng(c=og())&&(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:[Ig([iQ]),Gf,xx],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();eg(awd);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,Xdb,2,1,"label");F(4,Ydb,1,0,"mat-icon",13);L();K(5,"div",14);N("cdkDropListDropped",function(d){u(c);return v(b.onDrop(d))});F(6,beb,4,5,"collapsible-panel",
15)(7,eeb,4,2);K(8,"div",16,0);F(10,neb,3,1);fg(11);L()()();E(12,xeb,1,1,"ng-template",null,1,Og)(14,Beb,2,2,"ng-template",null,2,Og);K(16,"mat-menu",null,3);E(18,Eeb,2,0,"ng-template",17);L();E(19,Geb,12,9,"ng-template",null,4,Og)(21,Heb,1,2,"ng-template",null,5,Og);L()}a&2&&(yg("bv2-issue-metadata-list-field",!b.showInternalOnlyFieldBadge)("bv2-issue-metadata-field",!b.showInternalOnlyFieldBadge)("internal-only",b.showInternalOnlyFieldBadge)("empty-list-field-indication",b.isRequired&&!(b.values==
null?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(),yg("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",ms(b)),Kf("aria-label",b.getAriaLabel()),B(),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!ms(b)),B(),G(b.title?3:-1),B(),G(b.showInternalOnlyFieldBadge?4:-1),B(),yg("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),
I("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(),G(b.isCollapsible||ms(b)?6:7),B(4),G(b.readonly?-1:10))},dependencies:[ky,Yy,qF,TD,tV,yE,Ij,qE,rE,JE,xE,vE,nC,jC,FK,DA,cV,WV,VV,eC,bC,hC,eK,pH,nH,oH,sH,OV,MV,FV],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 ewd={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"},ZV=function(){};ZV.\u0275fac=function(a){return new (a||ZV)};ZV.\u0275mod=cf({type:ZV});ZV.\u0275inj=Gc({imports:[cP,MU,SE,HV,xV,OE,pC,GK,oU,LV,dV,rV,XV,QV,RV,fK,PV,RV,NV,gvd,jvd]});var fwd=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var gwd=ij({opacity:"0"}),hwd=we(function(a){return a}),iwd=Ud(pf(),hwd,mf()),jwd=new ed("xap-bubble UX style"),$V=function(a){var b=this;this.activity=new sf;this.openedSubject=new Wj(!1);this.destroy=new wf;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new gj;this.onOpened=new gj;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(mla(function(){return b.activity.pipe(lf(b.hoverDelayMs))}));a=Bf(this.destroy);this.opened.pipe(iwd,
a).subscribe(this.onOpened);this.openedSubject.pipe(hwd,Sla(function(){return b.opened.pipe(we(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};$V.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};$V.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};$V.\u0275fac=function(a){return new (a||$V)(Ye(jwd,8))};
$V.\u0275cmp=C({type:$V,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();eg();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()});fg(2);L();E(3,Neb,2,3,"ng-template",2);T(4,"async")}a&
2&&(a=sg(1),I("ngClass",b.bubbleStyle),B(3),I("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",U(4,5,b.opened)))},dependencies:[Yx,ky,kA,jA,ly],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:[Gua("fade",[kj(":enter",[gwd,hj("225ms")]),kj(":leave",[hj("195ms",gwd)])])]}});var aW=function(){this.activeSession=p(Qu);this.documentationLinks=p(hS);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
aW.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=""}};aW.\u0275fac=function(a){return new (a||aW)};
aW.\u0275cmp=C({type:aW,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},standalone:!1,features:[xx],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,Reb,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?b.accessLevel===
"EXTERNAL_PARTNER"||b.accessLevel==="EXTERNAL_PUBLIC":iO(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;G(a?0:-1)}},dependencies:[$V],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 kwd=As.listIssues.makeHref,lwd=As.createIssue.makeHref,bW=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(YO);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(bW,Z);bW.\u0275dir=Z.\u0275dir;
bW.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=kwd({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=lwd()+"?component="+this.componentId;this.viewComponentUrl=As.editComponent.makeHref(this.componentId);this.component$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};bW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bW)))(b||bW)}}();
bW.\u0275cmp=C({type:bW,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,Teb,15,8),T(3,"async"),L()());if(a&2){var c;B(2);G((c=U(3,1,b.component$))?2:-1,c)}},dependencies:[aW,
ly],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var cW=function(){this.trackerHelpers=p(pS);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};da.Object.defineProperties(cW.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=Du(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?Web(a,J6a):Web(a)}}});cW.\u0275fac=function(a){return new (a||cW)};
cW.\u0275cmp=C({type:cW,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),Qf(4,Ueb,6,4,"span",4,Pf),F(6,Veb,2,0,"span",5),L()());a&2&&(B(2),S("",b.label,":"),B(2),Rf(b.componentPath),B(2),G(b.isArchived?6:-1))},dependencies:[bP,WK,dL,bW],encapsulation:2});var dW=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(YO);this.trackerHelpers=p(pS);this.recentIssuesInComponent=Hr;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(hn),Af(function(b){return a.componentFridge.watch(b)}),we(hn));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=Du(a.trackerHelpers,b.componentPathInfo);return Web(b)}));this.init=new wf(1);this.routes$=this.componentId$.pipe(A(function(b){return{createIssue:I6a(b),componentSettings:J6a(b),recentIssues:Hr(b)}}))};Y(dW,Z);dW.\u0275dir=Z.\u0275dir;dW.prototype.ngOnInit=function(){var a=this;this.component$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};
da.Object.defineProperties(dW.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a;this.componentId$.next(a)}}});dW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(dW)))(b||dW)}}();
dW.\u0275cmp=C({type:dW,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,$eb,6,5,"div",2),F(3,afb,10,5),T(4,"async"),F(5,bfb,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:[Yy,bP,nC,jC,aW,ly],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 cfb={QA:"124156",NIGHTLY:"190923",PROD:"190923"};new Promise(function(){});var eW=function(){var a=p(gP),b=p(HP),c=p(YO);Z.call(this);var d=this;this.componentApi=p(WO);this.appEvents=p(aP);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);Cba(f);return d.componentApi.query({id:f}).then(function(g){var k={};g=l(g);
for(var m=g.next();!m.done;m=g.next())(m=m.value)&&(k[m.componentId]=m);return e.map(function(r){return k[r]||null})})})};Y(eW,Z);eW.\u0275dir=Z.\u0275dir;h=eW.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 ifd("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 mwd(this,a,this.componentApi.query(c))};
var mwd=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=dfb(a.activeSession.getEnvironmentType());if(d)return xs({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=l(e.rest);for(var g=e.next();!g.done;g=e.next())g=g.value,g.componentId!==d&&f.push(g);return f})}return c};
eW.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(f)});Cba(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var g={};f=l(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(g[k.componentId]=k);return g});c=l(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$431:void 0},d=c.next())e.id$jscomp$431=d.value,this.components.put(e.id$jscomp$431,a.then(function(f){return function(g){return g[f.id$jscomp$431]?g[f.id$jscomp$431]:Promise.reject(new ifd("Could not load details for component "+
f.id$jscomp$431))}}(e)))}};eW.\u0275fac=function(a){return new (a||eW)};eW.\u0275prov=Fc({token:eW,factory:eW.\u0275fac,providedIn:"root"});var nwd=Gw(["https://www.gstatic.com/buganizer/gfx/","/",""]),fW=Gw(["https://www.gstatic.com/buganizer/img/v2/",""]),owd=Ih(nwd,"2025-11-04-8066d098","all-icons.svg"),pwd=Ih(fW,"empty_blocker_light.png"),qwd=Ih(fW,"empty_blocker_dark.png"),rwd=Ih(fW,"empty_child_light.png"),swd=Ih(fW,"empty_child_dark.png"),twd=Ih(fW,"robot_sleeping.png"),uwd=Ih(fW,"tea_light.png"),vwd=Ih(fW,"tea_dark.png"),wwd=Ih(fW,"space_empty_state.png"),xwd=Ih(fW,"eg_work_area.png"),ywd=Ih(fW,"empty_triage.png");Ih(fW,"gerrit_logo.svg");var gW=function(){this.ICON_URL=owd;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=pwd;this.EMPTY_BLOCKER_DARK=qwd;this.EMPTY_CHILD_LIGHT=rwd;this.EMPTY_CHILD_DARK=swd;this.ROBOT_SLEEPING=twd;this.TEA_LIGHT=uwd;this.TEA_DARK=vwd;this.SPACE_EMPTY_STATE=wwd;this.WORK_AREA_EXAMPLE_ILLUSTRATION=xwd;this.EMPTY_TRIAGE=ywd};gW.\u0275fac=function(a){return new (a||gW)};
gW.\u0275prov=Fc({token:gW,factory:gW.\u0275fac,providedIn:"root"});var hW=function(){this.activeSession=p(Qu);this.documentationLinks=p(hS);this.trackerHelpers=p(pS);this.imageUrls=p(gW);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
hW.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?Pod(this.trackerHelpers,""):vt(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}};hW.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:""};hW.\u0275fac=function(a){return new (a||hW)};
hW.\u0275cmp=C({type:hW,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},standalone:!1,features:[xx],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,hfb,15,12);a&2&&G(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[WK,dL,nC,jC],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 iW=function(){var a=this;this.activeSession=p(Qu);this.trackerFridge=p(aR);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new Wj(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}))};iW.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
da.Object.defineProperties(iW.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});iW.\u0275fac=function(a){return new (a||iW)};
iW.\u0275cmp=C({type:iW,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},standalone:!1,features:[xx],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(F(0,ifb,2,6,"b-tracker-chip",0),T(1,"async"));a&2&&G(U(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[hW,ly],encapsulation:2,changeDetection:0});var jW=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new hQ;this.expandComponent=new hQ;this.goBack=new hQ};jW.prototype.ngOnInit=function(){};jW.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};jW.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};jW.\u0275fac=function(a){return new (a||jW)};
jW.\u0275cmp=C({type:jW,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,jfb,1,0,"mat-icon",1)(2,kfb,2,0,"button",2)(3,lfb,2,3,"button",3),K(4,"div",4)(5,"span",5),F(6,qfb,2,0)(7,sfb,1,1),F(8,tfb,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:[Yy,nC,lC,FK,DA,iW,aW,mV,xud],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 kW=function(a,b,c,d,e,f,g,k,m,r,w,x,D){var H=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=g;this.config=k;this.trackerHelpers=m;this.activeSession=r;this.issueRecommendationFridge=w;this.componentFridge=x;this.recommendationsService=D;this.includeArchived=!1;this.searchQuery$=new Wj("");this.debouncedSearchQuery$=this.searchQuery$.pipe(lf(250));this.state$=new Wj("default");this.listUpdated$=new sf;this.componentsLoading=
this.teamsLoading=!1;this.teamScope$=new Wj(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 Wj([]);this.showAllTeams$=new Wj(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(pf());this.teamOptions$=new Wj([]);this.filteredTeamOptions$=le([this.teamOptions$,
this.showAllTeamsDistinct$]).pipe(A(function(J){var O=l(J);J=O.next().value;return O.next().value?J:J.slice(0,5)}));this.hasHiddenTeams$=le([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(J){var O=l(J);J=O.next().value;O=O.next().value;return J.length>5&&!O}));this.newChildTeams$=new Wj([]);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(xfb));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 Fld(H.teamsService,J)}));this.componentIdSelected$=new wf(1);this.lastProcessedIndex=
-1;this.ootbSourceId=z7a(this.activeSession)};
kW.prototype.init=function(a,b,c){var d=this;a=a===void 0?!1:a;this.issueId=c;zwd(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=l(e);e=f.next().value;f=f.next().value;d.showAllTeams$.next(!1);f==="default"?e?d.state$.next("global"):(d.componentOptions=[],d.teamOptions$.next([]),d.listUpdated$.next()):f==="global"?e?(d.includeTeamData()&&Awd(d,e),Bwd(d,e)):d.state$.next("default"):f==="team_scope"?d.teamScope$.value&&
(d.teamOptions$.next([]),Bwd(d,"teamid:"+d.teamScope$.value.id+" "+e)):f==="component_scope"&&d.componentScope&&Cwd(d,d.componentScope.id)});this.debouncedSearchQuery$.pipe(Ef(this.state$),Bf(this.destroyed$)).subscribe(function(e){var f=l(e);e=f.next().value;f.next().value==="component_scope"&&d.state$.next(e?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Bf(this.destroyed$)).subscribe(function(e){e=l(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;
g=g.next().value;d.childTeamsMap.set(f,g)}});this.unseenTeamComponentCountMap$.pipe(Bf(this.destroyed$)).subscribe(function(e){e=l(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;d.componentCountMap.set(f,g)}})};kW.prototype.includeTeamData=function(){return this.config.includeTeamData&&!Bs(this.activeSession)};
var zwd=function(a,b,c){b=b===void 0?null:b;a.componentsLoading=!0;var d=Promise.resolve(b!==null?KP(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=Dwd(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=Dwd(a,f);a.rawRecentComponents=f});c=c?Ewd(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,WQ(a.teamsService,"").pipe(Bf(a.destroyed$)).subscribe(function(f){a.myTeams$.next(f.map(ufb));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))},Ewd=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 Dwd(a,c.filter(function(d){return!!d}))}),jf(function(){return ee([])}),Bf(a.destroyed$)))};
kW.prototype.filterTrackerComponents=function(a){var b;return!Bs(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};kW.prototype.selectOption=function(a){a.type==="component"?dhb(this,a.id):a.type==="team"?Sfb(this,a):console.warn("invalid option selected")};
var dhb=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",Fwd(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=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;for(var f=null,g=0;g<e.length;g++){var k=void 0;if(b===((k=e[g])==null?
void 0:k.id)){f=g+1;break}}f!=null?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"Success"):(g=void 0,((g=e)==null?void 0:g.length)>0?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoMatch"):a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoSuggestion"));f!=null&&(f===1&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N1"),f<=5&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N5"),f<=10&&a.analytics.trackEvent("componentPicker",
"suggestionSuccess",d+"N10"))}(c=a.recommendedComponentToRecommendation.get(b))&&a.issueId&&(d=Hab(c),Gwd(a.recommendationsService,c,d,d));a.componentIdSelected$.next(b);a.state$.next("global")},Fwd=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""};kW.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var Lgb=function(a,b){a.componentActions.get(b).then(function(c){var d=Du(a.trackerHelpers,c.componentPathInfo);a.componentScope=wfb(c,d);a.state$.next("component_scope")})},Kgb=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},Sfb=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||Tfb(a,b.id)},Tfb=function(a,b){a.teamsLoading=!0;WQ(a.teamsService,b).pipe(Bf(a.destroyed$)).subscribe(function(c){c=
c.map(ufb);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})},Hwd=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;Tfb(a,b[b.length-2])}};kW.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
kW.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var Agb=function(a,b){b.expanded=!1;a.listUpdated$.next()},Bgb=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},Egb=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},Awd=function(a,b){b.length>1&&(a.teamsLoading=!0,WQ(a.teamsService,b).pipe(Bf(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(ufb));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},Bwd=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=Dwd(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},Cwd=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=Dwd(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},Dwd=function(a,b){return b.map(function(c){var d=Du(a.trackerHelpers,c.componentPathInfo);return wfb(c,d)})};var Iwd=0,lW=function(){this.changeDetectorRef=p(Px);this.elementRef=p(Jd);this.active=!1;this.id="b-component-picker-option-"+Iwd++};lW.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};lW.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};lW.\u0275fac=function(a){return new (a||lW)};
lW.\u0275dir=df({type:lW,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Sf("id",b.id),yg("active",b.active))},inputs:{data:"data",listOrder:"listOrder"},standalone:!1});var mW=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new hQ};mW.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};mW.prototype.ngOnInit=function(){};mW.\u0275fac=function(a){return new (a||mW)};
mW.\u0275cmp=C({type:mW,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,
yfb,1,1,"img",1),K(2,"div",2),F(3,Afb,4,5,"div",3),F(4,Ifb,3,0,"div",4),L()());a&2&&(yg("no-component",b.hasNoComponent)("compact",b.compact),B(),G(b.compact?-1:1),B(2),G(b.compact?-1:3),B(),G(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[mV],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 Jwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jwd,W);Jwd.prototype.getAttachmentId_asString=function(){return In(this,1)};Jwd.prototype.setAttachmentId=function(a){return Xo(this,1,a)};Jwd.prototype.getCategory=function(){return xi(this,2)};Jwd.prototype.setCategory=function(a){return Ym(this,2,a)};var Kwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kwd,W);Kwd.prototype.getCategory=function(){return xi(this,1)};Kwd.prototype.setCategory=function(a){return Ym(this,1,a)};var Lwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lwd,W);Lwd.prototype.getRecommendation=function(){return xi(this,1)};Lwd.prototype.setRecommendation=function(a){return Ym(this,1,a)};var Mwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mwd,W);h=Mwd.prototype;h.getSummaryType=function(){return Ii(this,1)};h.setSummaryType=function(a){return $m(this,1,a)};h.getModelVersion=function(){return Um(this,2)};h.setModelVersion=function(a){return pn(this,2,a)};h.getIssueVersion=function(){return Um(this,3)};h.setIssueVersion=function(a){return pn(this,3,a)};var nW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nW,W);var Nwd=[1,2,3,4];var Owd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Owd,W);h=Owd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getFeature=function(){return Ii(this,2)};h.setFeature=function(a){return $m(this,2,a)};h.getEventType=function(){return Ii(this,3)};h.setEventType=function(a){return $m(this,3,a)};var Pwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pwd,W);Pwd.prototype.setEvents=function(a,b){return Yw(this,1,Owd,a,b)};var oW=function(){this.executor=p(oO)};oW.prototype.logIssueUserEventForRecommendation=function(a,b,c,d){d=Qwd(d);return this.logIssueUserEvent(a,b,c,d)};oW.prototype.logIssueUserEventForRecommendations=function(a){a=a.map(function(b){var c=b.issueId,d=b.feature,e=b.eventType;b=Qwd(b.recommendationName);c=(new Owd).setIssueId(c).setFeature(rdd[d]).setEventType(odd[e]);return Zi(c,nW,6,b)});return Rwd(this,a)};
oW.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c,d){var e=new nW;d=(new Kwd).setCategory(d);e=mp(e,3,Nwd,d);return this.logIssueUserEvent(a,b,c,e)};oW.prototype.logIssueUserEvent=function(a,b,c,d){a=(new Owd).setIssueId(a).setFeature(rdd[b]).setEventType(odd[c]);d=Zi(a,nW,6,d);return Rwd(this,[d])};
var Rwd=function(a,b){a=a.executor;var c=a.post,d=new Pwd;b=aq(d,1,Owd,b);return c.call(a,{url:"action/issues/batch_log_event",body:b,responseConstructor:null})},Qwd=function(a){var b=new nW;a=(new Lwd).setRecommendation(a);return mp(b,2,Nwd,a)};oW.\u0275fac=function(a){return new (a||oW)};oW.\u0275prov=Fc({token:oW,factory:oW.\u0275fac,providedIn:"root"});var Swd=new Set(["NEEDS_INFO","COMPONENT_ROUTING","ANY_ISSUE_EDIT"]),pW={},Twd=(pW.TYPE_UNSPECIFIED="FEATURE_UNSPECIFIED",pW.ISSUE_DEDUPLICATION="FEATURE_ISSUE_DEDUPLICATION",pW.HOTLIST="FEATURE_HOTLIST",pW.ISSUE_DEDUPLICATION_BATCH="FEATURE_ISSUE_DEDUPLICATION_BATCH",pW.NEEDS_INFO="FEATURE_NEEDS_INFO",pW.COMPONENT_ROUTING="FEATURE_COMPONENT_ROUTING",pW.ANY_ISSUE_EDIT="FEATURE_ANY_ISSUE_EDIT",pW),qW=function(){this.api=p(sO);this.issueUserEventsService=p(oW);this.analytics=p(lQ);this.errorHandler=
p(wO);this.recommendationTriggerService=p(iR);this.activeSession=p(Qu)},Vwd=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("editIssue","reject",Jfb(b)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(c=new Set,c.add(b.name),d=[{issueId:gs(b.resource),recommendationName:b.name}],(e=b.content)==null||(f=e.issueDeduplicationBatch)==null||f.entries.forEach(function(m){c.has(m.recommendation)||(c.add(m.recommendation),d.push({issueId:m.issue.issueId,recommendationName:m.recommendation}))}),
g=Array.from(c,function(m){return{parent:m,userEngagement:{type:"REJECTED"}}}),z(k,ie(a.api.createUserEngagements(g)),6)):z(k,Uwd(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)}})},Wwd=function(a,b){y(function(c){a.analytics.trackEvent("editIssue","view",
Jfb(b)+"-initialization");ce(c)})},Xwd=function(a,b){y(function(c){return c.nextAddress==1?(a.analytics.trackEvent("editIssue","view",Jfb(b)),z(c,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_VIEW"),2)):z(c,Uwd(a,"VIEWED",b),0)})},Gwd=function(a,b,c,d){var e,f,g,k,m,r,w,x;return y(function(D){return D.nextAddress==1?(a.analytics.trackEvent("editIssue","accept",Jfb(b)),e=Dm(c,d),f=void 0,Swd.has(b.type)&&(f=Lab(d)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(g=new Set,g.add(b.name),k=[{issueId:gs(b.resource),
recommendationName:b.name}],m=new Set(d.map(function(H){return H.issueId})),(r=b.content)==null||(w=r.issueDeduplicationBatch)==null||w.entries.filter(function(H){return m.has(H.issue.issueId)}).forEach(function(H){g.has(H.recommendation)||(g.add(H.recommendation),k.push({issueId:H.issue.issueId,recommendationName:H.recommendation}))}),x=Array.from(g,function(H){return{parent:H,userEngagement:{type:"ACCEPTED"}}}),z(D,ie(a.api.createUserEngagements(x)),6)):z(D,Uwd(a,e?"ACCEPTED":"PARTIALLY_ACCEPTED",
b,f),4)):D.nextAddress!=6?z(D,a.logIssueUserEventForRecommendation(b,e?"EVENT_TYPE_ACCEPT":"EVENT_TYPE_PARTIALLY_ACCEPT"),0):z(D,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_ACCEPT",k),0)})},Uwd=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 Zj(g,0);f=be(g);yO(a.errorHandler,f);ce(g)})};
qW.prototype.logIssueUserEventForRecommendation=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=gs(a.resource);if(!d||c.activeSession.isExternalSession())return g.return();Yd(g,2);e=Twd[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 Zj(g,0);f=be(g);yO(c.errorHandler,f);ce(g)})};
qW.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 Zj(g,0);f=be(g);yO(d.errorHandler,f);ce(g)})};qW.\u0275fac=function(a){return new (a||qW)};qW.\u0275prov=Fc({token:qW,factory:qW.\u0275fac,providedIn:"root"});var Ywd=new ed("GM2_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Zwd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};Zwd.\u0275fac=function(a){return new (a||Zwd)(Ye(Ywd))};Zwd.\u0275dir=df({type:Zwd,selectors:[["mat-progress-bar"]],hostAttrs:[1,"gmat-mdc-progress-bar"],standalone:!1});var $wd=["container"],axd=["inputBox"],bxd=["dropdownTemplate"],cxd=["dropdown"],$fb=function(a){return{mode:"recommended",$implicit:a}},dgb=function(a){return{mode:"popular",$implicit:a}},ggb=function(a){return{mode:"recent",$implicit:a}},ugb=function(a){return{mode:"default",$implicit:a}},ogb=function(a){return[a]},ngb=function(a,b){return{team:a,level:0,order:b}},Igb=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},Fgb=function(){return[0]},xgb=function(a){return[0,a]},Ogb=function(a){return{mode:"leaf",
$implicit:a}},Ugb=function(a,b,c){return{team:a,level:b,order:c}},dxd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],exd=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],rW=function(){Z.apply(this,arguments);this.overlay=p(iA);this.viewContainerRef=p(hg);this.userApi=p(qP);this.componentApi=p(WO);this.componentActions=p(eW);this.teamsService=
p(UQ);this.userAccess=p(JP);this.analytics=p(lQ);this.activeSession=p(Qu);this.issueRecommendationFridge=p(pQ);this.componentFridge=p(YO);this.trackerHelpers=p(pS);this.cdr=p(Px);this.recommendationsService=p(qW);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new hQ;this.shouldFocus=!1;this.touched=new hQ;this.selectedComponentChange=new hQ;this.dropdownClosed=new hQ;this.checkingAccess=this.hasAccess=!1;this.isExternal=
this.activeSession.isExternalSession();this.searchState=new kW(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(rW,Z);rW.\u0275dir=Z.\u0275dir;
rW.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;fxd(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()})};
rW.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var fxd=function(a){if(a.selectedComponent){var b=Du(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=wfb(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},gxd=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=rW.prototype;h.ngOnChanges=function(a){a.selectedComponent&&(fxd(this),this.checkAdminAccess&&this.selectedComponent&&hxd(this,this.selectedComponent))};h.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
h.ngAfterViewInit=function(){var a=this;this.keyManager=Bz(Cz(new Gz(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(nhb);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"&&Egb(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 ixd=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};
rW.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),gxd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||EEc(d);gxd(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),gxd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);gxd(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?Egb(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(),Bgb(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?Agb(this.searchState,this.keyManager.activeItem.data):Hwd(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),Kgb(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(Egb(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var zs=function(a){a.preventDefault();a.stopPropagation()},hxd=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;KP(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};h=rW.prototype;
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new gi({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 dA(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?exd:dxd;return Uz(fFc(Wz($z(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(rW.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});rW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(rW)))(b||rW)}}();
rW.\u0275cmp=C({type:rW,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(jg($wd,7),jg(axd,7),jg(bxd,7),jg(cxd,5),jg(lW,5));if(a&2){var c;ng(c=og())&&(b.container=c.first);ng(c=og())&&(b.inputBox=c.first);ng(c=og())&&(b.dropdownTemplateRef=c.first);ng(c=og())&&(b.dropdown=c.first);ng(c=og())&&(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,xx],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,Kfb,2,0,"button",8);L();F(6,Ofb,3,1,"div");E(7,Rgb,6,2,"ng-template",null,2,Og)(9,Xgb,5,11,"ng-template",null,3,Og)(11,mhb,2,1,"ng-template",null,4,Og)}a&2&&(a=sg(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",ixd(b)),B(3),G(a.value?5:-1),B(),G(b.checkAdminAccess?6:-1))},dependencies:[ky,Yy,Ij,qE,JE,xE,nC,lC,rK,FK,DA,Zwd,vJ,mW,jW,lW,ly],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 jxd=function(){this.warningChunks=[]};jxd.prototype.ngOnInit=function(){var a=this.warningText,b=shb(a,"EXTERNAL_PUBLIC")||shb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};jxd.\u0275fac=function(a){return new (a||jxd)};
jxd.\u0275cmp=C({type:jxd,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"),Qf(1,qhb,3,1,"span",null,Pf),L());a&2&&(B(),Rf(b.warningChunks))},dependencies:[aW],encapsulation:2});var rhb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var sW=function(){this.data=p(UB);this.documentationLinks=p(hS);this.dialogRef=p(SB);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)};sW.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
sW.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};sW.\u0275fac=function(a){return new (a||sW)};
sW.\u0275cmp=C({type:sW,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,vhb,3,1,"div"),L(),K(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),Q(11," Cancel "),L(),F(12,whb,2,1,"button",6),L());a&2&&(B(),Ag(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:[qE,xE,nC,jC,zT,AT,xL,rI,WB,YB,$B,ZB,jxd],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var kxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kxd.messageId)};Y(kxd,W);kxd.messageId="b.CompareComponentAccessResponse";var tW=function(){this.executor=p(pO)};tW.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:kxd}).then(p0a)};tW.\u0275fac=function(a){return new (a||tW)};tW.\u0275prov=Fc({token:tW,factory:tW.\u0275fac,providedIn:"root"});var uW=function(){this.issueInteractionsTracking=p(JS);this.issueFullFridge=p(nQ);this.componentFridge=p(YO);this.butterBar=p(gO);this.compareComponentAccess=p(tW);this.matDialogService=p(VB);this.editIssueService=p(NS);this.activeSession=p(Qu)};
uW.prototype.updateComponent=function(a,b){var c=this,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){switch(O.nextAddress){case 1:bs(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return O.return(!1);d=l;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;m=g;if(!k)return c.butterBar.showWarning("Could not load issue "+a),O.return(!1);if(!m)return c.butterBar.showWarning("Could not load component "+
b),O.return(!1);r=k.snapshot[0].componentId;return r===b?O.return(!1):z(O,c.compareComponentAccess.check(r,b,a),3);case 3:w=O.yieldResult;x=!!m.trackerId;D=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";H=x&&D;J={allow:!1,setLimitViewTrusted:!1};if(!w.warning){O.jumpTo(4);break}return z(O,lxd(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 lxd=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){TB(a.matDialogService.open(sW,{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})})})};uW.\u0275fac=function(a){return new (a||uW)};uW.\u0275prov=Fc({token:uW,factory:uW.\u0275fac,providedIn:"root"});var vW=function(){this.bLocation=p(hU);this.listIssues=As.listIssues.makeHref;this.createIssue=As.createIssue.makeHref};vW.prototype.viewSavedSearch=function(a,b){return xhb(As.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var mxd=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new ht(a);b=new ht(b);return a.getPath()===b.getPath()&&BB(a.queryData_.toString())===BB(b.queryData_.toString())};h=vW.prototype;h.createBookmarkGroup=function(){return As.createBookmarkGroup.routeDeclarationPath};
h.viewBookmarkGroup=function(a){return xhb(As.viewBookmarkGroup.routeDeclarationPath,{id:a})};h.editBookmarkGroup=function(a){return Ds(As.editBookmarkGroup.routeDeclarationPath,{id:a})};h.editSavedSearch=function(a){return Ds(As.editSavedSearch.routeDeclarationPath,{id:a})};h.dashboard=function(a){return Ds(As.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?Ds(As.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):Ds(As.settings.routeDeclarationPath)};h.home=function(){return Ds(As.home.routeDeclarationPath,{params:void 0})};vW.\u0275fac=function(a){return new (a||vW)};vW.\u0275prov=Fc({token:vW,factory:vW.\u0275fac,providedIn:"root"});var nxd=function(){this.documentationLinks=p(hS)};nxd.\u0275fac=function(a){return new (a||nxd)};
nxd.\u0275cmp=C({type:nxd,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",Lu(),Pe),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[WB,YB,$B,ZB,nC,jC],encapsulation:2});var oxd=function(){this.documentationLinks=p(hS);this.data=p(UB);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};oxd.\u0275fac=function(a){return new (a||oxd)};
oxd.\u0275cmp=C({type:oxd,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),Eg("ngModelChange",function(c){Dg(b.selectedReason,c)||(b.selectedReason=c);return c}),Qf(8,Chb,3,4,"mat-radio-button",4,Pf),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",
qod(b.documentationLinks),Pe),B(2),Cg("ngModel",b.selectedReason),B(),Rf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[WB,YB,$B,ZB,nC,jC,qE,xE,zT,AT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var pxd=function(){this.documentationLinks=p(hS);this.data=p(UB);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};pxd.\u0275fac=function(a){return new (a||pxd)};
pxd.\u0275cmp=C({type:pxd,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),Eg("ngModelChange",function(c){Dg(b.selectedReason,c)||(b.selectedReason=c);return c}),Qf(8,Ehb,3,4,"mat-radio-button",4,Pf),L()(),K(10,"div",5)(11,"button",6),Q(12," Cancel "),L(),K(13,"button",7),Q(14," Delete "),L()());a&2&&(B(),Bg("Delete Comment #",b.commentNumber," of Issue ",b.issueId),
B(4),I("href",qod(b.documentationLinks),Pe),B(2),Cg("ngModel",b.selectedReason),B(),Rf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[WB,YB,$B,ZB,nC,jC,qE,xE,zT,AT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var qxd=function(){this.documentationLinks=p(hS);this.activeSession=p(Qu);this.REMOVAL_URL=Fhb(this.activeSession.isInternalSession())};qxd.\u0275fac=function(a){return new (a||qxd)};
qxd.\u0275cmp=C({type:qxd,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",pod(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:[WB,YB,$B,ZB,nC,jC],encapsulation:2});var rxd=function(){this.documentationLinks=p(hS);this.indefiniteRetentionAcknowledged=!1};rxd.\u0275fac=function(a){return new (a||rxd)};
rxd.\u0275cmp=C({type:rxd,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",
Lu(),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:[WB,YB,$B,ZB,nC,jC,xL,rI],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var wW=function(){Z.apply(this,arguments);this.userPreferencesManager=p(nR);this.timestamps$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Y(wW,Z);wW.\u0275dir=Z.\u0275dir;var sxd=function(a,b){return a.timestamps$.pipe(A(function(c){return c?!!c[b]:!1}))};wW.prototype.isDismissed=function(a){return ie(sxd(this,a))};
wW.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]}))};wW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wW)))(b||wW)}}();wW.\u0275prov=Fc({token:wW,factory:wW.\u0275fac,providedIn:"root"});var xW=function(){Z.apply(this,arguments);this.data=p(UB);this.dialogRef=p(SB);this.dismissalService=p(wW);this.dontShowAgain=!1};Y(xW,Z);xW.\u0275dir=Z.\u0275dir;xW.prototype.confirm=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=Ghb(a.data.action);return z(c,ie(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);ce(c)})};xW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(xW)))(b||xW)}}();
xW.\u0275cmp=C({type:xW,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:[$B,ZB,nC,jC,xL,rI],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var txd=function(){};txd.\u0275fac=function(a){return new (a||txd)};txd.\u0275mod=cf({type:txd});txd.\u0275inj=Gc({imports:[tz,cP,cK,pC,SE,OE,eE,NU,kU,QL,yL]});var Jhb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jhb,W);h=Jhb.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setEmbeddingType=function(a){$m(this,7,a)};h.getScope=function(){return xi(this,2)};h.setScope=function(a){return Ym(this,2,a)};h.setScopeSortOrder=function(a){return Ym(this,3,a)};h.setMaxResults=function(a){return pn(this,4,a)};
h.setView=function(a){return $m(this,5,a)};h.setIssueDescriptionView=function(a){return $m(this,6,a)};var Hhb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hhb,W);h=Hhb.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.setEmbeddingType=function(a){$m(this,6,a)};h.getScope=function(){return xi(this,2)};h.setScope=function(a){return Ym(this,2,a)};h.setScopeSortOrder=function(a){return Ym(this,4,a)};h.setMaxResults=function(a){return pn(this,5,a)};var Es=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Es.messageId)};Y(Es,W);Es.prototype.getIt=function(){return X(this,Hhb,1,jb)};Es.prototype.setIt=function(a){return Zi(this,Hhb,1,a,jb)};Es.messageId="b.LookupSimilarIssuesRequest";var uxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uxd,W);h=uxd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getScore=function(){return rm(this,2)};h.setScore=function(a){return Fp(this,2,a)};var vxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vxd,W);var wxd=function(a){return Ni(a,Wp,1,Oi())},xxd=function(a){return Ni(a,uxd,2,Oi())};var yxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yxd.messageId)};Y(yxd,W);yxd.prototype.getIt=function(){return X(this,vxd,3,jb)};yxd.prototype.setIt=function(a){return Zi(this,vxd,3,a,jb)};yxd.messageId="b.LookupSimilarIssuesResponse";var Fs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fs.messageId)};Y(Fs,W);Fs.prototype.getIt=function(){return X(this,Jhb,1,jb)};Fs.prototype.setIt=function(a){return Zi(this,Jhb,1,a,jb)};Fs.messageId="b.RetrieveSimilarIssuesRequest";var zxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zxd,W);zxd.prototype.getIssuesList=function(){return Ni(this,Wp,1,Oi())};var Axd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Axd.messageId)};Y(Axd,W);Axd.prototype.getIt=function(){return X(this,zxd,1,jb)};Axd.prototype.setIt=function(a){return Zi(this,zxd,1,a,jb)};Axd.messageId="b.RetrieveSimilarIssuesResponse";var Bxd={},Cxd=(Bxd[bS.queryAtom]=!0,Bxd),yW=function(){this.executor=p(oO)},Dxd=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:Ihb(b),responseConstructor:yxd}).pipe(A(function(c){var d=wxd(c.getIt()).map(rZa);c=xxd(c.getIt()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},Exd=function(a,b){return a.executor.post({url:"action/retrieve_similar_issues",body:Khb(b),responseConstructor:Axd}).pipe(A(function(c){return{similarIssues:c.getIt().getIssuesList().map(rZa),
scores:[]}}))},Fxd=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=Sr.apply(null,[Rr("modified","365d")].concat(q(Array.from(d,function(g){return g.queryAtom}))));c==null?e.issueId=Number(b):e.keyword=c;return Dxd(a,e)},Gxd=function(a,b,c,d){d=d===void 0?new Set:d;return Dxd(a,{issueId:Number(b),maxResults:7,scope:Sr.apply(null,[Rr("-id",b),Rr("id",c)].concat(q(Array.from(d,function(e){return e.queryAtom}).filter(function(e){return Cxd[e]}))))})};
yW.\u0275fac=function(a){return new (a||yW)};yW.\u0275prov=Fc({token:yW,factory:yW.\u0275fac,providedIn:"root"});var Hxd=wn(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},xn),Ixd=new Set([bS]),zW=function(){this.issueFullFridge=p(nQ);this.issueFridge=p(dQ);this.similarIssuesApi=p(yW);this.analytics=p(lQ);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},Jxd=function(a,b,c,d){c=c===void 0?Ixd:c;d=Fxd(a.similarIssuesApi,
b,void 0,c,void 0,d===void 0?!1:d);var e=ee([]).pipe(of(5E3));e=qia(e,a.recentlyViewedIds$).pipe(Af(function(f){return Gxd(a.similarIssuesApi,b,f,c)}));return le([d,e]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;return Lhb(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){mn("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var g,k,m=(k=f==null?void 0:
(g=f.error)==null?void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",m);return ee([])}))},Lxd=function(a,b,c,d,e){c=c===void 0?Ixd:c;return b.trim()?d==="canonical"?Fxd(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){mn("IssuePickerSearchService::searchSimilarIssues() error: ",f);var g,k,m=(k=f==null?void 0:(g=f.error)==null?
void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",m);return ee([])})):Kxd(a,b):ee(void 0)};
zW.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return ee(void 0);if(b==="canonical"){b=Mxd(this,a,d);d=Nxd(this,d).pipe(Af(function(g){return e.issueFridge.watchMany({filter:Sr(a,Rr("-id",c==null?void 0:c.id),Rr("status","open"),Rr("componentid",g)),pageSize:10})}),A(function(g){return g==null?void 0:g.results}));var f=this.issueFridge.watchMany({filter:Sr(a,Rr("-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 Iq(g.flat(),function(k){return k.issueId})}),A(function(g){return g.slice(0,10)}),A(function(g){return Hxd(g,"DESCENDING")}))}return Kxd(this,a)};
var Kxd=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(A(function(c){return c==null?void 0:c.results}))},Mxd=function(a,b,c){return c&&c!=="0"?Oxd(a,c).pipe(Af(function(d){return d.length===0?ee([]):a.issueFridge.watchMany({filter:Sr(b,Rr("id",d),Rr("status","open")),pageSize:10}).pipe(A(function(e){return e==null?void 0:e.results}))})):ee([])},Oxd=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:Sr(Rr("componentid",b,!0),Rr("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 Jq(d.filter(hn))}),xf({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},Nxd=function(a,b){return b&&b!=="0"?Oxd(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(hn)))}),A(Jq),xf({bufferSize:1,refCount:!0})):ee([])};zW.\u0275fac=function(a){return new (a||zW)};zW.\u0275prov=Fc({token:zW,factory:zW.\u0275fac,providedIn:"root"});var AW=function(){};AW.\u0275fac=function(a){return new (a||AW)};AW.\u0275cmp=C({type:AW,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&&(eg(),F(0,Mhb,1,0)(1,Nhb,1,0,"div",0));a&2&&G(b.isReady?0:1)},encapsulation:2});var BW=function(){this.mode="datetime";this.isDataLoaded=!1};BW.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};BW.\u0275fac=function(a){return new (a||BW)};
BW.\u0275cmp=C({type:BW,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},standalone:!1,features:[xx],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,Ohb,1,3,"b-formatted-date-time",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.createdTime?1:-1))},dependencies:[AW,BV],encapsulation:2,changeDetection:0});var CW=function(){this.relayOnly=!1;this.keydown$=new sf};CW.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};da.Object.defineProperties(CW.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});CW.\u0275fac=function(a){return new (a||CW)};
CW.\u0275dir=df({type:CW,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 Pxd=0,DW=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+Pxd;this.closePanel$=new wf(1);Pxd++};DW.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};DW.\u0275fac=function(a){return new (a||DW)(Ye(CW,8))};
DW.\u0275cmp=C({type:DW,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&jg(gg,7);if(a&2){var c;ng(c=og())&&(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&&(eg(),E(0,Phb,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 EW=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 gj;this.closed=new gj;this.isOpen=!1;this.destroyed$=new wf(1);this.closingActionsSubscription=Rd.EMPTY};EW.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
EW.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new dA(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=Qxd(this).pipe(Bf(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
EW.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()}};
EW.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 Qxd=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)};
EW.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
EW.prototype.getPositionStrategy=function(){return Uz(Vz(Wz($z(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"}])};EW.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
da.Object.defineProperties(EW.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});EW.\u0275fac=function(a){return new (a||EW)(Ye(iA),Ye(Jd),Ye(hg),Ye(zz),Ye(Px))};
EW.\u0275dir=df({type:EW,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 FW=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(Qu);this.trackerHelpers=p(pS);this.clipboard=p(uR);this.butterBar=p(gO);this.componentId=void 0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=fs;this.copyIssueId=FIc(function(){a.clipboard.copy(a.issueId);$r(a.butterBar,"Issue ID copied",2E3)})};Y(FW,Z);FW.\u0275dir=Z.\u0275dir;var Gs=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
FW.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};FW.prototype.getAppBaseUrl=function(a){return vt(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};FW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(FW)))(b||FW)}}();
FW.\u0275cmp=C({type:FW,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&jg(EW,5);if(a&2){var c;ng(c=og())&&(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,Qhb,1,0,"mat-icon",9),L(),F(3,aib,6,5));a&2&&(yg("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:[kz,Yy,vU,nC,lC,FK,DA,DW,EW],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 GW=function(){};GW.prototype.ngOnInit=function(){};GW.prototype.onClick=function(a){a.stopPropagation()};GW.\u0275fac=function(a){return new (a||GW)};
GW.\u0275cmp=C({type:GW,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c)})},inputs:{id:"id"},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,bib,1,2,"b-issue-id-picker",1),L());a&2&&(I("isReady",!!b.id),B(),G(b.id?1:-1))},dependencies:[AW,FW],encapsulation:2,changeDetection:0});var HW=function(){this.IssuePriority=Ddd},Rxd=function(a){a=a.issuePriority;if(a==null)return"";switch(a){case "P0":return"priority-1";case "P1":return"priority-2";case "P2":return"priority-3";case "P3":return"priority-4";case "P4":return"priority-5";default:return""}};HW.\u0275fac=function(a){return new (a||HW)};
HW.\u0275cmp=C({type:HW,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},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&&(zg(Rxd(b)),B(),a=b.issuePriority,S(" ",a==null?"--":ked[a]," "))},styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var Sxd=function(){this.priority=this.issue=null;this.isDataLoaded=!1};Sxd.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};Sxd.\u0275fac=function(a){return new (a||Sxd)};
Sxd.\u0275cmp=C({type:Sxd,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},standalone:!1,features:[xx],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,cib,1,1,"b-issue-priority-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.priority?1:-1))},dependencies:[AW,HW],encapsulation:2,changeDetection:0});var IW=function(){this.changelistFridge=p(NO);this.IssueStatus=Tdd;this.STATUS_JS_FULL_TEXT=Sm;this.STATUS_JS_TERSE=hed;this.isFixed=LVa;this.issue=null;this.isDataLoaded=!1};IW.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=gib(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};
IW.\u0275fac=function(a){return new (a||IW)};
IW.\u0275cmp=C({type:IW,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},standalone:!1,features:[xx],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,dib,2,8,"a",1)(2,fib,1,1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[AW,
FK,DA],encapsulation:2,changeDetection:0});var JW=function(){this.el=p(Jd);this.bFocus=!0;this.nativeElement=this.el.nativeElement};JW.prototype.ngOnInit=function(){Txd(this)};JW.prototype.ngOnChanges=function(){Txd(this)};var Txd=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};JW.\u0275fac=function(a){return new (a||JW)};JW.\u0275dir=df({type:JW,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},standalone:!1,features:[xx]});var KW=function(){};KW.\u0275fac=function(a){return new (a||KW)};KW.\u0275mod=cf({type:KW});
KW.\u0275inj=Gc({});var LW=function(){this.activeSession=p(Qu);this.issueApi=p(SP);this.analytics=p(lQ);this.errorHandler=p(wO);this.onCc=new hQ};LW.prototype.ngOnInit=function(){};
LW.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)}))};LW.\u0275fac=function(a){return new (a||LW)};LW.\u0275cmp=C({type:LW,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,hib,2,0,"ng-container")(2,iib,2,0,"ng-container"),L());a&2&&(B(),G(b.ccState?1:2))},dependencies:[nC,jC],encapsulation:2});var Uxd=/"/g,Vxd=/\\"/g,Wxd=/\\/g,Xxd=/\\\\/g,Yxd=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),Zxd=new RegExp("["+Eta({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");Is.prototype.getName=function(){return this.name_};Is.prototype.setName=function(a){this.name_=a};Is.prototype.toString=function(){return $xd(this,'()<>@:\\".[],;')};
var $xd=function(a,b){var c=a.getName();c=c.replace(Uxd,"");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(Wxd,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};Is.prototype.isValid=function(){return Yxd.test(this.address)};
var Fv=function(a){var b=jib;a=a.replace(Zxd,"");for(var c="",d="",e=0;e<a.length;){var f=a;var g=e,k=f.charAt(g),m='"<(['.indexOf(k);if(m==-1||ayd(f,g))f=k;else{m='">)]'.charAt(m);for(var r=f.indexOf(m,g+1);r>=0&&ayd(f,r);)r=f.indexOf(m,r+1);f=r>=0?f.substring(g,r+1):k}f.charAt(0)=="<"&&f.indexOf(">")!=-1?(d=f.indexOf(">"),d=f.substring(1,d)):d==""&&(c+=f);e+=f.length}d==""&&c.indexOf("@")!=-1&&(d=c,c="");c=hIc(c);c=iIc(c,"'");c=iIc(c,'"');c=c.replace(Vxd,'"');c=c.replace(Xxd,"\\");d=hIc(d);return new b(d,
c)},ayd=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};Qw(jib,Is);var byd=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}$");jib.prototype.isValid=function(){return cyd(this.address)};var cyd=function(a){return a==null?!1:byd.test(a)};jib.prototype.toString=function(){return $xd(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var dyd=/[^a-z0-9]+/ig,eyd=[9,11,10,12,13,14,19],fyd=[9,19,11],gyd=[1,6],hyd=[2,7],iyd=[3,8],jyd=[1,2,6,7,8,9,11,10,12,13,14,18,19],Axc=[3,4,5,17,20],Xv=function(a,b,c){this.type_=a;this.normalizedValue_=Js(b);this.originalValue_=Js(c===void 0?b:c)};Xv.prototype.getType=function(){return this.type_};Xv.prototype.getValue=function(){return this.normalizedValue_};Xv.prototype.getOriginalValue=function(){return this.originalValue_};
var Uv=function(a){return eyd.includes(a.getType())},kyd=function(a){return fyd.includes(a.getType())},lyd=function(a){return gyd.includes(a.getType())},yxc=function(a,b){switch(a){case 1:return Vv(b);case 6:return new Xv(6,Js(b).toLowerCase(),b);case 2:return wvc(b);case 7:return yvc(b);case 3:return Bvc(b);case 8:return new Xv(8,Js(b).toLowerCase(),b);case 5:return new Xv(5,Js(b).toLowerCase(),b);case 4:return Cvc(b);case 9:return myd(b);case 12:return new Xv(12,Js(b),b);case 13:return new Xv(13,
Js(b),b);case 14:return new Xv(14,Js(b),b);case 10:return new Xv(10,Js(b),b);case 11:return new Xv(11,Js(b),b);case 18:return zxc(b);case 19:return new Xv(19,Js(b),b);case 20:return new Xv(20,Js(b),b);case 17:return nyd;default:return new Xv(0,b)}},Vv=function(a){return new Xv(1,Js(a).toLowerCase(),a)},wvc=function(a){var b=Js(a).toLowerCase().replace(dyd,"");return new Xv(2,b,a)},Bvc=function(a){var b=Js(a).toLowerCase();return b==="me"?nyd:new Xv(3,b,a)},Cvc=function(a){return new Xv(4,Js(a).toLowerCase(),
a)},yvc=function(a){var b=Js(a).toLowerCase().replace(dyd,"");return new Xv(7,b,a)},myd=function(a){return new Xv(9,Js(a).toLowerCase(),a)},zxc=function(a){return new Xv(18,Js(a),a)},Pv=function(a){var b=a.indexOf(":");return yxc(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};Xv.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};Xv.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
Xv.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var oyd=function(a){switch(a.getType()){case 1:case 6:return cyd(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(dyd,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!Js(a.originalValue_);default:return!0}},Zv=yxc(0,""),nyd=new Xv(17,"me");var vv=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=vv.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 vv;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 ww=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ww,W);ww.prototype.getEntryPoint=function(){return Ii(this,5)};ww.prototype.setEntryPoint=function(a){return Vn(this,5,a)};var xw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xw,W);xw.prototype.getEntryPoint=function(){return Ii(this,1)};xw.prototype.setEntryPoint=function(a){return Vn(this,1,a)};var MW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MW,W);MW.prototype.getQuery=function(){return xi(this,1)};MW.prototype.setQuery=function(a){return yj(this,1,a)};MW.prototype.clearQuery=function(){Zw(this,1)};MW.prototype.hasQuery=function(){return wm(this,1)};var pyd=function(a,b){Kn(a,3,b)};MW.prototype.getAffinityVersion=function(){return Um(this,7)};MW.prototype.setAffinityVersion=function(a){Tn(this,7,a)};
MW.prototype.getAffinityVersionOrUndefined=function(){return fx(this,7)};var ryd=function(a){var b=qyd();nx(a,8,b)};h=MW.prototype;h.getInstanceId=function(){return xi(this,11)};h.setInstanceId=function(a){return yj(this,11,a)};h.clearInstanceId=function(){Zw(this,11)};h.hasInstanceId=function(){return wm(this,11)};h.getInstanceIdOrUndefined=function(){return gx(this,11)};var qw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qw,W);h=qw.prototype;h.getPersonLoggingId=function(){return xi(this,1)};h.setPersonLoggingId=function(a){yj(this,1,a)};h.getFieldLoggingId=function(){return xi(this,2)};h.setFieldLoggingId=function(a){yj(this,2,a)};h.setFieldValue=function(a){return yj(this,3,a)};h.clearFieldValue=function(){return Zw(this,3)};h.getName=function(){return xi(this,4)};h.setName=function(a){return yj(this,4,a)};
h.hasName=function(){return wm(this,4)};h.getNameOrUndefined=function(){return gx(this,4)};h.getContactId=function(){return xi(this,5)};h.setContactId=function(a){return yj(this,5,a)};h.getProfileId=function(){return xi(this,6)};h.getProfileId_legacyNullable=function(){return Ml(this,6)};h.setProfileId=function(a){return yj(this,6,a)};h.hasProfileId=function(){return wm(this,6)};h.getFieldType=function(){return Ii(this,7)};h.getIsPlaceholder=function(){return Ri(this,10)};
h.setIsPlaceholder=function(a){aj(this,10,a)};h.getGroupId=function(){return xi(this,11)};h.setGroupId=function(a){yj(this,11,a)};h.hasGroupId=function(){return wm(this,11)};h.getIsBoosted=function(){return Ri(this,12)};h.setIsBoosted=function(a){aj(this,12,a)};var pw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pw,W);h=pw.prototype;h.getProvenance=function(){return Ii(this,3)};h.setProvenance=function(a){return Vn(this,3,a)};h.getContext=function(){return Ii(this,5)};h.getExistingSelectionsCount=function(){return Um(this,6)};h.setExistingSelectionsCount=function(a){Tn(this,6,a)};var ow=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ow,W);ow.prototype.getInfo=function(){return X(this,qw,1)};var pv=function(a){return X(a,pw,2)};ow.prototype.getSessionState=function(){return X(this,MW,3)};ow.prototype.setSessionState=function(a){return Zi(this,MW,3,a)};ow.prototype.hasSessionState=function(){return Ji(this,MW,3)};var mw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mw,W);h=mw.prototype;h.getType=function(){return Ii(this,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getValue=function(){return xi(this,2)};h.setValue=function(a){return yj(this,2,a)};h.hasValue=function(){return wm(this,2)};var syd=function(a){this.delegate_=a};h=syd.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 dwc=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};h=dwc.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 tyd=function(a,b){this.delegate_=a;this.name_=b};Y(tyd,syd);tyd.prototype.getName=function(){return this.name_};var NW=function(a){this.delegate_=a};h=NW.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 kib=function(a){this.delegate_=a};Y(kib,NW);h=kib.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 lib=function(a,b){this.delegate_=a;this.targets_=b};Y(lib,NW);lib.prototype.getTargetList=function(){return this.targets_};var ewc=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};h=ewc.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 uyd=(new ewc).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),vyd=new ewc;var OW=function(){};OW.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:Ks(new lib(a,c))};OW.prototype.reset=function(){};var nib=function(a){this.types_=a};Y(nib,OW);nib.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};nib.prototype.reset=function(){};var pib=function(a){this.sourceIds_=a.filter(function(b){return Axc.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return jyd.includes(b.getType())}).map(String)};Y(pib,OW);pib.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 wyd=function(a){this.sources_=a};Y(wyd,OW);wyd.prototype.shouldRemove=function(a){return!this.sources_.includes(a.getDataSource())};var rib=function(a){this.filters_=a};rib.prototype.filterResult=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};rib.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var tib=function(a){this.filters_=a};
tib.prototype.filterResult=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())if(c=c.value.filterResult(a))return c;return null};tib.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var xyd=sib();var yyd=new ed("PeoplekitClientConfig"),zyd=function(a){this.matcher=a};Y(zyd,OW);zyd.prototype.shouldRemove=function(a){return a.getTargetType()===1&&this.matcher(a.getValue())};var PW=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new Wj(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;Ayd(b,b.localDarkmode);b.clientStreamzService&&R$c(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")}};PW.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(cL)};var Ayd=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};PW.\u0275fac=function(a){return new (a||PW)(Zc(Ae))};PW.\u0275prov=Fc({token:PW,factory:PW.\u0275fac});var Byd=sib(oib(1),uib(function(){return new wyd(ad.apply(0,arguments))}(3),new zyd(function(a){return a.includes("-pager")||a.includes("+pager")||a.includes("-oncall")||a.includes("+oncall")||a.includes("lifeguard-ng")}))),QW=function(){this.theme=p(PW)};QW.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var Cyd=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},Aib=function(a){return{moveAutocompleteAboveAnchorIfOffscreen:!0,density:2,theme:a.getTheme(),autoActivateFirstSearchResult:!0,showSuggestions:!1}};QW.\u0275fac=function(a){return new (a||QW)};QW.\u0275prov=Fc({token:QW,factory:QW.\u0275fac,providedIn:"root"});var Dyd=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var Eyd=function(a){this.profileId_=a};Eyd.prototype.getProfileId=function(){return this.profileId_};var Fyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fyd,W);h=Fyd.prototype;h.setMaxResults=function(a){return Tn(this,1,a)};h.getQuery=function(){return xi(this,2)};h.setQuery=function(a){return yj(this,2,a)};h.clearQuery=function(){Zw(this,2)};h.hasQuery=function(){return wm(this,2)};var Gyd=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var Hyd=Object.freeze({preferOauth:!1}),RW=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:Hyd});var Iyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(Iyd,W);var Jyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jyd,W);h=Jyd.prototype;h.getExperimentIdsList=function(a){return Wm(this,1,Oi(a))};h.setExperimentIdsList=function(a){return yc(this,1,a,Eb)};h.getExperimentIds=function(){return hx(this,1)};h.setExperimentIds=function(a){Ac(this,1,Eb,void 0,a,Fb,void 0,1)};h.getProfileId=function(){return xi(this,2)};h.getProfileId_legacyNullable=function(){return Ml(this,2)};h.setProfileId=function(a){return yj(this,2,a)};
h.hasProfileId=function(){return wm(this,2)};var Kyd=function(){},Lyd=function(){return!1},Myd=function(){this.experiments_=(new Jyd).setProfileId(RW.userProfileId);this.peopleApiEnv_=RW.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=Kyd;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=Lyd;this.customDataConfig_=null;this.isOrgStateEnabled_=!1;var a=RW.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(Vv(a)))};h=Myd.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 SW=function(a,b){b!=null||(b=p(Tg));var c=new Myd;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 Gyd;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 Dyd(c.getPeopleApiEnv(),new Eyd(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};SW.\u0275fac=function(a){return new (a||SW)(Zc(yyd),Zc(Tg))};SW.\u0275prov=Fc({token:SW,factory:SW.\u0275fac});var Nyd=["multiUserInput"],Oyd=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};Oyd.prototype.getPosition=function(){return 2};Oyd.prototype.warmUpCache=function(){var a=new bdd;cdd(a,this.component.additionalContactsFn().map(function(b){var c=(new cN).setResultType(7),d=(new bN).setValue(b.id);b=Vn(d,1,18).setName((new $M).setDisplayName(b.text));bq(c,2,bN,b);return c}));return Promise.resolve(a)};Oyd.prototype.needsWarmUp=function(){return!1};
var TW=function(){Z.apply(this,arguments);var a=this;this.element=p(Jd);this.principalTypes=p(LQ);this.activeSession=p(Qu);this.documentationLinks=p(hS);this.appEvents=p(aP);this.cdr=p(iQ,{self:!0});this.hotkeys=p(tU);this.autocompleteConfigService=p(QW);this.usersChange=new hQ(!0);this.includeViewAliases=this.removeContainerDivTabIndex=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new hQ;this.sessionOptions=
(new vv).setFilter(uib(Byd,oib(18)));this.typedText="";this.items=[];this.additionalContactsFn=function(){return Pyd(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Y(TW,Z);TW.\u0275dir=Z.\u0275dir;
TW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(uU(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 Qyd(c)},validateInternalAccessLevel:function(b,c){return Ryd(a,c)},validateExternalAccessLevel:function(b,
c){return Syd(a,c)}},this.customValidators)};TW.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=Tyd(this,this.users),Uyd(this)};var Uyd=function(a){var b=[].concat(q(a.items)),c=Vyd(b),d=Wyd(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Dm(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
TW.prototype.validate=function(a,b,c){for(var d=new Set,e=l(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;g(a,c)||d.add(f)}a=l(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=l(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return this.violations.size===0};
var yib=function(a){!a.isWidgetDisabled()&&Xyd(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},wib=function(a){Ls(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};TW.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var Xyd=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
TW.prototype.removeItem=function(a){this.isWidgetDisabled()||!Ls(this,a)||this.items[a].isReadonly||(wib(this),this.items.splice(a,1),Uyd(this))};TW.prototype.setAccessLevel=function(a){this.accessLevel=a};
var Pyd=function(a){return Yyd(a).map(function(b){return{text:LSa(b),id:os({alias:b})}})},Yyd=function(a){if(!a.includeAliases||jO(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},zib=function(a,b){b&&(b=fwd.test(b)?Zyd(a,b):$yd(a,b),a.items.push(b));a.typedText="";Uyd(a)},Ls=function(a,b){return b>=0&&b<a.items.length},Zyd=function(a,b){var c=c===void 0?
!1:c;var d=Leb(b);if(d.alias===void 0)throw Error("Te`"+b);b=d.alias;d=LSa(b);return new azd("ALIAS",b,d,null,c,a)},bzd=function(a,b){b=$8a(b);var c=new azd("GROUP",b,b,null,!1,a);dld(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;Uyd(a)});return c},czd=function(a,b){var c=c===void 0?!1:c;b=$8a(b);var d=new azd("USER",b,b,null,c,a);dld(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;Uyd(a)});return d},$yd=function(a,b){var c=c===void 0?
!1:c;b=$8a(b);var d=new azd("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);dld(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;Uyd(a)});return d},dzd=function(a,b,c){return new azd("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};TW.prototype.getAccessLevel=function(){return this.accessLevel};TW.prototype.getAppName=function(){return this.activeSession.getAppName()};
TW.prototype.onKeyDown=function(a){a.keyCode===8?Ls(this,this.selectedChipIndex)?(Ls(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?Ls(this,this.selectedChipIndex)&&Ls(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&yib(this)};
var Tyd=function(a,b){b=(b||[]).map(function(d){return ezd(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 dzd(a,d.displayText,d.values.map(function(e){return ezd(a,e)}))});return[].concat(q(c),q(b))}return b},ezd=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("Ue`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("Ue`"+b);return d==="ALIAS"?Zyd(a,b):d===
"USER"?czd(a,c[1]):bzd(a,c[1])},Vyd=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},Wyd=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},Qyd=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},Ryd=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
Syd=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};TW.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),zib(this,this.typedText.split(",")[0].trim()),this.isFocused=!1,this.cdr.markForCheck())};TW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TW)))(b||TW)}}();
TW.\u0275cmp=C({type:TW,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&jg(Nyd,5);if(a&2){var c;ng(c=og())&&(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:[Ig([iQ,SW,{provide:yyd,useFactory:function(){var a=p(TW),b=p(yyd,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(q((c=b.staticDataProviders)!=null?c:[]),[new Oyd(a)])})}}]),Gf,xx],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 yib(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"),Qf(4,xib,2,9,"div",3,Pf),F(6,Bib,2,6,"input",4),L()(),K(7,"div",5),F(8,Cib,4,1,"span"),F(9,Dib,2,0,"span"),F(10,Eib,2,0,"span"),F(11,Fib,2,0,"span"),F(12,Gib,2,0,"span"),F(13,Hib,2,0,"span"),F(14,Iib,2,0,"span"),F(15,Jib,2,0,"span"),F(16,Kib,2,0,"span"),L());if(a&2){yg("focused",b.isFocused);var c;Kf("tabindex",b.removeContainerDivTabIndex?-1:0)("aria-label",
(c=b.idForInputBox)!=null?c:0);B(4);Rf(b.items);B(2);G(Xyd(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 azd=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=azd.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("Ve`"+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 UW={type:"no_indicator",displayText:""},fzd={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."},Oib={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."},gzd={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},Lib={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},VW=function(){this.issueFullFridge=p(nQ);this.componentAccessPolicyFridge=p(SO);this.activeSession=p(Qu)},jzd=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=l(e);e=f.next().value;f=f.next().value;var g,k;var m=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(g=e.accessLimit)==null?void 0:g.accessLevel;if(jO(a.activeSession))g=UW;else if(iO(a.activeSession))g=hzd(m,k,f);else if(a.activeSession.isInternalSession())g=izd(m,k,f);else throw Error("We");return g}))},hzd=function(a,b,c){switch(b){case "INTERNAL":return UW;case "EXTERNAL_PARTNER":return UW;
case "EXTERNAL_PUBLIC":return Pib(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return UW;default:return UW}},izd=function(a,b,c){switch(b){case "INTERNAL":return UW;case "EXTERNAL_PARTNER":return a&&Nib(a)?fzd:gzd;case "EXTERNAL_PUBLIC":return Pib(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return UW;default:return UW}};VW.\u0275fac=function(a){return new (a||VW)};VW.\u0275prov=Fc({token:VW,factory:VW.\u0275fac,providedIn:"root"});var WW=function(){Z.apply(this,arguments);var a=this;this.accessIndicatorService=p(VW);this.documentationLinks=p(hS);this.issueFullFridge=p(nQ);this.issueApi=p(RP);this.compactMode=!1;this.issueId$=new wf;this.accessIndicator$=this.issueId$.pipe(Af(function(b){return jzd(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,Lr),Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(!b||!Vib(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(rs(f.writers)),q(rs(f.appenders)),q(rs(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=FWa(function(){a.loadTooltip$.next()})};Y(WW,Z);WW.\u0275dir=Z.\u0275dir;WW.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(WW.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});WW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(WW)))(b||WW)}}();
WW.\u0275cmp=C({type:WW,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&jg(DA,5);if(a&2){var c;ng(c=og())&&(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,Uib,15,18),T(1,"async"));a&2&&G(U(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[TW,WK,XK,dL,YK,FK,DA,ly],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 XW=function(){Z.apply(this,arguments);this.errorHandler=p(wO);this.issueFullFridge=p(nQ);this.upvoted=!1;this.voteCount=0;this.onVote=new hQ;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Y(XW,Z);XW.\u0275dir=Z.\u0275dir;
XW.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;hjd(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})}};XW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XW)))(b||XW)}}();
XW.\u0275cmp=C({type:XW,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},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",Gg("",b.voteCount," votes on this issue")),B(),S(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[Yy,nC,jC,FK,DA],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 ijb=function(){return[]},YW=function(){Z.apply(this,arguments);var a=this;this.cdr=p(iQ,{self:!0});this.activeSession=p(Qu);this.analytics=p(lQ);this.relationshipService=p(rQ);this.issueFullFridge=p(nQ);this.butterBar=p(gO);this.STATUS_JS_FULL_TEXT=Sm;this.ISSUE_PRIORITY_TEXT_JS=ked;this.ISSUE_PRIORITY_ENUM=Ddd;this.ROUTES=As;this.providedIssueId$=new wf(1);this.issue$=this.providedIssueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}),we(hn));this.FormattingMode=bo;this.init=new wf(1)};
Y(YW,Z);YW.\u0275dir=Z.\u0275dir;YW.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&&C2a(b.description,b);a.cdr.markForCheck();a.init.next()})};YW.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
YW.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 hjb=function(a,b){return Mm(b).includes(a.activeSession.getUserEmail())},cjb=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)})};
YW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YW)))(b||YW)}}();
YW.\u0275cmp=C({type:YW,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},standalone:!1,features:[Ig([iQ]),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,jjb,22,17,"div",1),
L());if(a&2){var c;B();G((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[nC,jC,FK,DA,iV,BV,nU,XW,WW,LW],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 kzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kzd,W);h=kzd.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getText=function(){return xi(this,2)};h.setText=function(a){return Ym(this,2,a)};var lzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lzd.messageId)};Y(lzd,W);lzd.prototype.getIt=function(){return X(this,kzd,3,jb)};lzd.prototype.setIt=function(a){return Zi(this,kzd,3,a,jb)};lzd.messageId="b.CheckBannedWordsRequest";var mzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mzd,W);var nzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nzd.messageId)};Y(nzd,W);nzd.prototype.getIt=function(){return X(this,mzd,2,jb)};nzd.prototype.setIt=function(a){return Zi(this,mzd,2,a,jb)};nzd.messageId="b.CheckBannedWordsResponse";var ZW=function(){this.executor=p(oO)};ZW.prototype.checkBannedWords=function(a){a=(new lzd).setIt((new kzd).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:nzd}).pipe(A(kjb))};ZW.\u0275fac=function(a){return new (a||ZW)};ZW.\u0275prov=Fc({token:ZW,factory:ZW.\u0275fac,providedIn:"root"});var $W=function(){this.observableApi=p(ZW)};$W.prototype.checkBannedWords=function(a){return ie(this.observableApi.checkBannedWords(a))};
$W.\u0275fac=function(a){return new (a||$W)};$W.\u0275prov=Fc({token:$W,factory:$W.\u0275fac,providedIn:"root"});var aX=function(){Z.apply(this,arguments);this.bannedWordsApi=p($W);this.activeSession=p(Qu);this.errorHandler=p(wO);this.analytics=p(lQ);this.matchedPatterns=[];this.warningState$=new Wj("INITIAL");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(A(function(a){return a==="SHOW_WARNING"}))};Y(aX,Z);aX.\u0275dir=Z.\u0275dir;
aX.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(ozd(d,c,a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",Ms(d)),e.return(!0);default:return e.return(!0)}})};
var ozd=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",Ms(a)),f.return(!1)):f.return(!0);e=be(f);yO(a.errorHandler,e);return f.return(!0)})},Ms=function(a){return a.matchedPatterns.join(", ")};
aX.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};aX.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};aX.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(aX)))(b||aX)}}();aX.\u0275prov=Fc({token:aX,factory:aX.\u0275fac});var pzd=["issueTitleCellInputEl"],bX=function(){this.appEvents=p(aP);this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.bannedWordsChecker=p(aX);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new hQ;this.onSave=new hQ;this.issueNavigated=new hQ;this.title="";this.isDataLoaded=!1;this.link=""};
bX.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 ojb=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)}};bX.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):As.viewIssue.makeHref(a)};
var ljb=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},vjb=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,qzd(a),2):(a.issueTitleCellInputEl.nativeElement.focus(),
d.jumpTo(2));Zd(d);a.savingTitle=!1;return ae(d,0)})},qzd=function(a){return y(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),$d(b,2),z(b,ie(ijd(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);Zd(b);a.onSave.emit();return ae(b,0)})};bX.\u0275fac=function(a){return new (a||bX)};
bX.\u0275cmp=C({type:bX,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&jg(pzd,5);if(a&2){var c;ng(c=og())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],hostVars:2,hostBindings:function(a,b){a&2&&yg("isEditMode",b.isEditMode)},inputs:{issue:"issue",issueUrlFactory:"issueUrlFactory",useButtonToNavigate:"useButtonToNavigate",anchorTarget:"anchorTarget",enableHovercard:"enableHovercard",trailingChip:"trailingChip",isEditMode:"isEditMode"},outputs:{onCancel:"onCancel",
onSave:"onSave",issueNavigated:"issueNavigated"},standalone:!1,features:[Ig([aX]),xx],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,pjb,4,3)(3,rjb,1,1,"ng-container"),F(4,sjb,2,7,"span",5),L(),K(5,"onedev-hovercard",null,0),F(7,tjb,1,1,"b-issue-card",
6),L(),F(8,ujb,4,1,"p",7),T(9,"async"),E(10,yjb,2,1,"ng-template",null,1,Og));if(a&2){var c;I("isReady",b.isDataLoaded);B();I("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);B();G(b.useButtonToNavigate?2:3);B(2);G((c=b.trailingChip)?4:-1,c);B(3);G(b.enableHovercard&&b.issue?7:-1);B();G(U(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[AW,ky,Yy,qF,VU,JW,Ij,qE,xE,nC,lC,FK,DA,WK,dL,YW,iW,ly],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 cX=function(a,b){this.checker=a;this.document=b};cX.prototype.focusFirstFocusableElement=function(a){(a=rzd(this,a,!0))&&a.focus()};var rzd=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?rzd(a,b[c]):null;if(d)return d}return null};cX.\u0275fac=function(a){return new (a||cX)(Zc(ez),Zc(Uh))};cX.\u0275prov=Fc({token:cX,factory:cX.\u0275fac,providedIn:"root"});var dX=function(){this.elementRef=p(Jd);this.interactivityHelper=p(cX)};dX.prototype.ngOnInit=function(){};dX.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};da.Object.defineProperties(dX.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});dX.\u0275fac=function(a){return new (a||dX)};
dX.\u0275dir=df({type:dX,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"],standalone:!1});var eX=function(){};eX.\u0275fac=function(a){return new (a||eX)};eX.\u0275mod=cf({type:eX});eX.\u0275inj=Gc({});var szd=function(a,b){Hz.call(this,a);this.directives=a;this.isEqual=b};Y(szd,Hz);var Os=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 tzd=new ed("GM2_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var fX=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};fX.\u0275fac=function(a){return new (a||fX)(Ye(tzd))};fX.\u0275dir=df({type:fX,selectors:[["table","mat-table",""],["mat-table"]],hostAttrs:[1,"gmat-mdc-table"],standalone:!1});var uzd=["componentSearchMenuTrigger"],vzd=["searchInput"],wzd={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},xzd={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},yzd={},zzd=(yzd["Similar issues"]="similar",yzd["Search results"]="exact",yzd["Semantic search results"]="semantic",yzd["Issue IDs"]="id",yzd),Azd={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},nX=function(){Z.apply(this,
arguments);var a=this;this.dialogRef=p(SB);this.initialData=p(UB);this.issueFullFridge=p(nQ);this.issuePickerSearchService=p(zW);this.analytics=p(lQ);this.activeSession=p(Qu);this.componentFridge=p(YO);this.teamFridge=p(ZQ);this.domSafe=p(sR);this.elRef=p(Jd);this.focusTrapFactory=p(zz);this.userPreferencesManager=p(nR);this.issueUserEventsService=p(oW);this.destroyRef=p(Ee);this.isInternalSession=this.activeSession.isInternalSession();this.data=Object.assign({},wzd,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):Fx});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))?!Dm(d,a.DEFAULT_PREFERENCES):!1}),pf(),xf({bufferSize:1,refCount:!0}));this.showFiltersSubject=new Wj(!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 gR;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");this.issueUrlFactory=As.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=
new Wj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(d){return d.trim()}),pf());this.idsInSearchText$=this.searchTextTrimmed$.pipe(A(h9a),A(Jq),A(function(d){return d.filter(function(e){return e.length>=4})}),pf(Dm));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=bS;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(we(hn));
this.selectedFilters$=new gR([]);this.similarIssues$=le([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$,this.showFilters$]).pipe(lf(0,Lr),we(function(d){d=l(d);d.next();d.next();return d.next().value===""&&a.data.defaultChoices.length===0}),Cf(function(){a.isLoading=!0}),Af(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e.next();return e.next().value?Jxd(a.issuePickerSearchService,d,f):Jxd(a.issuePickerSearchService,d,void 0,!0)}),Cf(function(){a.isLoading=
!1}),xf({bufferSize:1,refCount:!0}));this.SearchSource=Azd;this.selectedSearchSource$=new Wj("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=l(d);d=e.next().value;var f=e.next().value;return e.next().value==="Smart search"?(a.analytics.trackEvent("assistive-issue-picker","semantic-search-"+a.data.edgeType),Lxd(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(Dm),Cf(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=Ir(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=f.map(function(g){return g.issueId}).includes(d[0])}),
xf({bufferSize:1,refCount:!0}));this.TableDataSource=xzd;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=l(d);d=e.next().value;var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;return f.length===1?(a.tableDataSource="Issue IDs",a.issuesWithIdMatches$):d?(a.tableDataSource=k==="Smart search"?"Semantic search results":
"Search results",a.searchResults$):e&&e.length>0?(a.tableDataSource="Similar issues",a.defaultChoices$):g?(g.length>0&&(a.tableDataSource="Similar issues"),a.similarIssues$):ee(void 0)}),pf());this.correctedDisplayedRows=new ig;this.isPasteResultInSuggestion=this.isLoading=!1};Y(nX,Z);nX.\u0275dir=Z.\u0275dir;
nX.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(b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(Oxd(this.issuePickerSearchService,this.currentComponentId).subscribe());Bzd(this)};
var Bzd=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H;y(function(J){if(J.nextAddress==1)return b=l,z(J,Promise.all([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;m=d;r=e;w=f;x=g;D=k;m&&a.selectedFilters$.add(a.openFilter);if(r){a.componentFilter=A8a(r,D);if(H=x==="COMPONENT"||x==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=r}w&&(a.teamFilter=z8a(w,D),x==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));ce(J)})};nX.prototype.ngAfterViewInit=function(){this.focusManager=Ez(new szd(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};nX.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
nX.prototype.openFilterChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(bS):b.selectedFilters$.delete(bS),z(d,ie(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return z(d,Czd(b,Object.assign({},c,{open:a!==void 0})),0)})};
var Czd=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)})},Ijb=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,Czd(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},Qjb=function(a){var b,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ie(a.includeDescendants$),
2);case 2:return b=!m.yieldResult,z(m,ie(a.assistiveIssuePickerPreferences$),3);case 3:return c=m.yieldResult,z(m,Czd(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return z(m,ie(a.component$),5);case 5:return d=m.yieldResult,z(m,ie(a.team$),6);case 6:e=m.yieldResult;if(!d)return m.return();f=A8a(d,b);g=new Set(a.selectedFilters$.value);if(!a.componentFilter)return m.return();g.has(a.componentFilter)&&(g.delete(a.componentFilter),g.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
z8a(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(m)}})},tkb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ys(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(hn);a.correctedDisplayedRows.reset(d);mg(a.correctedDisplayedRows);ce(e)})};
nX.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,Dzd(a,b[0]),2)}return z(d,Ezd(a,b[0]),0)})};nX.prototype.onPressCancel=function(){this.dialogRef.close()};nX.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
nX.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var Mjb=function(a,b){var c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return r.return();if(c=!b){r.jumpTo(2);break}return z(r,ie(a.component$),3);case 3:c=r.yieldResult===b;case 2:if(c)return r.return();d=A8a;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,Czd(a,Object.assign({},g,{componentScope:b.componentId})),
6);case 6:return k=Set,z(r,ie(a.selectedFilters$.value$),7);case 7:m=new k(r.yieldResult),m.delete(a.componentFilter),m.add(f),a.componentFilter=f,a.selectedFilters$.reset(m),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),ce(r)}})},Ejb=function(a){return y(function(b){if(b.nextAddress==1)return z(b,ie(a.component$),2);a.selectedComponent=b.yieldResult;ce(b)})},Ezd=function(a,b){var c,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return a.data.edgeType!==
"canonical"?r.return():z(r,ie(a.issueFullFridge.watch(b)),2);if(r.nextAddress!=3)return(c=r.yieldResult)?z(r,Fzd(a,b),3):r.return();d=r.yieldResult;e=zzd[a.tableDataSource];a.analytics.trackEvent("assistive-issue-picker","picked-c-canonical",d?e+"-hit":e+"-miss",d?1:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","dupe-count",(g=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?g:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(m=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?m:0);ce(r)})};nX.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);pEc(this.focusTrap)};
var Dzd=function(a,b){var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ie(a.similarIssues$),2);case 2:d=(c=m.yieldResult)!=null?c:[];e=d.find(function(r){return r.issueId===b});f=!!e;g=zzd[a.tableDataSource];if(d.length===0){a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,g+"-empty");m.jumpTo(0);break}a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?g+"-hit":g+"-miss",f?1:0);if(!f){m.jumpTo(0);break}if(a.tableDataSource!==
"Similar issues"){m.jumpTo(5);break}return z(m,ie(a.currentIssueId$),6);case 6:k=m.yieldResult,a.issueUserEventsService.logIssueUserEvent(k,"FEATURE_SIMILAR_ISSUES","EVENT_TYPE_CLOSE_AS_DUPLICATE").pipe(fj(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(m)}})},Fzd=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(Oxd(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};nX.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};var Gjb=function(a){return a.startsWith("Component:")?"Component":a};nX.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nX)))(b||nX)}}();
nX.\u0275cmp=C({type:nX,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(jg(uzd,5),jg(vzd,5),jg(dX,5));if(a&2){var c;ng(c=og())&&(b.trigger=c.first);ng(c=og())&&(b.inputEl=c.first);ng(c=og())&&(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,Ajb,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,Djb,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=sg(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,Tjb,2,3);T(18,"async");Nf(19,Vjb,4,1,"div",13);L();F(20,Zjb,5,3,"div",14);F(21,wkb,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:[Yy,fL,nL,mL,lL,BW,GW,Sxd,IW,bX,nC,jC,lC,YB,$B,ZB,eK,pH,nH,oH,sH,zT,AT,EU,cI,xA,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,FK,DA,ytd,iU,dX,JU,KU,rW,ly],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 Gzd=function(){this.enrichmentCategoryFridge=p(CP);this.enrichmentCategoryNames=[]},Akb=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:""}))};Gzd.\u0275fac=function(a){return new (a||Gzd)};
Gzd.\u0275cmp=C({type:Gzd,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&&Qf(0,Bkb,2,3,null,null,Pf);a&2&&Rf(b.enrichmentCategoryNames)},dependencies:[WK,dL,ly],encapsulation:2,changeDetection:0});var Hzd=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new hQ;this.onCancelOutput=new hQ;this.expansionChange=new hQ;this.title=""};Hzd.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};Hzd.\u0275fac=function(a){return new (a||Hzd)};
Hzd.\u0275cmp=C({type:Hzd,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&jg(bX,7);if(a&2){var c;ng(c=og())&&(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:[xx],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,Ckb,2,3,"button",1)(2,Dkb,1,0,"div",2),K(3,"b-issue-title-cell",3),N("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),L()());a&2&&(xg("margin-left",b.level*24,"px"),B(),G(b.expandable?
1:2),B(2),I("issue",b.issue)("isEditMode",b.isEditMode))},dependencies:[nC,lC,yT,bX],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 oX=function(){this.tooltip=this.displayText=this.chipColor=""};oX.\u0275fac=function(a){return new (a||oX)};
oX.\u0275cmp=C({type:oX,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,Ekb,1,1,"mat-icon",1),Q(2),L());a&2&&(zg("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:[FK,
DA,Yy],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 pX=function(){this.issueService=p(YP);this.issueExperimentalFieldsFridge=p($P);this.isDataLoaded=!1;this.alerts=[]};pX.prototype.ngOnInit=function(){};var Gkb=function(a){return a.alerts.filter(function(b){return v8a(a.issue,b)})};
pX.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,Did(a.issueService,b),0)})};pX.\u0275fac=function(a){return new (a||pX)};
pX.\u0275cmp=C({type:pX,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),bg(1),F(2,Fkb,3,3),F(3,Hkb,2,2,"div",2),L(),E(4,Jkb,4,0,"ng-template",null,0,Og));a&2&&(B(),a=cg(Gkb(b)[0]),B(),G(a?2:-1),B(),G(Gkb(b).slice(1).length?3:-1))},dependencies:[Yy,nC,lC,FK,DA,oX,eC,bC,uL],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 qX=function(){this.issue=null;this.isDataLoaded=!1};qX.prototype.ngOnChanges=function(){var a;this.assignee=Lbb(Om((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};qX.\u0275fac=function(a){return new (a||qX)};
qX.\u0275cmp=C({type:qX,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},standalone:!1,features:[xx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Kkb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.assignee?1:-1))},dependencies:[AW,mT],encapsulation:2,changeDetection:0});var rX=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};rX.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};rX.\u0275fac=function(a){return new (a||rX)};
rX.\u0275cmp=C({type:rX,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},standalone:!1,features:[xx],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,Lkb,1,3,"b-team-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.teamId?1:-1))},dependencies:[AW,MV],encapsulation:2,changeDetection:0});var sX=function(){this.activeSession=p(Qu);this.issueExperimentalFieldsFridge=p($P);this.analytics=p(lQ)};sX.prototype.ngOnInit=function(){};sX.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")};sX.\u0275fac=function(a){return new (a||sX)};
sX.\u0275cmp=C({type:sX,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,Mkb,1,1,"b-user-image",0)(1,Nkb,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:[nC,jC,kV],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 tX=function(){this.type=this.issue=null;this.isDataLoaded=!1};tX.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};tX.\u0275fac=function(a){return new (a||tX)};
tX.\u0275cmp=C({type:tX,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},standalone:!1,features:[xx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Okb,3,3,"ng-container"),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.type?1:-1))},dependencies:[AW,lV],encapsulation:2,changeDetection:0});var Izd=function(){};Izd.prototype.transform=function(a){return OXa(a)};Izd.\u0275fac=function(a){return new (a||Izd)};Izd.\u0275pipe=ef({name:"toCustomFieldTypeDisplayValue",type:Izd,pure:!0,standalone:!1});var uX=function(){};uX.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+"@"};uX.\u0275fac=function(a){return new (a||uX)};uX.\u0275pipe=ef({name:"shortenEmail",type:uX,pure:!0,standalone:!1});var vX=function(){};vX.prototype.transform=function(a){if(!a||!a.length)return"";var b=(new Set(a.filter(function(c){return!!c.user}).map(function(c){return Eo(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"?ir[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};vX.\u0275fac=function(a){return new (a||vX)};
vX.\u0275pipe=ef({name:"staffingSummary",type:vX,pure:!0,standalone:!1});var wX=function(){};wX.\u0275fac=function(a){return new (a||wX)};wX.\u0275mod=cf({type:wX});wX.\u0275inj=Gc({imports:[cP]});var xX=function(){};xX.\u0275fac=function(a){return new (a||xX)};xX.\u0275mod=cf({type:xX});xX.\u0275inj=Gc({imports:[ty,lA]});var yX=function(){};yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275mod=cf({type:yX});yX.\u0275inj=Gc({imports:[cP,wX,xX]});var zX=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)};zX.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
zX.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};zX.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"};zX.\u0275fac=function(a){return new (a||zX)};
zX.\u0275dir=df({type:zX,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 Jzd=function(){};Jzd.\u0275fac=function(a){return new (a||Jzd)};Jzd.\u0275mod=cf({type:Jzd});Jzd.\u0275inj=Gc({});var AX=function(){this.activeSession=p(Qu);this.sessionIsExternal=this.activeSession.isExternalSession()};AX.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!po(this.email)};AX.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};AX.\u0275fac=function(a){return new (a||AX)};
AX.\u0275cmp=C({type:AX,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&&(eg(),F(0,Tkb,16,5)(1,Vkb,1,1,"ng-container"),E(2,Wkb,1,0,"ng-template",null,0,Og));a&2&&G(po(b.email)?0:1)},dependencies:[ky,Yy,WK,dL],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 BX=function(){};BX.\u0275fac=function(a){return new (a||BX)};BX.\u0275mod=cf({type:BX});BX.\u0275inj=Gc({imports:[cP,eL]});var Kzd=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};Kzd.\u0275fac=function(a){return new (a||Kzd)};
Kzd.\u0275cmp=C({type:Kzd,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&&(eg(),K(0,"xap-text-trigger",1),Q(1),L(),E(2,Xkb,3,0,"ng-template",null,0,Og));a&2&&(a=sg(3),I("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",
a),B(),S(" ",b.displayText,"\n"))},dependencies:[eC,bC,uL,vL],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var Lzd=function(){};Lzd.\u0275fac=function(a){return new (a||Lzd)};Lzd.\u0275mod=cf({type:Lzd});Lzd.\u0275inj=Gc({imports:[eC,vL]});var CX=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 hQ;this.chipClear=new hQ;this.chipRemove=new hQ};Y(CX,Z);CX.\u0275dir=Z.\u0275dir;h=CX.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("Ve`"+this.value);}};
var Mzd=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};CX.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(CX)))(b||CX)}}();
CX.\u0275cmp=C({type:CX,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,Ykb,1,1,"mat-icon",2),L(),K(3,"div",3),F(4,Zkb,2,2,"b-person-hovercard",4),F(5,$kb,2,2,"b-group-email-card",4),F(6,dlb,3,3,"b-text-with-tooltip",5),L(),F(7,elb,2,3,"div",6),L());if(a&2){var c;yg("bv2-user-chip-external",b.isExternalChip())("bv2-user-chip-non-gaia",b.isNonGaiaChip())("bv2-user-chip-not-accessible",b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated())("bv2-user-chip-container",
b.isContainerChip())("selected",b.isSelected)("readonly",b.isReadonly);B(2);G((c=Mzd(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:[Yy,FK,DA,mT,AX,Kzd,CX],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 DX=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 gj;this.sessionOptions=(new vv).setFilter(Nzd);this.inputSearchDelay=0;this.inputChanged$=new wf(1)};h=DX.prototype;h.ngOnDestroy=function(){this.autocomplete.dispose()};
h.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);vib(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),
fj(this.destroyRef)).subscribe(function(){a.search()})};
h.getAnchor=function(){if(!this.peopleKitService.autocompleteAnchor){var a=this.renderer.createElement("div"),b="showPopover"in a;this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");b&&(this.renderer.setAttribute(a,"popover","manual"),this.renderer.setStyle(a,"overflow","visible"),this.renderer.setStyle(a,"border","none"),this.renderer.setStyle(a,"background","none"),this.renderer.setStyle(a,"padding","0"));var c;((c=pOa(this.inputEl.nativeElement))!=
null?c:this.document.body).append(a)}return this.peopleKitService.autocompleteAnchor};h.search=function(){var a=this;this.zone.runOutsideAngular(function(){var b=a.getAnchor();b.hasAttribute("popover")&&(b.hidePopover(),b.showPopover());a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};h.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};
DX.\u0275fac=function(a){return new (a||DX)(Ye(yyd),Ye(Uh),Ye(SW),Ye(Jd),Ye(Tg),Ye(fi),Ye(Ee))};
DX.\u0275dir=df({type:DX,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 Nzd=oib(1);var EX=function(){this.selectionChange=new gj;this.sessionOptions=(new vv).setFilter(Ozd);this.clientConfig=p(yyd);this.document=p(Uh);this.peopleKitService=p(SW);this.elementRef=p(Jd);this.zone=p(Tg);this.renderer=p(fi);this.destroyRef=p(Ee);this.queryChanged$=new wf(1)};
EX.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);vib(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(fj(this.destroyRef)).subscribe(function(c){c!==void 0&&a.search(c)})};
EX.prototype.getAnchor=function(){if(this.peopleKitService.autocompleteAnchor)return this.peopleKitService.autocompleteAnchor;var a=this.renderer.createElement("div"),b="showPopover"in a;this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");b&&(this.renderer.setAttribute(a,"popover","manual"),this.renderer.setStyle(a,"overflow","visible"),this.renderer.setStyle(a,"border","none"),this.renderer.setStyle(a,"background","none"),this.renderer.setStyle(a,
"padding","0"));var c;((c=pOa(this.elementRef.nativeElement))!=null?c:this.document.body).append(a);return a};EX.prototype.search=function(a){var b=this;this.zone.runOutsideAngular(function(){var c=b.getAnchor();c.hasAttribute("popover")&&(c.hidePopover(),c.showPopover());b.autocomplete.search(a,b.elementRef.nativeElement)})};EX.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};
da.Object.defineProperties(EX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){this.queryChanged$.next(a)}}});EX.\u0275fac=function(a){return new (a||EX)};EX.\u0275dir=df({type:EX,selectors:[["","peoplekitManualAutocomplete",""]],inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],query:"query"},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},exportAs:["peoplekitManualAutocomplete"]});
var Ozd=oib(1);var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=cf({type:FX});FX.\u0275inj=Gc({});var GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=cf({type:GX});GX.\u0275inj=Gc({imports:[cP,OE,GK,oU,BX,pV,Jzd,FX,Lzd]});Toa(TW,[Ij,qE,xE,zX,DX,CX],[]);var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=cf({type:HX});HX.\u0275inj=Gc({imports:[cP,wX,GX,eL,GK]});var IX=function(){};IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275mod=cf({type:IX});IX.\u0275inj=Gc({imports:[cP,pC,GK]});var JX=function(){};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=cf({type:JX});JX.\u0275inj=Gc({providers:[{provide:bnd,useValue:YW}],imports:[cP,yX,pC,GK,rV,GV,IU,IX,HX]});var KX=function(){};KX.\u0275fac=function(a){return new (a||KX)};KX.\u0275mod=cf({type:KX});KX.\u0275inj=Gc({imports:[cP]});var Pzd={provide:PFc,deps:[iA],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},Qzd=Kh({passive:!0}),LX=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=g;this._focusMonitor=k;this._dir=r;this._defaultOptions=w;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new sf;this._scrollStrategy=m;this._document=x;w&&(this._showDelay=w.showDelay,this._hideDelay=w.hideDelay,w.position&&(this.position=w.position),w.positionAtOrigin&&(this.positionAtOrigin=w.positionAtOrigin),w.touchGestures&&(this.touchGestures=w.touchGestures));r.change.pipe(Bf(this._destroyed)).subscribe(function(){D._overlayRef&&D._updatePosition(D._overlayRef)})};
h=LX.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=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,Qzd)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();wz(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 cA(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=LEc(this._scrollDispatcher,this._elementRef);a=dFc(Vz(Wz(hFc($z(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&&!Jh(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();Uz(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=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,Qzd)})};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(LX.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=Oh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Oh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Rh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Rh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;wz(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(){vz(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)}}});LX.\u0275fac=function(){Ze()};
LX.\u0275dir=df({type:LX,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 MX=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new sf;this._animationsDisabled=b==="NoopAnimations"};h=MX.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))};
MX.\u0275fac=function(a){return new (a||MX)(Ye(Px),Ye(mi,8))};MX.\u0275dir=df({type:MX,standalone:!1});var Rzd=["tooltip"],OX=function(a,b,c,d,e,f,g,k,m,r,w,x){LX.call(this,a,b,c,d,e,f,g,k,m,r,w,x);this._tooltipComponent=NX};Y(OX,LX);OX.\u0275fac=function(a){return new (a||OX)(Ye(iA),Ye(Jd),Ye(Vh),Ye(hg),Ye(Tg),Ye(Yh),Ye(uz),Ye(bz),Ye(PFc),Ye(ei,8),Ye(QFc,8),Ye(Uh))};OX.\u0275dir=df({type:OX,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[Gf]});
var NX=function(a,b,c){MX.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(NX,MX);NX.\u0275dir=MX.\u0275dir;NX.\u0275fac=function(a){return new (a||NX)(Ye(Px),Ye(mz),Ye(mi,8))};
NX.\u0275cmp=C({type:NX,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&jg(Rzd,7);if(a&2){var c;ng(c=og())&&(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),xg("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;yg("mat-tooltip-handset",(d=U(2,4,b._isHandset))==null?null:d.matches);I("ngClass",b.tooltipClass);B(3);Ag(b.message)}},dependencies:[Yx,ly],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 PX=function(){};PX.\u0275fac=function(a){return new (a||PX)};PX.\u0275mod=cf({type:PX});PX.\u0275inj=Gc({providers:[Pzd],imports:[tz,ty,lA,Zy,Rz]});var QX=function(){};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275mod=cf({type:QX});QX.\u0275inj=Gc({imports:[ty,lA,hA,bJ,PX,tz,UK]});var RX=function(){};RX.\u0275fac=function(a){return new (a||RX)};RX.\u0275mod=cf({type:RX});RX.\u0275inj=Gc({imports:[tz,cP,wU,pC,GK,QX]});var Szd=function(){var a=this;this.componentFridge=p(YO);this.trackerHelpers=p(pS);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=l(b);b=c.next().value;c=c.next().value;
return c?(b=Du(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":b||""}))};da.Object.defineProperties(Szd.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});Szd.\u0275fac=function(a){return new (a||Szd)};
Szd.\u0275cmp=C({type:Szd,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,flb,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:[AW,FK,DA,ly],encapsulation:2,changeDetection:0});var Tzd=function(){this.issue=null;this.isDataLoaded=!1};Tzd.prototype.ngOnChanges=function(){var a;this.reporter=Lbb(Om((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};Tzd.\u0275fac=function(a){return new (a||Tzd)};
Tzd.\u0275cmp=C({type:Tzd,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},standalone:!1,features:[xx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,glb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.reporter?1:-1))},dependencies:[AW,mT],encapsulation:2,changeDetection:0});var Uzd=["theInput"],Vzd=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new hQ;this.commit=new hQ};Vzd.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};Vzd.\u0275fac=function(a){return new (a||Vzd)};
Vzd.\u0275cmp=C({type:Vzd,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&jg(Uzd,5);if(a&2){var c;ng(c=og())&&(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&&(yg("readonly",b.readonly)("override",b.readonly),I("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Ij,qE,xE],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 SX=function(){};SX.\u0275fac=function(a){return new (a||SX)};SX.\u0275mod=cf({type:SX});SX.\u0275inj=Gc({imports:[cP,eL,pC]});var TX=function(){};TX.\u0275fac=function(a){return new (a||TX)};TX.\u0275mod=cf({type:TX});TX.\u0275inj=Gc({imports:[cP]});var UX=function(){};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=cf({type:UX});UX.\u0275inj=Gc({imports:[TX,pV,cP,WU,GV,KW,OE,pC,GK,eL,MU,JX,RX,KX,oU,NV,SX,oX,rV,eC]});var VX=function(){};VX.\u0275fac=function(a){return new (a||VX)};VX.\u0275mod=cf({type:VX});VX.\u0275inj=Gc({imports:[wJ]});var WX=function(){};WX.\u0275fac=function(a){return new (a||WX)};WX.\u0275mod=cf({type:WX});WX.\u0275inj=Gc({imports:[cP,OE,pC,sK,GK,VX,cK,lA,hA,SX,tz,pV,yX]});var XX=function(){};XX.\u0275fac=function(a){return new (a||XX)};XX.\u0275mod=cf({type:XX});XX.\u0275inj=Gc({imports:[PU]});var Wzd=function(){};Wzd.\u0275fac=function(a){return new (a||Wzd)};Wzd.\u0275mod=cf({type:Wzd});Wzd.\u0275inj=Gc({imports:[cP,pL,QL,UX,pC,cK,fK,NU,FU,XX,GK,kU,eX,LU,WX]});var YX=function(){this.issuesApi=p(SP)};YX.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})};YX.\u0275fac=function(a){return new (a||YX)};YX.\u0275prov=Fc({token:YX,factory:YX.\u0275fac,providedIn:"root"});var Xzd=new ed("GM2_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Yzd=["panel"],Zzd=function(a,b){this.source=a;this.option=b},$zd=new ed("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}}),ZX=function(){this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._defaults=p($zd);this._animationsDisabled=pi();this._activeOptionChanges=Rd.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=
new gj;this.opened=new gj;this.closed=new gj;this.optionActivated=new gj;this.id=p(di).getId("mat-autocomplete-");p(Yh);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=ZX.prototype;h._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};
h._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};h.ngAfterContentInit=function(){var a=this;this._keyManager=Bz(new Gz(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 Zzd(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(ZX.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()}}});ZX.\u0275fac=function(a){return new (a||ZX)};
ZX.\u0275cmp=C({type:ZX,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(kg(c,xA,5),kg(c,tFc,5));if(a&2){var d;ng(d=og())&&(b.options=d);ng(d=og())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(jg(gg,7),jg(Yzd,5));if(a&2){var c;ng(c=og())&&(b.template=c.first);ng(c=og())&&(b.panel=c.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,
"autoActiveFirstOption","autoActiveFirstOption",bh],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",bh],requireSelection:[2,"requireSelection","requireSelection",bh],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",bh],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",bh]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[Ig([{provide:sFc,useExisting:ZX}])],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&&(eg(),If(0,hlb,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden,.cdk-overlay-pane:has(>.mat-mdc-autocomplete-hidden){visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],
encapsulation:2,changeDetection:0});var aAd={provide:lE,useExisting:Xc(function(){return $X}),multi:!0},bAd=new ed("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Wh(a)}}}),$X=function(){var a=this;this._environmentInjector=p($e);this._element=p(Jd);this._injector=p(Ae);this._viewContainerRef=p(hg);this._zone=p(Tg);this._changeDetectorRef=p(Px);this._dir=p(ei,{optional:!0});this._formField=p(XQc,{optional:!0,host:!0});this._viewportRuler=p(Th);this._scrollStrategy=p(bAd);
this._renderer=p(fi);this._animationsDisabled=pi();this._defaults=p($zd,{optional:!0});this._componentDestroyed=!1;this._initialized=new sf;this._manuallyFloatingLabel=!1;this._viewportSubscription=Rd.EMPTY;this._breakpointObserver=p(mz);this._handsetLandscapeSubscription=Rd.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new sf;var b;this._overlayPanelClass=Nh(((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&&!Jh(c)||c.keyCode===38&&Jh(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};$X.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};
$X.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};$X.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 jKb=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&&
Sh(a._trackedModal,"aria-owns",a.autocomplete.id))};h=$X.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=Mh(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=Jh(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 Lh()===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 cFc(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&&(jKb(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));jKb(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&&Qra(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 dA(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=ni(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?Vz(eFc(Wz(b._positionStrategy,!0),!0),8):Vz(eFc(Wz(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 gi({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=iFc(fFc(Wz($h(this._injector,this._getConnectedElement()),!1),!1),"inline");this._setStrategyPositions(a);return this._positionStrategy=a};
h._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"}];b=this.position==="above"?c:this.position==="below"?b:[].concat(q(b),q(c));Uz(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=osa(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(psa(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&&Sh(this._trackedModal,"aria-owns",b);Qra(a,"aria-owns",b);this._trackedModal=a}};h._clearFromModal=function(){this._trackedModal&&(Sh(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
da.Object.defineProperties($X.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 JFc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});$X.\u0275fac=function(a){return new (a||$X)};
$X.\u0275dir=df({type:$X,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",bh]},exportAs:["matAutocompleteTrigger"],features:[Ig([aAd]),xx]});var aY=function(){};aY.\u0275fac=function(a){return new (a||aY)};aY.\u0275mod=cf({type:aY});aY.\u0275inj=Gc({imports:[lA,AA,Rz,AA,Zy]});var bY=function(){if(p(Xzd).disableGmatStyle)throw Error("wb");var a=p($X,{self:!0,optional:!0});a&&a._overlayPanelClass.push("gmat-mdc-autocomplete")};bY.\u0275fac=function(a){return new (a||bY)};bY.\u0275dir=df({type:bY,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1});var cY=function(){Z.apply(this,arguments);var a=this;this.cdr=p(iQ,{self:!0});this.paths=p(vW);this.issueFullFridge=p(nQ);this.relatedIssues=p(YX);this.errorHandler=p(wO);this.domSafe=p(sR);this.activeSession=p(Qu);this.STATUS_ICON=med;this.entrySelect=new hQ;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new hQ;this.getTextToPutInInputOnSelect=function(){return a.query}};
Y(cY,Z);cY.\u0275dir=Z.\u0275dir;cY.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(lf(250),Bf(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};cY.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(q(this.defaultChoices),q(this.asyncChoices)))};cY.prototype.selectIssue=function(a){cAd(this,[a])};
var eAd=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(dAd(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return B$a(b)?[b]:[]},dAd=function(a){return!a.some(function(b){return!B$a(b)})};cY.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
cY.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")fAd(this);else{var b=eAd(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",gAd(this,b,a)):(this.lastSearchType="query",hAd(this,a))}};
var fAd=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;cAd(a,[])},cAd=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||jKb(c)},gAd=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,fAd(a)):(a.choices=iAd(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 m=Ia(k.snapshot);return g.set(k.issueId,{resourceId:k.issueId,displayText:m.title,status:m.status,relations:[]})},new Map);Cba(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));cAd(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},hAd=function(a,b){a.choices=jAd(a,b);a.hasLoadedResults=
!1;if(ya(b))a.hasLoadedResults=!0;else{var c=kAd(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})}},iAd=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},jAd=function(a,b){return ya(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};cY.prototype.getIssueLink=function(a){return Cs(a.resourceId)};
var nlb=function(a){return a.relations.map(function(b){return lAd.get(b)}).filter(function(b){return!!b}).join("/")},kAd=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};cY.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};da.Object.defineProperties(cY.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
cY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(cY)))(b||cY)}}();
cY.\u0275cmp=C({type:cY,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&jg($X,5);if(a&2){var c;ng(c=og())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},standalone:!1,features:[Ig([YX,iQ]),Gf,xx],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,ilb,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,jlb,3,1,"mat-option",7);F(7,klb,2,0,"mat-option",8);Qf(8,olb,14,15,"mat-option",9,Pf);L()()()}a&2&&(a=sg(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(),Rf(b.choices))},dependencies:[Yy,Ij,qE,xE,WK,XK,dL,YK,YW,bY,ZX,xA,$X,nC,lC,iU,mV],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 lAd=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var mAd=function(){this.dialogRef=p(SB);this.params=p(bR);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=p(UB);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},slb=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(hs(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};h=mAd.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()};mAd.\u0275fac=function(a){return new (a||mAd)};
mAd.\u0275cmp=C({type:mAd,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&jg(cY,5);if(a&2){var c;ng(c=og())&&(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,qlb,3,0,"div",3),F(5,rlb,6,3,"div",3),L(),K(6,"div",4)(7,"div",5),F(8,tlb,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(),yg("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),I("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),B(4),I("disabled",!b.selectedIssues.length))},dependencies:[Yy,nC,jC,YB,$B,ZB,FK,DA,cY],encapsulation:2});var dY=function(){};dY.\u0275fac=function(a){return new (a||dY)};dY.\u0275mod=cf({type:dY});dY.\u0275inj=Gc({imports:[aY]});var nAd=function(){};nAd.\u0275fac=function(a){return new (a||nAd)};nAd.\u0275mod=cf({type:nAd});nAd.\u0275inj=Gc({imports:[pV,cP,OE,eL,JX,dY,pC,cK,GK,kU]});var oAd=new ed("XapHatsSurveyApiKey"),pAd=new ed("XapHatsSurveyLocale"),qAd=new ed("XapHatsSurveyWindow"),rAd=new ed("XapHatsSurveyListnrProductId");var sAd=new Map([[0,1],[1,2]]),tAd={anchor:1,verticalMargin:0,horizontalMargin:0},eY=function(a,b,c,d,e){var f=function(){var g={apiKey:a,locale:c!=null?c:"en-US",window:d};g=Ucd(Zcd,"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 Ycd(g)};this.helpService=e?e.runOutsideAngular(f):f()},uAd=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?sAd.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({},tAd,d.placement)}}});g.next(f.surveyMetadata)})}))};eY.\u0275fac=function(a){return new (a||eY)(Zc(oAd),Zc(rAd),Zc(pAd,8),Zc(qAd,8),Zc(Tg,8))};eY.\u0275prov=Fc({token:eY,factory:eY.\u0275fac,providedIn:"root"});var fY=function(){this.dialog=p(VB);this.analytics=p(lQ);this.hatsService=p(eY);this.activeSession=p(Qu)};
fY.prototype.open=function(a,b){var c=this,d=vAd(a),e=d.dialog,f=d.config;return new Promise(function(g){TB(c.dialog.open(e,f)).subscribe(function(k){var m,r=(m=k==null?void 0:k.selectedIssueIds)!=null?m:[],w;k=(w=k==null?void 0:k.lastSearchType)!=null?w:"";w=[a.originIsBulk?"bulk":void 0,r.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",w,k);b==null||b(r);g(r);c.activeSession.isInternalSession()&&k==="id"&&uAd(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(nf(1)).subscribe()})})};
var vAd=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:nX,config:b}):{dialog:mAd,config:b}};fY.\u0275fac=function(a){return new (a||fY)};fY.\u0275prov=Fc({token:fY,factory:fY.\u0275fac,providedIn:"root"});var wAd=function(){};wAd.\u0275fac=function(a){return new (a||wAd)};wAd.\u0275mod=cf({type:wAd});wAd.\u0275inj=Gc({imports:[nAd,Wzd]});var xAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xAd,W);xAd.prototype.getContentJudgement=function(){return X(this,Wo,1)};xAd.prototype.setContentJudgement=function(a){return Zi(this,Wo,1,a)};var yAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yAd,W);yAd.prototype.getContentJudgement=function(){return X(this,Wo,1)};yAd.prototype.setContentJudgement=function(a){return Zi(this,Wo,1,a)};var zAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zAd.messageId)};Y(zAd,W);zAd.prototype.getIt=function(){return X(this,xAd,4,jb)};zAd.prototype.setIt=function(a){return Zi(this,xAd,4,a,jb)};zAd.messageId="b.CreateContentJudgementRequest";var AAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AAd,W);var BAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BAd.messageId)};Y(BAd,W);BAd.prototype.getIt=function(){return X(this,AAd,2,jb)};BAd.prototype.setIt=function(a){return Zi(this,AAd,2,a,jb)};BAd.messageId="b.ListContentJudgementsResponse";var CAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,CAd.messageId)};Y(CAd,W);CAd.prototype.getIt=function(){return X(this,yAd,2,jb)};CAd.prototype.setIt=function(a){return Zi(this,yAd,2,a,jb)};CAd.messageId="b.UpdateContentJudgementRequest";var gY=function(){this.executor=p(oO)};gY.prototype.create=function(a,b,c){var d=new zAd,e=d.setIt,f=new xAd,g=f.setContentJudgement;a=i2a(tXa({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}));a=$m(a,6,2);d=e.call(d,g.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:Vr}).pipe(A(g_a))};
gY.prototype.update=function(a){var b=i2a(tXa(a));b=Zw(b,9);b=(new CAd).setIt((new yAd).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:Vr}).pipe(A(g_a))};gY.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:BAd}).pipe(A(function(b){b=b.getIt();return Ni(b,Wo,1,Oi()).map(uXa)}))};gY.\u0275fac=function(a){return new (a||gY)};
gY.\u0275prov=Fc({token:gY,factory:gY.\u0275fac,providedIn:"root"});var hY=function(){var a=this;this.dialogRef=p(SB);this.documentationLinks=p(hS);this.contentJudgements=p(gY);this.activeSession=p(Qu);this.data=p(UB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=Jdd;this.loaded=!1;this.minimumSeverity="RESTRICTION_SEVERITY_UNSPECIFIED";this.severity=this.data.severity;this.data.resourcePath?this.contentJudgements.list(this.data.resourcePath).subscribe(function(b){var c="RESTRICTION_SEVERITY_UNSPECIFIED";b=l(b);for(var d=b.next();!d.done;d=
b.next())d=d.value,Om(d.judge)===a.activeSession.getUserEmail()?DAd(a,d):EAd(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;EAd(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(DAd(this,this.data.contentJudgement),this.loaded=!0)};hY.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var EAd=function(a,b){return ulb(a)>ulb(b)},DAd=function(a,b){if(a.judgement=b)a.severity=b.severity},FAd=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.";
EAd(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};hY.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};
hY.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()})};hY.prototype.onNoClick=function(){this.dialogRef.close(null)};hY.\u0275fac=function(a){return new (a||hY)};
hY.\u0275cmp=C({type:hY,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),Eg("ngModelChange",function(c){Dg(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(" ",FAd(b)," "),B(),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(2),Cg("ngModel",b.severity),B(),I("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||EAd(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||EAd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||EAd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),B(7),I("disabled",!b.canInteract()))},dependencies:[Yy,nC,jC,YB,$B,ZB,zT,AT,qE,xE],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 iY=function(){this.dialogRef=p(SB);this.documentationLinks=p(hS);this.data=p(UB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};iY.prototype.canInteract=function(){return!GAd(this)||this.acknowledgeToMatchIssueRetention};var GAd=function(a){return a.piiRetention==="INDEFINITE"};iY.prototype.onSaveClick=function(){this.dialogRef.close(1)};iY.prototype.onNoClick=function(){this.dialogRef.close(0)};
iY.\u0275fac=function(a){return new (a||iY)};
iY.\u0275cmp=C({type:iY,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,vlb,2,1,"span")(4,wlb,2,0,"span"),L()(),K(5,"div",2),F(6,xlb,8,1,"span")(7,ylb,3,2,"span"),K(8,"span")(9,"a",3),Q(10," Learn More "),L()(),K(11,"div")(12,"span"),F(13,zlb,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(GAd(b)?3:4),B(3),G(GAd(b)?6:7),B(3),I("rel",b.EXTERNAL_LINK_REL),Kf("href",Lu(),Pe),B(4),G(GAd(b)?13:-1),B(4),I("disabled",!b.canInteract()))},dependencies:[Yy,nC,jC,YB,$B,ZB,xL,rI,qE,xE],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var HAd=function(){this.activeSession=p(Qu);this.errorHandler=p(wO);this.eventsForIssueFridge=p(TP);this.issueFullFridge=p(nQ);this.issueCommentsService=p(xS);this.issueInteractionsTracking=p(JS);this.butterBar=p(gO);this.editIssueService=p(NS);this.formattedCommentsForIssueFridge=p(VP);this.userPreferencesManager=p(nR)},IAd=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;var g=b.recaptchaToken;var k,m;y(function(r){switch(r.nextAddress){case 1:k=
a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),r.return();as(k,"commentEdit");$r(a.butterBar,"Saving comment edit...",0);bs(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:$r(a.butterBar,"Comment edit successful.",4E3),a.eventsForIssueFridge.manualUpdate(c,function(w){w.events=DVa(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);LS(k,"commentEdit");ae(r,0);break;case 2:m=be(r),yO(a.errorHandler,m),r.jumpTo(3)}})};HAd.\u0275fac=function(a){return new (a||HAd)};HAd.\u0275prov=Fc({token:HAd,factory:HAd.\u0275fac,providedIn:"root"});var JAd=function(a,b,c,d){this.objectId=a;this.version=b;this.payload=c;this.isReplay=d===void 0?!1:d},KAd=function(){},LAd=function(a){this.timestampMicros=a};Alb.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var MAd=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 jY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jY,W);var OAd=function(){var a=new jY;return gp(a,1,NAd,yb(!0))},PAd=function(){var a=new jY;return gp(a,2,NAd,yb(!0))},NAd=[1,2,3,15];var dmb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dmb,W);var cmb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cmb,W);var dt=[1,2,3,4,5,6,7,8,9,10,11,12,13];var ct=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ct,W);ct.prototype.getPartsList=function(){return Ni(this,cmb,1,Oi())};ct.prototype.addParts=function(a){return bq(this,1,cmb,a)};var bt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bt,W);bt.prototype.getName=function(){return nw(this,1,QAd)};bt.prototype.setName=function(a){return Ro(this,1,QAd,a)};bt.prototype.hasName=function(){return wr(this,1,QAd)!=null};bt.prototype.getNameOrUndefined=function(){return wr(this,1,QAd)};var QAd=[1,2];var RAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RAd,W);h=RAd.prototype;h.setProject=function(a){Zi(this,bt,1,a)};h.getOwner=function(){return X(this,jY,2)};h.setOwner=function(a){return Zi(this,jY,2,a)};h.getPath=function(){return X(this,ct,3)};h.setPath=function(a){return Zi(this,ct,3,a)};h.hasPath=function(){return Ji(this,ct,3)};var SAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SAd,W);h=SAd.prototype;h.setProject=function(a){Zi(this,bt,1,a)};h.getOwner=function(){return X(this,jY,2)};h.setOwner=function(a){return Zi(this,jY,2,a)};h.getPrefix=function(){return X(this,ct,3)};h.setPrefix=function(a){Zi(this,ct,3,a)};var kY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kY,W);kY.prototype.getVersion=function(){return kx(this,1)};kY.prototype.setVersion=function(a){return Tn(this,1,a)};kY.prototype.getVersionOrUndefined=function(){return fx(this,1)};var TAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TAd,W);h=TAd.prototype;h.getHeader=function(){return X(this,kY,4)};h.hasHeader=function(){return Ji(this,kY,4)};h.getStartTimeMicros_asString=function(){return Cn(this,1)};h.setStartTimeMicros=function(a){return Yn(this,1,a)};h.getPrefix=function(){return jm(this,SAd,6,UAd)};h.setPrefix=function(a){mp(this,6,UAd,a)};var UAd=[2,3,6];var VAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VAd,W);var WAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WAd,W);WAd.prototype.setAffinitization=function(a){Vn(this,2,a)};WAd.prototype.getAffinitizationOrUndefined=function(){return Kp(this,2)};WAd.prototype.getStartTimeMicros_asString=function(){return In(this,4)};WAd.prototype.setStartTimeMicros=function(a){return Kn(this,4,a)};var XAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XAd,W);var YAd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YAd,W);h=YAd.prototype;h.setStreamId=function(a){return Yn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return cx(this,1)};h.getOpen=function(){return jm(this,TAd,2,ZAd)};h.setOpen=function(a){return mp(this,2,ZAd,a)};h.getClose=function(){return jm(this,XAd,3,ZAd)};h.setClose=function(a){mp(this,3,ZAd,a)};h.hasClose=function(){return cj(this,XAd,3,ZAd)};h.setAffinitization=function(a){Vn(this,4,a)};
h.getAffinitizationOrUndefined=function(){return Kp(this,4)};var ZAd=[2,3];var $Ad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Ad,W);$Ad.prototype.setRequestsList=function(a){return $i(this,1,a)};$Ad.prototype.addAndReturnRequests=function(){return Cc(this,1,YAd)};var aBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aBd,W);aBd.prototype.getChannelId=function(){return xi(this,1)};aBd.prototype.setChannelId=function(a){return yj(this,1,a)};var bBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bBd,W);var lY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lY,W);lY.prototype.getCode=function(){return Ii(this,1)};lY.prototype.setCode=function(a){return Vn(this,1,a)};lY.prototype.getCodeOrUndefined=function(){return Kp(this,1)};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.getPayloadOrUndefined=function(){return tm(this,2,void 0,void 0,vc)};h.getVersion=function(){return lx(this,3)};h.setVersion=function(a){return Yn(this,3,a)};h.getVersionOrUndefined=function(){return tw(this,3)};h.getVersionOrUndefined_asString=function(){return cx(this,3)};var eBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eBd,W);var fBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fBd,W);var gBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gBd,W);gBd.prototype.getStart=function(){return jm(this,fBd,1,hBd)};gBd.prototype.setStart=function(a){return mp(this,1,hBd,a)};gBd.prototype.hasChanges=function(){return cj(this,eBd,2,hBd)};var hBd=[1,2,3,5];var iBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iBd,W);iBd.prototype.getChannelId=function(){return xi(this,1)};iBd.prototype.setChannelId=function(a){return yj(this,1,a)};var jBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jBd,W);jBd.prototype.getStatus=function(){return X(this,bHc,1)};jBd.prototype.setStatus=function(a){return Zi(this,bHc,1,a)};jBd.prototype.hasStatus=function(){return Ji(this,bHc,1)};var kBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kBd,W);h=kBd.prototype;h.setStreamId=function(a){return Yn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return cx(this,1)};h.getClose=function(){return jm(this,jBd,3,lBd)};h.setClose=function(a){mp(this,3,lBd,a)};h.hasClose=function(){return cj(this,jBd,3,lBd)};var lBd=[2,3,4];var mBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mBd,W);mBd.prototype.getResponsesList=function(){return Ni(this,kBd,1,Oi())};mBd.prototype.getStatus=function(){return X(this,lY,2)};mBd.prototype.setStatus=function(a){return Zi(this,lY,2,a)};mBd.prototype.hasStatus=function(){return Ji(this,lY,2)};var nBd=function(){Ss.call(this,"d")};Qw(nBd,Ss);var oBd=function(){Ss.call(this,"c")};Qw(oBd,Ss);var pBd=function(a,b,c,d){this.uri=a;this.authMethod=b;this.useFetchApi=c;this.addDomainPrefix=d},qBd=function(a){var b=a.uri.clone();a.addDomainPrefix&&zB(b,Math.floor(Math.random()*10).toString()+"-"+b.getDomain());return b},rBd=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new Gi;this.channel=this.createWebChannel(e)};
rBd.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(qBd(this.config).toString(),a);this.channelHandler.listen(a,
"a",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,"b",function(){b.channelStatusHandler.onClose((new sBd(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=Bea(mB,c.data[0][0]);var d=b.channelStatusHandler;c.getCode()!==0&&(d.channelEventCallback(new tBd(lea(c))),d.handleError(c))}else c=
Bea(mBd,c.data[0]),b.channelMessageHandler(c)});this.channelHandler.listen(a,"c",function(c){b.channelStatusHandler.onError(c,(new sBd(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};rBd.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};rBd.prototype.close=function(){this.state!==2&&this.channel.close()};rBd.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var uBd,vBd=(new kY).setVersion(9);uBd=Vn(vBd,2,5);var Qs=function(a){this.rep=a};Qs.prototype.equals=function(a){return this.rep===a.rep};var wBd=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};wBd.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 xBd=function(){},yBd=function(){},zBd=function(){},ABd=function(){},BBd=function(){},CBd=function(){},DBd=function(a){this.error=a},tBd=function(a){this.status=a};var emb=function(a,b){this.seconds=a;this.nanos=b},fmb=function(a){var b=new ej;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},kmb=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("Ye`"+b);if(253402300800<=b)throw Error("Ze`"+b);if(c<0)throw Error("$e`"+c);if(1E9<=c)throw Error("af`"+c);if(!Number.isInteger(b))throw Error("bf`"+b);if(!Number.isInteger(c))throw Error("cf`"+c);return new emb(b,c)}catch(d){return null}};
emb.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Ps=function(a,b){this.value=a;this.isDecreasing=!!b};
Ps.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Qs)b=a.value instanceof Qs?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 et)b=a.value instanceof et?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 emb?a.value instanceof emb?this.value.equals(a.value):!1:!1;return b};var ft=function(a,b){this.parts=a;this.isPrivate=b},hmb=function(){for(var a=[],b=l(ad.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Ps?a.push(c):a.push(new Ps(c));return new ft(a,!1)};
ft.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 EBd=function(){},Hlb=function(a,b){this.apiKey=a;this.authUser=b};h=Hlb.prototype;h.getHeaders=function(){var a={},b;(b=Zrc([]))?(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 Elb=function(a){this.oauthTokens=a};h=Elb.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 Glb=function(a){this.apiKey=a};h=Glb.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 Flb=function(a,b){this.apiKey=a;this.oauthTokens=b};h=Flb.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 FBd=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,FBd.prototype);this.name="XhrError"};Y(FBd,Error);var GBd=function(a,b){b=b===void 0?Klb():b;this.baseUri=a;this.xhrIo=b};GBd.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
var HBd=function(a,b){a.endsWith("/")&&(a=a.substring(0,a.length-1));b.startsWith("/")&&(b=b.substring(1));return a+"/"+b};
GBd.prototype.request=function(a,b,c,d,e){var f=this,g=new ht(this.baseUri);g.setPath(HBd(g.getPath(),b));if(e.queryParams){b=l(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var m=l(k.value);k=m.next().value;m=m.next().value;Wt(g,k,m)}}var r={"Content-type":"application/json+protobuf"};Object.assign(r,e.extraHeaders);var w=c.serialize();return new Promise(function(x,D){var H;f.xhrIo.send(g,function(){var J=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{x(wta(d,
this.getResponseText()))}catch(O){D(new FBd(4,"Failed to deserialize response from "+g+": "+this.getResponseText(),J))}else D(new FBd(this.getLastErrorCode(),this.getLastError(),J))},a,w,r,(H=e.timeoutMs)!=null?H:2E4,e.withCredentials)})};var Llb=null;Qw(Nlb,Ss);Qw(Plb,Ss);Qw(Qlb,Ss);Us.prototype.disableRedact=function(){this.redactEnabled_=!1};
var IBd=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var g="";for(var k=f.split("&"),m=0;m<k.length;m++){var r=k[m].split("=");if(r.length>1){var w=r[0];r=r[1];var x=w.split("_");g=x.length>=2&&x[1]=="type"?g+(w+"="+r+"&"):g+(w+"=redacted&")}}}else g=null;else g=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+g})},JBd=function(a,b,c,d,e,f,g){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+g})},LBd=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+KBd(a,c)+(d?" "+d:"")})},MBd=function(a,b){a.info(function(){return"TIMEOUT: "+b})};Us.prototype.debug=function(){};Us.prototype.info=function(){};Us.prototype.warning=function(){};
var KBd=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 Pta).serialize(c)}catch(m){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var Tlb=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},NBd=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"}},OBd={},PBd={};Vs.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};Vs.prototype.setTimeout=function(a){this.timeout_=a};Vs.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
Vs.prototype.getPendingMessages=function(){return this.pendingMessages_};
var RBd=function(a,b,c){a.type_=1;a.baseUri_=UIc(b.clone());a.postData_=c;a.decodeChunks_=!0;QBd(a,null)},QBd=function(a,b){a.requestStartTime_=Date.now();SBd(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 Tlb;a.xmlHttp_=TBd(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new ZMc(vj(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?Ci(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));Olb(1);IBd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
Vs.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)};Vs.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?UBd(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),VBd(this)}finally{}};
var UBd=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!VBd(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?Olb(3):Olb(2));WBd(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=XBd(a);VBd(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;JBd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
YBd(a))LBd(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,ZBd(a,d);else{a.successful_=!1;a.lastError_=3;Ts(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");mY(a);$Bd(a);return}a.decodeChunks_?aCd(a,b,c):(LBd(a.channelDebug_,a.rid_,c,null),ZBd(a,c));b==4&&mY(a);a.successful_&&!a.cancelled_&&(b==4?bCd(a.channel_,a):(a.successful_=!1,SBd(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,Ts(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,Ts(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),mY(a),$Bd(a)}},YBd=function(a){return a.xmlHttp_&&(a=eua(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!ya(a)?a:null},XBd=function(a){if(!cCd(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 mY(a),$Bd(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},VBd=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},cCd=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},aCd=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=dCd(a,c),e==PBd){b==4&&(a.lastError_=4,Ts(14),d=!1);LBd(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==OBd){a.lastError_=4;Ts(15);LBd(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else LBd(a.channelDebug_,a.rid_,e,null),ZBd(a,e);cCd(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,Ts(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),eCd(b),b.bpDetectionDone_=!0,Ts(11))):(LBd(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),mY(a),$Bd(a))},dCd=
function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return PBd;c=Number(b.substring(c,d));if(isNaN(c))return OBd;d+=1;if(d+c>b.length)return PBd;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};Vs.prototype.cancel=function(){this.cancelled_=!0;mY(this)};
var SBd=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;fCd(a,a.timeout_)},fCd=function(a,b){if(a.watchDogTimerId_!=null)throw Error("ff");a.watchDogTimerId_=Slb(vj(a.onWatchDogTimeout_,a),b)},WBd=function(a){a.watchDogTimerId_&&(ra.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
Vs.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(MBd(this.channelDebug_,this.requestUri_),this.type_!=2&&(Olb(3),Ts(17)),mY(this),this.lastError_=2,$Bd(this)):(this.channelDebug_.warning("WatchDog timer called too early"),fCd(this,this.watchDogTimeoutTime_-a))};
var $Bd=function(a){a.channel_.isClosed()||a.cancelled_||bCd(a.channel_,a)},mY=function(a){WBd(a);zi(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};h=Vs.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 ZBd=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||gCd(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&gCd(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_)hCd(c),iCd(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");jCd(c);Ts(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_=Slb(vj(c.onBackChannelDead_,c),6E3))}}if(kCd(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(oa){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),nY(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&hCd(c),!ya(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f],m=k[0];if(m<=c.lastArrayId_)c.channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+m+", lastArrayId: "+c.lastArrayId_);else if(m>
c.lastArrayId_+1&&c.lastArrayId_>-1&&c.channelDebug_.warning("Received non-consecutive message with arrayId: "+m+", lastArrayId: "+c.lastArrayId_),c.lastArrayId_=m,k=k[1],c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var r=k[3];r!=null&&(c.channelVersion_=r,c.channelDebug_.info("VER="+c.channelVersion_));var w=k[4];w!=null&&(c.serverVersion_=w,c.channelDebug_.info("SVER="+c.serverVersion_));var x=k[5];x!=null&&typeof x==="number"&&x>0&&(g=1.5*x,c.backChannelRequestTimeoutMs_=
g,c.channelDebug_.info("backChannelRequestTimeoutMs_="+g));g=c;var D=a.getXhr();if(D){var H=eua(D,"X-Client-Wire-Protocol");if(H){var J=g.forwardChannelRequestPool_;b=H;!J.requestPool_&&(za(b,"spdy")||za(b,"quic")||za(b,"h2"))&&(J.maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.request_&&(lCd(J,J.request_),J.request_=null))}if(g.httpSessionIdParam_){var O=eua(D,"X-HTTP-Session-Id");O?(g.httpSessionId_=O,Wt(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=mCd(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.");nCd(g.forwardChannelRequestPool_,b);d=b;var ba=g.backChannelRequestTimeoutMs_;
ba&&d.setTimeout(ba);d.watchDogTimerId_&&(WBd(d),SBd(d));g.backChannelRequest_=b}else oCd(g);c.outgoingMaps_.length>0&&pCd(c)}else k[0]!="stop"&&k[0]!="close"||nY(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?nY(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),c.backChannelRetryCount_=0)}Olb(4)}catch(oa){}};var qCd=function(a,b){this.mapId=a;this.map=b;this.context=null};var Zlb=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_=[]},rCd=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},kCd=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},gCd=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1},lCd=function(a,b){a.requestPool_?a.requestPool_.add(b):a.request_=b},nCd=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
Zlb.prototype.cancel=function(){this.pendingMessages_=this.getPendingMessages();if(this.request_)this.request_.cancel(),this.request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=l(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
Zlb.prototype.getPendingMessages=function(){if(this.request_!=null)return this.pendingMessages_.concat(this.request_.getPendingMessages());if(this.requestPool_!=null&&this.requestPool_.size!==0){for(var a=this.pendingMessages_,b=l(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return Ma(this.pendingMessages_)};var sCd=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var Wlb=function(){this.replacer_=void 0};Wlb.prototype.stringify=function(a){return ra.JSON.stringify(a,this.replacer_)};Wlb.prototype.parse=function(a){return ra.JSON.parse(a,void 0)};h=Ys.prototype;h.channelVersion_=8;h.state_=1;h.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");Ts(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=mCd(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;pCd(this)};
h.disconnect=function(){this.channelDebug_.debug("disconnect()");tCd(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Wt(b,"SID",this.sid_);Wt(b,"RID",a);Wt(b,"TYPE","terminate");uCd(this,b);a=new Vs(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=UIc(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_=TBd(a.channel_,null),
a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();SBd(a)}vCd(this)};h.getSessionId=function(){return this.sid_};
var iCd=function(a){a.backChannelRequest_&&(eCd(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},tCd=function(a){iCd(a);a.backChannelTimerId_&&(ra.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);hCd(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ra.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};h=Ys.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 pCd=function(a){rCd(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,OC(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},xCd=function(a,b){if(kCd(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_=Slb(vj(a.onStartForwardChannelTimer_,a,b),wCd(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
Ys.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 Vs(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=Ci(c),Ota(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=yCd(this,b,d);e=this.forwardChannelUri_.clone();Wt(e,"RID",a);Wt(e,"CVER",22);this.httpSessionIdParam_&&Wt(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);
uCd(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+Ei(XIc(c))+"&"+d:this.httpHeadersOverwriteParam_&&YIc(e,this.httpHeadersOverwriteParam_,c));lCd(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&Wt(e,"TYPE","init");this.fastHandshake_?(Wt(e,"$req",d),Wt(e,"SID","null"),b.decodeInitialResponse_=!0,RBd(b,e,null)):RBd(b,e,d);this.state_=2}}else this.state_==3&&(a?zCd(this,a):this.outgoingMaps_.length==0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):rCd(this.forwardChannelRequestPool_)||
(zCd(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var zCd=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Wt(d,"SID",a.sid_);Wt(d,"RID",c);Wt(d,"AID",a.lastArrayId_);uCd(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&YIc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new Vs(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=yCd(a,c,1E3);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*
.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));lCd(a.forwardChannelRequestPool_,c);RBd(c,d,b)},uCd=function(a,b){a.extraParams_&&Ai(a.extraParams_,function(c,d){Wt(b,d,c)});a.handler_&&Ai({},function(c,d){Wt(b,d,c)})},yCd=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?vj(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var g=["count="+c];f==-1?c>0?(f=e[0].mapId,g.push("ofs="+f)):f=0:g.push("ofs="+f);for(var k=!0,m=0;m<c;m++){var r=
e[m].mapId,w=e[m].map;r-=f;if(r<0)f=Math.max(0,e[m].mapId-100),k=!1;else try{r="req"+r+"_"||"";try{var x=w instanceof Map?w:Object.entries(w);for(var D=l(x),H=D.next();!H.done;H=D.next()){var J=l(H.value),O=J.next().value,R=J.next().value,V=R;Oa(R)&&(V=(new Pta).serialize(R));g.push(r+O+"="+encodeURIComponent(V))}}catch(ba){throw g.push(r+"type="+encodeURIComponent("_badmap")),ba;}}catch(ba){d&&d(w)}}if(k){x=g.join("&");break a}}x=void 0}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return x},
oCd=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,OC(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},jCd=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=Slb(vj(a.onStartBackChannelTimer_,a),wCd(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
Ys.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;ACd(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_=Slb(vj(this.onBpDetectionTimer_,this),a)}};
Ys.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;Ts(10);iCd(this);ACd(this)}else this.channelDebug_.warning("Invalid operation.")};
var eCd=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ra.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},ACd=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new Vs(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();Wt(b,"RID","rpc");Wt(b,"SID",a.sid_);Wt(b,"AID",a.lastArrayId_);Wt(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Wt(b,"TO",a.longPollingTimeout_);Wt(b,"TYPE","xmlhttp");uCd(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&YIc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=UIc(b.clone());
c.postData_=null;c.decodeChunks_=!0;QBd(c,d);a.channelDebug_.debug("New Request created")};Ys.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};Ys.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,iCd(this),jCd(this),Ts(19))};
var hCd=function(a){a.deadBackChannelTimerId_!=null&&(ra.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},bCd=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){hCd(a);eCd(a);a.backChannelRequest_=null;var d=2}else if(gCd(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),nCd(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(Rlb(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),pCd(a)):oCd(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: "+NBd(f,a.errorResponseStatusCode_)});if(d==1&&xCd(a,b)||d==2&&jCd(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&sCd(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:nY(a,5);break;case 4:nY(a,10);break;case 3:nY(a,6);break;default:nY(a,2)}}},wCd=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},nY=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=vj(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new ht(d||"//www.google.com/images/cleardot.gif");ra.location&&ra.location.protocol=="http"||yB(d,"https");UIc(d);e?Ulb(d.toString(),
c):Vlb(d.toString(),c)}else Ts(2);a.onError_(b)};Ys.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),Ts(2)):(this.channelDebug_.info("Failed to ping google.com"),Ts(1))};Ys.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);vCd(this);tCd(this)};
var vCd=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}),yba(a.nonAckedMapsAtChannelClose_,b),yba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ma(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
mCd=function(a,b,c){var d=Ut(c);d.getDomain()!=""?(b&&zB(d,b+"."+d.getDomain()),AB(d,d.port_)):(d=ra.location,d=VIc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&Wt(d,b,c);Wt(d,"VER",a.channelVersion_);uCd(a,d);return d},TBd=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("gf");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new Rs(new wB({streamBinaryChunks:c})):new Rs(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};Ys.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var BCd=function(){};h=BCd.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};$lb.prototype.createWebChannel=function(a,b){return new oY(a,b)};
var oY=function(a,b){sj.call(this);this.channel_=new Ys(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,Fta(this.messageUrlParams_,b)&&Kta(this.messageUrlParams_,b));this.channelHandler_=new CCd(this)};Qw(oY,sj);
oY.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};oY.prototype.close=function(){this.channel_.disconnect()};oY.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 Pta).serialize(a),a=c);b.outgoingMaps_.push(new qCd(b.nextMapId_++,a));b.state_==3&&pCd(b)};
oY.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;oY.superClass_.disposeInternal.call(this)};var DCd=function(a){nBd.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)?Mta(b,this.metadataKey):b}else this.data=a};Qw(DCd,nBd);
var ECd=function(a){oBd.call(this);this.status=1;this.errorCode=a};Qw(ECd,oBd);var CCd=function(a){this.channel_=a};Qw(CCd,BCd);CCd.prototype.channelOpened=function(){this.channel_.dispatchEvent("a")};CCd.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new DCd(a))};CCd.prototype.channelError=function(a){this.channel_.dispatchEvent(new ECd(a))};CCd.prototype.channelClosed=function(){this.channel_.dispatchEvent("b")};var sBd=function(a){this.channel_=a};
sBd.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};sBd.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};sBd.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var FCd=function(){this.changeList=[]};FCd.prototype.add=function(a){this.changeList.push(a)};
var GCd=function(){var a=a===void 0?Date:a;var b=b===void 0?ZN(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},HCd=function(a,b,c){this.authMethod=b;this.jspbClient=new GBd(a,c)},ICd=function(a,b,c,d){var e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1){e=new GCd;var D=new VAd;D=Zi(D,TAd,1,b);f=Tn(D,4,c);if(d){if(d.rttMicros==null)throw Error("jf");D=red(d.rttMicros)/1E6;D=nx(f,2,D);var H=d.clockOffsetMicros!=null?ZN(d.clock.now()*1E3).add(d.clockOffsetMicros):void 0;H=(g=H)==null?void 0:
g.toString();Kn(D,3,H)}return z(x,a.jspbClient.post("/v1/chooseServer",f,WAd,Dlb(a.authMethod)),2)}k=x.yieldResult;D=e;H=gt(k.getStartTimeMicros_asString());var J=gt(In(k,5)),O=ZN(D.clock.now()*1E3),R=XN(J,H);D.rttMicros=XN(XN(O,D.clientStartMicros),R);D.clockOffsetMicros=XN(XN(H,D.clientStartMicros).add(J),O).div(ZN(2));m=gx(k,1);if(m==null)throw Error("kf");return x.return({gsessionid:m,affinitization:(r=k.getAffinitizationOrUndefined())!=null?r:0,initialConnectionDelayMillis:(w=fx(k,3))!=null?
w:0,timeEstimator:e})})},JCd=function(a,b,c){this.authMethod=b;this.jspbClient=new GBd(a,c)},KCd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1){if(a.authMethod instanceof Glb)return f.return(Promise.resolve());d=(new aBd).setChannelId(c);e=Dlb(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,bBd,e),4)}if(f.nextAddress!=2)return Zj(f,0);be(f);ce(f)})},LCd=function(a,b,c){this.project=
a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},pY=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 Wj(new mB);this.skipBackoff=new wBd;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.channelStatHandler=
new Gi;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(Mlb(),"statevent",function(f){c.channelEventCallback(f)});this.rawStatus.pipe(tla(function(f){return f.getCode()===0?Promise.resolve():new Promise(function(g){Zs(g,500)})})).subscribe(this.status);this.delayGenerator=new Alb;var d,e;this.reconnectHint=(e=(d=b.reconnectHint)==
null?void 0:d.pipe(jf(function(){return Fx}),sla(Fx)))!=null?e:Fx;MCd(this)},NCd=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 ht}var g=f.clone().setPath(HBd(f.getPath(),"/multi-watch/channel")),k=new pBd(g,d,c.xmlHttpFactory!==void 0,e);return{serverChooser:new HCd(f,d,Klb(c.xmlHttpFactory)),credentialRefresher:new JCd(f,d,Klb(c.xmlHttpFactory)),channelCreator:function(m,
r,w){m=new rBd(m,r,k,function(x,D){return(new $lb).createWebChannel(x,D)},w);m.open();return m}}});return new pY(b,c)},OCd=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},PCd=function(a){var b;Zs(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?(KCd(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),
a.channelState.lastRefreshTime=Date.now(),PCd(a)):a.refreshCredsTimerScheduled=!1})},OCd(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};pY.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 QCd=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},RCd=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 ft&&d instanceof ft?c.equals(d):!1;return d})};pY.prototype.onOpen=function(){this.channelEventCallback(new BBd);var a=(new mB).setCode(0);try{this.rawStatus.next(a)}catch(b){}};
pY.prototype.onClose=function(){this.channelEventCallback(new CBd);this.channelState=void 0;MCd(this)};pY.prototype.onError=function(a,b){this.channelEventCallback(new DBd(a));a=(new mB).setCode(Jlb(b));this.handleError(a)};
pY.prototype.handleError=function(a){this.channelState==null||this.channelState.hasReceivedMessage||a.getCode()!==14||this.consecutiveThrottledConnections++;try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(var b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=l(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var UCd=function(a,b,c){if(a.channelState){var d=SCd(c.project,c.interestSet);if(c instanceof TCd){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());aj(e,8,c.knowledgeTimestampChosenByPunctual)}Vn(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new $Ad;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},SCd=function(a,b){var c=new TAd;c=Zi(c,kY,4,uBd);if(b instanceof ft){var d=new RAd;
a!=null&&d.setProject(bmb(a));d.setOwner(b.isPrivate?PAd():OAd()).setPath(gmb(b));mp(c,2,UAd,d)}else d=new SAd,a!=null&&d.setProject(bmb(a)),d.setOwner(b.root.isPrivate?PAd():OAd()).setPrefix(gmb(b.root)),c.setPrefix(d);return c},VCd=function(a,b){var c=new $Ad;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new XAd);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},MCd=function(a){var b=MAd(a.delayGenerator);
amb(b).pipe(Kla(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 xBd);WCd(a,c.serverChooser).then(function(d){a.channelEventCallback(new yBd);a.serverTimeEstimator=d.timeEstimator;Zs(function(){a.hasConnected=!0;XCd(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=(new mB).setCode(2);d instanceof FBd?(e.setMessage(d.message),
d.status&&e.setCode(Jlb(d.status)),d.status===503&&a.consecutiveThrottledConnections++):e.setMessage(d.toString());a.channelEventCallback(new zBd);try{a.rawStatus.next(e)}catch(f){}MCd(a)})},function(c){c=(new mB).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},WCd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return z(m,YCd(a),2);c=m.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;return m.return(ICd(b,SCd(g,k),a.consecutiveThrottledConnections,
a.serverTimeEstimator))})},YCd=function(a){var b,c,d,e,f,g,k;return y(function(m){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=l(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=l(e.values()),g=f.next();!g.done;g=f.next())return k=g.value,m.return([k.project,k.interestSet]);return z(m,ie(a.newStreamSubject.asObservable().pipe(rf())),1)})},XCd=function(a,b,c){a.channelEventCallback(new ABd);a.channelState={channel:b(function(f){for(var g=l(f.getResponsesList()),k=g.next();!k.done;k=
g.next()){var m=a,r=k.value;m.channelState!=null&&(m.channelState.hasReceivedMessage=!0);m.consecutiveThrottledConnections=0;k=r.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),r.hasClose()){a:{if(r=r.getClose())if(r=r.getStatus())break a;r=void 0}r&&m.handleClose(k,r)}else if(r=jm(r,gBd,2,lBd))switch(Mo(r,hBd)){case 1:if(r=m.causalStreams.get(k)){try{r.observer.next(new KAd)}catch(R){}m.causalStreams.delete(k);m.limboStreams.set(k,r.start())}break;case 3:a:{if(r=jm(r,cBd,3,hBd))if(r=
cx(r,1),r!=null){var w=new LAd(gt(r));break a}w=void 0}if(w&&(r=k,k=w,(w=m.limboStreams.get(r))?(w=w.advance(k.timestampMicros),m.limboStreams.delete(r),m.nonCausalStreams.set(r,w),m=w):m=m.nonCausalStreams.get(r),m)){r=m;w=k.timestampMicros;w>r.knowledgeTimestamp&&(r.knowledgeTimestamp=w,r.knowledgeTimestampChosenByPunctual=!0);try{m.observer.next(k)}catch(R){}}break;case 2:k=m.nonCausalStreams.get(k)||m.limboStreams.get(k);if(!k)break;m=k.interestSet;if(w=jm(r,eBd,2,hBd)){r=new FCd;w=l(Ni(w,dBd,
1,Oi()));for(var x=w.next();!x.done;x=w.next()){x=x.value;var D=X(x,ct,6),H=x.getVersionOrUndefined_asString();if(D&&H!=null){var J=void 0,O=(J=x.getPayloadOrUndefined())==null?void 0:ota(J);J=O==null?void 0:O;(D=lmb(m,D))&&r.add(new JAd(D,gt(H),J,!!zb(tm(x,7))))}}m=r}else m=void 0;if(m)for(m=l(m.changeList),r=m.next();!r.done;r=m.next()){r=r.value;r=new JAd(r.objectId,r.version,r.payload,r.isReplay);try{k.observer.next(r)}catch(R){}}break;case 5:if(k=m.causalStreams.get(k)||m.limboStreams.get(k)||
m.nonCausalStreams.get(k)){k instanceof TCd&&(QCd(m),(r=RCd(m,k))?(r.hasRecurred=!0,r.knowledgeTimestamp=k.knowledgeTimestamp,r.resyncMillis=Date.now()):m.recentResyncs.push(new LCd(k.project,k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(R){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:g=l(a.causalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=3;g=l(a.nonCausalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=
3;a.channelState&&a.channelState.channel.close()}Ji(f,iBd,3)&&a.channelState&&(a.channelState.channelId=X(f,iBd,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(PCd(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid),affinitization:c.affinitization,gsessionid:c.gsessionid,hasReceivedMessage:!1};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,g){return f[0]-g[0]});b=l(b);for(c=b.next();!c.done;c=
b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;UCd(a,c,d)}b=l(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Zs(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
pY.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 ZCd(d,g,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});UCd(c,e,d);return function(){VCd(c,e)}})};
pY.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,m=new TCd(e,k,a,b,!1);QCd(d);if((e=RCd(d,m))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var r=!0;Zs(function(){r&&m.observer.complete()},6E4);return function(){r=!1}}d.nonCausalStreams.set(f,m);d.newStreamSubject.next({});UCd(d,f,m);return function(){VCd(d,f)}})};
var ZCd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};ZCd.prototype.start=function(){return new $Cd(this.observer,this.project,this.interestSet)};var $Cd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};$Cd.prototype.advance=function(a){return new TCd(this.observer,this.project,this.interestSet,a,!0)};
var TCd=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 aDd={firstPartyUri:new ht("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ht("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1},bDd={firstPartyUri:new ht("https://punctual.corp.google.com/punctual"),thirdPartyUri:new ht,addDomainPrefix:!1},cDd={firstPartyUri:new ht("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new ht("https://signaler-staging.sandbox.google.com/punctual"),addDomainPrefix:!1},dDd=new Map([["corp",bDd],["prod",aDd],["prod-up",
bDd],["preprod-dynamite-alpha-us",it("preprod-dynamite-alpha-us")],["preprod-dynamite-alpha-eu",it("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",it("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",it("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",it("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",it("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",it("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",it("prod-dynamite-prod-00-eu")],
["prod-dynamite-prod-01-eu",it("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",it("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",it("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",it("prod-dynamite-prod-02-us")],["prod-dynamite-prod-03-us",it("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",it("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",it("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",it("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",
it("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",it("prod-dynamite-prod-08-us")],["prod-dynamite-prod-09-us",it("prod-dynamite-prod-09-us")],["dynamite-alpha-us",jt("preprod","alpha-us")],["dynamite-alpha-eu",jt("preprod","alpha-eu")],["dynamite-beta-us",jt("preprod","beta-us")],["dynamite-beta-eu",jt("preprod","beta-eu")],["dynamite-gamma-us",jt("preprod","gamma-us")],["dynamite-gamma-eu",jt("preprod","gamma-eu")],["dynamite-prod-00-us",jt("prod","prod-00-us")],["dynamite-prod-00-eu",
jt("prod","prod-00-eu")],["dynamite-prod-01-us",jt("prod","prod-01-us")],["dynamite-prod-01-eu",jt("prod","prod-01-eu")],["dynamite-prod-02-us",jt("prod","prod-02-us")],["dynamite-prod-03-us",jt("prod","prod-03-us")],["dynamite-prod-04-us",jt("prod","prod-04-us")],["dynamite-prod-05-us",jt("prod","prod-05-us")],["dynamite-prod-06-us",jt("prod","prod-06-us")],["dynamite-prod-07-us",jt("prod","prod-07-us")],["dynamite-prod-08-us",jt("prod","prod-08-us")],["dynamite-prod-09-us",jt("prod","prod-09-us")],
["ytprod",{firstPartyUri:new ht("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new ht("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}],["dev",cDd]]);var eDd=function(a){this.projectPath=a;this.authParams=new EBd;this.fetchApi=!1};eDd.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};eDd.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
eDd.prototype.build=function(){var a=Ilb(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("lf`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("mf`"+b);b=l(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new ht(decodeURIComponent(c.substring(7))),c.setPath("/punctual"),c={firstPartyUri:c,thirdPartyUri:c,addDomainPrefix:!1};else{var d=dDd.get(c);if(!d)throw Error("nf`"+c);c=d}var e;this.fetchApi&&(e=new wB({worker:this.worker}));return NCd(c,
a,{reconnectHint:this.reconnectHint,defaultProject:b,xmlHttpFactory:e,channelEventCallback:this.channelEventCallback})};var fDd={watch:function(){return Fx},watchWithStartTime:function(){return Fx},status:Fx},qY=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 eDd(b)).setApiKey(a).build()}else this.punctualClient=fDd};qY.prototype.watch=function(a,b){return this.punctualClient.watch(hmb(String(a),b)).pipe(we(function(c){return c instanceof JAd}))};qY.\u0275fac=function(a){return new (a||qY)};qY.\u0275prov=Fc({token:qY,factory:qY.\u0275fac,providedIn:"root"});var rY=function(){this.punctualService=p(qY);this.stream=new sf;this.isPaused=!1;this.closeStream$=new sf};rY.prototype.resume=function(){this.isPaused=!1};var gDd=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};rY.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$))};
rY.\u0275fac=function(a){return new (a||rY)};rY.\u0275prov=Fc({token:rY,factory:rY.\u0275fac,providedIn:"root"});var hDd=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var sY=function(){Z.call(this);this.window=p(rR);this.scrolledOnScreenService=p(BU);this.elementRef=p(Jd);this.onAutoResize=new hQ;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(sY,Z);sY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&iDd(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){iDd(a,2)}))};
sY.prototype.onInput=function(){iDd(this,1)};
var iDd=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=l("width max-height min-height font-family text-decoration letter-spacing".split(" ")),e=d.next();!e.done;e=d.next())e=e.value,a.cloneEl.style.setProperty(e,c.getPropertyValue(e));a.cloneEl.value=a.el.value;d=a.window.getComputedStyle(a.cloneEl);c=a.cloneEl;c=oo(d.getPropertyValue("border-top-width"))+oo(d.getPropertyValue("padding-top"))+c.scrollHeight+oo(d.getPropertyValue("padding-bottom"))+oo(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=oo(d.getPropertyValue("max-height")),d=oo(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})))};sY.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};sY.\u0275fac=function(a){return new (a||sY)};
sY.\u0275dir=df({type:sY,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 jDd=new ed("isMac",{factory:function(){return yv}}),kDd=function(){this.isMac=p(jDd);this.textarea=p(Jd).nativeElement;this.macPasteWorkaroundActivated=new hQ};
kDd.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())}}};
kDd.\u0275fac=function(a){return new (a||kDd)};kDd.\u0275dir=df({type:kDd,selectors:[["textarea","macPasteWorkaround",""]],hostBindings:function(a,b){a&1&&N("paste",function(c){return b.handlePaste(c)})},outputs:{macPasteWorkaroundActivated:"macPasteWorkaroundActivated"},standalone:!1});var tY=function(){this.activeSession=p(Qu);this.issuePermissionService=p(fR);this.window=p(rR);this.userPreferencesManager=p(nR);this.placeholderPrefix="@";this.candidateDenylist=new Set;this.isMentionAutocompleteEnabled=function(){throw Error("of");};this.getHiddenInput=function(){throw Error("of");};this.getAutocompleteUnderlay=function(){throw Error("of");};this.getTextarea=function(){throw Error("of");};this.focusOnComponent=function(){throw Error("of");};this.emitContentChange=function(){throw Error("of");
};this.autocompleteUserName=new Wj("");this.autocompleteUserName$=this.autocompleteUserName.pipe(pf());this.autocompleteTop=new Wj(0);this.autocompleteTop$=this.autocompleteTop.pipe(pf());this.autocompleteLeft=new Wj(0);this.autocompleteLeft$=this.autocompleteLeft.pipe(pf());this.scrollPosition=0;this.taggingInProgress=new Wj(!1);this.taggingInProgress$=this.taggingInProgress.pipe(pf());this.wordInfo={wordStart:0,wordEnd:0,word:""}};h=tY.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=omb(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(lDd(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(!lDd(a))if(a=a.target,this.scrollPosition=a.scrollTop,this.findWordAroundCursor(),rmb(this,this.wordInfo.word)){a=a.selectionStart;if(this.isMentionAutocompleteEnabled()&&!this.taggingInProgress.value){var b=this.getAutocompleteUnderlay();if(b){b.textContent=this.getTextarea().value;var c=this.getAutocompleteUnderlay(),d=this.getTextarea(),e="height width font-family margin line-height padding border".split(" ");if(c&&d){d=this.window.getComputedStyle(d);e=l(e);for(var f=
e.next();!f.done;f=e.next()){f=f.value;var g=d.getPropertyValue(f);c.style.setProperty(f,g)}}this.synchronizeScrolling()}b=b==null?void 0:b.firstChild;c=b==null?void 0:b.textContent;b&&c&&a&&(c=new Range,c.setStart(b,a),c.setEnd(b,a),a=document.createElement("span"),c.deleteContents(),c.insertNode(a),b=a.getBoundingClientRect(),this.autocompleteTop.next(b.top),this.autocompleteLeft.next(b.left),a.remove())}this.taggingInProgress.next(!0);if(this.isMentionAutocompleteEnabled()){this.autocompleteUserName.next(this.wordInfo.word.slice(this.placeholderPrefix.length));
var k;(k=this.getHiddenInput())==null||k.dispatchEvent(new KeyboardEvent("keydown"))}}else this.taggingInProgress.next(!1)};var lDd=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"};tY.prototype.synchronizeScrolling=function(){var a=this.getAutocompleteUnderlay(),b=this.getTextarea();a&&b&&(a.scrollTop=b.scrollTop)};
tY.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 rmb=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:Jed.test(b)&&!Ied.test(b)};tY.\u0275fac=function(a){return new (a||tY)};tY.\u0275prov=Fc({token:tY,factory:tY.\u0275fac});
var mmb=/[\s,]/gu,nmb=/[\s,]|$/u;var mDd=["textarea"],nDd=["hiddenInput"],oDd=["autocompleteUnderlay"],uY=function(){Z.apply(this,arguments);var a=this;this.codefont=p(pR);this.activeSession=p(Qu);this.issuePermissionService=p(fR);this.autocompleteLogic=p(tY);this.userPreferencesManager=p(nR);this.autocompleteConfigService=p(QW);this.darkmodeService=p(PW);this.refresh$=this.darkmodeService.clientDarkmode$.pipe(A(function(){}));this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=
this.disabled=!1;this.contentChange=new hQ;this.focus=new hQ;this.blur=new hQ;this.autoResize=new hQ;this.manualResize$=new hQ;this.autocompleteTop$=this.autocompleteLogic.autocompleteTop$;this.autocompleteLeft$=this.autocompleteLogic.autocompleteLeft$;this.taggingInProgress$=this.autocompleteLogic.taggingInProgress$;this.autocompleteUserName$=this.autocompleteLogic.autocompleteUserName$;this.sessionOptions=(new vv).setFilter(Byd);this.isCreateCommentFormatLiteral=!1;this.shouldShowMentionsNotSupportedWarning$=
this.autocompleteLogic.taggingInProgress$.pipe(A(function(b){return a.enableMentionsAutocomplete&&jO(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&b:!1}))};Y(uY,Z);uY.\u0275dir=Z.\u0275dir;uY.prototype.getConfig=function(){return Aib(this.autocompleteConfigService)};
uY.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}})};uY.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}));pDd(this)};
var pDd=function(a){le([a.taggingInProgress$,a.autocompleteUserName$]).pipe(of(0),Bf(a.destroyed$)).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b){var d;if((d=a.hiddenInputRef)==null?0:d.nativeElement)if(d=a.hiddenInputRef.nativeElement,d.value!==c){d.value=c;var e;(e=a.hiddenInputRef)==null||e.nativeElement.dispatchEvent(new Event("input"))}}})};h=uY.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 qDd=function(a){setTimeout(function(){a.autocompleteLogic.taggingInProgress.next(!1)})};
uY.prototype.isMentionAutocompleteEnabled=function(){return this.isLiteralModeSupported&&this.isCreateCommentFormatLiteral||!this.enableMentionsAutocomplete?!1:jO(this.activeSession)?this.issueId?this.issuePermissionService.hasAclToEdit():this.canEditIssuesInComponent:!0};uY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(uY)))(b||uY)}}();
uY.\u0275cmp=C({type:uY,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(jg(mDd,7),jg(nDd,5),jg(oDd,5));if(a&2){var c;ng(c=og())&&(b.textareaRef=c.first);ng(c=og())&&(b.hiddenInputRef=c.first);ng(c=og())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&N("click",function(){return qDd(b)},gha)("keyUp",function(c){return b.escapeKeyupAnywhere(c)},gha)},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:[Ig([tY]),Gf,xx],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,pmb,8,0,"div",6);F(5,qmb,3,0,"div",7);T(6,"async");K(7,"span",8);T(8,"async");T(9,"async");F(10,tmb,1,1,null,9);
T(11,"async");L();F(12,umb,2,0,"div",10);L()}a&2&&(B(2),zg(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),xg("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:[Yy,zU,DX,sY,kDd,ly],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 vY=function(){Z.apply(this,arguments);var a=this;this.cdr=p(iQ,{self:!0});this.ref=p(Jd);this.events=p(aP);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Y(vY,Z);vY.\u0275dir=Z.\u0275dir;vY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
vY.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};vY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(vY)))(b||vY)}}();
vY.\u0275cmp=C({type:vY,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&jg(KL,7);if(a&2){var c;ng(c=og())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},standalone:!1,features:[Ig([iQ]),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,vmb,1,0,"ng-container",2),L(),K(3,"mat-tab",3),E(4,wmb,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:[ky,OL,JL,KL],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var wY=function(){Z.apply(this,arguments);this.codefont=p(pR);this.ngZone=p(Tg);this.prefs=p(nR);this.hotkeys=p(tU);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 hQ;this.contentChange=new hQ;this.focus=new hQ;this.blur=new hQ;this.autoResize=
new hQ;this.onSubmit=new hQ};Y(wY,Z);wY.\u0275dir=Z.\u0275dir;wY.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
wY.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 rDd=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&a.commentDraftTextarea.focusOnComponent()})};wY.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};wY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wY)))(b||wY)}}();
wY.\u0275cmp=C({type:wY,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(jg(uY,5),jg(vY,5));if(a&2){var c;ng(c=og())&&(b.commentDraftTextarea=c.first);ng(c=og())&&(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,xx],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&&(yg("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:[uY,ly],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 sDd=["captchaContainer"],xY=function(){this.ngZone=p(Tg);this.window=p(rR);this.darkmodeService=p(PW);this.appEvents=p(aP);this.analytics=p(lQ);this.onUpdate=new hQ;this.destroyed$=new wf(1)};xY.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(Bf(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
xY.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"})})};xY.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};xY.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)})}};xY.\u0275fac=function(a){return new (a||xY)};
xY.\u0275cmp=C({type:xY,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&jg(sDd,5);if(a&2){var c;ng(c=og())&&(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 yY=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)};yY.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var zY=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})})};
yY.prototype.canDeactivate=function(a,b,c,d){a:{a=Ut(c.url).getPath()===Ut(d.url).getPath();b=l(this.checks);for(c=b.next();!c.done;c=b.next())if(c=c.value,a){if(c.triggerOnSearch&&c.dataChanged()){a=!0;break a}}else if(c.dataChanged()){a=!0;break a}a=!1}return a?tDd(this)?(this.checks=[],!0):!1:!0};var tDd=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};
yY.\u0275fac=function(a){return new (a||yY)};yY.\u0275prov=Fc({token:yY,factory:yY.\u0275fac,providedIn:"root"});var uDd=function(a){return[a]},AY=function(){this.matDialog=p(VB)};
AY.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(BY,{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(TB(this.dialog))};AY.\u0275fac=function(a){return new (a||AY)};AY.\u0275prov=Fc({token:AY,factory:AY.\u0275fac,providedIn:"root"});
var BY=function(){Z.call(this);this.activeSession=p(Qu);this.originalData=p(UB);this.dialogRef=p(SB);this.bannedWordsChecker=p(aX);this.checkBeforeExit=p(yY);this.userPreferencesManager=p(nR);this.MARKDOWN="MARKDOWN";this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse="";
this.dataDraft=Object.assign({},this.originalData);if(this.dataDraft.text===""){var a,b;this.dataDraft.formattingMode=(b=(a=oR(this.userPreferencesManager).commentFormattingPreferences)==null?void 0:a.lastPublishMode)!=null?b:"UNSPECIFIED_FORMATTING_MODE"}};Y(BY,Z);BY.\u0275dir=Z.\u0275dir;h=BY.prototype;
h.ngOnInit=function(){var a=this;this.subscriptions.add(zY(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!Dm(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||rDd(c);ce(e)})};BY.\u0275fac=function(a){return new (a||BY)};
BY.\u0275cmp=C({type:BY,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&jg(wY,5);if(a&2){var c;ng(c=og())&&(b.commentDraft=c.first)}},standalone:!1,features:[Ig([aX]),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,xmb,6,1,"p",2),K(4,"b-comment-draft",3),T(5,"async"),Eg("contentChange",function(c){Dg(b.dataDraft.text,c)||(b.dataDraft.text=c);return c}),N("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),L(),F(6,ymb,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,zmb,1,4,"b-live-preview",6),L(),F(10,Amb,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(),Ag(b.originalData.dialogTitle),B(2),G(b.originalData.showPiiWarning?3:-1),B(),Cg("content",b.dataDraft.text),I("audience",b.dataDraft.audience)("textareaClass",Kg(25,uDd,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),yg("margin-bottom",
(b.dataDraft==null?null:b.dataDraft.formattingMode)!==b.MARKDOWN),I("initialValue",b.dataDraft.formattingMode),B(),G(b.dataDraft.formattingMode===b.MARKDOWN?9:-1),B(),G(b.enableRecaptcha?10:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",!b.isModified()||!b.isCaptchaValid())("color",U(15,21,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(17,23,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[WB,YB,$B,ZB,nC,jC,lU,wT,wY,xY,ly],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 CY=function(){this.dismissalService=p(wW);this.editIssueService=p(NS);this.butterBar=p(gO);this.issuePermissionService=p(fR);this.issueCommentService=p(HAd);this.editCommentDialogService=p(AY);this.issueFullFridge=p(nQ);this.matDialogService=p(VB);this.paths=p(vW);this.analytics=p(lQ);this.domSafe=p(sR);this.confirmationDialogService=p(iS);this.issueComments=p(xS);this.errorHandler=p(wO);this.eventsForIssueFridge=p(TP);this.componentFridge=p(YO);this.commentFormatter=p(lR);this.confirmNoAccessService=
p(yS);this.activeSession=p(Qu);this.appEvents=p(aP);this.issuePicker=p(fY);this.eventsForIssueWatcher=p(rY);this.issueInteractionsTracking=p(JS)},lvb=function(a,b,c){var d,e,f,g,k,m,r,w,x,D;return y(function(H){if(H.nextAddress==1)return z(H,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();m=c.commentNumber;if(!m)return H.return();a.butterBar.dismiss();
w=(r=a.issuePermissionService.audience())!=null?r:"EXTERNAL";return z(H,a.editCommentDialogService.show({issueId:b,audience:w,componentId:g,text:(x=c.unlinkifiedComment)!=null?x:void 0,formattingMode:c.formattingMode,commentNumber:m}),3)}D=H.yieldResult;if(D==null)return H.return();IAd(a.issueCommentService,{issueId:b,newCommentId:m,newComment:D.text,newCommentFormattingMode:D.formattingMode,recaptchaToken:D.recaptchaToken});ce(H)})},wDd=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==
1)return c?z(g,vDd(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=Cs(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}ce(g)})},vDd=function(a,b){function c(V){return x.get(V)}var d,e,f,g,k,m,r,w,
x,D,H,J,O,R;return y(function(V){if(V.nextAddress==1)return z(V,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=(m=d.snapshot[0].blockedByIssueId)!=null?m:[];return z(V,ie(a.issueFullFridge.watchSet(Jq([].concat(q(f),q(k),q(r))))),3)}w=V.yieldResult;x=new Map(w.map(function(ba){return[ba.issueId,ba]}));D=r.map(c).filter(hn).map(Bmb("BLOCKED_BY"));H=k.map(c).filter(hn).map(Bmb("BLOCKING"));
J=f.map(c).filter(hn).map(Bmb("DUPLICATE"));O=[].concat(q(D),q(H),q(J));R=Cmb(O);return V.return(R)})},yDd=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?c?z(e,sod(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Dh("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?z(e,xDd(a,b,c),0):e.return()})},xDd=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();
$r(a.butterBar,"Restoring comment...",0);Yd(f,2,3);as(d,"commentUndelete");return z(f,a.issueComments.undelete(b,c),5);case 5:$r(a.butterBar,"Comment restored successfully.");case 3:Zd(f);LS(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);ae(f,0);break;case 2:e=be(f),$r(a.butterBar,"Comment restoration failed."),yO(a.errorHandler,e),f.jumpTo(3)}})},BDd=function(a,b,c,d){var e,f,g,k;return y(function(m){if(m.nextAddress==1){if(!c)return m.return();e=a.editIssueService.savingState(b);
return e.get("commentDelete")?m.return():z(m,zDd(a,b),2)}return m.nextAddress!=3?(f=m.yieldResult,a.butterBar.dismiss(),z(m,ie(TB(a.matDialogService.open(pxd,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(g=m.yieldResult)?z(m,ADd(a,b,c,g.value,(k=d)!=null?k:""),0):m.jumpTo(0)})},ADd=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);$r(a.butterBar,"Deleting comment...",
0);as(f,"commentDelete");return z(k,a.issueComments.delete(b,c,d,e),5);case 5:$r(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Zd(k);LS(f,"commentDelete");a.issueFullFridge.poke(b);ae(k,0);break;case 2:g=be(k),$r(a.butterBar,"Comment deletion failed."),yO(a.errorHandler,g),k.jumpTo(3)}})},zDd=function(a,b){var c,d,e,f,g,k,m,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 hDd("Other","USER_REQUEST"),g&&g.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),m=new hDd("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(m.enabled=!1,m.disabledReason="available on Public components"),r=
new hDd("Personally Identifiable Information","RESTRICTED"),w.return([r,m,k])}})},CDd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return d=eR(a.issuePermissionService,Om(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),z(f,a.showContentJudgementDialog({severity:eq(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),oQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ce(f)})};CY.prototype.showContentJudgementDialog=function(a){return ie(TB(this.matDialogService.open(hY,{panelClass:"no-jitter",width:"500px",data:a})))};
var DDd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ie(TB(a.matDialogService.open(iY,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},EDd=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:eq(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),oQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ce(f)})};
CY.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,g,k,m;y(function(r){if(r.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId||b.attachmentId==="0")return r.return();e=ie;f=c.matDialogService;g=f.open;k=oxd;return z(r,zDd(c,a),3)}return r.nextAddress!=2?z(r,e(TB(g.call(f,k,{width:"560px",data:{deletionReasons:r.yieldResult,attachmentId:b.attachmentId}}))),2):(m=r.yieldResult)?z(r,aqd(c.editIssueService,a,b,m.value),0):r.jumpTo(0)})};
var FDd=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,g,k;return y(function(m){if(m.nextAddress==1){if(jO(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return m.return(!0);Yd(m,2);var r=a.commentFormatter;var w={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};r=w.formattingMode===
"LITERAL"||w.comment.trim()===""?ee([]):mmd(r,w).pipe(A(A7a));return z(m,ie(r),4)}if(m.nextAddress!=2)return g=m.yieldResult,m.return(fpd(a.confirmNoAccessService,{componentId:d,userEmails:g,relation:"reader",analyticsEventLabel:"mention"}));k=be(m);yO(a.errorHandler,k);return m.return(!1)})},GDd=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()||
iO(a.activeSession)?f.return(!0):z(f,a.dismissalService.isDismissed(Ghb(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Dh("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Dh("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:wb(b)}return f.return(ie(TB(a.matDialogService.open(xW,{width:"500px",data:{content:e,action:b}}))))})};
CY.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!kpd(c)||f.get("comment"))return r.return(!1);as(f,"comment");g=function(){LS(f,"comment")};return z(r,FDd(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=r.yieldResult,k?z(r,GDd(e),3):(g(),r.return(!1));case 3:m=r.yieldResult;if(!m)return g(),r.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");bs(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)}})};
CY.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),g=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",z(m,b.showContentJudgementDialog({severity:g,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=m.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);ce(m)})};
CY.prototype.updateCommentReaction=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?a.hasReacted?z(d,GDd(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};CY.\u0275fac=function(a){return new (a||CY)};CY.\u0275prov=Fc({token:CY,factory:CY.\u0275fac,providedIn:"root"});var DY=function(){this.editIssueService=p(NS);this.issuePicker=p(fY);this.analytics=p(lQ);this.butterBar=p(gO)},HDd=function(a,b){var c,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResource:{id:b,type:"issue"},componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),z(r,a.issuePicker.open(e),2);if(r.nextAddress!=3){g=r.yieldResult;
if((k=g)==null||!k.length)return c.status=d,r.return("DISMISSED");if(b===g[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),r.return("DISMISSED");m=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(m/2E3),600)+"s",m);a.analytics.trackEvent("editIssue","setCanonicalIssue");ejd(a.analytics,"DUPLICATE");return z(r,Spd(a.editIssueService,b,g[0]),3)}return r.return("DUPLICATE")})};
DY.\u0275fac=function(a){return new (a||DY)};DY.\u0275prov=Fc({token:DY,factory:DY.\u0275fac,providedIn:"root"});var Qmb=function(a,b){return b.id},EY=function(){var a=this;this.componentFridge=p(YO);this.issueEditComponentService=p(uW);this.trackerHelpers=p(pS);this.activeSession=p(Qu);this.cdr=p(Px);this.componentId$=new wf(1);this.readOnly=!1;this.linkifyComponentNames=!0;this.showPickerOverlayAbove=!1;this.handleSave=!0;this.compactMode$=new Wj(!1);this.componentChanged=new hQ;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()||iO(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()||iO(a.activeSession)?!1:a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=le([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b?{icon:"folder_shared_24px",tooltip:"Public component. Issues can be made visible to public Google Search."}:c?{icon:"folder_shared_24px",tooltip:"Partner component. Issues can be made visible to Google partners."}:Bs(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=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return Web({componentPathId:[b]});b=Du(a.trackerHelpers,d.componentPathInfo);b=Web(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],g=e===b.length-1?48:32;if(d>=g)break;var k=String(f.name),
m=void 0;if(d+[].concat(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;m=[].concat(q(k));m.length<=r||(k=r-[].concat(q(g)).length,k=m.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=g+k);m=!0}d+=[].concat(q(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:m}));if(m)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(A(function(b){return!b}));this.isThinkingAndEmpty$=le([this.componentFridge.thinking$,
this.isEmpty$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(A(function(b){return!b}))};EY.prototype.ngOnInit=function(){};var Wmb=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(EY.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)}}});EY.\u0275fac=function(a){return new (a||EY)};
EY.\u0275cmp=C({type:EY,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,Vmb,13,22,"b-async-data-placeholder",2)(1,Xmb,2,7,"b-team-component-picker",3);a&2&&G(b.editing?1:
0)},dependencies:[AW,Yy,bP,nC,lC,rW,WK,XK,dL,YK,FK,DA,dW,ly],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 Zmb={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"},IDd={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"},Ymb=[Zmb,{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"},IDd];var FY=function(){Z.call(this);var a=this;this.defaultAccessLimitLevel$=new wf(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new hQ;this.selectedDisplay$=new Wj(null);this.displays=Ymb;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=l(c);c=d.next().value;d=d.next().value;return c?c:JDd(a,d)}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(A(function(c){return c.title}));var b=p(Ee);this.defaultAccessLimitLevel$.pipe(fj(b)).subscribe(function(c){a.selectedDisplay$.next(JDd(a,c))})};Y(FY,Z);FY.\u0275dir=Z.\u0275dir;var JDd=function(a,b){a=l(a.displays);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.accessLevel===b)return c;return Zmb};da.Object.defineProperties(FY.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
FY.\u0275fac=function(a){return new (a||FY)};
FY.\u0275cmp=C({type:FY,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,anb,1,1,"mat-icon",7),K(10,"mat-menu",8,0),Qf(12,bnb,7,3,"button",9,Pf),L()());if(a&2){var c;a=sg(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);Rf(b.displays)}},dependencies:[Yy,nC,jC,eK,pH,nH,sH,FK,DA,ly],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 GY=function(){Z.apply(this,arguments);var a=this;this.errorHandler=p(wO);this.activeSession=p(Qu);this.issueApi=p(SP);this.issueFullFridge=p(nQ);this.componentFridge=p(YO);this.trackerFridge=p(aR);this.eventsForIssueFridge=p(TP);this.issuePermissionService=p(fR);this.snackBar=p(uC);this.dialogRef=p(SB);this.data=p(UB);this.analytics=p(lQ);this.confirmationDialogService=p(iS);this.jspbPrincipalTypes=p(KQ);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 Wj(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=le([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.componentId=this.data.componentId;this.component$=this.componentFridge.watch(this.componentId);this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(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(GY,Z);GY.\u0275dir=Z.\u0275dir;
GY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);cnb(a,b)}));this.subscriptions.add(le([this.tracker$,this.issue$]).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.updateCollaboratorGroups(b,c)}));this.subscriptions.add(this.hasAccessLimitLevelSelectionChanged$.subscribe(function(b){a.dialogRef.disableClose=b}));this.analytics.trackEvent("issueAccessLimits","view","issue_access_limits_dialog:"+
this.issueId)};
GY.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,g;y(function(k){if(k.nextAddress==1){c.collaboratorGroupsEmailToDetailsMap.clear();c.addedCollaboratorGroups.clear();c.removedCollaboratorGroups.clear();if(a&&a.collaboratorGroups)for(d=l(a.collaboratorGroups),e=d.next();!e.done;e=d.next())f=e.value,f.emailAddress&&c.collaboratorGroupsEmailToDetailsMap.set(f.emailAddress,{user:f,specifiedOnIssue:!1});return b&&b.snapshot&&b.snapshot[0].collaboratorsUsers?z(k,KDd(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}g=k.yieldResult;g.forEach(function(m){c.collaboratorGroupsEmailToDetailsMap.set(m.emailAddress,{user:m,specifiedOnIssue:!0})});ce(k)})};
var KDd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(hn),z(e,cld(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"}))})},LDd=function(a){return a?"Expanded access on":"Expanded access off"},fnb=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},cnb=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=rs(c.writers);a.appenders=rs(c.appenders);a.readers=rs(c.readers)},function(c){yO(a.errorHandler,
c)})};h=GY.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=os({user:{emailAddress:this.currentUserEmail}});if(this.writers.includes(b)||this.appenders.includes(b)||this.readers.includes(b))this.save();else{b="You will lose access";var c="You will no longer be able to access this issue. Are you sure you want to proceed?";this.writers.length===0&&this.appenders.length===0&&this.readers.length===0&&(b="Issue will be orphaned",c="No one will be able to access this issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?");
this.confirmationDialogService.open({title:b,content:Dh(c),onConfirm:function(){a.save()}})}};
h.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,this.updatedAccessLimitLevel$.value,Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent("issueAccessLimits","update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added:"+a.issueId);a.removedCollaboratorGroups.size>
0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed:"+a.issueId)},function(b){yO(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()};GY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GY)))(b||GY)}}();
GY.\u0275cmp=C({type:GY,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);cnb(b,g)}),L(),
F(19,enb,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,gnb,5,3),T(36,"async"),Nf(37,hnb,2,0,"button",15),L());if(a&2){B(7);I("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("readOnly",!0)("linkifyComponentNames",!1);B();yg("expanded-access-on",U(9,27,b.isImplicitAccessEnabled$));B(3);var c;Ag(LDd((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:[FY,Yy,EY,nC,jC,$B,ZB,FK,DA,TW,xL,rI,ly,qy],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 HY=function(){this.dialog=p(VB);this.dialogRef=null};HY.prototype.open=function(a){this.dialogRef=this.dialog.open(GY,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};HY.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};HY.\u0275fac=function(a){return new (a||HY)};HY.\u0275prov=Fc({token:HY,factory:HY.\u0275fac,providedIn:"root"});var IY=function(){this.buttonRef=p(Jd);this.toRefocus=!1};IY.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}))};IY.\u0275fac=function(a){return new (a||IY)};
IY.\u0275dir=df({type:IY,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},standalone:!1,features:[xx]});var JY=function(){this.activeSession=p(Qu);this.cdr=p(Px);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new hQ;this.isAnonymous=this.activeSession.isAnonymous()};h=JY.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};JY.\u0275fac=function(a){return new (a||JY)};
JY.\u0275cmp=C({type:JY,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=sg(1);return v(d.show())})("blur",function(){u(c);var d=sg(1);return v(d.hide())});M(3,"mat-icon",3);L()()}a&2&&(I("matTooltip",b.getLabel()),B(2),yg("starred",b.starred),I("disabled",b.isDisabled()),Kf("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(),I("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[Yy,
nC,lC,FK,DA,IY],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 KY=function(){this.activeSession=p(Qu);this.ROUTES=As;this.isCompact=!1;this.starClicked=new hQ;this.currentUserEmail=this.activeSession.getUserEmail()};KY.prototype.ngOnInit=function(){};KY.prototype.isDirectAdmin=function(a){return a?Mm(a.adminUsers).includes(this.currentUserEmail):!1};KY.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};KY.\u0275fac=function(a){return new (a||KY)};
KY.\u0275cmp=C({type:KY,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,knb,5,5,"span",0);a&2&&G(b.hotlist?0:-1)},dependencies:[Yy,qF,JY,FK,DA,ly],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 MDd=function(){this.tokens=new Map};MDd.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};MDd.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new NDd(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var NDd=function(a){this.sortedEntries=a};
NDd.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};NDd.prototype.search=function(a){var b=new Set;a=l(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=l(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var ODd=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 PDd=function(a){this.hotlists=a;var b=new MDd,c=new MDd;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.name)==null?0:e.trim())?b9a(d.name.toLowerCase()):[];e=l(f);for(f=e.next();!f.done;f=e.next())b.add(f.value,d);e=void 0;f=((e=d.description)==null?0:e.trim())?b9a(d.description.toLowerCase()):[];e=l(f);for(f=e.next();!f.done;f=e.next())c.add(f.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(g,
k){return[g,k]}))};
PDd.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=l(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=d.name)==null?void 0:e.toLowerCase(),g=void 0;e=(g=d.description)==null?void 0:g.toLowerCase();g=d.hotlistId;var k=void 0,m=void 0;(sSa(a)&&String(g).includes(a)||((k=f)==null?0:k.includes(a))||((m=e)==null?0:m.includes(a)))&&b.add(d)}a=b9a(a);c=l(ODd(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=l(ODd(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return QDd(this,b)};var QDd=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 RDd=function(){this.innerHeight$=oe(pe(function(){return ee(window.innerHeight)}),re(window,"resize").pipe(A(function(){return window.innerHeight})))};RDd.\u0275fac=function(a){return new (a||RDd)};RDd.\u0275prov=Fc({token:RDd,factory:RDd.\u0275fac,providedIn:"root"});var Anb=function(a,b){return b.hotlistId},SDd={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},LY=function(){Z.call(this);var a=this;this.dialogRef=p(SB);this.data=p(UB);this.paths=p(vW);this.hotlistFridge=p(rP);this.currentUserBookmarksFridge=p(wP);this.hotlistApi=p(mP);this.snackBar=p(uC);this.appEvents=p(aP);this.errorHandler=p(wO);this.userApi=p(qP);this.windowHeight=p(RDd);this.permissionsFridge=p(JQ);this.activeSession=p(Qu);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=SDd;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new Wj("");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=Nnb((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=Nnb((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);Mnb(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 uE({name:new wE("",Gj),description:new wE("")});this.starredHotlists=new gR;this.isSavingStar=new gR;this.userHotlists$=
xP(this.currentUserBookmarksFridge).pipe(A(function(e){return e.sort(Knb)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(A(function(e){return e.sort(Knb)}));this.combineHotlistsWithPermissions=A(function(e){var f=a.permissionsFridge.watchSet(e.map(function(g){return"hotlists/"+g.hotlistId}));return e.map(function(g,k){return Object.assign({},g,{permissions$:f.pipe(A(function(m){return m[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
le([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(A(function(e){var f=l(e);e=f.next().value;var g=f.next().value;f=f.next().value;return[].concat(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(J0a(function(e){return e.hotlistId})),A(function(e){return e.filter(hn)}),this.combineHotlistsWithPermissions,xf({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(A(function(e){return new PDd(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=l(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=l(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=l(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(A(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&sSa(e)}));this.showCreateNew$=le([this.query$,this.matchedHotlists$]).pipe(A(function(e){var f=
l(e);e=f.next().value;f=f.next().value;return Lnb(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=l(e);for(var f=e.next();!f.done;f=e.next())a.allHotlistIds.add(f.value.hotlistId)}))};Y(LY,Z);LY.\u0275dir=Z.\u0275dir;
LY.prototype.ngOnInit=function(){var a=this;TDd(this);this.query$.pipe(Bf(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
LY.prototype.onCheckboxChange=function(a,b){a.checked?this.selectedHotlistIds.add(b):this.selectedHotlistIds.delete(b);for(var c=l(this.selectedHotlistIdsMap.values()),d=c.next();!d.done;d=c.next())d=d.value,a.checked?d.add(b):d.delete(b);a=fSa(this.originalIds,this.selectedHotlistIds);b=[];c=l(this.selectedHotlistIdsMap.entries());for(d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;var f=e.next().value;e=void 0;(d=fSa(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var g;b=(g=a==null?void 0:a.added.length)!=null?g:0;var k;g=(k=a==null?void 0:a.removed.length)!=null?k:0;g=l(a?b>0&&g===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&g>0?["Remove ("+g+")","Remove "+g+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+g+" removed)"]:["Save","(No changes)"]);k=g.next().value;g=g.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=g};
var kt=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},Hnb=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},UDd=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},Gnb=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=Hnb(a),c=UDd(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)})},TDd=function(a){ie(mhd(a.currentUserBookmarksFridge)).then(function(b){a.starredHotlists.clear();for(var c=l(b.hotlists),d=c.next();!d.done;d=c.next()){d=
d.value;var e=Number(d.id);d.starred&&a.starredHotlists.add(e)}b=l(b.bookmarkGroups);for(c=b.next();!c.done;c=b.next())for(c=l(c.value.sublinks||[]),d=c.next();!d.done;d=c.next())d=d.value,d.starred&&a.starredHotlists.add(Number(d.id))}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
LY.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);yO(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
ce(f)}})};var nnb=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);kt(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};LY.\u0275fac=function(a){return new (a||LY)};
LY.\u0275cmp=C({type:LY,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return kt(b)})("keydown.shift.enter",function(){return kt(b)})("keydown.control.enter",function(){return kt(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,mnb,1,1,"ng-container")(1,Cnb,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,Enb,1,1,"ng-container")(6,Fnb,2,5,"button",6);L();E(7,Inb,2,1,"ng-template",null,0,Og)(9,Jnb,14,1,"ng-template",null,1,Og)}a&2&&(G(b.showCreateNewPane?0:1),B(5),G(b.showCreateNewPane?5:6))},dependencies:[ky,Yy,WB,YB,$B,
ZB,xL,rI,nC,jC,iK,uK,vK,yE,Ij,qE,rE,JE,FE,EE,FK,DA,KY,ly],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 MY=function(){this.dialog=p(VB);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.errorHandler=p(wO);this.issueRecommendationFridge=p(pQ);this.recommendationsApi=p(tO);this.issueUserEventsService=p(oW);this.activeSession=p(Qu);this.analytics=p(lQ)},WDd=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,VDd(a,f,e),0)})},VDd=function(a,b,c,d){d=d===void 0?!0:d;var e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return e=XDd(a,b),f=e.pipe(A(function(D){return D.map(function(H){var J;return(J=H.content)==null?void 0:J.recommendedHotlist}).filter(hn)}),Cf(function(D){D.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),g=new Map,g.set(b,new Set(c)),z(x,YDd(a,c,f),2);case 2:k=x.yieldResult;if(k==null||!k.hotlistDiff)return x.return();
m=k.hotlistDiff;r=m.added.map(String);w=m.removed.map(String);if(!d){x.jumpTo(3);break}return z(x,a.updateHotlists(b,r,w),4);case 4:return z(x,ZDd(a,b,e,r),3);case 3:return x.return({addedIds:r,removedIds:w})}})},$Dd=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra,$a,pb,Yb,lc,fc;return y(function(qc){switch(qc.nextAddress){case 1:d=new Map;e=l(b.values());for(f=e.next();!f.done;f=e.next())if(g=f.value)for(k=l(g),m=k.next();!m.done;m=k.next())r=
m.value,d.has(r)?(w=void 0,x=(w=d.get(r))!=null?w:0,x++,d.set(r,x)):d.set(r,1);D=b.size;H=[];J=[];O=l(d.entries());for(R=O.next();!R.done;R=O.next())V=R.value,ba=l(V),oa=ba.next().value,ta=ba.next().value,ka=oa,Ca=ta,Ca<D?H.push(ka):Ca===D&&J.push(ka);return z(qc,YDd(a,J,ee([]),b,H),2);case 2:ja=qc.yieldResult;if(ja==null)return qc.return();if(!c){qc.jumpTo(3);break}ua=l(ja.issueMapDiffs.entries());xa=ua.next();case 4:if(xa.done){qc.jumpTo(3);break}Ra=xa.value;$a=l(Ra);pb=$a.next().value;Yb=$a.next().value;
lc=pb;fc=Yb;return z(qc,a.updateHotlists(lc,fc.added.map(String),fc.removed.map(String)),5);case 5:xa=ua.next();qc.jumpTo(4);break;case 3:return qc.return(ja)}})};MY.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);yO(d.errorHandler,e);return f.jumpTo(3)})};
var YDd=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja;return y(function(ua){if(ua.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(LY,g),z(ua,ie(TB(k)),2);m=ua.yieldResult;if(!m)return ua.return(Promise.resolve());r=m.selectedHotlistIds;w=m.selectedHotlistIdsMap;x=fSa(new Set(b),new Set(r));D=new Map;if(d&&w)for(H=l(w.entries()),
J=H.next();!J.done;J=H.next())O=J.value,R=l(O),V=R.next().value,ba=R.next().value,oa=V,ta=ba,ka=void 0,Ca=fSa((ka=d.get(oa))!=null?ka:new Set,ta),ja=void 0,D.set(oa,(ja=Ca)!=null?ja:{added:[],removed:[]});return ua.return(Promise.resolve({hotlistDiff:x,issueMapDiffs:D}))})},XDd=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([])},ZDd=function(a,b,c,d){var e,f,g,k;return y(function(m){if(m.nextAddress==
1)return z(m,ie(c),2);if(m.nextAddress!=3){e=m.yieldResult;f=e.filter(function(r){var w,x;return(r=(w=r.content)==null?void 0:(x=w.recommendedHotlist)==null?void 0:x.hotlistId)&&d.includes(String(r))});g=f.map(function(r){return{parent:r.name,userEngagement:{type:"ACCEPTED"}}});if(g.length===0)return m.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return z(m,a.recommendationsApi.createUserEngagements(g),3)}k=f.map(function(r){return{issueId:b,feature:"FEATURE_HOTLIST",
eventType:"EVENT_TYPE_ACCEPT",recommendationName:r.name}});return z(m,ie(a.issueUserEventsService.logIssueUserEventForRecommendations(k)),0)})};MY.\u0275fac=function(a){return new (a||MY)};MY.\u0275prov=Fc({token:MY,factory:MY.\u0275fac,providedIn:"root"});var aEd={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"},NY=function(){Z.apply(this,arguments);var a=this;this.butterBar=p(gO);this.componentTemplatesFridge=p(dP);this.errorHandler=p(wO);this.triageService=p(dS);this.issueApi=p(SP);this.issueFullFridge=p(nQ);this.editIssueService=p(NS);this.hotlistPickerService=
p(MY);this.issueLimits=p(HY);this.issuePermissionService=p(fR);this.jspbPrincipalTypes=p(KQ);this.statusMessages=p(oS);this.constants=p(lS);this.activeSession=p(Qu);this.issueEditComponentService=p(uW);this.IssueFieldKey=aEd;this.HOTKEYS=fs;this.FieldType=zV;this.ListFieldType=ewd;this.IssueType=Xdd;this.IssueSeverity=Qdd;this.IssuePriority=Ddd;this.IssueStatus=Tdd;this.codeChangesValidator=h3a;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 Wj(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(we(hn),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&&Om(b.snapshot.assigneeUser)}));this.issueIds$=le([this.triageService.currentIssueIds$,this.triageService.selectedIssueIds$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(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=l(b);b=c.next().value;if(!c.next().value)return new Map;mt(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 hQ;this.completeAction=new hQ;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:qab(b)}});this.statusChoices=oed.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:rab(b.value)})});this.showAssigneeChips$=le([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.sessionIsInternal&&b&&(a.showAssignToDefault||a.showAssignToSelf)?a.showAssignToDefault&&d||a.showAssignToSelf&&c.assignee!==a.currentUserEmail?
!0:!1:!1}));this.currentUserEmail=this.activeSession.getUserEmail();this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.isSaving$=new Wj(!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,cld(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(NY,Z);NY.\u0275dir=Z.\u0275dir;h=NY.prototype;h.ngOnInit=function(){for(var a=l(this.automaticChanges),b=a.next();!b.done;b=a.next())bEd(this,b.value);this.showCommentInput=this.expandCommentBox;a=Jr(this.editableIssue$);this.componentId=a.componentId||void 0;this.componentId$.next(this.componentId);lt(this,a);nt(this,a)};
h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a=Ir(this.issueId$);a&&this.editIssueService.clear(a)};h.setSeverity=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);mt(this,a)};h.setPriority=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);mt(this,a)};h.setAssignee=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);mt(this,a)};
h.setType=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setType(b);mt(this,a)};h.setStatus=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);mt(this,a)};h.setComponent=function(a,b){this.componentId=b;this.componentId$.next(b);for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.componentId=b;mt(this,a)};h.setCodeChanges=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};
h.setCcs=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.cc=b;nt(this,a[0])};h.setCollaborators=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);lt(this,a[0])};
var kob=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return g!==c});e.cc=f}nt(a,b[0]);mt(a,b)},fob=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return g!==c});e.setCollaborators(f)}lt(a,b[0]);mt(a,b)},gob=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return!c.includes(g)});
e.setCollaborators(f)}lt(a,b[0]);mt(a,b)},lob=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return!c.includes(g)});e.cc=f}nt(a,b[0]);mt(a,b)},nob=function(a,b){for(var c=l(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.cc;a.isCurrentUserCcd?(e=e.filter(function(f){return!eR(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}nt(a,b[0])};
NY.prototype.toggleCollaborators=function(a){for(var b=this,c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.collaborators;this.isCurrentUserCollaborator?(e=e.filter(function(f){return!eR(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}lt(this,a[0])};
var nt=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},lt=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},rob=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},cEd=function(a,b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.componentId&&a.componentId!==d.componentId&&c.push({issueIds:[d.issueId],actions:[{fieldName:"componentId",value:String(a.componentId)}]});return c};
NY.prototype.save=function(a){var b=this,c,d,e,f,g,k,m,r,w,x;return y(function(D){if(D.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(H){return hod(H)}).flat().filter(function(H){return H!==null});e=d.map(function(H){return{issueIds:[H.issueId],actions:H.actions}});f=cEd(b,a);e.push.apply(e,q(f));g=a.map(function(H){return H.issueId});(k=dEd(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));m=l(a);for(r=m.next();!r.done;r=m.next())w=r.value,x=w.customFieldMap,Object.assign(b.customFieldMap,x);return z(D,b.sendBulkEditRequest(e),2)}if(D.nextAddress!=3)return z(D,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(g);ce(D)})};NY.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var mt=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!N0a(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!N0a(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},dEd=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},cob=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,z(d,ys(0),2);(c=b)==null||c.focus();ce(d)})},bEd=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)}})};
NY.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)})};
NY.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=l(c);e=d.next();case 3:if(e.done){g.jumpTo(0);break}f=e.value;return z(g,eEd(a,f),4);case 4:e=d.next(),g.jumpTo(3)}})};
var eEd=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()})};
NY.prototype.sendBulkEditRequest=function(a){var b=this,c;return y(function(d){c={bulkEditOps:a};$r(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=kWa(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=Lod(b.statusMessages,c,b.customFieldMap))?$r(b.butterBar,e):$r(b.butterBar,"Saved "+F8a(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
NY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(NY)))(b||NY)}}();
NY.\u0275cmp=C({type:NY,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,vob,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 OY=function(){Z.apply(this,arguments);this.TriageActionKey=Jnd;this.TriagePhase=Vdd;this.TriageSubphase=Wdd;this.CONFIRM_ACTION=Lnd;this.SET_IN_PROGRESS=Nnd;this.SET_FIXED=Tnd;this.CHANGE_COMPONENT=Und;this.NEEDS_MORE_INFO=Knd;this.SET_WONT_FIX=Rnd;this.SET_NEW=Snd;this.SET_PENDING_OWNER=Mnd;this.SET_EXPECTED=Ond;this.SET_PLANNED=Pnd;this.SET_COMMITTED=Qnd;this.needsInfoAutomaticChanges=[];this.cancelAction=new hQ;this.finalizeAction=new hQ};Y(OY,Z);OY.\u0275dir=Z.\u0275dir;
OY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(OY)))(b||OY)}}();
OY.\u0275cmp=C({type:OY,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,
xob,1,1,"ng-container")(1,zob,1,1,"ng-container")(2,Bob,1,1,"ng-container")(3,Dob,1,1,"ng-container")(4,Fob,1,1,"ng-container")(5,Hob,1,1,"ng-container")(6,Job,1,1,"ng-container")(7,Lob,1,1,"ng-container")(8,Nob,1,1,"ng-container")(9,Pob,1,1,"ng-container")(10,Rob,1,1,"ng-container"),E(11,Sob,4,7,"ng-template",null,0,Og)(13,Tob,4,2,"ng-template",null,1,Og)(15,Uob,4,2,"ng-template",null,2,Og)(17,Vob,4,2,"ng-template",null,3,Og)(19,Wob,4,3,"ng-template",null,4,Og)(21,Xob,4,3,"ng-template",null,5,Og)(23,
Yob,4,3,"ng-template",null,6,Og)(25,Zob,4,3,"ng-template",null,7,Og)(27,$ob,4,3,"ng-template",null,8,Og)(29,apb,4,3,"ng-template",null,9,Og)(31,bpb,4,2,"ng-template",null,10,Og));if(a&2){var c;G((c=b.selectedTriageAction)===b.TriageActionKey.SET_NEEDS_INFO?0:c===b.TriageActionKey.SET_CONFIRMED?1:c===b.TriageActionKey.SET_PENDING_OWNER?2:c===b.TriageActionKey.SET_WONT_FIX?3:c===b.TriageActionKey.SET_IN_PROGRESS?4:c===b.TriageActionKey.SET_EXPECTED?5:c===b.TriageActionKey.SET_PLANNED?6:c===b.TriageActionKey.SET_COMMITTED?
7:c===b.TriageActionKey.SET_FIXED?8:c===b.TriageActionKey.CHANGE_COMPONENT?9:c===b.TriageActionKey.SET_NEW?10:-1)}},dependencies:[ky,NY],encapsulation:2,changeDetection:0});var PY=function(){this.issueExperimentalFieldsFridge=p($P)},fEd=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("pf");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=PY.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)})};PY.\u0275fac=function(a){return new (a||PY)};PY.\u0275prov=Fc({token:PY,factory:PY.\u0275fac,providedIn:"root"});var gEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gEd,W);h=gEd.prototype;h.getId=function(){return xi(this,3)};h.setId=function(a){return Ym(this,3,a)};h.getName=function(){return xi(this,1)};h.setName=function(a){return Ym(this,1,a)};h.getArgs=function(){return X(this,UA,2)};h.getType=function(){return Ii(this,7)};h.setType=function(a){return $m(this,7,a)};var hEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hEd,W);var iEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iEd,W);h=iEd.prototype;h.getDataCase=function(){return Mo(this,QY)};h.clearData=function(){return $w(this,QY)};h.getText=function(){return Oo(this,2,QY)};h.setText=function(a){return Ro(this,2,QY,a)};h.hasText=function(){return wr(this,2,QY)!=null};h.getFunctionCall=function(){return jm(this,gEd,4,QY)};h.hasFunctionCall=function(){return cj(this,gEd,4,QY)};h.getThought=function(){return Ri(this,11)};
h.getVideoMetadata=function(){return jm(this,hEd,14,jEd)};h.hasVideoMetadata=function(){return cj(this,hEd,14,jEd)};h.getId=function(){return xi(this,21)};h.setId=function(a){return yj(this,21,a)};var QY=[2,3,4,5,6,7,9,10,15,17,18],jEd=[14];var RY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RY,W);RY.prototype.getPartsList=function(){return Ni(this,iEd,1,Oi())};RY.prototype.addParts=function(a){return bq(this,1,iEd,a)};RY.prototype.getRole=function(){return xi(this,2)};RY.prototype.setRole=function(a){return Ym(this,2,a)};var kEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kEd,W);var lEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lEd,W);h=lEd.prototype;h.setModel=function(a){return Ym(this,1,a)};h.setSystemInstruction=function(a){Zi(this,RY,8,a)};h.getSessionId=function(){return En(this,12)};h.setSessionId=function(a){return Kn(this,12,a)};h.hasSessionId=function(){return Dn(this,12)};h.setRequestContext=function(a){Zi(this,kEd,17,a)};var epb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(epb,W);h=epb.prototype;h.getIndex=function(){return Um(this,3)};h.setIndex=function(a){Tn(this,3,a)};h.getContent=function(){return X(this,RY,1)};h.setContent=function(a){return Zi(this,RY,1,a)};h.hasContent=function(){return Ji(this,RY,1)};var dpb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dpb,W);h=dpb.prototype;h.setCandidates=function(a,b){return Yw(this,1,epb,a,b)};h.getModelVersion=function(){return xi(this,4)};h.setModelVersion=function(a){return Ym(this,4,a)};h.getResponseId=function(){return xi(this,5)};h.setResponseId=function(a){return Ym(this,5,a)};var mEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mEd.messageId)};Y(mEd,W);mEd.messageId="b.GenerateContentResponse";var nEd=function(){this.executor=p(pO)};nEd.\u0275fac=function(a){return new (a||nEd)};nEd.\u0275prov=Fc({token:nEd,factory:nEd.\u0275fac,providedIn:"root"});var SY=function(){var a=this;this.geminiApi=p(nEd);this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.getLlmResponse=GWa(function(b,c){var d,e;return y(function(f){if(f.nextAddress==1){d={prompt:b};var g=a.geminiApi;var k;var m=(new lEd).setModel((k=d.model)!=null?k:"models/gemini-1.5-flash");k=(new RY).addParts((new iEd).setText(d.prompt));m=bq(m,2,RY,k);g=g.executor.post({url:"/action/gemini/generate",options:{params:{feature:c}},body:m,responseConstructor:mEd}).then(fpb);return z(f,g,2)}e=
f.yieldResult;return f.return(e.output)})})},oEd=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")}))},qEd=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 pEd(a,d,c)}))})},pEd=function(a,b,c){var d="";b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d+=c?"{team name: "+c+", titles:["+e.join(",")+"]}\n":"titles:["+e.join(",")+"]\n";var f='You are a software engineer at Google. Your task is to summarize a cluster of bugs ,tasks,\n        alerts and feature requests into a theme so that the reader can decide if they need to investigate them deeper.\n        All the bugs, tasks, alerts and feature requests come from the same team.\n        Theme names follows these rules:\n        1. In two to three words\n        2. Title Case: Every word starts with a capital letter (e.g., "Foo Bar"). Acronyms are allowed, e.g. "SRE Frontend".\n        3. Do not include the team name in the result.\n        Example Input:\n        {team name: Buganizer, titles: [dark mode needs more contrast, it is very hard to read text in dark mode, Please increase the contract of dark mode}\n        Example output:  Dark mode readability\n\n        Please follow the above rules and output the theme names in a list, split by \',\'. Make sure the output is in the same order as the input.\n        '+
d;return pe(function(){return a.getLlmResponse(f,"CLUSTER_TITLE")}).pipe(A(function(g){return g.split(",")}))},rEd=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,m,r;return y(function(w){if(w.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(x){var D;return"Task b/"+x.issueId+' has title "'+x.snapshot[0].title+'" and has description "'+((D=x.description)==null?void 0:D.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),g="\nYou are a world-class technical lead and manager in software engineering, tasked with summarizing a set of issues using data from a issue tracking tool. You will receive a list of issues including titles and descriptions.\n\nGeneral Information:\n\nIssues: Issues are stored in a system called Buganizer and are usually referred as b/<id>. All b/<id> are references to the same issue. http://b/<id> can be used to refer to a issue in summary.\n\nSteps to Follow:\n\n1. Understand Issue Context: Use the issue title and description to understand the nature of the issue. DO NOT include the titles or specific names of issues in the summary.\n2. Generate Summary:\n  - Start with a high-level overview of the issues, in one small sentence, focusing on the key accomplishments and outcomes. Summarize the issues and their impact, using concise and informative language. Don't include introductory phrases and additional formatting. Skip this if you don't find a common theme. Don't hallucinate.\n  - Use the format "+
d+" and "+e+" tags for the summary without additional headers.\n  - If you need to reference issues in the summary, you may do so by their IDs as http://b/<id>\n\nImportant: Ensure the summary is concise, informative, and does not include any issue titles or names.\n\nIssues, title and description:\n\n"+f+"\n\nOutput:\n",z(w,a.getLlmResponse(g,"CLUSTER_DESCRIPTION"),2);k=w.yieldResult;m=k.indexOf(d);r=k.indexOf(e);return w.return(k.substring(m+d.length,r).trim())})}))};
SY.\u0275fac=function(a){return new (a||SY)};SY.\u0275prov=Fc({token:SY,factory:SY.\u0275fac,providedIn:"root"});var sEd=Gw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),tEd=Gw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),uEd=Gw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),vEd=Gw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),wEd=function(){var a=this;this.dialogRef=p(SB);this.darkmodeService=p(PW);this.data=
p(UB);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(A(function(b){switch(a.data.type){case "HOMEPAGE":return b?Ih(sEd):Ih(tEd);default:return b?Ih(uEd):Ih(vEd)}}))};wEd.\u0275fac=function(a){return new (a||wEd)};
wEd.\u0275cmp=C({type:wEd,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,gpb,1,3,"iframe",1),T(2,"async"),F(3,hpb,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:[$B,ZB,nC,jC,AK,II,ly],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 qt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qt,W);h=qt.prototype;h.getEnableSsEngine=function(){return Ri(this,2)};h.getEnableAwr=function(){return Ri(this,3)};h.getAlohaAutoGaRollout=function(){return Ri(this,5)};h.getEnableConfigurator=function(){return Ri(this,6)};h.getEnableMweb=function(){return Ri(this,7)};var yEd=function(){var a=xEd();return op(a,7,!0)};qt.prototype.getEnableCtlConsentCheckbox=function(){return Ri(this,8)};
qt.prototype.getEnableIframe=function(){return Ri(this,9)};var xEd=function(){var a=new qt;a=op(a,5,!0);a=op(a,2,!0);a=op(a,4,!1);a=op(a,8,!0);return op(a,9,!0)};qt.prototype.getEnableScreenshotNudge=function(){return Ri(this,10)};var zEd=function(){var a=yEd();return op(a,10,!0)};qt.prototype.getEnableWebStartupConfigEndpoint=function(){return Ri(this,11)};qt.prototype.getEnableJunkNudge=function(){return Ri(this,12)};var Apb=function(){var a=zEd();return op(a,12,!0)};h=qt.prototype;
h.getEnableConfiguratorLocale=function(){return Ri(this,13)};h.getEnableTinyNoPointer=function(){return Ri(this,14)};h.getEnableSupportSessionLogging=function(){return Ri(this,15)};h.getEnableFileUploadForScreenshot=function(){return Ri(this,16)};h.getEnableDirectDeflectionForSingleCategory=function(){return Ri(this,17)};h.getEnableImageSanitization=function(){return Ri(this,18)};h.getEnableAlohaBinarySplit=function(){return Ri(this,19)};h.getEnableDbFeedbackIntents=function(){return Ri(this,20)};
h.getEnableMarkMandatoryFieldsWithRequired=function(){return Ri(this,21)};h.getEnableFeedbackCategoryCustomUi=function(){return Ri(this,22)};h.getEnableRealtimeCtl=function(){return Ri(this,23)};var zpb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zpb,W);var ipb=[/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 kpb="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 lpb=Gw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),mpb=Gw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pt=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(pt,Error);var opb,rpb,ppb,spb;var AEd=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ra,e=d.document,f=a.nonce||usa(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var g=jv("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(g=k.length<=1200)&&(a.psdJson=k)}g||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,
b);else{d=c+"/load.js?";for(var m in a)b=a[m],b==null||Oa(b)||(d+=encodeURIComponent(m)+"="+encodeURIComponent(b)+"&");a=tj(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);ri(a,wh(d));e.body.appendChild(a)}},BEd=function(a,b,c,d){var e,f;return y(function(g){e=c||ra;var k=a.serverEnvironment==="DEV",m=c||ra;m=a.nonce||usa(m.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,
disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:m,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,
submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(m=new Map(Object.entries(b)),k.extraData.productSpecificData=m);f=k;return z(g,wpb(f,d,e),0)})},CEd=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,
"");qi(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?AEd(a,b,c):Bpb(a.productId,a.feedbackServerUri).then(function(e){e=X(e,qt,1);var f=!lzc||(e==null?void 0:e.getEnableMweb()),g=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&g?BEd(a,b,c,e).catch(function(k){!k||k instanceof pt||AEd(a,b,c)}):AEd(a,b,c)},function(e){!e||e instanceof pt||AEd(a,b,c)})}catch(e){BEd(a,b,c,null).catch(function(f){!f||f instanceof pt||AEd(a,b,c)})}};
Pw("userfeedback.api.startFeedback",CEd);var DEd={width:"500px",maxHeight:"80vh",autoFocus:!0},EEd=new Date,TY=function(){this.activeSession=p(Qu);this.matDialog=p(VB);this.reportStartTime=new Date};TY.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?TB(this.matDialog.open(wEd,Object.assign({},DEd,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&FEd(a)}):FEd(this)};
var qnc=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?TB(a.matDialog.open(wEd,Object.assign({},DEd,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&FEd(a)}):FEd(a)},FEd=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20251119.11_p0"};b.bucket=Bs(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";var c=[].concat(q([]),q(Yed(a.activeSession))).join(", ");c={userType:a.activeSession.getUserTypeLabel(),
flags:c};if(Bs(a.activeSession)){var d,e;c.trackerId=(e=(d=a.activeSession.getTracker())==null?void 0:d.trackerId)!=null?e:""}c.initialLoadTime=Cpb(EEd);c.reportStartTime=Cpb(a.reportStartTime);CEd(b,c)};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275prov=Fc({token:TY,factory:TY.\u0275fac,providedIn:"root"});var GEd=["actionsMenuIconButton"],UY=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.buttonSize="medium";this.menuClass="actions-menu"};UY.prototype.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,ys(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)})};UY.prototype.ngOnInit=function(){};UY.\u0275fac=function(a){return new (a||UY)};
UY.\u0275cmp=C({type:UY,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&jg(GEd,5);if(a&2){var c;ng(c=og())&&(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,Dpb,3,6,"button",3),K(1,"mat-menu",null,0)(3,"div",4),F(4,Epb,2,1,"div",5),Qf(5,Spb,2,2,null,null,Of),L()());a&2&&(G(b.menuItems.length>0?0:-1),B(),zg(Gg("",b.menuClass,"-menu")),B(3),G(b.header?4:-1),B(),Rf(b.menuItems))},dependencies:[eK,pH,nH,sH,Yy,nC,lC,FK,DA],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 HEd={type:"action",label:"Report illegal content"},IEd={type:"submenu",label:"View as"},JEd={type:"action",label:"Restriction settings..."},KEd={type:"action",label:"Show editing history"};var VY=function(){Z.apply(this,arguments);var a=this;this.triageService=p(dS);this.llmService=p(SY);this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.issuePicker=p(fY);this.issueApi=p(SP);this.errorHandler=p(wO);this.butterBar=p(gO);this.domSafe=p(sR);this.analytics=p(lQ);this.triagePhaseService=p(PY);this.userFeedback=p(TY);this.isClosed=JVa;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(Or));this.title$=this.issueIds$.pipe(Af(function(b){return oEd(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(Af(function(b){return rEd(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 hQ;this.checkedIssueIds=new gR;this.areAllChecked$=le([this.issueIds$,this.checkedIssueIds.value$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return b.every(function(e){return d.has(e)})}));this.tableColumns=["checkbox","title","phase","relativeModifiedTime","menu"];this.displaySecondaryFooter=!1};Y(VY,Z);VY.\u0275dir=Z.\u0275dir;h=VY.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(m){if(m.nextAddress==1){b=[].concat(q(a.checkedIssueIds));if(!b||!b.length)return m.return();c=jWa;return z(m,ie(a.issueFridge.watchSet(b)),2)}if(m.nextAddress!=3)return d=c(m.yieldResult),e=l,z(m,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(m.yieldResult);return(k=g=f.next().value)?z(m,a.markAsDuplicate(k,b),0):m.return()})};
h.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(As.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);$r(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),5);case 5:$r(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),yO(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,fEd(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ce(e)})};h.sendFeedback=function(){FEd(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=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};
VY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VY)))(b||VY)}}();
VY.\u0275cmp=C({type:VY,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,Vpb,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),Wf(26,21),E(27,Wpb,4,6,"th",22)(28,Xpb,3,3,"td",23),Xf(),Wf(29,24),E(30,Ypb,2,0,"th",22)(31,Zpb,3,4,"td",23),Xf(),Wf(32,25),E(33,$pb,2,0,"th",22)(34,cqb,3,3,"td",23),Xf(),Wf(35,26),E(36,dqb,2,0,"th",27)(37,gqb,3,3,"td",28),Xf(),Wf(38,29),E(39,hqb,1,0,"th",22)(40,iqb,2,1,"td",23),Xf(),E(41,jqb,1,0,"tr",30)(42,kqb,2,4,"tr",31),L(),F(43,lqb,2,2,"a",32),T(44,
"async"),L()()(),K(45,"div",33),F(46,oqb,2,1),T(47,"async"),L()());if(a&2){var c,d,e,f;B(8);Bg("",U(9,15,b.title$)," (",(c=U(10,17,b.issueIds$))==null?null:c.length," issues)");B(7);I("disabled",b.hasReacted);B();yg("has-reacted-icon",b.thumbsUpClicked);B();I("disabled",b.hasReacted);B();yg("has-reacted-icon",b.thumbsDownClicked);B(2);G((d=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:[UY,Yy,qF,BV,nC,jC,lC,xL,rI,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,FK,DA,bX,oX,OY,UU,ly],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}  div.mat-mdc-menu-panel.issue-cluster-options-menu{max-width:350px}  div.mat-mdc-menu-panel.issue-cluster-options-menu .mat-mdc-menu-content button.mat-mdc-menu-item{width:350px}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"]});var WY=function(){var a=this;this.data=p(UB);this.cdr=p(iQ,{self:!0});this.codefont=p(pR);this.location=p(ki);this.paths=p(vW);this.userFeedback=p(TY);this.errorHandler=p(wO);this.issueId=this.data.issueId;this.commentNumber=this.data.commentNumber;this.commentVersion=this.data.commentVersion;this.history=[];this.diffView=this.isLoading=!0;this.data.commentHistory.then(function(b){a.history=b}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
WY.prototype.updateUrl=function(a,b){a.stopPropagation();a=Cs(this.issueId)+("#comment"+this.commentNumber+"version"+b);this.location.replaceState(a)};WY.prototype.startFeedback=function(){this.userFeedback.startFeedback()};WY.\u0275fac=function(a){return new (a||WY)};
WY.\u0275cmp=C({type:WY,selectors:[["comment-history-dialog"]],standalone:!1,features:[Ig([iQ])],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,pqb,2,0,"div",5)(10,Eqb,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:[BV,xL,rI,nC,jC,WB,YB,$B,ZB,mT,iU,
kV,iV,ly,MS,eV],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 Fqb=function(){},st=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("tf");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=LEd(b,c),g=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=MEd(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=NEd(a,b,c,d,e);g&&b.unshift([0,g]);k&&b.push([0,k]);OEd(a,b);return b},NEd=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=PEd(b,c))return c=f[1],g=f[3],b=f[4],f=st(a,f[0],f[2],d,e),a=st(a,c,g,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=QEd(b,c);c=b.lineArray;b=st(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("")}Gqb(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=st(a,g,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=g=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;g=Math.ceil((d+f)/2);k=2*g;for(var m=Array(k),r=Array(k),w=0;w<k;w++)m[w]=-1,r[w]=-1;m[g+1]=0;r[g+1]=0;w=d-f;for(var x=w%2!=0,D=0,H=0,J=0,O=0,R=0;R<g&&!((new Date).getTime()>e);R++){for(var V=-R+
D;V<=R-H;V+=2){var ba=g+V;var oa=V==-R||V!=R&&m[ba-1]<m[ba+1]?m[ba+1]:m[ba-1]+1;for(var ta=oa-V;oa<d&&ta<f&&b.charAt(oa)==c.charAt(ta);)oa++,ta++;m[ba]=oa;if(oa>d)H+=2;else if(ta>f)D+=2;else if(x&&(ba=g+w-V,ba>=0&&ba<k&&r[ba]!=-1)){var ka=d-r[ba];if(oa>=ka){a=REd(a,b,c,oa,ta,e);break a}}}for(V=-R+J;V<=R-O;V+=2){ba=g+V;ka=V==-R||V!=R&&r[ba-1]<r[ba+1]?r[ba+1]:r[ba-1]+1;for(oa=ka-V;ka<d&&oa<f&&b.charAt(d-ka-1)==c.charAt(f-oa-1);)ka++,oa++;r[ba]=ka;if(ka>d)O+=2;else if(oa>f)J+=2;else if(!x&&(ba=g+w-V,
ba>=0&&ba<k&&m[ba]!=-1&&(oa=m[ba],ta=g+oa-ba,ka=d-ka,oa>=ka))){a=REd(a,b,c,oa,ta,e);break a}}}a=[[-1,b],[1,c]]}return a},REd=function(a,b,c,d,e,f){var g=b.substring(d),k=c.substring(e);b=st(a,b.substring(0,d),c.substring(0,e),!1,f);a=st(a,g,k,!1,f);return b.concat(a)},QEd=function(a,b){function c(g){for(var k="",m=0,r=-1,w=d.length;r<g.length-1;){r=g.indexOf("\n",m);r==-1&&(r=g.length-1);var x=g.substring(m,r+1);(e.hasOwnProperty?e.hasOwnProperty(x):e[x]!==void 0)?k+=String.fromCharCode(e[x]):(w==
f&&(x=g.substring(m),r=g.length),k+=String.fromCharCode(w),e[x]=w,d[w++]=x);m=r+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},LEd=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},MEd=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},SEd=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++}},PEd=function(a,b){function c(k,m,r){for(var w=k.substring(r,r+Math.floor(k.length/4)),x=-1,D="",
H,J,O,R;(x=m.indexOf(w,x+1))!=-1;){var V=LEd(k.substring(r),m.substring(x)),ba=MEd(k.substring(0,r),m.substring(0,x));D.length<ba+V&&(D=m.substring(x-ba,x)+m.substring(x,x+V),H=k.substring(0,r-ba),J=k.substring(r+V),O=m.substring(0,x-ba),R=m.substring(x+V))}return D.length*2>=k.length?[H,J,O,R,D]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(d.length<4||e.length*2<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var g;if(f||d)d?g=f?f[4].length>d[4].length?
f:d:d:g=f;else return null;a.length>b.length?(a=g[0],b=g[1],f=g[2],d=g[3]):(f=g[0],d=g[1],a=g[2],b=g[3]);return[a,b,f,d,g[4]]},Gqb=function(a,b){for(var c=!1,d=[],e=0,f=null,g=0,k=0,m=0,r=0,w=0;g<b.length;)b[g][0]==0?(d[e++]=g,k=r,m=w,w=r=0,f=b[g][1]):(b[g][0]==1?r+=b[g][1].length:w+=b[g][1].length,f&&f.length<=Math.max(k,m)&&f.length<=Math.max(r,w)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,g=e>0?d[e-1]:-1,w=r=m=k=0,f=null,c=!0)),g++;c&&OEd(a,b);TEd(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=SEd(a,c);e=SEd(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++}},TEd=function(a){function b(x,D){if(!x||!D)return 6;var H=x.charAt(x.length-1),J=D.charAt(0),O=H.match(UEd),R=J.match(UEd),V=O&&H.match(VEd),
ba=R&&J.match(VEd);H=V&&H.match(WEd);J=ba&&J.match(WEd);x=H&&x.match(XEd);D=J&&D.match(YEd);return x||D?5:H||J?4:O&&!V&&ba?3:V||ba?2:O||R?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==0&&a[c+1][0]==0){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=MEd(d,e);if(g){var k=e.substring(e.length-g);d=d.substring(0,d.length-g);e=k+e.substring(0,e.length-g);f=k+f}g=d;k=e;for(var m=f,r=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var w=b(d,e)+b(e,f);w>=r&&(r=
w,g=d,k=e,m=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-1,1),c--),a[c][1]=k,m?a[c+1][1]=m:(a.splice(c+1,1),c--))}c++}},UEd=/[^a-zA-Z0-9]/,VEd=/\s/,WEd=/[\r\n]/,XEd=/\n\r?\n$/,YEd=/^\r?\n\r?\n/,OEd=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=LEd(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=MEd(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&&OEd(a,b)};var XY=function(){this.analytics=p(lQ);this.issueComments=p(xS);this.dialogManager=p(VB)};XY.prototype.show=function(a,b,c){var d=this,e;return y(function(f){if(d.dialog&&d.dialog.getState()!==2)return f.return();d.analytics.trackEvent("commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:ZEd(d,a,b,c)};d.dialog=d.dialogManager.open(WY,{data:e,width:"50vw"});return f.return(ie(TB(d.dialog)))})};
var ZEd=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",g=e.length>0?e[0].formattingMode:"",k=!1,m=[];e=l(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var w=Iqb(r);w||k?(f=$Ed(r.unlinkifiedComment),g=$Ed(r.formattingMode)):(f=Hqb(f,r.unlinkifiedComment),k=r.formattingMode,g=g===k?$Ed(k):Fh([$Ed(g,"diff-removed"),$Ed(k,"diff-added")]));k=r.unlinkifiedComment===void 0?"":r.unlinkifiedComment;var x=r.version,D=r.commentContentVerdict;
m.push({unlinkifiedComment:k,lastEditorUser:r.lastEditorUser,version:x,formattingMode:r.formattingMode,formattingModeDiff:g,lastModified:Number(r.lastModified)/1E3,open:x<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:D&&D.piiVerdict&&D.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:Iqb(r)});f=r.unlinkifiedComment;g=r.formattingMode;k=w}d>-1?m[d].open=!0:m[0].open=!0;return m})},$Ed=function(a,b){return Hh("span",b?{"class":b}:void 0,a)};
XY.\u0275fac=function(a){return new (a||XY)};XY.\u0275prov=Fc({token:XY,factory:XY.\u0275fac,providedIn:"root"});var YY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,YY.messageId)};Y(YY,W);YY.prototype.getUrl=function(){return xi(this,1,void 0,jb)};YY.prototype.setUrl=function(a){return yj(this,1,a,jb)};YY.prototype.hasUrl=function(){return wm(this,1,jb)};YY.messageId="b.AttachmentUrlResponse";var ZY=function(){this.executor=p(pO)};ZY.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("vf"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(e_a(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:YY}).then(function(f){return f.getUrl()})};ZY.\u0275fac=function(a){return new (a||ZY)};ZY.\u0275prov=Fc({token:ZY,factory:ZY.\u0275fac,providedIn:"root"});var $Y=function(){this.templateRef=p(gg);this.viewContainer=p(hg);this.activeSession=p(Qu);this.isInternal=this.activeSession.isInternalSession()};$Y.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275dir=df({type:$Y,selectors:[["","internalOnly",""]],standalone:!1});var aZ=function(){this.dialogRef=p(SB);this.data=p(UB);this.userAccess=p(JP);this.attachmentsUrl=p(ZY);this.butterBar=p(gO);this.domSafe=p(sR);this.documentationLinks=p(hS);this.changeDetectorRef=p(iQ,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};aZ.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
aZ.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;Kqb(this)?(this.hasViewAccess=!1,KP(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b}).finally(function(){a.isLoading=!1})):(this.hasViewAccess=!0,this.isLoading=!1)};aZ.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var Kqb=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},aFd=function(a){var b=a.download&&wSa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?Amd(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};aZ.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
aZ.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};aZ.\u0275fac=function(a){return new (a||aZ)};
aZ.\u0275cmp=C({type:aZ,selectors:[["b-attachment-download-dialog"]],standalone:!1,features:[Ig([iQ])],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,Lqb,2,1,"ng-container",7),F(13,Mqb,3,0,"div",2),L(),F(14,Nqb,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 aFd(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:[Yy,nC,jC,YB,$B,ZB,AK,II,$Y],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 bFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bFd,W);h=bFd.prototype;h.getIssueId=function(){return En(this,1)};h.getIssueId_asString=function(){return In(this,1)};h.setIssueId=function(a){return Xo(this,1,a)};h.getAttachmentId_asString=function(){return In(this,2)};h.setAttachmentId=function(a){return Xo(this,2,a)};h.getRestrictedRetention=function(){return Ii(this,3)};h.setRestrictedRetention=function(a){return $m(this,3,a)};var cFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cFd,W);cFd.prototype.getIt=function(){return X(this,bFd,4)};cFd.prototype.setIt=function(a){return Zi(this,bFd,4,a)};var bZ=function(){this.executor=p(oO)};bZ.prototype.updateRetention=function(a,b,c){c=(new cFd).setIt((new bFd).setIssueId(a).setAttachmentId(Number(b)).setRestrictedRetention(IXa(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:qS}).pipe(A(L8a))};bZ.\u0275fac=function(a){return new (a||bZ)};bZ.\u0275prov=Fc({token:bZ,factory:bZ.\u0275fac,providedIn:"root"});var dFd;var eFd=Symbol("wf"),fFd=Symbol("xf"),gFd=Symbol("yf"),hFd=/^[a-z0-9-_]{6,30}$/,iFd="productID must match the expression: "+hFd;var tt=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}),Pqb={};Qw(ut,Sqb);for(var jFd=[],kFd=0;kFd<63;kFd++)jFd[kFd]=0;var lFd=[].concat(128,jFd);ut.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ra.Int32Array?new Int32Array(this.initHashBlocks_):Ma(this.initHashBlocks_)};
var mFd=function(a){for(var b=a.chunk_,c=a.w_,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.hash_[0]|0;d=a.hash_[1]|0;e=a.hash_[2]|0;for(var f=a.hash_[3]|0,g=a.hash_[4]|0,k=a.hash_[5]|0,m=a.hash_[6]|0,r=a.hash_[7]|0,w=0;w<64;w++){var x=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,D=(r+((g>>>6|g<<26)^
(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&k^~g&m)+(Tqb[w]|0)|0)+(c[w]|0)|0)|0;r=m;m=k;k=g;g=f+D|0;f=e;e=d;d=b;b=D+x|0}a.hash_[0]=a.hash_[0]+b|0;a.hash_[1]=a.hash_[1]+d|0;a.hash_[2]=a.hash_[2]+e|0;a.hash_[3]=a.hash_[3]+f|0;a.hash_[4]=a.hash_[4]+g|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+m|0;a.hash_[7]=a.hash_[7]+r|0};
ut.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&&(mFd(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("Bf");this.chunk_[d++]=e;d==this.blockSize&&(mFd(this),d=0)}else throw Error("Cf");this.inChunk_=d;this.total_+=b};
ut.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(lFd,56-this.inChunk_):this.update(lFd,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;mFd(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 Uqb=[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],Tqb;Qw(Wqb,ut);var Vqb=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var Yqb=window.TextEncoder?new TextEncoder:void 0,Zqb=Yqb?Yqb.encode("$@#|").buffer:void 0;var nFd=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],oFd=window.TextEncoder?new TextEncoder:void 0,pFd={},qFd=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!hFd.test("buganizer"))throw Error(iFd);if(!frb())throw Error("Gf");pFd.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=pFd.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",
function(){b()},{once:!0});a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},rFd=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Hf");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);}})},tFd=function(a,b,c,d){y(function(e){return e.return(sFd(a,b,c,d))})},
sFd=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra,$a,pb,Yb,lc,fc,qc,sb,Ob,ib,Zb,tc,ld,Rb;return y(function(mc){switch(mc.nextAddress){case 1:g=!((f=e)==null||!f.withoutSandbox);m=!((k=e)==null||!k.ignoreUrlFragment);if(a.renderCalled)throw Error("If");if(!oFd)throw Error("Ef");if(!g&&((r=a.shimOptions)==null?void 0:(w=r.pdfViewer)==null?void 0:w[gFd])!==void 0&&c.toLowerCase()==="application/pdf"&&b instanceof ArrayBuffer)return mc.return(uFd(a,b,d,a.shimOptions.pdfViewer[gFd]));
a.renderCalled=!0;H=(D=(x=a.shimOptions)==null?void 0:x.sandbox)!=null?D:nFd;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;ba=(V=a.shimOptions)==null?void 0:V.enableBrowserCaching;ta=m?void 0:(oa=a.shimOptions)==null?void 0:oa.urlFragment;Ca=(ka=e)==null?void 0:ka.unsafeDocumentWrite;if(!ba){R=brb().buffer;
mc.jumpTo(2);break}if(ba===!0)return z(mc,arb({useSubtleCrypto:O,parts:[b,location.pathname]}),7);if(typeof ba!=="object"||!ba[fFd])throw Error("Jf");return z(mc,Xqb(oFd.encode(ba[fFd]).buffer,O),6);case 6:R=mc.yieldResult;mc.jumpTo(2);break;case 7:R=mc.yieldResult;case 2:return ja=window.origin,z(mc,drb({product:a.productID,salt:R,useSubtleCrypto:O,trustedOrigin:ja,version:Number("833788197")}),8);case 8:ua=mc.yieldResult;xa=erb({trustedOrigin:ja,fileHash:ua,version:"833788197",product:a.productID,
cache:!!ba});Ra=(new URL(xa)).origin;a.shimBlobUrlFactory!==void 0?($a=a.shimBlobUrlFactory(xa),pb=URL.createObjectURL($a),a.shimIframe.src=pb,Ra=(new URL(pb)).origin):a.shimIframe.src=xa;((Yb=a.shimOptions)==null?void 0:Yb.useShadowDom)===eFd?(lc=document.createElement("safe-content-frame"),fc=lc.attachShadow({mode:"open"}),a.shimIframe.part.add("shim-iframe"),fc.appendChild(a.shimIframe),d.appendChild(lc)):d.appendChild(a.shimIframe);if(!Oqb(a.productID))return z(mc,a.attachedPromise,10);qc=new Promise(function(Mc,
fd){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?fd(Error("Af")):fd(Error("Hf"))},15E3)});Yd(mc,11);return z(mc,Promise.race([a.attachedPromise,qc]),13);case 13:Zj(mc,10);break;case 11:return sb=be(mc),z(mc,Rqb(sb,a.productID,Ra,"attachedPromise"),14);case 14:throw sb;case 10:Ob=!1;Zb=new Promise(function(Mc){a.shimIframe.addEventListener("load",function(){Ob=!0;Mc(ib)},{once:!0})});ib={sendMessage:function(Mc,fd){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Hf");
a.shimIframe.contentWindow.postMessage(Mc,Ra,fd)},origin:Ra,fullyLoadedPromise:Zb,fullyLoadedPromiseWithTimeout:grb(Zb,function(){return Ob})};tc=rFd(a,{body:b,mimeType:c,salt:R,urlFragment:ta,unsafeDocumentWrite:Ca},Ra);if(!Oqb(a.productID))return z(mc,tc,17);ld=new Promise(function(Mc,fd){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?fd(Error("Af")):fd(Error("Hf"))},7E3)});Yd(mc,18);return z(mc,Promise.race([tc,ld]),20);case 20:Qqb(a.productID,"heartbeat",Ra);Zj(mc,17);
break;case 18:return Rb=be(mc),z(mc,Rqb(Rb,a.productID,Ra,"sendShimMessagePromise"),21);case 21:throw Rb;case 17:return mc.return(ib)}})},uFd=function(a,b,c,d){var e,f,g,k,m,r,w,x;return y(function(D){if(D.nextAddress==1)return f=(e=a.shimOptions)==null?void 0:e.urlFragment,g='<!DOCTYPE html><html><head><meta charset="utf-8">\n    <script>'+LFa(dFd||(dFd=v0c('[null,null,null,null,null,"(function(){\'use strict\';let h\\u003d!1;function k(a){if(!a||typeof a!\\u003d\\u003d\\"object\\"\\u0026\\u0026typeof a!\\u003d\\u003d\\"function\\")throw Error(\\"Invalid PDF viewer message\\");const f\\u003da.action,d\\u003da.file,e\\u003da.filename;a\\u003da.urlFragment;if(typeof f!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(a!\\u003d\\u003dvoid 0\\u0026\\u0026typeof a!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(typeof e!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(!(d instanceof ArrayBuffer))throw Error(\\"Invalid PDF viewer message\\");return{action:f,file:d,filename:e,urlFragment:a}}\\nfunction m(a){const {action:f,file:d,filename:e,urlFragment:l}\\u003dk(a.data);if(a.source!\\u003d\\u003dwindow.parent)throw Error(\\"Only messages from parent are allowed\\");const g\\u003da.ports[0];if(f\\u003d\\u003d\\u003d\\"renderPdf\\"\\u0026\\u0026!h){if(d\\u003d\\u003d\\u003dvoid 0)throw Error(\\"Invalid PDF viewer message\\");a\\u003dURL.createObjectURL(new Blob([d],{type:\\"application/pdf\\"}));var b\\u003de\\u003d\\u003d\\u003d\\"__SCF_TEST_NO_PDF_SUPPORT__\\";if(b||navigator.pdfViewerEnabled\\u003d\\u003d\\u003d!1){const c\\u003ddocument.createElement(\\"a\\");c.href\\u003da;c.download\\u003db?\\"test.pdf\\":e.replace(/[^a-zA-Z0-9._-]/g,\\"_\\");c.textContent\\u003d\\n`Download ${c.download}`;c.style.cssText\\u003d\\"background-color: #1a73e8; color: white; text-decoration: none; padding: 10px 24px; border-radius: 4px;\\";document.body.style.cssText\\u003d\\"display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; margin: 0;\\";document.body.replaceChildren(c);g\\u0026\\u0026g.postMessage(\\"Native PDF viewer not supported\\")}else b\\u003ddocument.createElement(\\"iframe\\"),a\\u003dnew URL(a),l\\u0026\\u0026(a.hash\\u003dl),b.src\\u003da.href,b.style.cssText\\u003d\\"position:absolute; top:0; left:0; bottom:0; right:0; width:100vw; height:100vh; border:none; margin:0; padding:0; z-index:999999;\\",\\nb.onload\\u003d()\\u003d\\u003e{g\\u0026\\u0026g.postMessage(\\"Iframe with the PDF loaded\\")},document.body.replaceChildren(b);h\\u003d!0;window.removeEventListener(\\"message\\",m)}}window.addEventListener(\\"message\\",m);}).call(this);\\n"]')))+
"\x3c/script></head><body></body></html>",z(D,sFd(a,g,"text/html; charset=utf-8",c,{withoutSandbox:!0,ignoreUrlFragment:!0}),2);if(D.nextAddress!=3)return k=D.yieldResult,z(D,k.fullyLoadedPromiseWithTimeout(3E4),3);m=!1;r=new MessageChannel;x=new Promise(function(H){r.port1.onmessage=function(J){if(J.data==="Iframe with the PDF loaded"||J.data==="Native PDF viewer not supported")m=!0,H(w)}});w={sendMessage:k.sendMessage,origin:k.origin,fullyLoadedPromise:x,fullyLoadedPromiseWithTimeout:grb(x,function(){return m})};
k.sendMessage({action:"renderPdf",file:b,filename:d,urlFragment:f},[r.port2]);return D.return(w)})};var vFd=["attachmentContent"],cZ=function(){Z.apply(this,arguments);this.attachmentsApi=p(sS)};Y(cZ,Z);cZ.\u0275dir=Z.\u0275dir;cZ.prototype.ngOnInit=function(){wFd(this)};var wFd=function(a){a.subscriptions.add(Uod(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&tFd(new qFd,b,a.mimeType,a.container.nativeElement)}))};cZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(cZ)))(b||cZ)}}();
cZ.\u0275cmp=C({type:cZ,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&jg(vFd,5);if(a&2){var c;ng(c=og())&&(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 dZ=function(){this.inlinedAttachmentSet=new Set};dZ.prototype.getCount=function(){return this.inlinedAttachmentSet.size};dZ.\u0275fac=function(a){return new (a||dZ)};dZ.\u0275prov=Fc({token:dZ,factory:dZ.\u0275fac,providedIn:"root"});var xFd=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new hQ};xFd.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};xFd.\u0275fac=function(a){return new (a||xFd)};
xFd.\u0275cmp=C({type:xFd,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,hrb,2,3,"span",0),F(1,irb,2,3,"a",1));a&2&&(G(b.isGreyedOut||!b.linkEnabled?
0:-1),B(),G(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var eZ=function(){this.tooltipRegistry={}};eZ.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};eZ.\u0275fac=function(a){return new (a||eZ)};eZ.\u0275prov=Fc({token:eZ,factory:eZ.\u0275fac,providedIn:"root"});var fZ=function(){fA.apply(this,arguments)};Y(fZ,fA);fZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(fZ)))(b||fZ)}}();fZ.\u0275dir=df({type:fZ,selectors:[["","expandable-tab-content",""]],standalone:!1,features:[Gf]});var gZ=function(){fA.apply(this,arguments)};Y(gZ,fA);gZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(gZ)))(b||gZ)}}();gZ.\u0275dir=df({type:gZ,selectors:[["","expandable-tab-header",""]],standalone:!1,features:[Gf]});
var hZ=function(){fA.apply(this,arguments)};Y(hZ,fA);hZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(hZ)))(b||hZ)}}();hZ.\u0275dir=df({type:hZ,selectors:[["","expandable-tab-icon",""]],standalone:!1,features:[Gf]});var iZ=function(){};iZ.prototype.ngOnInit=function(){};iZ.\u0275fac=function(a){return new (a||iZ)};
iZ.\u0275cmp=C({type:iZ,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(kg(c,gZ,5,gg),kg(c,fZ,5,gg),kg(c,hZ,5,gg));if(a&2){var d;ng(d=og())&&(b.tabHeaderTemplate=d.first);ng(d=og())&&(b.tabContentTemplate=d.first);ng(d=og())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var lrb=function(a){return{tab:a}},urb=function(a){return{allTabsExpanded:a}},Hrb=function(){return[]},yFd=function(a,b){return b.key},jZ=function(){Z.apply(this,arguments);this.internalTabKeys$=new Wj([]);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 gR;this.showIcons=this.showMultiple=!0;this.visibleExpandedTabs$=
le([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=l(a);a=b.next().value;var c=b.next().value;return a.filter(function(d){return c.has(d)})}));this.expandedTabsChanged=new hQ;this.contentShownChanged=new hQ;this.showAllClicked=new hQ;this.tabs$=new Wj([]);this.allTabsExpanded$=le([this.tabs$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=l(a);a=b.next().value;var c=b.next().value;return a.every(function(d){return c.has(d.key)})}))};Y(jZ,Z);
jZ.\u0275dir=Z.\u0275dir;
jZ.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=l(b);var c=b.next().value;return b.next().value.map(function(d){return Object.assign({},{key:d},c.get(d))})})).subscribe(this.tabs$));this.subscriptions.add(le([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return gSa(new Set(b),new Set(c))}),pf(Dm)).subscribe(function(b){a.contentShownChanged.emit(b)}))};jZ.prototype.ngOnInit=function(){};
var rrb=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)})};
jZ.prototype.showAll=function(){var a=this;return y(function(b){if(b.nextAddress==1)return z(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,q(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ce(b)})};jZ.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
jZ.prototype.toggleAll=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,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(jZ.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("Kf");this.internalExpandedTabs.reset(a)},get:function(){return[].concat(q(this.internalExpandedTabs))}}});jZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(jZ)))(b||jZ)}}();
jZ.\u0275cmp=C({type:jZ,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&kg(c,iZ,5);if(a&2){var d;ng(d=og())&&(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,jrb,2,2,"span",3),K(2,"div",4),Qf(3,srb,9,21,"button",5,yFd),T(5,"async"),L(),K(6,"div",6),F(7,vrb,2,5)(8,xrb,5,4),L()(),K(9,"div",7),Qf(10,Jrb,2,3,null,null,yFd),T(12,"async"),L(),E(13,Orb,2,1,"ng-template",null,0,Og));a&2&&(B(),G(b.expandableTabsTitle?1:-1),B(),Kf("aria-label",b.ariaLabel),B(),Rf(U(5,3,b.tabs$)),B(4),G(b.showMultiple?7:8),
B(3),Rf(U(12,5,b.tabs$)))},dependencies:[ky,Yy,nC,jC,ly],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.has-icon[_ngcontent-%COMP%]{padding-left:8px}.expandable-tab.expanded[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);border-color:transparent}.expandable-tab[_ngcontent-%COMP%]:hover{-webkit-filter:brightness(95%);filter:brightness(95%)}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button{line-height:unset;height:auto}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button .mat-icon{margin-right:4px}.expandable-tabs.flex-kids-x[_ngcontent-%COMP%]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.expandable-tabs-title[_ngcontent-%COMP%]{margin-right:8px}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow-x:auto}.expandable-tab-content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;color:#202124;color:var(--c900);margin:16px 0}.expandable-tab-content[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{margin-top:8px}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});var zFd={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3,LEFT_TOP:4,LEFT_BOTTOM:5,RIGHT_TOP:6,RIGHT_BOTTOM:7,0:"TOP_LEFT",1:"TOP_RIGHT",2:"BOTTOM_LEFT",3:"BOTTOM_RIGHT",4:"LEFT_TOP",5:"LEFT_BOTTOM",6:"RIGHT_TOP",7:"RIGHT_BOTTOM"};var kZ=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new gj;this.action=new gj;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=zFd;this.width=272;this.previouslyFocusedElement=null;this.dismissIfEscape=function(e){e.key==="Escape"&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;e!=null&&e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=
d.document.activeElement)};this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};kZ.prototype.ngAfterContentInit=function(){hz(this.focusTrap);this.setPreviouslyFocusedElement();pEc(this.focusTrap)};
kZ.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
kZ.prototype.dismissTooltip=function(){this.dismiss.next();this.previouslyFocusedElement&&"focus"in this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0});this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement)};da.Object.defineProperties(kZ.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
kZ.\u0275fac=function(a){return new (a||kZ)(Ye(Uh),Ye(zz),Ye(Jd))};
kZ.\u0275cmp=C({type:kZ,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&yg("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",action:"action"},standalone:!1,features:[Ig([{provide:yEc,useValue:{preventFocus:function(){},allowFocus:function(){}}},zz])],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&&(eg(),K(0,"div",0)(1,"div",1),M(2,"div",2),L(),fg(3),K(4,
"div",3),E(5,Qrb,4,2,"button",4),K(6,"button",5),N("click",function(){return b.dismissTooltip()}),Q(7," Got it "),L()()());a&2&&(xg("width",b.width,"px"),I("ngClass",b.color),B(5),I("ngIf",b.actionBtnText),B(),I("color",b.color==="white"?"primary":""))},dependencies:[kz,Yx,fy,QI,Yy],styles:[".overlay-container{overflow:hidden}.dark-mode,:root{--tooltip-white-bg:var(--surface-default,#fff);--tooltip-blue-bg:var(--blue-700,#1967d2);--tooltip-white-text:var(--grey-800,#3c4043);--tooltip-blue-text:var(--text-inverse,#fff);--tooltip-shadow-color:rgba(0,0,0,.2)}.dark-mode{--tooltip-white-bg:var(--surface-default,#28292c);--tooltip-blue-bg:var(--blue-300,#8ab4f8);--tooltip-white-text:var(--grey-300,#dadce0);--tooltip-blue-text:var(--text-inverse,#000);--tooltip-shadow-color:rgba(0,0,0,.5)}.tooltip-body{padding:24px;border-radius:8px;color:var(--tooltip-text);background-color:var(--tooltip-bg);position:relative;--pointer-edge-offset:24px;--pointer-width:18px;--pointer-height:12px;--pointer-container-height:30px;--pointer-container-width:calc(var(--pointer-edge-offset)*2 + var(--pointer-width));--pointer-adjustment:-9px;box-shadow:0 1px 3px 0 var(--tooltip-shadow-color),0 4px 8px 3px var(--tooltip-shadow-color)}.tooltip-body.blue{--tooltip-text:var(--tooltip-blue-text);--tooltip-bg:var(--tooltip-blue-bg)}.tooltip-body.white{--tooltip-text:var(--tooltip-white-text);--tooltip-bg:var(--tooltip-white-bg)}.tooltip-body .button-row{margin-top:16px;text-align:right}.tooltip-body .button-row>button{height:36px}.tooltip-body .button-row .close-button{color:var(--tooltip-bg);margin-left:16px;width:88px}.tooltip-body .button-row .action-button{padding-left:8px;padding-right:8px}.tooltip-body .button-row .action-button .action-button-wrapper{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.tooltip-body .button-row .action-button .action-button-wrapper .action-button-icon{font-size:18px;height:18px;padding-left:8px;width:18px}.tooltip-body .pointer-container{position:absolute;overflow:hidden;pointer-events:none}.tooltip-body .pointer-container .pointer{width:16px;height:16px;position:absolute;background-color:var(--tooltip-bg)}.tooltip-body .tooltip-title{margin:0 4px 0 0}.pointer-bottom-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-left .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-left .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-left .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-left .pointer-container{left:0}.pointer-bottom-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-right .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-right .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-right .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-right .pointer-container{right:0}.pointer-top-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-left .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-left .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-left .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-left .pointer-container{left:0}.pointer-top-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-right .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-right .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-right .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-right .pointer-container{right:0}.pointer-left-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-top .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-top .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-top .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-top .pointer-container{top:0}.pointer-left-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-bottom .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-bottom .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-bottom .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-bottom .pointer-container{bottom:0}.pointer-right-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-top .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-top .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-top .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-top .pointer-container{top:0}.pointer-right-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-bottom .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-bottom .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-bottom .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-bottom .pointer-container{bottom:0}"],
encapsulation:2,changeDetection:0});var lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=cf({type:lZ});lZ.\u0275inj=Gc({});var mZ=function(){this.anchorMap=new Map},AFd=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},BFd=function(a,b,c){AFd(a,b).created$.next(c)},CFd=function(a,b){AFd(a,b).destroyed$.next();AFd(a,b).created$.next(void 0)};mZ.prototype.dismissTooltip=function(){AFd(this).dismissTooltip$.next()};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275prov=Fc({token:mZ,factory:mZ.\u0275fac,providedIn:lZ});var nZ={TOP_LEFT:{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},TOP_CENTER_RIGHT:{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},TOP_CENTER_LEFT:{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},TOP_RIGHT:{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",
offsetX:12}},RIGHT_TOP:{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},RIGHT_CENTER_BOTTOM:{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},RIGHT_CENTER_TOP:{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}},RIGHT_BOTTOM:{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",
overlayY:"bottom",offsetY:12}},LEFT_BOTTOM:{pointerPosition:7,connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},LEFT_CENTER_BOTTOM:{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"top",offsetY:-33}},LEFT_CENTER_TOP:{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},LEFT_TOP:{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",
overlayX:"end",overlayY:"top",offsetY:-12}},BOTTOM_LEFT:{pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},BOTTOM_CENTER_RIGHT:{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},BOTTOM_CENTER_LEFT:{pointerPosition:1,connectedPosition:{originX:"center",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}},BOTTOM_RIGHT:{pointerPosition:1,connectedPosition:{originX:"end",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}},DFd=[nZ.TOP_CENTER_RIGHT,nZ.TOP_CENTER_LEFT,nZ.BOTTOM_CENTER_RIGHT,nZ.BOTTOM_CENTER_LEFT],EFd=[nZ.TOP_LEFT,nZ.TOP_RIGHT,nZ.BOTTOM_LEFT,nZ.BOTTOM_RIGHT],FFd=[nZ.LEFT_CENTER_BOTTOM,nZ.LEFT_CENTER_TOP,nZ.RIGHT_CENTER_BOTTOM,nZ.RIGHT_CENTER_TOP],GFd=[nZ.LEFT_TOP,nZ.LEFT_BOTTOM,nZ.RIGHT_TOP,nZ.RIGHT_BOTTOM];var oZ=function(){};oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275mod=cf({type:oZ});oZ.\u0275inj=Gc({});var HFd=function(){},JFd=function(a,b){return IFd(a,b).map(function(c){return c.connectedPosition})},KFd=function(a,b,c){a=IFd(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("Lf`"+JSON.stringify(c));return a.pointerPosition},IFd=function(a,b){b=LFd(b).filter(function(c){return!a.includes(c)});return a.concat(b)},LFd=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?DFd:EFd).concat(a!==void 0&&a<60?FFd:GFd)};HFd.\u0275fac=function(a){return new (a||HFd)};HFd.\u0275prov=Fc({token:HFd,factory:HFd.\u0275fac,providedIn:oZ});var MFd=["template"],pZ=function(a,b,c,d,e){var f=this;this.anchorService=a;this.overlay=b;this.containerRef=c;this.ngZone=d;this.changeDetectorRef=e;this.open$=new sf;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new gj;this.beforeShown=new gj;this.action=new gj;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}};pZ.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||$Ec(b,NFd(this))}};
pZ.prototype.ngOnInit=function(){var a=AFd(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;OFd(this,a.created$);b.pipe(Bf(this.destroyed$)).subscribe(this.hideFeatureTooltip);PFd(this,c)};pZ.prototype.ngAfterViewInit=function(){this.init$.next()};pZ.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var OFd=function(a,b){a.open$.pipe(Pla(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)})},PFd=function(a,b){b.pipe(Bf(a.destroyed$),we(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
pZ.prototype.showFeatureTooltip=function(a){this.anchor=a;a=a.nativeElement;if(this.hasBackdrop){var b=a.style,c=b.position;this.savedAnchorStyles={zIndex:b.zIndex,position:c};if(c==="static"||c==="")a.style.position="relative";a.style.zIndex="1001"}this.overlayRef=this.overlay.create({positionStrategy:NFd(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new dA(this.templateRef,this.containerRef))};
pZ.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};pZ.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("Mf");return Uz($z(this.overlay.position(),this.anchor),JFd(this.customPositions,this.anchor))};
var NFd=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=KFd(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};pZ.prototype.isVisible=function(){return!!this.overlayRef};pZ.\u0275fac=function(a){return new (a||pZ)(Ye(mZ),Ye(iA),Ye(hg),Ye(Tg),Ye(Px),Ye(HFd))};
pZ.\u0275cmp=C({type:pZ,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&jg(MFd,5);if(a&2){var c;ng(c=og())&&(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:[xx],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(eg(),E(0,Rrb,2,5,"ng-template",null,0,Og))},dependencies:[kZ],encapsulation:2,changeDetection:0});var qZ=function(){};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275mod=cf({type:qZ});qZ.\u0275inj=Gc({});var rZ=function(){this.observedValues=new Map};rZ.prototype.getValue=function(a){a=window.localStorage.getItem(a);return ee(a?JSON.parse(a):null)};rZ.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))};rZ.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));var c;(c=this.observedValues.get(a))==null||c.set(b);return ee(void 0)};
rZ.\u0275fac=function(a){return new (a||rZ)};rZ.\u0275prov=Fc({token:rZ,factory:rZ.\u0275fac,providedIn:"root"});var QFd=new ed("Feature Tooltip Controller Config"),sZ=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(cL):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"},RFd=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(A(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};sZ.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||R$c(b,this.config.hiddenMetricName,!0);qe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(SFd(this,a),"HIDDEN")]).pipe(mf())};
var TFd=function(a,b){a.keyValueStore.getValue(SFd(a,b)).pipe(we(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(SFd(a,b),"HIDDEN")})},VFd=function(a,b,c){var d=c.map(function(e){return SFd(a,e)});return a.keyValueStore.getValues(d).pipe(A(function(e){return UFd(a,b,c,e)}))};
sZ.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||R$c(b,this.config.shownMetricName,!0);return qe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(SFd(this,a),"SHOWING")]).pipe(mf())};var UFd=function(a,b,c,d){return c.filter(function(e){e=d.get(SFd(a,e));return e===b||b==="UNSEEN"&&e===null})},SFd=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
sZ.\u0275fac=function(a){return new (a||sZ)(Zc(QFd),Zc(rZ),Zc(Ae))};sZ.\u0275prov=Fc({token:sZ,factory:sZ.\u0275fac,providedIn:qZ});var tZ=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=ee(void 0);this.destroyed$=new wf;this.getCurrentlyShowingTooltips=function(){return VFd(b.featureTooltipService,"SHOWING",WFd(b))}};
tZ.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(XFd(a),YFd(a))}),A(function(c){return ZFd(a,c)}),we(function(c){return!!c}),A(function(c){return c}),xf({bufferSize:1,refCount:!0}));$Fd(this,b);b.pipe(Bf(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};tZ.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var XFd=function(a){return Ud(Af(function(){return RFd(a.featureTooltipService)}),we(Td))},YFd=function(a){return Ud(Af(function(){return VFd(a.featureTooltipService,"UNSEEN",WFd(a))}),we(function(b){return b.length>0}),A(function(b){return b[0]}))},$Fd=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)})},WFd=function(a){return a.tooltips.map(function(b){return b.tooltipId})},ZFd=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};tZ.\u0275fac=function(a){return new (a||tZ)(Ye(sZ))};tZ.\u0275cmp=C({type:tZ,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&kg(c,pZ,4);if(a&2){var d;ng(d=og())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var uZ=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};uZ.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){l(b).next().value.isIntersecting?BFd(a.anchorService,a.tooltipId,a.element):CFd(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):BFd(this.anchorService,this.tooltipId,this.element)};
uZ.prototype.ngOnDestroy=function(){CFd(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};uZ.\u0275fac=function(a){return new (a||uZ)(Ye(mZ),Ye(Jd))};uZ.\u0275dir=df({type:uZ,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var vZ=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){TFd(d.featureTooltipService,d.tooltipId)}};vZ.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};vZ.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
da.Object.defineProperties(vZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;(b=this.unsubscribeFromEvent)==null||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});vZ.\u0275fac=function(a){return new (a||vZ)(Ye(sZ),Ye(fi),Ye(Jd))};
vZ.\u0275dir=df({type:vZ,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var aGd=new ed("TooltipAnchor"),bGd=new ed("TooltipPeventer"),wZ=function(a,b,c,d,e,f){this.featureTooltipService=a;this.anchorService=b;this.elementRef=c;this.renderer=d;this.anchorClass=e;this.preventerClass=f;this.tooltipPreventer=new this.preventerClass(this.featureTooltipService,this.renderer,this.elementRef);this.tooltipAnchor=new this.anchorClass(this.anchorService,this.elementRef)};wZ.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
wZ.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};da.Object.defineProperties(wZ.prototype,{tooltipId:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.tooltipId=a;this.tooltipAnchor.tooltipId=a}},hideTooltipWhenAnchorNotVisible:{configurable:!0,enumerable:!0,set:function(a){this.tooltipAnchor.hideTooltipWhenAnchorNotVisible=a}},event:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.event=a}}});
wZ.\u0275fac=function(a){return new (a||wZ)(Ye(sZ),Ye(mZ),Ye(Jd),Ye(fi),Ye(aGd),Ye(bGd))};wZ.\u0275dir=df({type:wZ,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[Ig([{provide:aGd,useValue:uZ},{provide:bGd,useValue:vZ}])]});var cGd=function(){this.className="gmat-subtitle-1 tooltip-title"};cGd.\u0275fac=function(a){return new (a||cGd)};cGd.\u0275dir=df({type:cGd,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.className)},standalone:!1});var Srb=function(a,b){return[a,b]},xZ=function(){Z.apply(this,arguments);this.analytics=p(lQ);this.enrichmentApi=p(GO);this.enrichmentCategoryFridge=p(CP);this.attachmentEnrichmentFridge=p(HO);this.issueUserEventsService=p(oW);this.confirmationDialogService=p(iS);this.destroyRef=p(Ee);this.issuePermissionService=p(fR);this.documentationLinks=p(hS);this.canDeleteEnrichments$=new Wj(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=
Dh("You are about to access enrichments for an attachment\n    marked as restricted. Access will be logged and audited.\n    You must delete any data used locally when finished with\n    business use. ");this.requiredDialogLearnMoreHtml=Hh("a",{href:Bh(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Eh([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=
p(iQ);this.featureTooltipRegistry=p(eZ);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=nZ;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new $K,{position:[g$c]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment=
{}};Y(xZ,Z);xZ.\u0275dir=Z.\u0275dir;h=xZ.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(fj(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};h.initializeMenuItems=function(){var a=this;this.attachmentEnrichments.forEach(function(b){var c=[];a.canDeleteEnrichments$.value&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(b.category)},label:"Delete enrichment..."});a.categoryToActionMenuItems.set(b.category,c)})};
h.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Dh("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){lgd(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(fj(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=Ho();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&dGd(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 dGd=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);jgd(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(fj(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},eGd=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=xZ.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",esb(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",esb(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",esb(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 nW;c=(new Jwd).setAttachmentId(c).setCategory(d);c=mp(g,4,Nwd,c);f.logIssueUserEvent(a,"FEATURE_ATTACHMENT_ANALYSIS",b,c).pipe(fj(this.destroyRef)).subscribe();this.enrichmentApi.submitEnrichmentFeedback(e).pipe(fj(this.destroyRef)).subscribe()};h.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var fGd=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},Urb=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))},bsb=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(""))};xZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(xZ)))(b||xZ)}}();
xZ.\u0275cmp=C({type:xZ,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},standalone:!1,features:[Ig([iQ]),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,Trb,5,5,"onedev-feature-tooltip-controller"),K(1,"div",1)(2,"expandable-tabs",2),N("expandedTabsChanged",function(c){return eGd(b,c)}),Qf(3,dsb,3,2,"expandable-tab",3,Pf),L()());a&2&&(G(b.showFeatureTooltip?0:-1),B(),I("onedevFeatureTooltip",
b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),B(),I("tabKeys",fGd(b))("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId)("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),B(),Rf(b.attachmentEnrichments))},dependencies:[Yy,UY,qR,sT,tT,BV,iZ,fZ,gZ,jZ,nC,lC,FK,DA,WK,dL,pZ,tZ,wZ,cGd,iV,iU,ly],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 yZ=function(){this.documentationLinks=p(hS);this.dateFormatter=p(AS);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=Kdd;this.label="Restricted";this.contentType="item"};yZ.prototype.getIcon=function(){return gGd(this)?"delete-alert":"delete-clock"};yZ.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?lVa(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var gsb=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(qo(a.retentionState.scheduledDeletionTime)||b):b},gGd=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?qo(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};yZ.\u0275fac=function(a){return new (a||yZ)};
yZ.\u0275cmp=C({type:yZ,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=sg(1);return v(d.toggle(!0))})("blur",function(){u(c);var d=sg(1);return v(d.toggle(!1))});M(3,"mat-icon",4);Q(4);L();E(5,nsb,8,4,"ng-template",null,1,Og);L()}a&2&&(a=sg(6),I("panelTemplate",a),B(2),yg("warning",gGd(b)),B(),I("svgIcon",b.getIcon()),B(),S(" ",b.label," "))},dependencies:[Yy,$V,oy],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 psb=wh(""),hGd=function(){this.port=this.iframe=null;this.deferredMessages=[]};hGd.prototype.load=function(){var a=this,b=iGd();this.iframe=qsb(b);jGd().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return osb(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)})};
hGd.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(x){f.port1.onmessage=null;x=x.data;x.error!=null?e(new EvalError(x.error)):d(x.result)};for(var g=[],k=[],m=[],r=l(b!=null?b:[]),w=r.next();!w.done;w=r.next())w=w.value,g.push(w.name),k.push(w.value),w.transfer&&m.push(w.value);g={code:a,paramNames:g,values:k};c.port?c.port.postMessage(g,[f.port2].concat(q(m))):c.deferredMessages.push({data:g,transferables:[f.port2].concat(q(m))})})};
hGd.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var iGd=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},jGd=function(){return new Promise(function(a){document.readyState!="loading"?a():pB(document,"DOMContentLoaded",function(){a()})})};var kGd={useFilePicker:!1},lGd,zZ=function(a){this.options=a=a===void 0?kGd:a;mGd(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new hGd)};zZ.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?kGd:d;return y(function(e){if(e.nextAddress==1)return z(e,nGd(a,b,c,d),2);if(e.yieldResult)return e.return();lGd||(lGd=new zZ,lGd.init());return z(e,oGd(lGd,a,b,c),0)})};
zZ.prototype.init=function(){var a=this;return y(function(b){return a.sandbox==null?b.return():z(b,a.sandbox.load(),0)})};zZ.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return y(function(e){return e.nextAddress==1?z(e,nGd(a,b,c,d.options),2):e.yieldResult?e.return():z(e,oGd(d,a,b,c),0)})};
var oGd=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,rsb(),3);case 3:return g.return();case 2:if(!Ga()||aba(qba(),16)>=0||!gba()&&(!Ea("iPad")&&!Ea("iPhone")||hba()||gba()||(Fa()?0:Ea("Coast"))||fba()||!Ea("AppleWebKit"))){g.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=ot(document,
"A"),m=Bh(String(f.result));qsa(k,m);k.download=c;k.click()};f.readAsDataURL(e);return z(g,rsb(),5);case 5:return g.return();case 4:return a.sandbox==null&&(a.sandbox=new hGd,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,rsb(),0)}})},nGd=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?kGd:d;var e;return y(function(f){switch(f.nextAddress){case 1:if(!mGd(d))return f.return(!1);Yd(f,2);return z(f,pGd(a,b,c),4);case 4:Zj(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)}})},mGd=function(a){a=a===void 0?kGd:a;return a.useFilePicker&&!!window.showSaveFilePicker},
pGd=function(a,b,c){c=c===void 0?"":c;var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var m={suggestedName:b},r;(r=b.match(/\..+$/))?(r=r[0],r=r.length>16?null:r):r=null;if(r){var w={},x=c;x=x.replace(/;[^]*/,"");m.types=[{description:"*"+r,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(x)?x:"*/*"]=[r],w)}]}d=m;Yd(k,2);return z(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;Zj(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()}})};zZ.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};Pw("SafeDownloader",zZ);var AZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(Qu);this.documentationLinks=p(hS);this.domSafe=p(sR);this.matDialogService=p(VB);this.attachmentService=p(bZ);this.cdr=p(iQ,{self:!0});this.differs=p(Tx);this.paths=p(vW);this.userAccess=p(JP);this.butterBar=p(gO);this.errorHandler=p(wO);this.analytics=p(lQ);this.clipboard=p(uR);this.issueCommentDialogsService=p(CY);this.issuePermissionService=p(fR);this.editIssueService=p(NS);this.snackBar=p(uC);this.trackerHelpers=p(pS);this.attachmentCountService=
p(dZ);this.attachmentsApi=p(sS);this.attachmentEnrichmentFridge=p(HO);this.routeParams=p(BS);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 Wj(!1);this.canUndeleteAttachment$=new Wj(!1)};Y(AZ,Z);AZ.\u0275dir=Z.\u0275dir;h=AZ.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();qGd(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(){$pd(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){EDd(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";DDd(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&rGd(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,KP(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 vsb=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("Of");if(a.enableInactiveUserContent){if(b)return Tod(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return As.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 Zta(a,
"download",b)};AZ.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"};AZ.prototype.viewAttachment=function(){this.isRestricted()?sGd(this,!1):this.domSafe.openInNewTab(vsb(this,!1))};
var xsb=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()?sGd(a,!0):a.enableInactiveUserContent?a.subscriptions.add(Uod(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&zZ.download(k,e,g)})):a.domSafe.openInNewTab(vsb(a,!0))};AZ.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
AZ.prototype.getRestrictionSeverity=function(){var a;return eq((a=this.attachment)==null?void 0:a.contentVerdict)};AZ.prototype.getRestrictedLabel=function(){return f_a(this.getRestrictionSeverity())};var usb=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+e_a(a):""},sGd=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(aZ,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
AZ.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var rGd=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);$r(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;xO(a.errorHandler,"Attachment retention update failed")}})):xO(a.errorHandler,"Attachment id is missing")},qGd=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",sGd(a,d));ce(e)})};
AZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(AZ)))(b||AZ)}}();
AZ.\u0275cmp=C({type:AZ,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},standalone:!1,features:[Ig([iQ]),Gf,xx],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,ssb,1,3,"b-restricted-chip",6),F(7,tsb,2,3,"span",7),L()(),K(8,"div",8),Q(9),F(10,wsb,2,8,"span",9),F(11,ysb,5,8),K(12,"xap-bubble",10),F(13,zsb,3,3,"span",11),E(14,Asb,4,1,"ng-template",null,0,Og),L(),F(16,Bsb,1,3,"attachment-preview",12),L(),F(17,Dsb,1,1),T(18,"async"),L());if(a&2){var c;a=sg(15);B(4);S(" ",b.getFilename()," ");B(2);G(b.isRestricted()?6:-1);B();G(b.actionMenuItems.length>0?7:-1);B(2);S(" ",Jbb(b.getSize())," ");B();var d;var e=b.isActive()&&
wSa((d=b.attachment)==null?void 0:d.contentType);G(e?10:-1);B();G(b.isActive()?11:-1);B();I("panelTemplate",a);B();G(b.isRestricted()&&!b.hasViewAccess?13:-1);B(3);var f,g,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((g=b.attachment)==null?0:g.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var m;((m=b.attachment)==null?0:m.attachmentId)?(f=b.attachmentCountService,g=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(g)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(g),f=!0):f=!1):f=!1;d=f}G(d?16:-1);B();G((c=U(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[xZ,cZ,Yy,UY,xFd,yT,nC,lC,FK,DA,yZ,$V,ly],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 tGd="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()}),BZ=function(){var a=this;this.activeSession=p(Qu);this.contextSensitiveRegistry=p(cR);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);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=l(tGd);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=
l(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=l(b);b=c.next().value;c=c.next().value;return b||c}));this.contextValuesForDuckieRag$=this.issueId$.pipe(A(function(b){var c=[(new OA).setName("application_name").setStringValue("Buganizer"),(new OA).setName("application_description").setStringValue("Buganizer is an internal tool for tracking issues.")];
b&&c.push((new OA).setName("page_specific_context").setStringValue("The user is viewing Buganizer issue "+b+". Use tools to obtain information about the issue."));b=new NA;var d=b.setValuesList,e=(new OA).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 NA).setValuesList(c);c=mp(e,3,PA,c);return d.call(b,
[c])}))};BZ.\u0275fac=function(a){return new (a||BZ)};BZ.\u0275prov=Fc({token:BZ,factory:BZ.\u0275fac,providedIn:"root"});var uGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uGd.messageId)};Y(uGd,W);h=uGd.prototype;h.getIssueIdsList=function(){return ex(this,1,1,jb)};h.getIssueIdsList_asString=function(){return jn(this,1,jb)};h.setIssueIdsList=function(a){return Er(this,1,a,jb)};h.addIssueIds=function(a){return ox(this,1,a,void 0,jb)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,jb,1)};uGd.messageId="tailwind.BatchGetIssueRunStatusRequest";var Bt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bt.messageId)};Y(Bt,W);Bt.prototype.getIssueId=function(){return En(this,1,void 0,jb)};Bt.prototype.getIssueId_asString=function(){return In(this,1,void 0,jb)};Bt.prototype.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};Bt.prototype.getRunId=function(){return xi(this,2,void 0,jb)};Bt.messageId="tailwind.IssueRunStatus";var vGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vGd.messageId)};Y(vGd,W);vGd.messageId="tailwind.BatchGetIssueRunStatusResponse";var CZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,CZ.messageId)};Y(CZ,W);CZ.prototype.getIssueId=function(){return En(this,1,void 0,jb)};CZ.prototype.getIssueId_asString=function(){return In(this,1,void 0,jb)};CZ.prototype.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};CZ.messageId="tailwind.CreateRunRequest";var wt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wt.messageId)};Y(wt,W);wt.prototype.getRunId=function(){return xi(this,1,void 0,jb)};wt.prototype.getIssueId=function(){return En(this,2,void 0,jb)};wt.prototype.getIssueId_asString=function(){return In(this,2,void 0,jb)};wt.prototype.setIssueId=function(a){return Kn(this,2,a,void 0,jb)};wt.messageId="tailwind.RunMetadata";var wGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wGd.messageId)};Y(wGd,W);wGd.prototype.setRejectionReason=function(a){Vn(this,3,a,jb)};wGd.messageId="tailwind.GetIssueEligibilityResponse";var DZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,DZ.messageId)};Y(DZ,W);DZ.prototype.getIssueId=function(){return En(this,1,void 0,jb)};DZ.prototype.getIssueId_asString=function(){return In(this,1,void 0,jb)};DZ.prototype.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};DZ.messageId="tailwind.RetryRunRequest";var Jsb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Jsb.messageId)};Y(Jsb,W);Jsb.messageId="tailwind.RunResultsValidation";var xt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xt.messageId)};Y(xt,W);xt.prototype.getEntriesList=function(){return Vm(this,1,Oi(),jb)};xt.prototype.getEntries=function(a){return ix(this,1,a,jb)};xt.messageId="tailwind.RunSummarySection";var xGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xGd.messageId)};Y(xGd,W);xGd.messageId="tailwind.RunSummary";var At=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,At.messageId)};Y(At,W);At.prototype.getName=function(){return xi(this,1,void 0,jb)};At.prototype.setName=function(a){return yj(this,1,a,jb)};At.prototype.hasName=function(){return wm(this,1,jb)};At.prototype.getNameOrUndefined=function(){return gx(this,1,jb)};At.messageId="tailwind.RunTrajectoryStepFunctionCall";var zt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zt.messageId)};Y(zt,W);zt.prototype.getText=function(){return xi(this,1,void 0,jb)};zt.prototype.setText=function(a){return yj(this,1,a,jb)};zt.prototype.hasText=function(){return wm(this,1,jb)};zt.messageId="tailwind.RunTrajectoryStep";var yt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yt.messageId)};Y(yt,W);yt.prototype.getPrompt=function(){return xi(this,1,void 0,jb)};yt.messageId="tailwind.RunTrajectory";var EZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EZ.messageId)};Y(EZ,W);EZ.prototype.getSummary=function(){return X(this,xGd,1,jb)};EZ.prototype.hasSummary=function(){return Ji(this,xGd,1,jb)};EZ.messageId="tailwind.RunResults";var yGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yGd.messageId)};Y(yGd,W);h=yGd.prototype;h.getMetadata=function(){return X(this,wt,1,jb)};h.getMutableMetadata=function(){return Ui(this,wt,1,void 0,jb)};h.setMetadata=function(a){Zi(this,wt,1,a,jb)};h.hasMetadata=function(){return Ji(this,wt,1,jb)};h.getResults=function(){return X(this,EZ,3,jb)};h.hasResults=function(){return Ji(this,EZ,3,jb)};yGd.messageId="tailwind.Run";var FZ=function(){this.executor=p(oO)};FZ.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/tailwind/eligibility/"+a,responseConstructor:wGd}).pipe(A(Gsb))};FZ.prototype.createRun=function(a){return this.executor.post({url:"action/tailwind/create_run",body:(new CZ).setIssueId(a),responseConstructor:wt}).pipe(A(Fsb))};
FZ.prototype.retryRun=function(a){var b=this.executor,c=b.post;var d=(new DZ).setIssueId(a.issueId);d=yj(d,2,a.userInstructions,jb);a=yj(d,3,a.previousRunId,jb);return c.call(b,{url:"action/tailwind/retry_run",body:a,responseConstructor:wt}).pipe(A(Fsb))};
var zGd=function(a,b){return a.executor.get({url:"action/tailwind/get_run/"+encodeURIComponent(b),responseConstructor:yGd}).pipe(A(Ksb))},AGd=function(a,b){b=(new uGd).setIssueIdsList(b);return a.executor.post({url:"action/tailwind/batch_get_run_statuses",body:b,responseConstructor:vGd}).pipe(A(Nsb))};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275prov=Fc({token:FZ,factory:FZ.\u0275fac,providedIn:"root"});var BGd=function(a){this.maxEntries=a;this.dataStore=new Map};BGd.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};
var CGd=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)},DGd=function(a){return Array.from(a.dataStore.keys()).join(",")},EGd=function(a,b){var c;b=(c=b==null?void 0:b.split(","))!=null?c:[];a.dataStore.clear();c=l(b);for(b=c.next();!b.done;b=c.next())a.dataStore.set(b.value,void 0)};BGd.prototype.hasKey=function(a){return this.dataStore.has(a)};var FGd={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"},GZ={},GGd=(GZ[0]={message:"Use AI to fix this issue"},GZ[1]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},GZ[2]={message:"Loading AI suggested fix status."},
GZ[3]={message:"Fix ready for review."},GZ[4]={message:"AI was unable to fix this issue. You can try again on another issue."},GZ[5]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},GZ[6]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},GZ[7]={message:"Not eligible for AI fix."},GZ),HZ=function(){var a=this;this.activeSession=p(Qu);this.tailwindApi=p(FZ);this.contextSensitiveRegistry=p(cR);this.ignoredIssuesCache=
new BGd(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(fn),pf(),xf({bufferSize:1,refCount:!0}));this.runForCurrentIssue$=new Wj(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=LWa("llm_suggested_bug_fix_ignored_issues")();EGd(this.ignoredIssuesCache,b!=null?b:void 0)};h=HZ.prototype;
h.startPollingForSuggestion=function(a){var b=this;return this.pollingObservable?this.pollingObservable:this.pollingObservable=pe(function(){return zGd(b.tailwindApi,a)}).pipe(Cf(function(c){b.isRunComplete(c)&&b.runForCurrentIssue$.next(c)}),A(function(c){if(!b.isRunComplete(c))throw Error("Pf");return b.isRunSuccessful(c)?3:4}),Rsb(),jf(function(c){return c.message==="Not completed"?ee(1):ee(4)}),qf(function(){b.pollingObservable=null}))};
h.getInitialStatus=function(a){var b=this;return this.tailwindApi.getIssueEligibility(a).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 zGd(b.tailwindApi,c.runMetadata.runId).pipe(Cf(function(d){b.isRunComplete(d)&&b.runForCurrentIssue$.next(d)}),A(function(d){return b.isRunComplete(d)?b.isRunSuccessful(d)?c.eligibilityState==="EXISTING"?3:5:c.eligibilityState==="EXISTING"?4:6:
1}),jf(function(){return ee(4)}),zf(2));default:return ee(0)}}),nf(2),jf(function(){return ee(4)}))};h.ignoreSuggestion=function(a){isNaN(Number(a))||(CGd(this.ignoredIssuesCache,a),Ted("llm_suggested_bug_fix_ignored_issues")(DGd(this.ignoredIssuesCache)))};h.createRun=function(a){return this.tailwindApi.createRun(a)};h.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};h.isRunComplete=function(a){return a.metadata!==void 0};
h.isRunSuccessful=function(a){var b;a=Number((b=a.results)==null?void 0:b.oclNumber);return!Number.isNaN(a)&&a>0};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275prov=Fc({token:HZ,factory:HZ.\u0275fac,providedIn:"root"});var HGd=function(){this.llmChatService=p(BZ);this.appEvents=p(aP);this.llmSuggestedBugFixService=p(HZ);this.buttonText="Ask Production Agent";this.showButton$=le([this.llmChatService.isGppLlmChatEnabled$,this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(A(function(a){var b=l(a);a=b.next().value;b=b.next().value;return a&&!b}))};HGd.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};HGd.\u0275fac=function(a){return new (a||HGd)};
HGd.\u0275cmp=C({type:HGd,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,Ssb,3,1,"button",0),T(1,"async"));a&2&&G(U(1,1,b.showButton$)?0:-1)},dependencies:[Yy,nC,jC,DA,ly],encapsulation:2,
changeDetection:0});var IGd=function(){this.dialogRef=p(SB);this.documentationLinks=p(hS);this.data=p(UB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};IGd.prototype.onNoClick=function(){this.dialogRef.close(!1)};IGd.\u0275fac=function(a){return new (a||IGd)};
IGd.\u0275cmp=C({type:IGd,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(),Ag(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:[nC,jC,WB,YB,$B,ZB],encapsulation:2});var IZ=function(){this.dialog=p(VB);this.documentationLinks=p(hS);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new hQ};
IZ.prototype.openDialog=function(){var a=this;TB(this.dialog.open(IGd,{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()})};IZ.\u0275fac=function(a){return new (a||IZ)};
IZ.\u0275cmp=C({type:IZ,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:[nC,jC],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=cf({type:JZ});JZ.\u0275inj=Gc({imports:[fK,cP,pC,GK]});var JGd=["commentActionsMenu"],KGd=["editDescription"],otb=function(){return[]},KZ=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(TP);this.userPreferencesManager=p(nR);this.issueFullFridge=p(nQ);this.issueReferenceResolver=p(RR);this.activeSession=p(Qu);this.commentService=p(wS);this.errorHandler=p(wO);this.analytics=p(lQ);this.butterBar=p(gO);this.userAccess=p(JP);this.issueCommentDialogsService=p(CY);this.issuePermissionService=p(fR);this.commentHistoryDialogService=p(XY);this.dateFormatter=
p(AS);this.domSafe=p(sR);this.FormattingMode=bo;this.emailToUser=Pm;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 Wj(void 0);this.firstEvent$=this.firstEventOverride$.pipe(Af(function(b){return b?ee(b):a.issue$.pipe(we(hn),A(function(c){if(c.description)var d=C2a(c.description,
c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:pTa(un((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&&AVa(b)}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.formattingModeOverride$=new Wj(void 0);this.formattingMode$=
this.formattingModeOverride$.pipe(Af(function(b){return b?ee(b):a.firstEvent$.pipe(we(hn),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=l(b);
b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(A(function(b){return eq(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=l(b);b=c.next().value;c=c.next().value;return!(!(a.activeSession.getFlag("enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(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?LGd(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 Om(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=l((b==null?void 0:b.postDiffs)||[]);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.name==="reporter")return c.newValue||"";return""}));this.onBehalfOfEmail$=le([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(A(function(b){return b==null?void 0:b.events[0]}),A(function(b){return b==null?void 0:b.userPerformingActionUser}));this.originalAuthorEmail$=
this.originalAuthor$.pipe(A(Om));this.isAuthorNotReporter$=le([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=le([this.firstEvent$.pipe(we(hn)),this.onBehalfOfEmail$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d;if(c.next().value!==((d=b.lastCommentEditorUser)==null?void 0:d.emailAddress)){var e;return(e=b.lastCommentEditorUser)!=null?e:void 0}}));this.editedTooltipText$=
this.firstEvent$.pipe(we(hn),Af(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+Lm(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?mpd(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 m=b.isDeleted;var r=b.accessLevel;var w=b.isShowCommentHistoryActionInMenu;var x=b.canDeleteComment;var D=b.canUndeleteComment;var H=b.canSeeRestrictionSettings;var J=b.canChangeCommentRetention;b=b.commentRetentionOverride;var O=[];c||O.push(Object.assign({},IEd,{items:[d.PLAIN,d.MARKDOWN,d.LITERAL]}));f&&e&&O.push({type:"action",action:function(){lvb(a.issueCommentDialogsService,
a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:g});w&&e&&O.push(Object.assign({},KEd,{action:function(){e.commentNumber&&a.showCommentHistoryDialog(e.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));e&&x&&O.push({type:"action",action:function(){e.commentEtag&&BDd(a.issueCommentDialogsService,a.id,1,e.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});
e&&D&&O.push({type:"action",action:function(){yDd(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});e&&H&&O.push(Object.assign({},JEd,{action:function(){CDd(a.issueCommentDialogsService,a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(k&&J&&!m&&a.activeSession.isInternalSession()){var R=b==="COMPONENT_DEFAULT";O.push({type:"action",action:function(){var V=R?"INDEFINITE":"COMPONENT_DEFAULT";
DDd(a.issueCommentDialogsService,"comment",V).then(function(ba){a.commentActionsMenu.actionsMenuIconButton.focus();ba&&a.updateCommentRetention(V)})},label:R?"Match issue retention...":"Revert to component retention..."})}Tpb({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:r!=="INTERNAL"})&&O.push(Object.assign({},HEd,{action:function(){var V=Upb({bugId:a.id,comment:1});a.domSafe.openInNewTab(V)}}));return O}))};Y(KZ,Z);KZ.\u0275dir=Z.\u0275dir;
var LGd=function(a){return a.id$.pipe(Af(function(b){return pe(function(){return KP(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){mn("error: ",c);return!1})})}))};
KZ.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&&xO(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);$r(b.butterBar,"Comment retention updated",
4E3)},error:function(){xO(b.errorHandler,"Comment retention update failed")}});ce(e)})};
KZ.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=eq(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(nf(1),Bf(this.destroyed$)).subscribe(function(f){f=CVa(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))})};
KZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var Tsb=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,lvb(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();ce(c)})};da.Object.defineProperties(KZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Jr(this.id$)}}});
KZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KZ)))(b||KZ)}}();
KZ.\u0275cmp=C({type:KZ,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(jg(JGd,5),jg(KGd,5));if(a&2){var c;ng(c=og())&&(b.commentActionsMenu=c.first);ng(c=og())&&(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,ptb,28,27,"div",4),T(1,"async"),Nf(2,qtb,1,0,"b-spinner"));if(a&2){var c;G((c=U(1,1,b.firstEvent$))?0:2,c)}},dependencies:[UY,AZ,nU,Yy,bP,BV,WK,dL,nT,HGd,nC,jC,FK,DA,IZ,iU,hV,iV,oV,ly],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 MGd=function(){this.reactionState$=new wf(1);this.issueId="";this.emails$=this.reactionState$.pipe(we(hn),A(function(a){return a.recentResponders.map(Om).filter(function(b){return b!==""}).slice(0,5)}))};da.Object.defineProperties(MGd.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});MGd.\u0275fac=function(a){return new (a||MGd)};
MGd.\u0275cmp=C({type:MGd,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),Qf(2,ttb,5,2,"div",null,Pf),T(4,"async"),L()());a&2&&(B(2),Rf(U(4,0,b.emails$)))},dependencies:[ly],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var NGd=function(){};NGd.\u0275fac=function(a){return new (a||NGd)};NGd.\u0275cmp=C({type:NGd,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,vtb,6,2);a&2&&G(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[BV],encapsulation:2,changeDetection:0});var OGd=function(){this.texts=[]};OGd.prototype.getIssueId=function(a){return a.text};OGd.\u0275fac=function(a){return new (a||OGd)};OGd.\u0275cmp=C({type:OGd,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&&Qf(0,ztb,3,1,null,null,Of);a&2&&Rf(b.texts)},dependencies:[SR,zud],encapsulation:2,changeDetection:0});var PGd=function(){this.hotlists=p(rP);this.ROUTES=As};PGd.\u0275fac=function(a){return new (a||PGd)};PGd.\u0275cmp=C({type:PGd,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();Ag(((c=U(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[ly],encapsulation:2,changeDetection:0});var QGd=function(){var a=this;this.componentFridge=p(YO);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}))}))};QGd.prototype.ngOnChanges=function(){this.id$.next(this.id)};QGd.\u0275fac=function(a){return new (a||QGd)};
QGd.\u0275cmp=C({type:QGd,selectors:[["plain-component-path"]],inputs:{id:"id"},standalone:!1,features:[xx],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,Ctb,3,2,"ng-container",3),L());a&2&&(a=sg(4),I("onedevHovercardTrigger",a),B(),Ag(U(2,2,b.name$)||b.id))},dependencies:[WK,
XK,dL,YK,bW,ly],encapsulation:2,changeDetection:0});var tub=function(a,b,c){return{diff:a,change:b,isLast:c}},LZ=function(){Z.apply(this,arguments);this.activeSession=p(Qu);this.preferences=p(nR);this.customFieldHelper=p(ES);this.emailToUser=Pm;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=Fm;this.isLinkedItemArray=m3a;this.isIssueDiff=j3a;this.isHotlistDiff=k3a;this.DiffType=ced};Y(LZ,Z);LZ.\u0275dir=Z.\u0275dir;
var RGd=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)},SGd=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)};LZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(we(hn),Bf(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&RGd(a)||!b&&SGd(a))&&a.internalDiffs.reverse()})};
var Fub=function(a,b,c){return Mta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},Gub=function(a,b,c){return Mta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};LZ.prototype.asNumber=function(a){return Number(a)};
LZ.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(LZ.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(q(a))}}});LZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(LZ)))(b||LZ)}}();
LZ.\u0275cmp=C({type:LZ,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),Qf(1,Xub,2,1,"div",2,Of),L(),E(3,cvb,1,1,"ng-template",null,0,Og));a&2&&(B(),Rf(b.internalDiffs))},dependencies:[ky,BV,hV,SR,PGd,QGd,py,oV],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var MZ=function(){var a=p(nR);Z.call(this);var b=this;a.commentDisplayOverride$.pipe(Bf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(MZ,Z);MZ.\u0275dir=Z.\u0275dir;MZ.prototype.ngOnInit=function(){};
MZ.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?TGd(this):this.summaryType==="GERRIT"&&UGd(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var TGd=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=a9a(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=VGd(a,b)}},UGd=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=VGd(a,[d,e,f,"Gerrit change: "+b,"",c])}},VGd=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};MZ.\u0275fac=function(a){return new (a||MZ)};
MZ.\u0275cmp=C({type:MZ,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},standalone:!1,features:[Gf,xx],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:[wT],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var WGd=["commentActionsMenu"],XGd=["commentReactionButton"],ovb=function(){return[]},uvb=function(){return{unlinkifiedComment:""}},YGd=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],NZ=function(){Z.apply(this,arguments);var a=this;this.documentationLinks=p(hS);this.activeSession=p(Qu);this.issueReferenceResolver=p(RR);this.commentService=p(wS);this.el=p(Jd);this.userAccess=p(JP);this.butterBar=p(gO);this.errorHandler=p(wO);this.analytics=p(lQ);
this.userPreferencesManager=p(nR);this.issueDetailsBrain=p(dR);this.editIssueService=p(NS);this.issuePermissionService=p(fR);this.commentHistoryDialogService=p(XY);this.issueCommentDialogsService=p(CY);this.dateFormatter=p(AS);this.paths=p(vW);this.domSafe=p(sR);this.eventsForIssueFridge=p(TP);this.isSummarized=!1;this.userToLossyEmail=Om;this.issueId$=new wf(1);this.distinctIssueId$=this.issueId$.pipe(pf());this.event$=new wf(1);this.deobfuscatedEvent$=new Wj(void 0);this.isCommentEvent=vo;this.isNonObfuscatedEmail=
po;this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingModeOverride$=new Wj(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 Wj(null);this.wasSummarized$=
new Wj(!1);this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){return YGd.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 mpd(a.dateFormatter,b)}));this.ariaLabelHeading$=le([this.event$,this.modifiedDateDisplay$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b==null)b="";else{var d=[];b.commentNumber&&d.push("Comment #"+b.commentNumber);b.userPerformingActionUser&&d.push(Lm(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=Edd;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 $K,{position:[g$c]});this.commentReactionIsSaving=!1;this.FormattingMode=bo;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 m=b.canonicalIssueId;var r=b.deobfuscatedEvent;var w=b.canSeeRestrictionSettings;var x=b.canChangeCommentRetention;b=b.commentRetentionOverride;var D=[];if(!a.isCommentEvent(c))return D;d||e&&D.push(Object.assign({},IEd,{items:e}));f&&D.push({type:"action",action:function(){lvb(a.issueCommentDialogsService,
String(a.issueId),r||c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:a.isRedacted()});a.isShowCommentHistoryActionInMenu()&&D.push(Object.assign({},KEd,{action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));!m||a.isDeleted()||a.activeSession.isAnonymous()||D.push({type:"action",action:function(){var J=Cs(m,{template_issue:a.issueId,template_comment:c.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(J);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:a.isRedacted()});a.isDeleted()||a.activeSession.isAnonymous()||D.push({type:"action",action:function(){wDd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to",disabled:a.isRedacted()});g&&D.push({type:"action",action:function(){BDd(a.issueCommentDialogsService,
String(a.issueId),c.commentNumber,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"});k&&D.push({type:"action",action:function(){yDd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"});w&&D.push(Object.assign({},JEd,{action:function(){CDd(a.issueCommentDialogsService,String(a.issueId),c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));
if(a.isRestricted(c)&&x&&!a.isDeleted()){var H=b==="COMPONENT_DEFAULT";D.push({type:"action",action:function(){var J=H?"INDEFINITE":"COMPONENT_DEFAULT";DDd(a.issueCommentDialogsService,"comment",J).then(function(O){a.commentActionsMenu.actionsMenuIconButton.focus();O&&a.updateCommentRetention(J)})},label:H?"Match issue retention":"Revert to component retention"})}Tpb({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&D.push(Object.assign({},HEd,{action:function(){c.commentNumber==
null&&mn("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var J,O=Upb({bugId:c.issueId,comment:(J=c.commentNumber)!=null?J:0});a.domSafe.openInNewTab(O)}}));return D}));this.eventAsNote$=le([this.deobfuscatedEvent$,this.event$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;b=b||c;var d;return{commentNumber:b.commentNumber,unlinkifiedComment:(d=b.unlinkifiedComment)!=null?d:"",formattedComment:b.formattedComment}}));this.mayReadPii$=this.event$.pipe(Af(function(b){return vo(b)&&
a.isRestricted(b)?pe(function(){var c=KP(a.userAccess,"reader","issues/"+a.issueId+"/comments/"+b.commentNumber);c.catch(function(d){mn("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=l(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=l(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=l(b);b=c.next().value;c=c.next().value;var d,e;
return((d=b.commentReactions)==null?void 0:(e=d.get("UPVOTE"))==null?void 0:e.hasReacted)||c}));this.showCommentReactionHovercard$=le([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c>0&&c<=5}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(A(function(b){return b&&Mvb(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return H6a(a.issueId,
{comment:b})}};Y(NZ,Z);NZ.\u0275dir=Z.\u0275dir;h=NZ.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||xO(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});$r(b.butterBar,"Comment retention updated",4E3);b.commentRetentionOverride$.next(a===
"INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT")},error:function(){xO(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 f_a(eq(this.event.commentContentVerdict))};h.isRestricted=function(a){a=eq(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,eq(this.event.commentContentVerdict)).pipe(nf(1)).subscribe(function(c){a.deobfuscatedEvent$.next(CVa(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 Mvb=function(a){return vo(a.event)&&a.event.isCommentEvent};NZ.prototype.getSummaryType=function(){return Bo(this.event)?"GERRIT":"CRITIQUE"};NZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
var Dvb=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=Fvb(a,"UPVOTE");return z(g,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=g.yieldResult;a.commentReactionIsSaving=!1;if(!e)return g.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var m;k.events=DVa(k.events,(m=a.event.commentNumber)!=null?m:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");ce(g)})},Fvb=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},Evb=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(NZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});NZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(NZ)))(b||NZ)}}();
NZ.\u0275cmp=C({type:NZ,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(jg(WGd,5),jg(XGd,5));if(a&2){var c;ng(c=og())&&(b.commentActionsMenu=c.first);ng(c=og())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},standalone:!1,features:[Gf,xx],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,Nvb,43,32),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[UY,AZ,nU,ky,Yy,bP,BV,WK,dL,LZ,nT,yZ,IZ,kV,iV,qV,FK,DA,MZ,nC,jC,MGd,NGd,OGd,ly],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 OZ=function(){};OZ.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return oe(pe(function(){return ee(document.getElementById(a))}),H_a(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(A(function(){return document.getElementById(a)}))).pipe(we(hn),nf(1))};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275prov=Fc({token:OZ,factory:OZ.\u0275fac,providedIn:"root"});var PZ=function(){this.idWatch=p(OZ)},ZGd=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}))};PZ.\u0275fac=function(a){return new (a||PZ)};PZ.\u0275prov=Fc({token:PZ,factory:PZ.\u0275fac,providedIn:"root"});var $Gd={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},aHd=RegExp("(comment|attachment)([0-9]+)"),QZ=function(){Z.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=p(VP);this.preferences=p(nR);this.eventsForIssue=p(TP);this.dynamicScrollIntoView=p(PZ);this.bLocation=p(hU);this.elementRef=p(Jd);this.routerEvents=p(kQ);this.analytics=p(lQ);this.teamFridge=p(ZQ);this.issueFullFridge=p(nQ);this.issueId$=new wf(1);this.internalIssueId="";this.eventDisplayModes=
$Gd;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 m;if((d==null?void 0:(m=d.aggregatedData)==null?void 0:m.teamId)===void 0)return ee(c);var r;return bHd(a,
String(d==null?void 0:(r=d.aggregatedData)==null?void 0:r.teamId)).pipe(Af(function(w){w=l(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=l(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=vB(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=vB(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=l((c=b.match(aHd))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=HVa(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"),cHd(a,c)),g&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(m){return m.attachmentId===f})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),cHd(a,c))),ZGd(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 ZGd(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(QZ,Z);QZ.\u0275dir=Z.\u0275dir;
QZ.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(we(hn),pf(),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,dHd(a))});le([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(Bf(this.destroyed$)).subscribe(function(b){b=l(b);var c=b.next().value;var d=b.next().value;var e=
b.next().value;b=[];if(d.commentFilter)for(a.currentFilterLevel=d.commentFilter,eHd(a,c,d.commentFilter,e),fHd(a),c=l(a.commentNumbersDisplayed.values()),d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=l(c),d=c.next();!d.done;d=c.next())(d=d.value)&&d.commentNumber&&b.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(b)});this.commentsToFormat$.pipe(we(hn),Af(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),Bf(this.destroyed$)).subscribe(function(b){gHd(a,
b)});this.routerEvents.navigationEnd$.pipe(Bf(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var gHd=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(Tvb(a.eventDisplayMode.get(c.i$jscomp$991))&&vo(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}))}dHd(a)},
eHd=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=hHd(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");vo(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=iHd(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),vo(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":jHd(a,b,function(f){var g;return(g=hVa(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;case "TEAM_AND_ASSIGNEE":jHd(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"),vo(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},fHd=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];vo(c)&&(Ao(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&Bo(c))&&a.currentFilterLevel!=="HUMAN_ONLY"&&a.currentFilterLevel!=="TEAM_AND_ASSIGNEE"&&(a.eventDisplayMode.set(b,"summarized"),cHd(a,b))}},jHd=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;vo(b[g])&&b[g].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[g].commentNumber)!=null?k:0))}else{if(vo(b[g])&&b[g].commentNumber||BVa(b[g]))d++,f=g;e++}}if(d>0||e>0)b=HVa(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:kHd(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},kHd=function(a){return sba(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=null?c:!1})},hHd=function(a){return vo(a)&&a.isCommentEvent||
BVa(a)||a.preDiffs.length>0||a.postDiffs.length>0},iHd=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(vo(a)&&a.isCommentEvent||BVa(a)||a.preDiffs.length>0||a.postDiffs.length>0)},dHd=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=lHd(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=lHd(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();var b;eHd(a,a.internalEvents,(b=a.currentFilterLevel)!=
null?b:"FULL_HISTORY",a.authoritativeEmails);fHd(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},lHd=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};QZ.prototype.trackEventByVersion=function(a,b){return b.version};
var cHd=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,m){return k[0]-m[0]})),e=l(e.entries()),f=e.next();!f.done;f=e.next())if(g=
l(f.value),f=g.next().value,g=g.next().value,f>b){if(g.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:g.commentFoldedCount-1,eventFoldedCount:g.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(vo(a.internalEvents[c])||BVa(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}},
Tvb=function(a){return a==="summarized"||a==="full"},bHd=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(A(function(d){if(d!==void 0){d=l(d.members.map(function(f){return f.user.emailAddress}).filter(hn));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
da.Object.defineProperties(QZ.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&&!N0a(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
QZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(QZ)))(b||QZ)}}();
QZ.\u0275cmp=C({type:QZ,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,
Ovb,2,0,"aside",0),T(1,"async"),K(2,"div",1),Qf(3,Uvb,2,2,null,null,b.trackEventByVersion,!0),L(),F(5,Vvb,2,0,"aside",0),T(6,"async"));a&2&&(G(b.showRecentEventsFirst&&U(1,2,b.isLoading$)?0:-1),B(3),Rf(b.internalEvents),B(2),G(!b.showRecentEventsFirst&&U(6,4,b.isLoading$)?5:-1))},dependencies:[NZ,nC,jC,iU,ly],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 RZ=function(){Z.apply(this,arguments);this.preferences=p(nR);this.activeSession=p(Qu);this.clearcut=p(eQ);this.analytics=p(lQ);this.selectedFilter=null;var a=this.activeSession.isInternalSession();Yvb.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=mHd;this.showRecentEventsFirst=!1};Y(RZ,Z);RZ.\u0275dir=Z.\u0275dir;
RZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(we(hn),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=awb(b.commentFilter):(a.selectedFilter=oR(a.preferences).showFullHistory?Xvb:Yvb,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(Bf(a.destroyed$)).subscribe())})};
RZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RZ)))(b||RZ)}}();
RZ.\u0275cmp=C({type:RZ,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),Eg("valueChange",function(c){Dg(b.selectedFilter,c)||(b.selectedFilter=c);return c}),N("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(Bf(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),K(6,"mat-select-trigger"),Q(7),L(),
Qf(8,Wvb,5,3,"mat-option",5,Pf),L()(),K(10,"button",6),N("click",function(){var c=!b.showRecentEventsFirst;Nid(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),Cg("value",b.selectedFilter),B(2),Ag(b.selectedFilter==null?null:b.selectedFilter.displayName),B(),Rf(b.filters),B(3),I("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),B(),S(" ",b.showRecentEventsFirst?"Newest first":
"Oldest first"," "))},dependencies:[Yy,nC,jC,SD,cE,EU,cI,dI,xA],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 Xvb={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},Yvb={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},Zvb={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},$vb={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},mHd=[Xvb,Yvb,Zvb,$vb];var SZ=function(){this.admins=[]};SZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Mm(this.hotlist.adminUsers)};SZ.\u0275fac=function(a){return new (a||SZ)};
SZ.\u0275cmp=C({type:SZ,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(),Ag(b.hotlist.name),B(3),S("ID: ",b.hotlist.hotlistId),B(2),
Bg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),Ag(b.hotlist.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-card[_ngcontent-%COMP%]{max-width:450px}.hotlist-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.hotlist-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var TZ=function(){this.ROUTES=As;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new hQ};TZ.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};TZ.\u0275fac=function(a){return new (a||TZ)};
TZ.\u0275cmp=C({type:TZ,selectors:[["b-hotlist-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("removable",b.removable)},inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},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,cwb,8,9);a&2&&G(b.hotlist?0:-1)},dependencies:[Yy,WK,dL,SZ,nC,lC],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 UZ=function(){var a=this;this.hotlists=p(rP);this.userAccess=p(JP);this.id$=new wf(1);this.removeHotlist=new hQ;this.removable=!0;this.removable$=this.id$.pipe(Af(function(b){return a.removable!=="check-acl"?ee(a.removable):KP(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=l(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};da.Object.defineProperties(UZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});UZ.\u0275fac=function(a){return new (a||UZ)};
UZ.\u0275cmp=C({type:UZ,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?mn("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:[TZ,ly],encapsulation:2,changeDetection:0});var nHd=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],oHd=new ed("MAT_CARD_CONFIG"),pHd=function(){var a;this.appearance=((a=p(oHd,{optional:!0}))==null?void 0:a.appearance)||"raised"};pHd.\u0275fac=function(a){return new (a||pHd)};
pHd.\u0275cmp=C({type:pHd,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,b){a&2&&yg("mat-mdc-card-outlined",b.appearance==="outlined")("mdc-card--outlined",b.appearance==="outlined")("mat-mdc-card-filled",b.appearance==="filled")("mdc-card--filled",b.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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 qHd=function(){};qHd.\u0275fac=function(a){return new (a||qHd)};qHd.\u0275dir=df({type:qHd,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var rHd=function(){this.align="start"};rHd.\u0275fac=function(a){return new (a||rHd)};
rHd.\u0275dir=df({type:rHd,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var sHd=function(){};sHd.\u0275fac=function(a){return new (a||sHd)};
sHd.\u0275cmp=C({type:sHd,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&&(eg(nHd),fg(0),Tf(1,"div",0),fg(2,1),Uf(),fg(3,2))},encapsulation:2,changeDetection:0});var VZ=function(){Z.apply(this,arguments);this.onAccept=new hQ;this.onDismiss=new hQ};Y(VZ,Z);VZ.\u0275dir=Z.\u0275dir;VZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};VZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VZ)))(b||VZ)}}();
VZ.\u0275cmp=C({type:VZ,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(),Ag(b.hotlist.name),
B(3),Ag(b.hotlist.description))},dependencies:[nC,jC,rHd,qHd,sHd],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 WZ=function(){this.issueFullFridge=p(nQ);this.recommendationsApi=p(tO);this.issueUserEventsService=p(oW);this.analytics=p(lQ);this.issueRecommendationFridge=p(pQ);this.ROUTES=As;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new hQ;this.hovercardConfig={showDelay:250,hideDelay:250,position:[e$c],triggerKey:[]}};WZ.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
WZ.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 dwb=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)})};WZ.\u0275fac=function(a){return new (a||WZ)};
WZ.\u0275cmp=C({type:WZ,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,ewb,11,10);a&2&&G(b.hotlist?0:-1)},dependencies:[Yy,nC,lC,WK,dL,VZ],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 tHd=[[["","before",""]]],iwb=function(a,b){return b.name},XZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(Qu);this.issueFullFridge=p(nQ);this.issueInteractionsTracking=p(JS);this.errorHandler=p(wO);this.eventsForIssueFridge=p(TP);this.liveAnnouncer=p(sz);this.hotlistPickerService=p(MY);this.issueRecommendationFridge=p(pQ);this.analytics=p(lQ);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=fs;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(hn).slice(0,2)}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(A(function(b){return b.length}),A(function(b){return b<=5?"Add Hotlist":""}))};Y(XZ,Z);
XZ.\u0275dir=Z.\u0275dir;XZ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.hotlistIds$.subscribe(function(){if(a.isInternalSession){var b=Jr(a.issueId$);a.issueRecommendationFridge.poke(b+"-HOTLIST")}}));this.subscriptions.add(this.recommendations$.subscribe(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}))};XZ.prototype.openHotlistModal=function(){var a=this;return y(function(b){return z(b,WDd(a.hotlistPickerService,a.issue$),0)})};
var fwb=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,bs(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),yO(a.errorHandler,d),e.jumpTo(4)}})};
da.Object.defineProperties(XZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});XZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XZ)))(b||XZ)}}();
XZ.\u0275cmp=C({type:XZ,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&&(eg(tHd),F(0,lwb,11,11,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[Yy,UZ,WZ,vU,nC,jC,ly],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 uHd=["issueTitleEl"],vHd=["issueTitleInputEl"],YZ=function(){this.issuePermissionService=p(fR);this.issueFullFridge=p(nQ);this.bannedWordsChecker=p(aX);this.disabled=!1;this.titleChanged=new hQ;this.isSaving=this.isEditMode=!1},mwb=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
YZ.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();wHd(a,c.trim());a.bannedWordsChecker.reset()}a.isEditMode=!1;ce(e)})};
var wHd=function(a,b){y(function(c){a.isSaving=!0;return z(c,ie(ijd(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};YZ.prototype.isModified=function(a){return a!==this.titlePlain};YZ.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||this.saveTitle()};
da.Object.defineProperties(YZ.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=a9a(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});YZ.\u0275fac=function(a){return new (a||YZ)};
YZ.\u0275cmp=C({type:YZ,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(jg(uHd,5),jg(vHd,5));if(a&2){var c;ng(c=og())&&(b.issueTitleEl=c.first);ng(c=og())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},standalone:!1,features:[Ig([aX])],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,nwb,4,5,"mat-form-field",3)(2,owb,3,2,"h3",4),F(3,pwb,2,1,"button",5),L(),F(4,qwb,4,1,"p",6),T(5,"async"));a&2&&(yg("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:[Yy,nC,lC,FK,DA,SD,cE,fE,QE,ly],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 xHd={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},yHd={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},zHd={ALL:"ALL",NONE:"NONE"},AHd=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"]]),BHd=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],CHd=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],DHd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
EHd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],FHd=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],GHd={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},HHd={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var ZZ=function(){this.liveAnnouncer=p(sz);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new hQ;this.hasChanges=new hQ(!1);this.items=[];this.grabbed=!1};ZZ.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=Em(this.originalItems)};var IHd=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
ZZ.prototype.drop=function(a){ls(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var swb=function(a,b){return b>0?(ls(a.items,b,b-1),a.detectChanges(),!0):!1},twb=function(a,b){return b<a.items.length-1?(ls(a.items,b,b+1),a.detectChanges(),!0):!1};ZZ.prototype.trackByFn=function(){return-1};ZZ.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.")};
ZZ.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();JHd(this,b);break;case "Tab":this.grabbed&&JHd(this,b);break;case "ArrowUp":KHd(this,a);break;case "ArrowDown":KHd(this,a)}};
var JHd=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."))},KHd=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(swb(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else twb(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."))}}};ZZ.prototype.detectChanges=function(){var a=!Dm(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};ZZ.\u0275fac=function(a){return new (a||ZZ)};
ZZ.\u0275cmp=C({type:ZZ,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)}),Qf(1,uwb,10,8,"li",1,b.trackByFn,!0),L());a&2&&(B(),Rf(b.items))},dependencies:[Yy,WV,VV,TV,nC,lC,rI],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 LHd=function(){this.data=p(UB);this.dialogRef=p(SB);this.originalColumns=this.data.columnItems;this.columns=[].concat(q(this.originalColumns));this.hasChanges=!1};LHd.prototype.onClose=function(){this.dialogRef.close(this.columns)};LHd.\u0275fac=function(a){return new (a||LHd)};
LHd.\u0275cmp=C({type:LHd,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:[ZZ,nC,jC,YB,$B,ZB],encapsulation:2,changeDetection:0});var $Z=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};da.Object.defineProperties($Z.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=cWa(1049928)(a);this.startDate=ro(b==null?void 0:b.dateValue);a=cWa(1049953)(a);this.endDate=ro(a==null?void 0:a.dateValue);this.startDateShortStr=pVa(this.startDate);this.endDateShortStr=pVa(this.endDate)}}}});$Z.\u0275fac=function(a){return new (a||$Z)};
$Z.\u0275cmp=C({type:$Z,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,zwb,5,3,"div",0);a&2&&G(b.startDate||b.endDate?0:-1)},dependencies:[Yy,oy],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var a_=function(){this.makePie=Bwb;this.total=this.closed=0;this.useXofYLabel=!1};da.Object.defineProperties(a_.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});a_.\u0275fac=function(a){return new (a||a_)};
a_.\u0275cmp=C({type:a_,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,Kwb,7,14,"div",0);a&2&&G(b.total>0?0:-1)},dependencies:[ry],encapsulation:2,changeDetection:0});var MHd=mo().user.email,Gt={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===MHd&&yo(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===MHd:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return yo(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:LVa,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return KVa(a,"ASSIGNED")||KVa(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)&&yo(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&&yo(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(YVa(a))&&yo(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 gWa(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 NHd=function(){this.changes=new sf};NHd.\u0275fac=function(a){return new (a||NHd)};NHd.\u0275prov=Fc({token:NHd,factory:NHd.\u0275fac,providedIn:"root"});var OHd=new ed("MAT_SORT_DEFAULT_OPTIONS"),b_=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 gj;this.initialized=this._initializedStream};h=b_.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(b_.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});b_.\u0275fac=function(a){return new (a||b_)(Ye(OHd,8))};
b_.\u0275dir=df({type:b_,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",bh],disabled:[2,"matSortDisabled","disabled",bh]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[xx]});var PHd=["*",[["","matSortHeaderIcon",""]]],c_=function(){this._intl=p(NHd);this._sort=p(b_,{optional:!0});this._columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=p(Px);this._focusMonitor=p(bz);this._elementRef=p(Jd);this._ariaDescriber=p(uz,{optional:!0});this._animationsDisabled=pi();this._recentlyCleared=pg.apply(null,[null].concat(q([])));this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";p(bi).load(sA);var a=p(OHd,{optional:!0});if(a==
null?0:a.arrowPosition)this.arrowPosition=a==null?void 0:a.arrowPosition};h=c_.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||wz(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||wz(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||vz(c,this._sortButton,a)}this._sortActionDescription=a};
da.Object.defineProperties(c_.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});c_.\u0275fac=function(a){return new (a||c_)};
c_.\u0275cmp=C({type:c_,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()),yg("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",bh],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",bh]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*","[matSortHeaderIcon]"],decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],"viewBox;0 -960 960 960;focusable;false;aria-hidden;true".split(";"),["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(a,
b){a&1&&(eg(PHd),Tf(0,"div",0)(1,"div",1),fg(2),Uf(),F(3,Owb,3,0,"div",2),Uf());a&2&&(yg("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before",b.arrowPosition==="before")("mat-sort-header-descending",b._sort.direction==="desc")("mat-sort-header-ascending",b._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",b._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",b._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",b._animationsDisabled),
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 QHd={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},d_=function(){Z.call(this);var a=this;this.issueFridge=p(dQ);this.router=p(oF);this.domSafe=p(sR);this.llmService=p(SY);this.matDialog=p(VB);this.cdr=p(iQ,{self:!0});this.isOpen=function(b){return yo(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=JVa;this.isUnread=NVa;this.getAssigneeString=
function(b){var c,d;b=Om(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return po(b)?b:void 0};this.userToLossyEmail=Om;this.toMatSortDirection=rTa;this.idsToString=Hyb;this.ClickTargetsForNavigation=zHd;this.SortMode=yHd;this.ActiveRowMode=xHd;this.IssueFieldType=xdd;this.selection=new Mz(!0,[]);this.issueIds$=new Wj([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=
QHd;this.activeIssueChange=new hQ;this.rowClick=new hQ;this.sortChange=new hQ;this.columnsChange=new hQ;this.selectedIssuesChange=new hQ;this.issueNavigated=new hQ;this.rowLimit$=new Wj(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new gR;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 Wj(void 0);this.allRows$=this.issueIds$.pipe(Kr(),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 oEd(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(hn)}),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=l(b);b=c.next().value;return c.next().value?
b.filter(function(d){var e;return!((e=zo(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=l(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?Iyb(b,d):b}));this.filterRows=Ud(kf(this.internalFilters.value$),Af(function(b){b=l(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]?Lwb(d,g,e):!0})}))}));this.limitRows=Ud(kf(this.rowLimit$),A(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)?b.slice(0,c):b}));this.filteredRows$=this.unarchivedRows$.pipe(this.filterRows);this.trendingChipsById$=this.unarchivedRows$.pipe(kf(this.allIssuesAreLoaded$),A(function(b){b=l(b);var c=b.next().value;if(b.next().value){b=c.map(zo).map(function(g){return g==null?void 0:g.userActivityStats});b={views24h:b.map(function(g){var k;return(k=g==null?void 0:g.oneDayViewCount)!=
null?k:0}),views7d:b.map(function(g){var k;return(k=g==null?void 0:g.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(g){var k;return(k=g==null?void 0:g.thirtyDayViewCount)!=null?k:0})};var d={};c=l(c.entries());for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value.issueIds;(e=Jyb(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=l(b);b=c.next().value;c=c.next().value;return b.length-c.length}),pf());this.trackBy=function(b,c){return Hyb(c.issueIds)};this.correctedDisplayedRows=new ig;this.correctedRows$=pe(function(){return le([a.rows$,a.displayedRows.changes.pipe(zf(void 0))])}).pipe(lf(0),A(function(b){b=l(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[Hyb(d.row.issueIds),d]}));return b.map(function(d){return c.get(Hyb(d.issueIds))}).filter(hn)}));
this.dataColumns=[].concat(q(BHd));this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=RHd(this,this.dataColumns)};Y(d_,Z);d_.\u0275dir=Z.\u0275dir;d_.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 THd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="CUSTOM_FIELD"});a.customFieldIds=Iq(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,SHd(a,d),0):e.jumpTo(0)})},SHd=function(a,b){var c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return z(w,ie(a.allIssues$),2);c=w.yieldResult;d=l(b);e=d.next();for(f={};!e.done;f=
{id$jscomp$512:void 0},e=d.next()){f.id$jscomp$512=e.value;g=l(c);for(k=g.next();!k.done;k=g.next())if(m=k.value,r=m.customFields.find(function(x){return function(D){return D.customFieldId===x.id$jscomp$512}}(f))){a.customFieldNames.set(f.id$jscomp$512,r.name);break}a.customFieldNames.has(f.id$jscomp$512)||a.customFieldNames.set(f.id$jscomp$512,""+f.id$jscomp$512)}ce(w)})};
d_.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 RHd=function(a,b){var c=function(g,k){if(g.type==="CUSTOM_FIELD"){var m;var r=(m=a.customFieldNames.get(g.customFieldId))!=null?m:""+g.customFieldId}else{var w;r=(w=AHd.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 Iq(d,function(g){return g.name})};d_.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
d_.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);mg(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&Fz(a.focusManager,a.focusManager.activeItem)});this.focusManager=Ez(new szd(this.correctedDisplayedRows,Gyb));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 uyb=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=d_.prototype;h.getDisplayName=function(a){var b;return(b=AHd.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)||pq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Mr(this.domSafe,b):$t(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(Xwb(this,a))this.selection.clear();else{a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.isSingleIssue(0,b)&&this.selection.select(b.issueIds[0])}this.selectedIssuesChange.emit(this.selection)};
var xyb=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})},Xwb=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};d_.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):As.viewIssue.makeHref(a)};
var Rwb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.matDialog.open(LHd,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),z(d,ie(TB(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,THd(a,a.dataColumns),3)}a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);ce(d)})};
d_.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};d_.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}))?GSa(a):"--"};
da.Object.defineProperties(d_.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({},QHd,a);this.rowLimit$.next(a.rowLimit);var c;THd(this,[].concat(q(this.dataColumns),q((c=this.options.optionalColumns)!=null?c:[]))).then(function(){b.tableColumns=b.getRenderableColumns(b.dataColumns);b.columnItems=RHd(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;THd(this,this.dataColumns).then(function(){b.tableColumns=b.getRenderableColumns(a);b.columnItems=RHd(b,a);b.cdr.detectChanges()})}}});d_.\u0275fac=function(a){return new (a||d_)};
d_.\u0275cmp=C({type:d_,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&jg(dX,5);if(a&2){var c;ng(c=og())&&(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:[Ig([iQ]),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,yyb,89,36,"table",1),T(1,"async"),F(2,Fyb,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:[UY,Yy,BV,nC,jC,xL,rI,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,FK,DA,HW,Gzd,qX,pX,Szd,BW,GW,Tzd,IW,rX,bX,sX,tX,b_,c_,a_,$Z,CU,oX,dX,kV,ly],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 e_=function(){Z.call(this);var a=this;this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.snackBar=p(bO);this.analytics=p(lQ);this.hostElement=p(Jd);this.appEvents=p(aP);this.issueUserEventsService=p(oW);this.scrolledOnScreenService=p(BU);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=l(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=l(b);var c=b.next().value;var d=b.next().value;b=new Map;d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,k=l((g=(f=e.similarIssues)==null?void 0:f.issueIds)!=null?g:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;g=void 0;var m=(g=b.get(f))!=null?g:[];m.push(e.category);b.set(f,m)}}c=l(c);for(d=c.next();!d.done;d=
c.next())d=d.value,e=void 0,k=(e=b.get(d))!=null?e:[],k.push("Buganizer"),b.set(d,k);return b}));this.issueTableData$=le([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{issueIds:b,tableColumns:c,categoriesFunction:function(e){var f;return(f=d.get(e))!=null?f:[]}}}));this.EventType=ndd;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(){UHd(a,b)}}]};this.gotErr=function(b){a.snackBar.open({message:dq(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");Kyb(a,"EVENT_TYPE_ISSUE_HOVERCARD",b)}}))};Y(e_,Z);
e_.\u0275dir=Z.\u0275dir;
e_.prototype.ngOnInit=function(){var a=this;this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);le([this.similarIssueIds$,this.similarIssuesEnrichments$,Ytd(this.scrolledOnScreenService,this.hostElement.nativeElement,{durationOnScreenMs:3E3})]).pipe(nf(1)).subscribe(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c.next();b.length>0&&a.logIssueUserEvent("EVENT_TYPE_VIEW","Buganizer");b=l(d);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c=void 0;(e=(c=
d.similarIssues)==null?void 0:c.issueIds.length)!=null&&e&&a.logIssueUserEvent("EVENT_TYPE_VIEW",d.category)}})};e_.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var UHd=function(a,b){var c=String(a.issueIdInternal);c&&kjd(a.issueFullFridge,b,c).then(function(){return y(function(d){VHd(a,b);VHd(a,c);a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(e){e.dismissedByAction&&WHd(a,b,c)});a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget");Kyb(a,"EVENT_TYPE_CLOSE_AS_DUPLICATE",b);ce(d)})}).catch(a.gotErr)},WHd=function(a,b,c){a.issueFullFridge.removeDuplicate(b,c).then(function(){VHd(a,
b);VHd(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate","fromSummaryWidget")},VHd=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};e_.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};
var Kyb=function(a,b,c){var d,e,f,g,k,m;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=l(f);for(k=g.next();!k.done;k=g.next())m=k.value,a.logIssueUserEvent(b,m);ce(r)})};
e_.prototype.logIssueUserEvent=function(a,b){var c=String(this.issueIdInternal);b==="Buganizer"?this.issueUserEventsService.logIssueUserEvent(c,"FEATURE_SIMILAR_ISSUES",a).pipe(fj(this.destroyRef)).subscribe():this.issueUserEventsService.logIssueUserEventForIssueEnrichment(c,"FEATURE_SIMILAR_ISSUES",a,b).pipe(fj(this.destroyRef)).subscribe()};
da.Object.defineProperties(e_.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("Qf");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("Rf");}}});e_.\u0275fac=function(a){return new (a||e_)};
e_.\u0275cmp=C({type:e_,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,Lyb,1,5,"b-issues-table",0),T(1,
"async"),Nf(2,Myb,2,0,"div"));if(a&2){var c;G((c=U(1,1,b.issueTableData$))?0:2,c)}},dependencies:[d_,iU,ly],encapsulation:2});var XHd=function(){this.editIssueService=p(NS);this.issueCommentDialogsService=p(CY);this.editIssueComponentService=p(uW);this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.issueApi=p(SP);this.butterBar=p(gO);this.contextSensitiveRegistry=p(cR)},YHd=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]};$r(a.butterBar,"Marking "+
b.length+" issues as duplicates...");return z(e,a.issueApi.issueBulkEdit(d).then(function(f){f.errors&&f.errors.length?(f=kWa(f.errors),a.butterBar.showWarning("Failed to mark issue(s) as duplicates: "+f+".")):$r(a.butterBar,"Marked "+b.length+" issue(s) as duplicates.");ie(a.contextSensitiveRegistry.getIssueId()).then(function(g){g&&a.issueFridge.poke(g)})}),0)})},$Hd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra;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,YHd(a,b),3);case 3:return $a.return();case 2:return d=Jq(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(hn);if(e.length!==d.length)throw Error("Sf");f=new Map;g=l(e);for(k=g.next();!k.done;k=g.next())m=k.value,r=a.editIssueService.editableIssue(m.issueId),r.setData(m),f.set(m.issueId,r);w=b.filter(function(pb){return pb.fieldName!==
"componentId"&&pb.fieldName!=="comment"&&pb.fieldName!=="hotlists"});x=l(w);for(D=x.next();!D.done;D=x.next())H=D.value,J=f.get(H.issueId),dod(J,H);return z($a,Promise.all(Array.from(f.values(),function(pb){return OS(a.editIssueService,pb)})),5);case 5:O=b.filter(function(pb){return pb.fieldName==="comment"}),R=l(O),V=R.next();case 6:if(V.done){Ca=b.filter(function(pb){return pb.fieldName==="hotlists"});if(!(Ca.length>0)){$a.jumpTo(10);break}return z($a,ZHd(a,f.get(Ca[0].issueId),Ca),10)}ba=V.value;
if(!ba.value){$a.jumpTo(7);break}oa=a.editIssueService.issueCommentDraft(ba.issueId).comment();oa.value=ba.value;ta=void 0;oa.formattingMode=(ta=ba.formattingMode)!=null?ta:"PLAIN";ka=f.get(ba.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"}),ua=l(ja),xa=ua.next();case 12:if(xa.done){$a.jumpTo(0);break}Ra=xa.value;return z($a,a.editIssueComponentService.updateComponent(Ra.issueId,
Ra.value||null),13);case 13:xa=ua.next(),$a.jumpTo(12)}})},ZHd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O;return y(function(R){f=new Set((e=(d=b.hotlistId)==null?void 0:d.map(String))!=null?e:[]);g=c.filter(function(V){return V.actionType==="ADD"}).flatMap(function(V){var ba,oa;return(oa=(ba=V.value)==null?void 0:ba.split(","))!=null?oa:[]}).filter(Boolean);k=c.filter(function(V){return V.actionType==="REMOVE"}).flatMap(function(V){var ba,oa;return(oa=(ba=V.value)==null?void 0:ba.split(","))!=
null?oa:[]}).filter(Boolean);m=new Set;r=new Set;w=l(g);for(x=w.next();!x.done;x=w.next())D=x.value,f.has(D)||m.add(D);H=l(k);for(J=H.next();!J.done;J=H.next())O=J.value,f.has(O)&&r.add(O);return m.size>0||r.size>0?z(R,a.issueFullFridge.updateHotlists(b.issueId,[].concat(q(m)),[].concat(q(r))),0):R.jumpTo(0)})};XHd.\u0275fac=function(a){return new (a||XHd)};XHd.\u0275prov=Fc({token:XHd,factory:XHd.\u0275fac,providedIn:"root"});var aId=function(a,b){return b.issueId},bId=new Set(["duplicateOfIssueId"]),f_=function(){var a=this;this.clipboard=p(uR);this.eventsForIssueFridge=p(TP);this.issueFridge=p(dQ);this.paths=p(vW);this.snackBar=p(uC);this.excludedActions=new Set;this.canonicalIssueId$=new Wj("");this.issue$=function(b){return a.issueFridge.watch(b)};this.hiddenActionCount=0;this.showExpansionOption=!1;this.draftActions=[];this.actionsToAccept=new hQ;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(vo)}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}))};
f_.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};f_.prototype.getIssueLink=function(a){return Cs(a)};
var Yyb=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)}),cId(a),a.updateActionsToAccept(),dId(a))}},Xyb=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=l(a.draftActions);for(e=d.next();!e.done;e=d.next())f=e.value,
f.issueId===b.issueId&&(f.issueId=c),f.value=b.issueId,f.isDirty=!0;a.canonicalIssueId$.next(b.issueId);a.updateActionsToAccept();ce(g)})},cId=function(a){a=l(a.draftActions);for(var b=a.next();!b.done;b=a.next())b.value.isDirty=!0},eId=function(a,b,c){b=to(b,function(g){return g.actionKey});var d=[];c=c.filter(function(g){return!a.excludedActions.has(g.actionKey)});c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=b.get(e.actionKey);f&&f.isDirty?d.push(f):d.push(e)}return Em(d)};
f_.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}))};var dId=function(a){a.draftActions.length<=6?a.showExpansionOption=!1:a.hiddenActionCount=a.draftActions.length-5};
da.Object.defineProperties(f_.prototype,{actions:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this.draftActions.length===0;this.draftActions=eId(this,this.draftActions,a).filter(function(f){return bId.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()}}});f_.\u0275fac=function(a){return new (a||f_)};
f_.\u0275cmp=C({type:f_,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,Syb,2,3),T(2,"async"),
Qf(3,$yb,2,3,null,null,aId),F(5,azb,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;Rf(b.showExpansionOption?a.slice(0,5):a);B(2);G(b.showExpansionOption?5:-1)}},dependencies:[Yy,nC,jC,lC,FK,DA,WK,XK,dL,YK,YW,GW,ly],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 g_=function(){};var fId=["popOverContent"],h_=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.width=this.maxWidth=this.minWidth=null;this.saveDisabled=Qg.apply(null,[!1].concat(q([])));this.closedWithAction=new gj;this.isOpen=!1;this.destroyed$=new wf(1);this.backdropClickSubscription=Rd.EMPTY};h_.prototype.ngOnInit=function(){};h_.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
h_.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(){dzb(a)}))};h_.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var czb=function(a){a.closedWithAction.emit(0);a.close()},dzb=function(a){a.closedWithAction.emit(1);a.close()};h=h_.prototype;h.processKeydown=function(a){switch(a.key){case "Escape":dzb(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)czb(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(czb(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 dA(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=fFc(Wz($z(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return Uz(a,gId)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h_.\u0275fac=function(a){return new (a||h_)(Ye(iA),Ye(hg))};
h_.\u0275cmp=C({type:h_,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&jg(fId,7);if(a&2){var c;ng(c=og())&&(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,ezb,8,3,"ng-template",null,0,Og)},dependencies:[ky,kz,QI],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 gId=[{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 hId=["popOver"],iId=["inputBox"],i_=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.required=this.openPopOverOnInit=!1;this.minWidth=null;this.closed=new gj;this.inputValue=new wE("",{nonNullable:!0});this.sessionOptions=jId;this.mergedAutocompleteConfig=Object.assign({},kId,this.defaultAutocompleteConfig)};h=i_.prototype;h.ngOnInit=function(){this.inputValue._assignValidators(this.required?[Gj]:[])};
h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};h.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},kId,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("")};i_.\u0275fac=function(a){return new (a||i_)(Ye(lId,8))};
i_.\u0275cmp=C({type:i_,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(jg(hId,7),jg(iId,5));if(a&2){var c;ng(c=og())&&(b.popOver=c.first);ng(c=og())&&(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:[xx],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,fzb,2,4,
"ng-template",null,1,Og)}a&2&&(a=sg(3),I("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",a)("saveDisabled",b.inputValue.invalid)("minWidth",b.minWidth))},dependencies:[Ij,qE,JE,h_,DX,DE],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 lId=new ed("user-picker-autocomplete-config"),kId={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},jId=(new vv).setFilter(sib(oib(1),new zyd(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 izb=function(a){return{$implicit:a}},mId=0,j_=function(){this.val="";this.required=this.disabled=!1;this.minWidth=null;this.emailChange=new gj;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+mId;this.onChange=function(){};this.onTouched=function(){};mId++};Y(j_,g_);h=j_.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(j_.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=C({type:j_,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&jg(i_,7);if(a&2){var c;ng(c=og())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",required:"required",minWidth:"minWidth",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,
features:[Ig([{provide:g_,useExisting:Xc(function(){return j_}),multi:!0},{provide:lE,useExisting:Xc(function(){return j_}),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,gzb,1,1)(3,jzb,1,4,"ng-container")(4,kzb,1,1);E(5,lzb,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=sg(1),yg("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:[fy,ky,i_],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 nId=["picker"],k_=function(){this.autocompleteConfigService=p(QW);this.disabled=!1;this.emailChange=new hQ;this.displayValueOverride="";this.minWidth=180;this.userEmail=""};Y(k_,g_);k_.prototype.openPopOver=function(){this.picker.openPopOver()};k_.prototype.isActive=function(){return this.picker.isActive()};da.Object.defineProperties(k_.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=Om(a)||""},get:function(){return this.userJs}}});
k_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(k_)))(b||k_)}}();
k_.\u0275cmp=C({type:k_,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&jg(nId,7);if(a&2){var c;ng(c=og())&&(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:[Ig([{provide:g_,useExisting:Xc(function(){return k_}),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=Pm(d);b.userEmail=d;b.emailChange.emit(d);return v()});L();E(2,nzb,1,1,"ng-template",null,1,Og)}a&2&&(a=sg(3),I("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",
b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",Aib(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride)("minWidth",b.minWidth))},dependencies:[qV,j_],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 tzb=function(a){return{group:a,fieldName:"Assignee"}},yzb=function(a){return{group:a,fieldName:"Priority"}},Czb=function(a){return{group:a,fieldName:"Comment"}},Hzb=function(a){return{group:a,fieldName:"Component"}},Pzb=function(a){return{group:a,fieldName:"Hotlist"}},Yzb=function(a){return{group:a,fieldName:"CCs"}},aAb=function(a){return{group:a,fieldName:"Status"}},nAb=function(a,b){return{group:a,fieldName:b}},eAb=function(){return[]},Rzb=function(a,b){return b.actionKey},oId=new Set("assignee comment componentId hotlists priority ccs status customField".split(" ")),
l_=function(){var a=this;this.issueFridge=p(dQ);this.constants=p(lS);this.editCommentDialogService=p(AY);this.issuePermissionService=p(fR);this.hotlistFridge=p(rP);this.hotlistPickerService=p(MY);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 hQ;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=oed;this.dirtyCommentActions=new Set;this.excludedActions=new Set;this.IssueFieldName=ded;this.IssuePriority=Ddd;this.IssueStatus=Tdd;this.FormattingMode=bo;this.ActionType=fdd;this.FieldType=zV;this.emailToUser=Pm;this.userToLossyEmail=Om;this.getTeamId=T6a;this.getComponentId=U6a;this.getReporter=S6a;this.getAssignee=
R6a;this.getPriority=Q6a;this.getStatus=P6a};l_.prototype.ngOnChanges=function(){this.draftActions=xAb(this.draftActions,this.actions).filter(function(a){return oId.has(a.fieldName)});this.updateActionsToAccept()};var pId=function(a){return Q0a(a,function(b){return b.fieldName})},vzb=function(a,b,c){qId(a,b,function(d){d.value=String(c)})},dAb=function(a){switch(a){case "DATE":return"DATE";case "ENUM":return"ENUM";case "NUMERIC":return"NUMERIC";default:return"TEXT"}};
l_.prototype.getListFieldType=function(a){switch(a){case "REPEATED_DATE":return"REPEATED_DATE";case "REPEATED_ENUM":return"REPEATED_ENUM";case "REPEATED_NUMERIC":return"REPEATED_NUMERIC";default:return"REPEATED_TEXT"}};var gAb=function(a,b,c){a=new cod(b);a.type=c.type;a.customFieldName=c.name;var d,e;a.choices=(e=(d=c.allowedValue)==null?void 0:d.map(function(f){return{value:f,displayText:f}}))!=null?e:null;return a};
l_.prototype.getSingularValue=function(a){var b=Im(a);return b&&!a.isRepeated()?b:null};l_.prototype.getRepeatedValues=function(a){var b=Im(a);return a.isRepeated()&&b?typeof b==="object"&&b!==null&&"values"in b?b.values:null:null};l_.prototype.getDisplayValue=function(a){var b,c;a=(c=(b=a.displayValues)==null?void 0:b[0])!=null?c:null;a==="0.0"&&(a="0");return a};
var pAb=function(a,b){P();var c;return(c=a.customFields)==null?void 0:c.find(function(d){return d.customFieldId===b.customFieldValue.customFieldId})},mAb=function(a,b){var c;return(c=a.snapshot[0].customField)==null?void 0:c.find(function(d){return d.customFieldId===b.customFieldValue.customFieldId})};l_.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 Vzb=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},qId=function(a,b,c){b&&(a.draftActions=a.draftActions.map(function(d){if(d.actionKey!==b.actionKey)return d;d=Em(d);c(d);d.isDirty=!0;return d}),a.updateActionsToAccept())},Bzb=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return e=(d=a.issuePermissionService.audience())!=null?d:"EXTERNAL",k=(g=(f=c)==null?void 0:f.snapshot[0].componentId)!=
null?g:void 0,z(w,a.editCommentDialogService.show({issueId:b.issueId,audience:e,componentId:k,text:b.value,formattingMode:(m=b.formattingMode)!=null?m:"PLAIN",showPiiWarning:!1,dialogTitle:"Edit draft comment"}),2);(r=w.yieldResult)&&qId(a,b,function(x){x.value=r.text;x.formattingMode=r.formattingMode});ce(w)})};
l_.prototype.openHotlistPicker=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua,xa,Ra,$a,pb;return y(function(Yb){if(Yb.nextAddress==1)return c=a[0].issueId,z(Yb,ie(b.issue$(c)),2);if(Yb.nextAddress!=3)return d=Yb.yieldResult,k=(g=(e=d)==null?void 0:(f=e.snapshot[0].hotlistId)==null?void 0:f.map(String))!=null?g:[],m=a.find(function(lc){return lc.actionType==="ADD"}),r=a.find(function(lc){return lc.actionType==="REMOVE"}),H=new Set((D=(w=m)==null?void 0:(x=w.value)==null?
void 0:x.split(","))!=null?D:[]),V=new Set((R=(J=r)==null?void 0:(O=J.value)==null?void 0:O.split(","))!=null?R:[]),ba=[].concat(q(k),q(H)).filter(function(lc){return!V.has(lc)}),z(Yb,VDd(b.hotlistPickerService,a[0].issueId,ba.map(Number),!1),3);oa=Yb.yieldResult;if(!oa)return Yb.return();ta=oa;ka=ta.addedIds;Ca=ta.removedIds;ja=l(Ca);for(ua=ja.next();!ua.done;ua=ja.next())xa=ua.value,H.delete(xa),V.add(xa);Ra=l(ka);for($a=Ra.next();!$a.done;$a=Ra.next())pb=$a.value,H.add(pb),V.delete(pb);qId(b,m,
function(lc){lc.value=[].concat(q(H)).join(",")});qId(b,r,function(lc){lc.value=[].concat(q(V)).join(",")});ce(Yb)})};l_.prototype.updateActionsToAccept=function(){var a=this,b=this.draftActions.filter(function(c){return!a.excludedActions.has(c.actionKey)}).filter(Jab);this.includeCommentByDefault||(b=b.filter(function(c){return c.fieldName!=="comment"||a.dirtyCommentActions.has(c.actionKey)}));this.actionsToAccept.emit(b)};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=C({type:l_,selectors:[["b-issue-actions-component"]],inputs:{actions:"actions",includeCommentByDefault:"includeCommentByDefault"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,features:[xx],decls:5,vars:0,consts:[["excludeButton",""],["assigneePicker",""],["priorityPicker",""],["componentPicker",""],["statusPicker",""],["customFieldEditor",""],[1,"flex-kids-y","gap-s"],[1,"row","flex-kids-x","gap-xs","align-items-center",3,"excluded","hide-comment"],[1,"row","flex-kids-x",
"gap-xs","align-items-center"],[1,"field-name"],[1,"field-value","gap-xs","flex-kids-x","align-items-center","flex-wrap"],[3,"emailChange","user","displayValueOverride","teamId","disabled"],[1,"note"],[1,"buttons","margin-left-auto"],[3,"user","teamId","disabled"],[1,"muted"],["svgIcon","arrow-forward","color","primary",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Edit assignee","aria-label","Edit assignee",1,"small",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],
[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-value","gap-xs","flex-kids-x","align-items-center"],[3,"valueChange","type","value","choices","readonly"],[3,"type","value","choices","readonly"],["type","button","mat-icon-button","","matTooltip","Edit priority","aria-label","Edit priority",1,"small",3,"click","disabled"],[3,"comment","issueId","audience","formattingMode"],["type","button","mat-icon-button","","matTooltip","Edit comment","aria-label","Edit comment",1,"small","edit-comment",
3,"click","disabled"],[3,"componentChanged","issueId","componentId","compactMode","handleSave","showPickerOverlayAbove","readOnly"],[3,"issueId","componentId","compactMode","readOnly"],["type","button","mat-icon-button","","matTooltip","Edit component","aria-label","Edit component",1,"small",3,"click","disabled"],[1,"flex-kids-x","align-items-center"],["matTooltip","Adding hotlist","svgIcon","add",1,"good","icon-xs"],[3,"hotlist","removable"],["matTooltip","Removing hotlist","svgIcon","remove_24px",
1,"bad","icon-xs"],["type","button","mat-icon-button","","matTooltip","Edit hotlists","aria-label","Edit hotlists",1,"small",3,"click","disabled"],["matTooltip","Adding CC","svgIcon","add",1,"good","icon-xs"],["matTooltip","Removing CC","svgIcon","remove_24px",1,"bad","icon-xs"],[3,"type","values","displayValuesOverride","enumChoices","readonly"],[3,"type","value","displayValueOverride","choices","readonly","showEnumTitle"],["type","button","mat-icon-button","",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",6),Qf(1,sAb,5,9,"div",7,ozb,!0),L(),E(3,wAb,2,2,"ng-template",null,0,Og));a&2&&(B(),Rf(pId(b.draftActions)))},dependencies:[ky,Yy,wT,EY,yV,nC,lC,FK,DA,TZ,YV,k_,
ly,oV],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 zAb=function(){return[]},rId=new Map(["componentId","hotlists","priority","assignee","comment"].map(function(a,b){return[a,b]})),sId=wn(function(a){var b;return(b=rId.get(a.fieldName))!=null?b:Infinity},xn,"ASCENDING"),m_=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(Qu);this.recommendationsService=p(qW);this.issueActionService=p(XHd);this.editIssueService=p(NS);this.documentationLinks=p(hS);this.domSafe=p(sR);this.checkBeforeExit=p(yY);this.issueFridge=p(dQ);this.scrolledOnScreenService=
p(BU);this.cdr=p(Px);this.elementRef=p(Jd);this.butterBar=p(gO);this.recommendationTriggerService=p(iR);this.includeComment=this.activeSession.getFlag("enableTriageRecommendationComments");this.dedupeAutomationCalloutComponentAllowlist=Zed(this.activeSession);this.RecommendationType=Ydd;this.recommendation$=new wf(1);this.disableLogging=this.showTitle=!1;this.issueId$=this.recommendation$.pipe(A(function(b){return gs(b==null?void 0:b.resource)}));this.currentIssue$=this.issueId$.pipe(Af(function(b){return b?
a.issueFridge.watch(b):ee(void 0)}));this.currentComponentId$=this.currentIssue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.componentId}),zf(void 0));this.actions=[];this.actions$=le([this.recommendation$,this.currentIssue$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;d&&b.type==="ISSUE_DEDUPLICATION_BATCH"&&(b=Em(b),b.content.issueDeduplicationBatch.recommendedCanonicalIssue||(b.content.issueDeduplicationBatch.recommendedCanonicalIssue=
d));b=Em(b);if(d){var e=tId[b.type];if(e){var f,g,k;c=new Set((k=(f=b.content)==null?void 0:(g=f.issueModification)==null?void 0:g.addMask)!=null?k:[]);var m,r,w;f=new Set((w=(m=b.content)==null?void 0:(r=m.issueModification)==null?void 0:r.removeMask)!=null?w:[]);m=new Set([].concat(q(c),q(f)));var x,D;if((x=b.content)==null?0:(D=x.issueModification)==null?0:D.addState)b.content.issueModification.addState=Object.assign({},d.snapshot[0],b.content.issueModification.addState);var H,J;if((H=b.content)==
null?0:(J=H.issueModification)==null?0:J.addMask)for(x=l(e),D=x.next();!D.done;D=x.next())D=D.value,m.has(D)||b.content.issueModification.addMask.push(D);var O;e.has("comment")&&((O=b.content)==null?0:O.issueModification)&&!b.content.issueModification.comment&&(b.content.issueModification.comment={issueId:d.issueId,commentNumber:0,formattedComment:void 0,lastEditorUser:void 0,lastModified:0,version:0,unlinkifiedComment:"",formattingMode:"PLAIN",entityStatus:void 0,piiRetentionState:void 0,piiRetention:void 0,
redacted:!1,etag:void 0,commentReactions:new Map});O=l(m);for(d=O.next();!d.done;d=O.next())d=d.value,Nab.has(d)&&(c.has(d)||(D=x=void 0,(x=b.content)==null||(D=x.issueModification)==null||D.addMask.push(d)),f.has(d)||(D=x=void 0,(x=b.content)==null||(D=x.issueModification)==null||D.removeMask.push(d)))}}return Hab(b)}),A(function(b){return sId(b,"ASCENDING")}));this.actionsToAccept=[];this.isSaving$=new Wj(!1)};Y(m_,Z);m_.\u0275dir=Z.\u0275dir;
m_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(zY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()&&a.recommendation.type!=="ISSUE_DEDUPLICATION_BATCH"&&a.recommendation.type!=="ISSUE_DEDUPLICATION"},!0));this.disableLogging||(Wwd(this.recommendationsService,this.recommendation),this.subscriptions.add(le([Ytd(this.scrolledOnScreenService,this.elementRef.nativeElement,{durationOnScreenMs:3E3})]).pipe(nf(1)).subscribe(function(){Xwd(a.recommendationsService,a.recommendation)})));
this.subscriptions.add(this.actions$.subscribe(function(b){a.actions=b}))};m_.prototype.updateActionsToAccept=function(a){this.actionsToAccept=a;this.cdr.detectChanges()};
m_.prototype.accept=function(a){var b=this,c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return b.isSaving$.next(!0),c=b.actions.filter(Jab),d=b.actionsToAccept.filter(Jab),e=Jq(d.map(function(w){return w.issueId})),Yd(r,2,3),z(r,$Hd(b.issueActionService,d,a),5);case 5:if(b.disableLogging){r.jumpTo(6);break}return z(r,Gwd(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=
l(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:m=be(r),b.butterBar.showWarning("Failed to apply recommendation."),console.error("Failed to apply recommendation",m),r.jumpTo(3)}})};m_.prototype.reject=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),z(c,Vwd(b.recommendationsService,a),2);b.isSaving$.next(!1);ce(c)})};
var uId=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"}},vId=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"}};m_.prototype.openLink=function(a){this.domSafe.openInNewTab(a)};m_.prototype.getRecommendationText=function(){return Pab(this.recommendation,!0)};m_.prototype.hasUnsavedChanges=function(){return this.actionsToAccept.some(function(a){return a.isDirty})};
var wId=function(a){var b=Jr(a.currentComponentId$);return b?a.recommendation.type==="ISSUE_DEDUPLICATION_BATCH"&&a.dedupeAutomationCalloutComponentAllowlist.has(b):!1};da.Object.defineProperties(m_.prototype,{recommendation:{configurable:!0,enumerable:!0,set:function(a){this.recommendation$.next(a)},get:function(){return Jr(this.recommendation$)}}});m_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(m_)))(b||m_)}}();
m_.\u0275cmp=C({type:m_,selectors:[["b-recommendation"]],inputs:{recommendation:"recommendation",showTitle:"showTitle",disableLogging:"disableLogging"},standalone:!1,features:[Gf],decls:20,vars:18,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"],[1,"full-width"],[3,"currentIssue","actions"],[3,"actionsToAccept","currentIssue","actions"],[3,"actionsToAccept","actions","includeCommentByDefault"],[1,"flex-kids-x","gap-s","margin-s-bottom"],[3,"formattedComment","canEditComment"],["type",
"button","mat-icon-button","","aria-label","help",1,"feedback-button",3,"click"],["svgIcon","help-outline",1,"icon-s"],["messageType","info","iconOverride","lightbulb_24px"],["href","http://go/b-auto-dedupe","target","\u201d_blank\u201d"]],template:function(a,b){if(a&1){var c=t();K(0,"div",0);F(1,yAb,2,1,"div",1);F(2,BAb,2,3)(3,CAb,2,5,"b-issue-actions-component",2);F(4,FAb,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,GAb,1,0,"b-spinner",9);T(16,"async");L();bg(17);F(18,HAb,3,0,"div",10);L();F(19,IAb,6,0,"div",11);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,11,b.isSaving$)||b.actionsToAccept.length===0);Kf("aria-label",uId(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,13,b.isSaving$));Kf("aria-label",vId(b.recommendation));B(4);G(U(16,
15,b.isSaving$)?15:-1);B(2);a:{switch(b.recommendation.type){case "ISSUE_DEDUPLICATION":case "ISSUE_DEDUPLICATION_BATCH":a="https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/mark-as-duplicate";break a}a=void 0}a=cg(a);B();G(a?18:-1);B();G(wId(b)?19:-1)}},dependencies:[Yy,vT,nC,jC,lC,rK,iU,JU,KU,f_,l_,ly],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 xId={},tId=(xId.COMPONENT_ROUTING=new Set(["componentId","hotlists","priority","assignee"]),xId.NEEDS_INFO=new Set(["comment"]),xId);var yId=function(){this.isReady=!1};yId.\u0275fac=function(a){return new (a||yId)};yId.\u0275cmp=C({type:yId,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&&(eg(),E(0,JAb,1,0,"div",0)(1,KAb,2,0,"ng-container",1));a&2&&(I("ngIf",!b.isReady),B(),I("ngIf",b.isReady))},dependencies:[fy],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 zId=function(){this.warning=""};zId.\u0275fac=function(a){return new (a||zId)};
zId.\u0275cmp=C({type:zId,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("is-present",b.warning)},inputs:{warning:"warning"},standalone:!1,decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"]],template:function(a,b){a&1&&E(0,LAb,2,
1,"svg",0);a&2&&I("ngIf",b.warning)},dependencies:[fy,OX],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 AId=["*",[["","actions",""]]],BId=[[["onedev-field-label"]],[["onedev-field-value"]]],CId=0,n_=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+CId;CId++};n_.\u0275fac=function(a){return new (a||n_)};
n_.\u0275cmp=C({type:n_,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&&(eg(),K(0,"onedev-async-data-placeholder",0)(1,"span",1),fg(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:[yId,OX,zId],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var DId=function(){this.thinking=!1};DId.\u0275fac=function(a){return new (a||DId)};
DId.\u0275cmp=C({type:DId,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(eg(AId),K(0,"onedev-async-data-placeholder",0),fg(1),fg(2,1),L());a&2&&I("isReady",!b.thinking)},dependencies:[yId],encapsulation:2});var o_=function(){this.labelPosition="left"};
o_.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};o_.\u0275fac=function(a){return new (a||o_)};
o_.\u0275cmp=C({type:o_,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(kg(c,g_,5),kg(c,n_,7));if(a&2){var d;ng(d=og())&&(b.field=d.first);ng(d=og())&&(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&&(eg(BId),K(0,"div",0),fg(1),fg(2,1),L());a&2&&yg("active",b.field==null?null:b.field.isActive())("top-label",b.labelPosition===
"top")},styles:[".wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:2px}.wrapper.top-label[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     onedev-field-label{margin-right:5px}[_nghost-%COMP%]     onedev-field-value{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-height:29px}[_nghost-%COMP%]     onedev-field-value>*{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;width:100%}[_nghost-%COMP%]     onedev-field-value onedev-async-data-placeholder{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start}[_nghost-%COMP%]     onedev-field-value [actions]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     onedev-field-value:not(.content-overflow){overflow:hidden;text-overflow:ellipsis}.active[_ngcontent-%COMP%]     onedev-field-label{color:var(--primary-default,#1a73e8)}"]});var EId=["traditionalEditorField"],FId=["peopleKitUserPicker"],p_=function(){this.activeSession=p(Qu);this.issuePermissionService=p(fR);this.issueDetailsBrain=p(dR);this.elementRef=p(Jd);this.cdr=p(Px);this.title=this.name="";this.value=null;this.valueChange=new hQ;this.emailChange=new hQ;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.FieldType=
zV};p_.prototype.emailToUser=function(a){return gn(Pm(a))};p_.prototype.emitValueChange=function(){this.valueChange.emit({editField:void 0,newEmail:void 0});this.cdr.markForCheck()};p_.prototype.openEditor=function(){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()};p_.\u0275fac=function(a){return new (a||p_)};
p_.\u0275cmp=C({type:p_,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(jg(EId,5),jg(FId,5));if(a&2){var c;ng(c=og())&&(b.traditionalEditorField=c.first);ng(c=og())&&(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,MAb,1,1,"b-availability-chip",3);L()()}if(a&2){B(2);Ag(b.title);B();I("thinking",!!b.isSaving);B();var d,e,f;I("anchor",
(d=b.anchor)!=null?d:b.elementRef.nativeElement)("user",(e=b.user)!=null?e: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:[aV,n_,DId,o_,k_,oV,ly],encapsulation:2});var GId=[[["","expansion-panel-header",""]],"*"],q_=function(){this.instance=q_.instanceCounter;this.expanded=!1};q_.prototype.ngOnInit=function(){q_.instanceCounter++};q_.prototype.toggle=function(){this.expanded=!this.expanded};q_.instanceCounter=0;q_.\u0275fac=function(a){return new (a||q_)};
q_.\u0275cmp=C({type:q_,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&&(eg(GId),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()}),fg(2),K(3,"button",2),N("click",function(c){b.toggle();return c.stopPropagation()}),M(4,"mat-icon",3),L()(),F(5,NAb,2,3,"div",4),L());a&2&&(yg("expanded",b.expanded),B(),I("id",
Gg("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:[Yy,nC,lC],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 bBb=function(){return[]},hBb=function(a,b){return b.key},r_=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.paramsService=p(bR);this.issueExperimentalFieldsFridge=p($P);this.issuePermissionService=p(fR);this.triageService=p(dS);this.activeSession=p(Qu);this.errorHandler=p(wO);this.preferences=p(nR);this.similarIssuesApi=p(yW);this.issueMarkAsDuplicateDialogService=p(DY);this.analytics=p(lQ);this.recommendationTriggerService=
p(iR);this.refreshMonitor=p(aQ);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.issueId$=this.triageService.currentIssueId$.pipe(we(hn),pf());this.PHASE_TO_ACTIONS=Vnd;this.TriagePhase=Vdd;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new hQ;this.teamId$=Nld(this.paramsService,"teamId").pipe(pf(),we(hn));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 Om(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 Pm(b)}));this.issuePhase$=this.issue$.pipe(A(Or));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&rt.get(b))!=null?c:""}));this.issueSubphase$=
this.issue$.pipe(A(Pr));this.issueSubphaseDisplay$=this.issueSubphase$.pipe(A(function(b){var c;return(c=b&&gnd[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(vo).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=l(b);b=c.next().value;c=c.next().value;return Exd(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 Znd(a.triageService.triageDataFactory.get(b,a.triageViewId),"NEW")}),A(function(b){var c=[].concat(q(Snd.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 Rld(a.recommendationTriggerService,b)}),
xf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(Af(function(b){return Sld(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=le([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),xf({bufferSize:1,refCount:!0}));this.triageRecommendation$=this.issueId$.pipe(Af(function(b){return Vld(a.recommendationTriggerService,b)}),
xf({bufferSize:1,refCount:!0}))};Y(r_,Z);r_.\u0275dir=Z.\u0275dir;h=r_.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ef(this.issueId$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;a.eventsForIssueFridge.poke(b)}))};h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.openSecondaryActionFooter=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,HDd(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("pf");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 SAb=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"))?(xO(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)})};r_.prototype.claim=function(){SAb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};
r_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(r_)))(b||r_)}}();
r_.\u0275cmp=C({type:r_,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,lBb,19,19,"div",6),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueId$))?0:-1,c)}},dependencies:[Yy,RZ,QZ,q_,nC,jC,lC,FK,DA,WK,XK,dL,YK,YW,KZ,XZ,FW,nT,HW,YZ,rK,m_,p_,e_,OY,kV,iV,UU,lV,ly],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 HId=function(){var a=this;this.activeSession=p(Qu);this.issueExperimentalFieldsFridge=p($P);this.triageService=p(dS);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new Wj(void 0);this.hasUserClaimedIssues$=le([this.issueIds$,this.onToggleClaim$]).pipe(A(function(b){var c=l(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 l(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},mBb=function(a,b,c){var d,e,f;return y(function(g){switch(g.nextAddress){case 1:a.isSaving=!0,d=l(b),e=d.next();case 2:if(e.done){g.jumpTo(4);break}f=e.value;return z(g,a.issueExperimentalFieldsFridge.updateOrInsert(f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=
d.next();g.jumpTo(2);break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),ce(g)}})};HId.\u0275fac=function(a){return new (a||HId)};
HId.\u0275cmp=C({type:HId,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,nBb,6,8,"button",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueIds$))?0:-1,c)}},dependencies:[nC,jC,ly],encapsulation:2,changeDetection:0});var vBb=function(a,b){return b.key},s_=function(){Z.apply(this,arguments);var a=this;this.triageService=p(dS);this.analytics=p(lQ);this.butterBar=p(gO);this.errorHandler=p(wO);this.issueApi=p(SP);this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.issuePicker=p(fY);this.paramsService=p(bR);this.triagePhaseService=p(PY);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=Vnd;this.TriagePhase=Vdd;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(Af(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Or));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&rt.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 Pr(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=gnd[c])!=null?d:""});return Jq(b)}));this.refreshTable=new hQ};Y(s_,Z);s_.\u0275dir=Z.\u0275dir;h=s_.prototype;
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ie(a.issueIds$),2);case 2:b=m.yieldResult;if(!b||!b.length)return m.return();c=jWa;return z(m,ie(a.issueFridge.watchSet(b)),3);case 3:return d=c(m.yieldResult),e=l,z(m,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(m.yieldResult),(k=g=f.next().value)?z(m,a.markAsDuplicate(k,
b),0):m.return()}})};h.openSecondaryActionFooter=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):z(c,b.openDupeDialog(),3);if(c.nextAddress!=2)return b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+a),c.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;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,fEd(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);$r(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),4)}if(g.nextAddress!=2)return $r(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),Zj(g,0);f=be(g);yO(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=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};s_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(s_)))(b||s_)}}();
s_.\u0275cmp=C({type:s_,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,oBb,5,1,"div",2),T(3,"async"),F(4,
rBb,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,yBb,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:[Yy,nC,jC,lC,FK,DA,HId,OY,UU,ly],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 t_=function(){var a=this;this.editIssueService=p(NS);this.issueFridge=p(dQ);this.IssueFieldKey=aEd;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=l(b);b=c.next().value;c=c.next().value;a:{var d=c.field;switch(d){case "STATUS":b="Auto changed status";break a;
case "ASSIGNEE":b=c.value===b.reporter?"Auto assigned to reporter":"Auto assigned";break a;case "COMMENT":b="";break a;default:wb(d)}b=void 0}return b}))};t_.prototype.ngOnInit=function(){};
t_.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(Lm(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("Tf");default:wb(b)}a.undone=!0;ce(e)})};
da.Object.defineProperties(t_.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Jr(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return Jr(this.automaticChange$)}}});t_.\u0275fac=function(a){return new (a||t_)};
t_.\u0275cmp=C({type:t_,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&xg("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},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),Ag(U(4,1,b.text$)))},dependencies:[Yy,nC,jC,FK,DA,ly],encapsulation:2,changeDetection:0});var IId=["pickerToggle"],u_=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new hQ};u_.\u0275fac=function(a){return new (a||u_)};
u_.\u0275cmp=C({type:u_,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&jg(IId,7);if(a&2){var c;ng(c=og())&&(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,zBb,1,1,"b-formatted-date-time",2)(3,ABb,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:[uV,BV,nC,jC],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var JId=["filterInput"],v_=function(){Z.apply(this,arguments);this.dateFormatter=p(mS);this.enumChoices=[];this.onSave=new hQ;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Y(v_,Z);v_.\u0275dir=Z.\u0275dir;h=v_.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 KId=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=v_.prototype;
h.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),this.sortValues(),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};h.changeSelection=function(a){this.focusFilterBox();var b=this.valueMap.get(a);b?this.valueMap.set(a,!1):b===!1?(b=this.originalValueMap.get(a)===null,this.valueMap.set(a,b?null:!0)):this.valueMap.set(a,!0);this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()})};
h.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||b!==void 0?c!==b:!1})};h.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=l(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);this.sortValues()};
h.sortValues=function(){var a=this;this.sortedValues=Array.from(this.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:c===!1?-1:0)-(b?1:b===!1?-1:0)})};var CBb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};v_.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(uSa(a)):a};v_.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
v_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(v_)))(b||v_)}}();
v_.\u0275cmp=C({type:v_,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(jg(sH,5),jg(JId,5));if(a&2){var c;ng(c=og())&&(b.trigger=c.first);ng(c=og())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},standalone:!1,features:[Gf,xx],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),Qf(6,BBb,3,4,"div",4,Pf),M(8,"mat-divider"),K(9,"div",5),F(10,DBb,2,3,"input",6),L(),F(11,EBb,1,0,"mat-divider"),F(12,FBb,2,0,"div",7),F(13,GBb,4,1,"div"),L());a&2&&(a=sg(5),I("matMenuTriggerFor",a),B(2),Ag(b.getLabel()),B(4),Rf(KId(b)),B(4),G(b.type!=="REPEATED_DATE"?10:-1),B(),G(CBb(b)?11:-1),B(),G(CBb(b)?12:-1),B(),G(b.type==="REPEATED_DATE"?13:-1))},dependencies:[eK,pH,nH,sH,rK,yT,nC,jC,xL,rI,Ij,qE,xE,u_],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var LId=0,w_=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+LId;LId+=1};w_.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};w_.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};w_.\u0275fac=function(a){return new (a||w_)(Ye(Px))};
w_.\u0275dir=df({type:w_,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Sf("id",b.id),yg("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var MId=function(){};MId.\u0275fac=function(a){return new (a||MId)};MId.\u0275mod=cf({type:MId});MId.\u0275inj=Gc({});var JBb=function(a){return{$implicit:a}},x_=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new Wj([]);this.filterText$=new Wj("");this.filteredOptions$=le([this.options$,this.filterText$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;return b.filterFunction!==void 0&&b.filterFunction!==null?c.filter(function(f){return b.filterFunction(e,f)}):c}));this.valueChange=new gj;this.selected=new gj;this.destroyed$=
new wf(1);a&&this.handleKeydown(a.keydown$)};h=x_.prototype;h.ngOnInit=function(){};h.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};h.ngAfterViewInit=function(){this.keyManager=Cz(Bz(new Gz(this.viewOptions)))};h.ngOnChanges=function(a){a.value&&NId(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 NId=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),OId(a))}};x_.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
x_.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),OId(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):EEc(b.keyManager),OId(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var OId=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"})}};x_.\u0275fac=function(a){return new (a||x_)(Ye(CW,8))};
x_.\u0275cmp=C({type:x_,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&jg(w_,5);if(a&2){var c;ng(c=og())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&N("focus",function(){return NId(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:[xx],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,HBb,5,0,"div",4)(1,UBb,5,2,"ng-container",5),T(2,"async"));
a&2&&(I("ngIf",b.showFilterBar),B(),I("ngIf",U(2,2,b.filteredOptions$)))},dependencies:[ey,fy,ky,w_,ly],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 PId=["trigger"],WBb=function(a){return{$implicit:a}},QId=0,y_=function(){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.popupMaxHeight=300;this.label="";this.valueChange=new gj;this.closed=new gj;this.displayArrowIcon=!0;this.openPopupOnInit=!1;this.required=Qg.apply(null,[!1].concat(q([])));this.focused=!1;this.contentId="onedev-single-select-"+QId;this.onChange=function(){};this.onTouched=function(){};QId++};Y(y_,g_);h=y_.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 RId=function(a){var b="";a.label&&(b+=a.label+", ");a.required()&&(b+="required, ");return b};y_.prototype.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(y_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});y_.\u0275fac=function(a){return new (a||y_)};
y_.\u0275cmp=C({type:y_,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&jg(PId,7);if(a&2){var c;ng(c=og())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",showFilterBar:"showFilterBar",filterFunction:"filterFunction",popupMaxHeight:"popupMaxHeight",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",
openPopupOnInit:"openPopupOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",closed:"closed"},standalone:!1,features:[Ig([{provide:lE,useExisting:Xc(function(){return y_}),multi:!0},{provide:g_,useExisting:Xc(function(){return y_}),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=sg(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,XBb,2,4,"ng-container",7)(5,$Bb,1,2,"ng-template",null,1,Og)(7,cCb,3,2,"ng-template",
null,2,Og)(9,dCb,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=sg(1);return v(e.close())});L()()}if(a&2){a=sg(6);var d=sg(11);yg("active",b.isActive());I("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);Kf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);Ag(RId(b));B();I("ngIf",b.valueTemplate)("ngIfElse",
a);B(5);I("ngIf",b.displayArrowIcon);B();I("relayOnly",!0);B(2);xg("max-height",b.popupMaxHeight,"px");I("value",b.value)("includeEmptyOption",b.includeEmptyOption)("emptyOptionValue",b.emptyOptionValue)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)("showFilterBar",b.showFilterBar)("filterFunction",b.filterFunction)}},dependencies:[fy,ky,CW,x_,DW,EW],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 lCb=function(){return[]},z_=function(){this.data=p(UB);this.dialogRef=p(SB);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};h=z_.prototype;
h.ngOnInit=function(){for(var a=new Map,b=null,c=l(this.issues),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.customFieldMap;e=e.customFieldValueMap;if(!b){b=new Map;for(var f=l(Object.keys(d)),g=f.next();!g.done;g=f.next())g=g.value,b.set(Gm(g),e[g]||void 0)}f=l(b);for(g=f.next();!g.done;g=f.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=d[g],r=e[g],w=void 0,x=(w=m)==null?void 0:w.type;if(m)if(x==="REPEATED_DATE"||x==="REPEATED_ENUM"||x==="REPEATED_NUMERIC"||x==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(g)||new Map;m=k.size===0;r=SId(r);w=Array.from(k.keys()).concat(r);w=l(w);for(x=w.next();!x.done;x=w.next())x=x.value,r.includes(x)?k.has(x)||k.set(x,m||null):k.set(x,null);this.repeatedCustomFieldsMap.set(g,k)}else(!r&&k!==void 0||r&&!Dm(r,k))&&b.set(g,null);else b.delete(g)}d=l(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Em(f))}this.customFields=Array.from(b.keys(),function(D){return a.get(D)}).filter(function(D){return D});
this.customFields=this.customFields.map(function(D){var H=b.get(D.customFieldId);D.hasMultipleValues=H===null;H?D=Object.assign(H,D):D.hasMultipleValues||D.type!=="ENUM"||(D.enumValue="");return D});c=l(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Em(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 gCb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},SId=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()}):[]},jCb=function(a){return a?Bm(a):null},nCb=function(a,b,c){for(var d=l(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(w){return w.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(w){return w.actions.length});if(c.valueChanged){d=l(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:void 0,action$jscomp$222:void 0},f=d.next()){f=f.value;var g=Hta(f.customFieldValueMap,function(w){return w.customFieldId===b});e.issueValues$jscomp$1=SId(g);c.valueMap.forEach(function(w){return function(x,D){x&&!w.issueValues$jscomp$1.includes(D)?w.issueValues$jscomp$1.push(D):x===!1&&(w.issueValues$jscomp$1=w.issueValues$jscomp$1.filter(function(H){return H!==
D}))}}(e));g=a.originalCustomFields.get(b).type;var k=[],m=[];g=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(w){return aSa(uSa(w))}):g=="REPEATED_NUMERIC"&&(m=e.issueValues$jscomp$1.map(function(w){return Number(w)}));var r={customFieldId:b};switch(g){case "REPEATED_TEXT":r.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":r.repeatedDateValue={values:k};break;case "REPEATED_ENUM":r.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":r.repeatedNumericValue=
{values:m}}e.action$jscomp$222={fieldName:"customField",customFieldValue:r,actionType:Jm(r)?"REMOVE":"ADD"};g=a.bulkEditOps.findIndex(function(w){return function(x){return x.actions.some(function(D){return Dm(w.action$jscomp$222,D)})}}(e));g!==-1?a.bulkEditOps[g].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$222],issueIds:[f.issueId]})}}},TId=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!Dm(k,a.originalCustomFields.get(k.customFieldId))}),
c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d={customFieldId:e.customFieldId};switch(e.type){case "TEXT":d.textValue=e.textValue;break;case "DATE":d.dateValue=e.dateValue||void 0;break;case "ENUM":d.enumValue=e.enumValue;break;case "NUMERIC":var f=void 0;d.numericValue=(f=e.numericValue)!=null?f:void 0}if(e=Jm(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 Hba(g,
k.issueIds)});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:g})}};z_.\u0275fac=function(a){return new (a||z_)};
z_.\u0275cmp=C({type:z_,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,eCb,2,0,"div"),Qf(4,rCb,7,5,"div",1,Pf),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(){TId(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(),Rf(b.customFields))},dependencies:[WB,YB,$B,ZB,y_,v_,Ij,zE,qE,xE,u_,nC,jC,FK,
DA],encapsulation:2});var tCb=function(){return[]},A_=function(){this.disabled=this.readonly=!1;this.save=new hQ},UId=function(a){return a.issue.customFieldMap[a.field.customFieldId]};A_.prototype.getDisplayValue=function(){var a,b,c=(b=(a=UId(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};A_.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};
A_.prototype.getSingularValue=function(){var a=Im(UId(this));return a&&a.values===void 0?a:null};A_.prototype.getRepeatedValues=function(){var a=Im(UId(this));return a&&a.values!==void 0?a.values:null};da.Object.defineProperties(A_.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});A_.\u0275fac=function(a){return new (a||A_)};
A_.\u0275cmp=C({type:A_,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&jg(yV,5);if(a&2){var c;ng(c=og())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&yg("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},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,vCb,2,1);if(a&
2){var c;G((c=UId(b))?0:-1,c)}},dependencies:[YV,yV],encapsulation:2});var B_=function(){};B_.\u0275fac=function(a){return new (a||B_)};B_.\u0275mod=cf({type:B_});B_.\u0275inj=Gc({imports:[cP,ZV,AV]});var wCb=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 C_=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(YO);this.editIssueService=p(NS);this.issueFridge=p(dQ);this.matDialog=p(VB);this.paramsService=p(bR);this.triageService=p(dS);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new hQ;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 Wj([]);this.issueRows$=le([this.issues$,this.components$]).pipe(A(function(b){b=l(b);var c=b.next().value;b=b.next().value;var d=[];c=l(c);for(var e=c.next(),f={};!e.done;f={issue$jscomp$232:void 0},e=c.next())f.issue$jscomp$232=
e.value,e=b.find(function(g){return function(k){return k.componentId===g.issue$jscomp$232.snapshot[0].componentId}}(f)),d.push(yCb(f.issue$jscomp$232,e));return d}));this.updatedIssueRows$=le([this.issueRows$,this.bulkEditUpdate$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?VId(b,c):b}));this.customFieldConfigs$=Ynd(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=l(b);b=c.next().value;c=c.next().value;var d=(c==null?void 0:c.map(function(e){return e.customFieldId}))||[];if(b=b==null?void 0:b.filter(function(e){return d.includes(String(e.customFieldId))}))return b}),xf({refCount:!0,bufferSize:1}))};Y(C_,Z);C_.\u0275dir=Z.\u0275dir;
C_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.customFieldConfigs$.subscribe(function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.editableIssue.setCustomFieldValue(Number(c.customFieldId),c.defaultValues[0].value)}}))};
var zCb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.matDialog.open(z_,{data:b,width:"500px"}),z(e,ie(TB(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);ce(e)})};C_.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var VId=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issueIds;d=l(d.actions);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.fieldName==="customField"&&(e=e.customFieldValue))for(var f=e.customFieldId,g=l(c),k=g.next(),m={};!k.done;m={issueId$jscomp$348:void 0},k=g.next())m.issueId$jscomp$348=k.value,(k=a.find(function(r){return function(w){return w.issueId===r.issueId$jscomp$348}}(m)))&&(k.customFieldValueMap[f]=e)}return a};
C_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(C_)))(b||C_)}}();
C_.\u0275cmp=C({type:C_,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,BCb,2,3)(1,DCb,3,2);a&2&&G(b.hasMultipleIssues?0:1)},dependencies:[A_,nC,jC,ly],encapsulation:2,changeDetection:0});var WId=["input"],D_=function(){this.internalValue="";this.autocompleteConfigService=p(QW);this.darkmodeService=p(PW);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 vv).setFilter(Byd);this.valueChange=new hQ};h=D_.prototype;
h.handleSelectionChange=function(a){var b,c=(b=this.inputRef)==null?void 0:b.nativeElement;c&&(this.findWordAroundCursor(),a=Cyd(a).join(", "),XId.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=omb((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(D_.prototype,{value:{configurable:!0,enumerable:!0,set:function(a){this.internalValue=a}}});D_.\u0275fac=function(a){return new (a||D_)};
D_.\u0275cmp=C({type:D_,selectors:[["b-peoplekit-multi"]],viewQuery:function(a,b){a&1&&(jg(WId,5),jg(EX,5));if(a&2){var c;ng(c=og())&&(b.inputRef=c.first);ng(c=og())&&(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()},gha)},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,ECb,2,5,"ng-template",1);a&2&&I("refreshable",b.refresh$)},dependencies:[Ij,qE,xE,zU,EX],styles:["input[_ngcontent-%COMP%] {width: 100%}"],changeDetection:0});
var XId=/^\s*,/u;var YId=["peoplekitMulti"],E_=function(){this.cdr=p(Px);this.destroyRef=p(Ee);this.autocompleteConfigService=p(QW);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new hQ;this.onCancel=new hQ;this.newlySelectedUsersString=this.invalidMessage=""};
E_.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),fj(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)})};E_.\u0275fac=function(a){return new (a||E_)};
E_.\u0275cmp=C({type:E_,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&jg(YId,5,D_);if(a&2){var c;ng(c=og())&&(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=sg(1),e=sg(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,FCb,2,4,"mat-error");L()}a&2&&(a=sg(1),B(3),Kf("aria-label",Hg("",b.actionName," to ",b.title)),B(3),Kf("aria-label",Hg("Apply ",b.actionName," to ",b.title)),I("disabled",!a.valid||!b.isAllowedToEditCollection),B(2),Kf("aria-label",Hg("Discard ",b.actionName," to ",b.title)),B(2),G(b.invalidMessage?10:-1))},dependencies:[Yy,yE,rE,vE,nC,jC,TD,D_],encapsulation:2,
changeDetection:0});var ZId=["addButton"],$Id=["removeButton"],F_=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new hQ;this.removeCurrentUser=new hQ;this.onAddUsers=new hQ;this.onRemoveUsers=new hQ};F_.prototype.closeAddPopup=function(){var a,b=l((a=this.popupTriggers)!=null?a:[]);for(a=b.next();!a.done;a=b.next())this.closeInlineDialog(a.value)};var ICb=function(a){var b,c=l((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
F_.prototype.handleAddItems=function(a){HCb(a,this.onAddUsers);this.closeAddPopup()};F_.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var HCb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};F_.\u0275fac=function(a){return new (a||F_)};
F_.\u0275cmp=C({type:F_,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(jg(ZId,5),jg($Id,5),jg(hC,5));if(a&2){var c;ng(c=og())&&(b.addButtonEl=c.first);ng(c=og())&&(b.removeButtonEl=c.first);ng(c=og())&&(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,GCb,3,4,"ng-template",
null,2,Og)(20,JCb,3,4,"ng-template",null,3,Og)}if(a&2){a=sg(19);var d=sg(21);B(4);S(" ",b.title," ");B(2);Ag(b.subtitle);B(2);I("dialogLabel",Gg("Add users to ",b.title))("xapInlineDialogClick",a);B(3);I("dialogLabel",Gg("Remove users from ",b.title))("xapInlineDialogClick",d);B(3);I("disabled",!b.isAllowedToEditCollection);Kf("aria-label","Add me to "+b.title);B(2);I("disabled",!b.isAllowedToEditCollection);Kf("aria-label","Remove me from "+b.title)}},dependencies:[nC,jC,E_,eC,bC,hC],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var QCb=function(a,b){return b.name},G_=function(){Z.apply(this,arguments);var a=this;this.hotlistPickerService=p(MY);this.issueFullFridge=p(nQ);this.paramsService=p(bR);this.triageService=p(dS);this.issueRecommendationFridge=p(pQ);this.analytics=p(lQ);this.hotlistIdsChange=new hQ;this.hotlistIdsMapChange=new hQ;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(hn),pf());this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(we(hn),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(hn).slice(0,2)}))};Y(G_,Z);G_.\u0275dir=Z.\u0275dir;
G_.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g,k,m,r,w,x,D,H,J,O;return y(function(R){if(R.nextAddress==1)return z(R,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;m=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(g=f.hotlistId)==null?void 0:g.map(String))!=null?k:[];a.hotlistIdSet=new Set(m);a.hotlistIdsChange.emit([].concat(q(a.hotlistIdSet)));r=l(d);for(w=r.next();!w.done;w=r.next())x=
w.value,J=H=D=void 0,O=(J=(D=x)==null?void 0:(H=D.snapshot[0])==null?void 0:H.hotlistId)!=null?J:[],a.selectedHotlistIdsMap.set(x.issueId.toString(),new Set(O.map(String)));a.areAllHotlistsEqual=aJd(a);a.subscriptions.add(Znd(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(V){var ba=[],oa=[];V=l(V);for(var ta=V.next();!ta.done;ta=V.next())ta=ta.value,ta.operation==="ADD"&&ba.push.apply(ba,q(ta.hotlistIds)),ta.operation==="REMOVE"&&oa.push.apply(oa,
q(ta.hotlistIds));ba.length&&a.addHotlists(ba);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)})};G_.prototype.openHotlistModal=function(){this.hasMultipleIssues?SCb(this):bJd(this)};
var bJd=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,VDd(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)})},SCb=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1)return z(J,ie(a.issueIds$),2);if(J.nextAddress!=3){b=
J.yieldResult;c=new Map;d=l(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,g=l(f),k=g.next().value,m=g.next().value,r=k,w=m,c.set(r,new Set([].concat(q(w)).map(Number)));return z(J,$Dd(a.hotlistPickerService,c),3)}x=J.yieldResult;if(!x)return J.return();cJd(a,x);a.areAllHotlistsEqual=aJd(a);a.areAllHotlistsEqual&&((D=a.selectedHotlistIdsMap.get(b[0]))?(H=[].concat(q(D)).map(String),a.hotlistIdSet=new Set(H)):a.hotlistIdSet.clear());ce(J)})};
G_.prototype.addHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.add(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.add(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};G_.prototype.removeHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.delete(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.delete(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};
var NCb=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)))},aJd=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(q(a.selectedHotlistIdsMap.values()));a=b[0];b=l(b);for(var c=b.next();!c.done;c=b.next())if(!dSa(a,c.value))return!1;
return!0},cJd=function(a,b){b=b.issueMapDiffs;for(var c=l(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=l(f.added$jscomp$13),m=k.next();!m.done;m=k.next())g.add(m.value.toString());k=l(f.removed$jscomp$8);for(m=k.next();!m.done;m=k.next())g.delete(m.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
G_.prototype.updateSelectedHotlists=function(a){var b=[].concat(q(this.selectedHotlistIdsMap.values()));b=l(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};G_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(G_)))(b||G_)}}();
G_.\u0275cmp=C({type:G_,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,TCb,12,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[Yy,nC,jC,FK,DA,UZ,WZ,ly],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var H_=function(){var a=this;this.elementRef=p(Jd);this.eventType="click";this.clickOutside=new hQ;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))}};H_.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
H_.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275dir=df({type:H_,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=cf({type:I_});I_.\u0275inj=Gc({});var J_=function(){};J_.\u0275fac=function(a){return new (a||J_)};J_.\u0275mod=cf({type:J_});J_.\u0275inj=Gc({imports:[yL,cP,OE,lA,I_,DU,FU,QL,pC,GK,MU,FX]});var dJd=function(){};dJd.\u0275fac=function(a){return new (a||dJd)};dJd.\u0275mod=cf({type:dJd});dJd.\u0275inj=Gc({imports:[cP,pC,yX]});var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=cf({type:K_});K_.\u0275inj=Gc({imports:[TX,cP,pC,WX,eL,GK,dJd]});var L_=function(){};L_.\u0275fac=function(a){return new (a||L_)};L_.\u0275mod=cf({type:L_});L_.\u0275inj=Gc({imports:[Zy]});var eJd=function(){};eJd.\u0275fac=function(a){return new (a||eJd)};eJd.\u0275mod=cf({type:eJd});eJd.\u0275inj=Gc({imports:[cP,pC,L_]});var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=cf({type:M_});M_.\u0275inj=Gc({imports:[cP,pC,eL,eJd]});var N_=function(){};N_.\u0275fac=function(a){return new (a||N_)};N_.\u0275mod=cf({type:N_});N_.\u0275inj=Gc({imports:[cP]});var O_=function(){};O_.\u0275fac=function(a){return new (a||O_)};O_.\u0275mod=cf({type:O_});O_.\u0275inj=Gc({imports:[cP,eL,N_,M_,pC]});var P_=function(){};P_.\u0275fac=function(a){return new (a||P_)};P_.\u0275mod=cf({type:P_});P_.\u0275inj=Gc({imports:[ty,tz,lA,hA,bJ]});var fJd=function(){};fJd.\u0275fac=function(a){return new (a||fJd)};fJd.\u0275mod=cf({type:fJd});fJd.\u0275inj=Gc({imports:[ty,OE,P_,FX,PE]});var Q_=function(){};Q_.\u0275fac=function(a){return new (a||Q_)};Q_.\u0275mod=cf({type:Q_});Q_.\u0275inj=Gc({imports:[cP,rV,fJd]});var R_=function(){this.elementRef=p(Jd);this.autocompleteConfigService=p(QW);this.darkmodeService=p(PW);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 hQ;this.sessionOptions=(new vv).setFilter(Byd);this.id="peoplekit-single-"+R_.nextId++;this.stateChanges=new sf;this.placeholderInternal="";this.ngControl=null;this.errorState=this.focused=!1;
this.controlType="peoplekit-single";this.controlValue="";this.describedByIds=[]};R_.prototype.getConfig=function(){return Aib(this.autocompleteConfigService)};var UCb=function(a,b){b.length>0&&a.emailChange.emit(b[0].result().getPrimaryTarget().getValue())};R_.prototype.onFocusIn=function(){this.focused||(this.focused=!0,this.stateChanges.next())};var VCb=function(a,b){a.elementRef.nativeElement.contains(b.relatedTarget)||(a.focused=!1,a.stateChanges.next())};
R_.prototype.setDescribedByIds=function(a){this.describedByIds=a;this.stateChanges.next()};R_.prototype.onContainerClick=function(){};
da.Object.defineProperties(R_.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}}});
R_.nextId=0;R_.\u0275fac=function(a){return new (a||R_)};
R_.\u0275cmp=C({type:R_,selectors:[["b-peoplekit-single"]],hostVars:1,hostBindings:function(a,b){a&2&&Sf("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:[Ig([{provide:YD,useExisting:R_}])],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,YCb,2,1,"ng-template",0);a&2&&I("refreshable",b.refresh$)},dependencies:[Ij,qE,JE,xE,zU,DX,fE,QE],styles:["input[_ngcontent-%COMP%] { width: 100%; }"],changeDetection:0});var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=cf({type:S_});S_.\u0275inj=Gc({imports:[cP,OE,DU,FX,SE]});var gJd=new ed("SearchBarClientConfig");var hJd=function(a){var b=new Myd;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new Dyd(b.getPeopleApiEnv(),new Eyd(""))};hJd.\u0275fac=function(a){return new (a||hJd)(Zc(gJd))};hJd.\u0275prov=Fc({token:hJd,factory:hJd.\u0275fac});var T_=function(){};T_.\u0275fac=function(a){return new (a||T_)};T_.\u0275mod=cf({type:T_});T_.\u0275inj=Gc({imports:[ty]});var U_=function(){};U_.\u0275fac=function(a){return new (a||U_)};U_.\u0275mod=cf({type:U_});U_.\u0275inj=Gc({imports:[cP,OE,pC,eE,MU,T_,Q_,S_]});var iJd=function(a){this.uploadUrl_=a};var jJd=function(){sj.call(this)};Qw(jJd,sj);var V_=function(a){Ss.call(this,a)};Qw(V_,Ss);var W_=function(a){Ss.call(this,a)};Qw(W_,Ss);var kJd=function(a,b){this.name_=a;this.inputElement_=b};kJd.prototype.getName=function(){return this.name_};var lJd=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var X_;Qw(Ht,sj);var $Cb={},ZCb=0,mJd=function(a,b){var c=tj(a);LIc(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=Ht.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("Uf");this.lastUri_=a=new ht(a);b=b?b.toUpperCase():"GET";c&&UIc(a);X_||(X_=sLc("FORM"),X_.acceptCharset="utf-8",c=X_.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(X_));this.form_=X_;b=="GET"&&mJd(this.form_,a.queryData_);d&&mJd(this.form_,d);c=a.toString();d=this.form_;c=Ch(new yh(c===null?"null":c===void 0?"undefined":c));c!==void 0&&(d.action=c);this.form_.method=
b;nJd(this);oJd(this)};h.abort=function(a){if(this.active_){var b=pJd(this);if(b)if(oB(b))b.removeAllListeners();else if(b=UHc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)rB(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");qJd(this)}};
h.disposeInternal=function(){this.active_&&this.abort();Ht.superClass_.disposeInternal.call(this);this.iframe_&&rJd(this);oJd(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete $Cb[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 $Hc(this.lastContent_)};
h.getLastUri=function(){return this.lastUri_};h.getLastErrorCode=function(){return this.lastErrorCode_};h.getLastError=function(){return ZHc(this.lastErrorCode_)};
var nJd=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=tj(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";nj?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");tj(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=wLc(a.iframe_);if(document.baseURI){var d=eu(b);
d=Rta('<head><base href="'+eu(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=eu(b),d=rh('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(th(d));uj(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=JC("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var g=d[e].value,k=[];BLc(d[e],k,!1);k.join("")!=g&&(xLc(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=JC("SELECT",a.form_);f=JC("SELECT",
d);g=0;for(k=e.length;g<k;g++)for(var m=JC("OPTION",e[g]),r=JC("OPTION",f[g]),w=0,x=m.length;w<x;w++)r[w].selected=m[w].selected;e=JC("INPUT",a.form_);f=JC("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(),oj&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(D){qB(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
Ht.prototype.onIframeLoaded_=function(){qB(pJd(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?wLc(pJd(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"),qJd(this))}catch(e){this.handleError_(1)}};
Ht.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),qJd(this),this.errorHandled_=!0)};
var qJd=function(a){rJd(a);oJd(a);a.form_=null;a.dispatchEvent("ready")},rJd=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);oj?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
Ht.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();NC(a)}};var oJd=function(a){a.form_&&a.form_==X_&&MC(a.form_)},pJd=function(a){return a.iframe_?wLc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
Ht.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?wLc(pJd(this)):null;a&&!Eqc(a,"documentUri")?(qB(pJd(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var sJd=function(a,b,c,d,e){sj.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 ht(a);Wt(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new Ht;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new Gi(this);St(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Y(sJd,jJd);h=sJd.prototype;h.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Uf");var c=new ht(this.url_||b.action);a.lastUri_=c;a.form_=b;b=a.form_;c=Ch(c.toString());c!==void 0&&(b.action=c);nJd(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 V_("i"))};h.pause=function(){};h.unpause=function(){};h.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new V_("f"))};
h.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new V_("h"))};var vJd=function(a,b){a.name!==void 0?(this.name=a.name,this.code=tJd[a.name]):(this.code=a=a.code,this.name=uJd(a));pa.call(this,gIc("%s %s",this.name,b))};Qw(vJd,pa);
var uJd=function(a){var b=Gta(tJd,function(c){return a==c});if(b===void 0)throw Error("Vf`"+a);return b},Y_={},tJd=(Y_.AbortError=3,Y_.EncodingError=5,Y_.InvalidModificationError=9,Y_.InvalidStateError=7,Y_.NotFoundError=1,Y_.NotReadableError=4,Y_.NoModificationAllowedError=6,Y_.PathExistsError=12,Y_.QuotaExceededError=10,Y_.SecurityError=2,Y_.SyntaxError=8,Y_.TypeMismatchError=11,Y_);Qw(aDb,Ss);var wJd=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};rj(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 xJd=rj(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return wJd(b,0,1)===null?!1:!0});var yJd=function(){sj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=vj(this.dispatchProgressEvent_,this);this.reader_.onprogress=vj(this.dispatchProgressEvent_,this);this.reader_.onload=vj(this.dispatchProgressEvent_,this);this.reader_.onabort=vj(this.dispatchProgressEvent_,this);this.reader_.onerror=vj(this.dispatchProgressEvent_,this);this.reader_.onloadend=vj(this.dispatchProgressEvent_,this)};Qw(yJd,sj);h=yJd.prototype;
h.abort=function(){try{this.reader_.abort()}catch(a){throw new vJd(a,"aborting read");}};h.getReadyState=function(){return this.reader_.readyState};h.getError=function(){return this.reader_.error&&new vJd(this.reader_.error,"reading file")};h.dispatchProgressEvent_=function(a){this.dispatchEvent(new aDb(a,this))};h.disposeInternal=function(){yJd.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 zJd=function(a){var b=new YS;a.listen("loadend",Ws(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 Z_=function(){Rs.call(this)};Y(Z_,Rs);Z_.prototype.createXhr=function(){var a=Rs.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=vj(this.onProgress_,this));return a};Z_.prototype.onProgress_=function(a){this.dispatchEvent(a)};var AJd=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},CJd=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Zs(function(){a.delayCallId_=null;b()},BJd(a),a);a.attempt_=c;return!0};AJd.prototype.reset=function(){this.delayCallId_&&ra.clearTimeout(this.delayCallId_);this.attempt_=-1};var BJd=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var cDb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var DJd=function(a){sj.call(this);a=a||new lJd;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new AJd;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new Gi(this);St(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};Qw(DJd,jJd);h=DJd.prototype;h.run=function(){a0(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 Z_,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new V_("i"))}};
h.pause=function(){this.pauseRequested_=!0};h.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,EJd(this))};
var a0=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):CJd(a.retryIterator_,function(){return EJd(a)})||b0(a,1,"Transfer encountered too many consecutive failures.")},EJd=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(xJd()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=wJd(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new Z_;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=vj(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new W_("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("Wf");}},b0=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new V_("h"))};h=DJd.prototype;
h.start_=function(){this.request_=new Z_;var a=Ci(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=dDb(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 W_("k"))};
h.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new W_("l"));FJd(b)?GJd(this,b):HJd(b)?(b=It(a.target.getAllResponseHeaders()),this.dispatchEvent(new V_("g")),a=Jt(b,"X-Goog-Upload-URL"),b=(b=Jt(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?b0(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new iJd(a),this.dispatchEvent(new V_("j")),this.state_=
"Upload",this.retryIterator_.reset(),a0(this))):a0(this)};h.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new V_("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 W_("l"));if(d.retryOnHttpClientErrorEnabled_?IJd(e)||e.getStatus()==404:FJd(e))return d.bytesTransferred_=a,GJd(d,e),g.return();if(HJd(e)){g.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return z(g,JJd(d),4);case 4:f=g.yieldResult;case 3:if(f)return b0(d,3,"Blob has been modified or corrupted."),g.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";a0(d);return g.return();case 2:if(b)return b0(d,4,"Got a non-final success response after issuing a finalize command."),g.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();a0(d);return g.return()}})};
h.query_=function(){this.request_=new Z_;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 W_("k"))};
h.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new W_("l"));FJd(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),GJd(this,b)):HJd(b)?(a=It(a.target.getAllResponseHeaders()),a=parseInt(Jt(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?b0(this,5,"Server did not respond with current offset."):a<this.offset_?b0(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?b0(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",a0(this))):a0(this)};
var GJd=function(a,b){a.responseCode_=b.getStatus();var c=It(b.getAllResponseHeaders());a.responseHeaders_=eDb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new V_("f"))},HJd=function(a){var b=a.getStatus();a=It(a.getAllResponseHeaders());a=Jt(a,"X-Goog-Upload-Status");return b===200&&a==="active"},IJd=function(a){a=It(a.getAllResponseHeaders());return Jt(a,"X-Goog-Upload-Status")==="final"},FJd=function(a){if(IJd(a))return!0;a=a.getStatus();return a>=400&&a<
500},JJd=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=wJd(a.blob_,0,1)){var d=new yJd,e=zJd(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 KJd=function(a,b,c,d,e,f){sj.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 Am;this.boundary_="uploader-"+GDb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new Gi(this);St(this,this.eventHandler_)};Y(KJd,jJd);h=KJd.prototype;
h.run=function(){var a=Ci(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=dDb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Z_;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 V_("i")))};h.pause=function(){};h.unpause=function(){};
h.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new V_("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 V_("h"))):(this.responseCode_=b,a=a.target,b=It(a.getAllResponseHeaders()),this.responseHeaders_=eDb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new V_("f")))};var LJd=function(){},MJd=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof kJd)return new sJd(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new KJd(a,"POST",b,c,d);var f=new DJd(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 NJd=new ed("ScottyUploaderConfigFactory"),OJd=new ed("ScottyUploader",{factory:function(){return new LJd}}),c0=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new sf;this.transferStatus=this.internalTransferStatus.asObservable()};
c0.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=MJd(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()};c0.\u0275fac=function(a){return new (a||c0)(Zc(OJd),Zc(NJd))};
c0.\u0275prov=Fc({token:c0,factory:c0.\u0275fac});var PJd=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};PJd.prototype.getDirectory=function(a){return this.directoryMap_[a]};PJd.prototype.getName=function(){return this.name_};var Ruc={},d0=function(a,b){var c=$u(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Tt=function(a,b){return d0(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},uqc=function(a){return Tt(a,"position")},av=function(a,b,c){if(b instanceof lj){var d=b.x;b=b.y}else d=b,b=c;a.style.left=QJd(d,!1);a.style.top=QJd(b,!1)},Fqc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,
right:0,bottom:0}}},orc=function(a){var b=$u(a),c=Tt(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=Tt(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},Cqc=function(a){for(var b=new wj(0,Infinity,Infinity,0),c=tj(a),d=c.document_.body,e=c.document_.documentElement,f=qLc(c.document_);a=
orc(a);)if((!nj||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&Tt(a,"overflow")!="visible"){var g=Xu(a),k=new lj(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},prc=function(a,b){b=b||qLc(document);var c=b||qLc(document);var d=Xu(a),e=Xu(c),f=d0(c,"borderLeftWidth");var g=d0(c,"borderRightWidth");var k=d0(c,"borderTopWidth"),m=d0(c,"borderBottomWidth");g=new wj(parseFloat(k),parseFloat(g),parseFloat(m),parseFloat(f));c==qLc(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=RJd(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 lj(g,k);b.scrollLeft=c.x;b.scrollTop=c.y},Xu=function(a){var b=$u(a),c=new lj(0,0);if(a==(b?$u(b):document).documentElement)return c;a=Fqc(a);b=GLc(tj(b));c.x=a.left+b.x;c.y=a.top+b.y;return c},SJd=function(a,b,c){if(b instanceof mj)c=b.height,b=b.width;else if(c==void 0)throw Error("Xf");a.style.width=QJd(b,!0);a.style.height=QJd(c,!0)},QJd=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},TJd=function(a){return Hqc(a)},Hqc=function(a){var b=
RJd;if(Tt(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},RJd=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=nj&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Fqc(a),new mj(a.right-a.left,a.bottom-a.top)):new mj(b,c)},Bqc=function(a){var b=Xu(a);a=Hqc(a);return new xj(b.x,b.y,a.width,a.height)},UJd=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+")")},Xt=function(a,b){a.style.display=b?"":"none"},Yu=function(a){return"rtl"==Tt(a,"direction")},VJd=function(a){var b=d0(a,"marginLeft"),c=d0(a,"marginRight"),d=d0(a,"marginTop");a=d0(a,"marginBottom");return new wj(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var XJd=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;sj.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:ot(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=WJd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Y(XJd,sj);
var WJd=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");uj(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),av(e,new lj(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};XJd.prototype.click=function(){this.overlay_.click()};
XJd.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"&&(nj||kzc||oj)){c=new PJd("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,g=0;g<e.length;g++){var k=e[g];if(g==e.length-1){k!="."&&f.files_.push(d);break}var m=f.getDirectory(k);m==void 0&&(k=m=
new PJd(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=m}c=c.directories_}this.dispatchEvent(new YJd(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new YJd([],[],new kJd(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=WJd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var ZJd={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},YJd=function(a,b){Ss.call(this,"q");this.files=a;this.directories=b};Y(YJd,Ss);var e0=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new wf(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new gj;this.maxFileSize=null;this.fileSizeRejected=new gj;this.fileSelected=new gj;this.fileNameLengthRejected=new gj};
e0.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=l(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(e!==-1?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=l(b.files),d=c.next();!d.done;d=c.next())if(d.value.size>
a.maxFileSize){c=!1;break a}c=!0}if(c){a:{if(a.maxFileNameLength)for(c=l(b.files),d=c.next();!d.done;d=c.next())if(d.value.name.length>a.maxFileNameLength){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileNameLengthRejected.emit(b)}else a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})});this.getOverlay().subscribe(function(b){re(b,"o").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){re(b,"p").subscribe(function(){a.ngZone.run(function(){})})})};
e0.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};e0.\u0275fac=function(a){return new (a||e0)(Ye(Jd),Ye(Tg))};e0.\u0275dir=df({type:e0,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var f0=function(a,b){e0.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Y(f0,e0);
f0.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 XJd(a.elementRef.nativeElement,a.selectorType,$Jd(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),xf(1))}));return this.overlay};f0.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var $Jd=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};f0.\u0275fac=function(a){return new (a||f0)(Ye(Jd),Ye(Tg))};f0.\u0275dir=df({type:f0,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Gf]});var g0=function(a,b,c){f0.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Y(g0,f0);
g0.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Bf(this.destroyed),we(function(){return!a.disableAutoUpload})).subscribe(function(b){b=l(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(d=a.uploader)==null||d.upload(c)}})};da.Object.defineProperties(g0.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Oh(a)}}});
g0.\u0275fac=function(a){return new (a||g0)(Ye(Jd),Ye(Tg),Ye(c0,8))};g0.\u0275dir=df({type:g0,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Gf]});var aKd=function(){this.SelectorType=ZJd;this.includeTextLabel=this.disabled=!1;this.onSelect=new hQ},fDb=function(a,b){if(b=b.files){b=l(b);for(var c=b.next();!c.done;c=b.next())a.onSelect.emit(c.value)}};aKd.\u0275fac=function(a){return new (a||aKd)};
aKd.\u0275cmp=C({type:aKd,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,gDb,2,3,"button",1)(2,hDb,3,3,"button",2),L());a&2&&(B(),G(b.includeTextLabel?2:1))},dependencies:[Yy,nC,jC,lC,FK,DA,g0],encapsulation:2});var bKd=function(a,b){gpd.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(bKd,gpd);
bKd.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){mn("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};bKd.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
bKd.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var h0=function(){this.activeSession=p(Qu)};h0.prototype.create=function(a){var b=Nba(Xaa(a.name));a=c9a(a.name)?a.name:b;return{url:Wt(VIc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,"X-Goog-Upload-File-Name":a},withCredentials:!0}};h0.\u0275fac=function(a){return new (a||h0)};h0.\u0275prov=Fc({token:h0,factory:h0.\u0275fac,providedIn:"root"});var i0=function(){this.uploader=p(OJd);this.uploaderConfigFactory=p(h0)};
i0.prototype.create=function(){return new c0(this.uploader,this.uploaderConfigFactory)};i0.\u0275fac=function(a){return new (a||i0)};i0.\u0275prov=Fc({token:i0,factory:i0.\u0275fac,providedIn:"root"});var j0=function(){Z.apply(this,arguments);this.scottyUploaderFactory=p(i0);this.uploads=[];this.onUploadCancel=new hQ;this.onUploadComplete=new hQ;this.uploadStates=hpd};Y(j0,Z);j0.\u0275dir=Z.\u0275dir;j0.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);for(var a=l(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
j0.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new bKd(a,c.transferStatus);c.transferStatus.pipe(Bf(this.destroyed$)).subscribe(function(d){d.type==="f"&&b.onUploadComplete.emit()});return a};j0.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};j0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(j0)))(b||j0)}}();
j0.\u0275cmp=C({type:j0,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,mDb,3,0,"div",0);a&2&&G(b.uploads.length>0?0:-1)},dependencies:[Yy,FK,DA,vud],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 cKd=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 dKd=function(a){gpd.call(this,a.size,a.name);this.attachment=a};Y(dKd,gpd);var eKd=function(a,b){a.state=1;Sod(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=cq(c)?dq(c):"Error while uploading."})};var Kt=function(a){this.id_=a;this.opts={}};h=Kt.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=Bi(this.opts,function(c){return c!==null});a=Ita(a)?null:a;a=[this.id_,this.label_,a];var b=sba(a,DIc);return a=a.slice(0,b+1)};
h.toString=function(){var a=this.toArray();return"("+gzc(a,function(b){return JSON.stringify(b)}).join(",")+")"};h.getId=function(){return this.id_};h.getLabel=function(){return this.label_};h.getOptions=function(){return Ci(this.opts)};h.getQuery=function(){return this.opts.query};Qw(Lt,Kt);var fKd=["dr","fileIds","parent"],gKd=function(){var a=(new Lt("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};h=Lt.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){Lt.superClass_.setLabel.call(this,a);return this};h.setQuery=function(a){Lt.superClass_.setQuery.call(this,a);return this};
h.setParent=function(a){for(var b=l(fKd),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];Lt.superClass_.setParent.call(this,a);return this};h.setItems=function(a){this.opts.items=a};var hKd=function(){Kt.call(this,"image-search")};Y(hKd,Kt);h=hKd.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){Kt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};var iKd=function(){Kt.call(this,"maps")};Y(iKd,Kt);h=iKd.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){Kt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};var jKd=function(){Kt.call(this,"photos")};Y(jKd,Kt);h=jKd.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){Kt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};h.removeDuplicates=function(){this.opts.rdv=!0;return this};var kKd=function(){Kt.call(this,"url")};Y(kKd,Kt);kKd.prototype.setType=function(a){this.opts.type=a;return this};kKd.prototype.setLabel=function(a){Kt.prototype.setLabel.call(this,a);return this};kKd.prototype.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};kKd.prototype.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};var lKd=function(){Kt.call(this,"video-search")};Y(lKd,Kt);lKd.prototype.setLabel=function(a){Kt.prototype.setLabel.call(this,a);return this};lKd.prototype.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};lKd.prototype.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};var mKd=function(){Kt.call(this,"web")};Y(mKd,Kt);mKd.prototype.setLabel=function(a){Kt.prototype.setLabel.call(this,a);return this};mKd.prototype.setQuery=function(a){Kt.prototype.setQuery.call(this,a);return this};mKd.prototype.setParent=function(a){Kt.prototype.setParent.call(this,a);return this};var k0=function(){this.root_=void 0;this.items_=[];this.opts={}},nKd=function(a){switch(a){case "image-search":return new hKd;case "maps":return new iKd;case "photos":return new jKd;case "url":return new kKd;case "video-search":return new lKd;case "web":return new mKd}return new Kt(a)};k0.prototype.addView=function(a){this.items_.push(typeof a==="string"?nKd(a):a);return this};
var oKd=function(a){return"("+gzc(a.items_,function(b){return b.toString()}).join(",")+")"},pKd=function(a){a=Bi(a.opts,function(b){return b!==null});return(a=Ita(a)?null:a)?JSON.stringify(Cta(a,function(b){return b.toString()})):""};k0.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",oKd(this)],b=pKd(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return oKd(this)};
k0.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 k0?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};k0.prototype.getOptions=function(){return Ci(this.opts)};k0.prototype.setCollapsible=function(a){this.opts.collapsible=a};var nDb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new k0};h=nDb.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};Qw(oDb,nDb);var qKd=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},rKd=function(a){return a.classList?a.classList:qKd(a).match(/\S+/g)||[]},sKd=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},tKd=function(a,b){return a.classList?a.classList.contains(b):Ka(rKd(a),b)},uKd=function(a,b){if(a.classList)a.classList.add(b);else if(!tKd(a,b)){var c=qKd(a);sKd(a,c+(c.length>0?" "+b:b))}},vKd=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){uKd(a,e)});else{var c={};Array.prototype.forEach.call(rKd(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;sKd(a,b)}},wKd=function(a,b){a.classList?a.classList.remove(b):tKd(a,b)&&sKd(a,Array.prototype.filter.call(rKd(a),function(c){return c!=b}).join(" "))},xKd=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){wKd(a,c)}):sKd(a,Array.prototype.filter.call(rKd(a),function(c){return!Ka(b,c)}).join(" "))};var yqc=function(){if(mzc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Ba()))?a[1]:"0"}return yv?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(Ba()))?a[0].replace(/_/g,"."):"10"):ozc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Ba()))?a[1]:""):pzc||qzc||rzc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Ba()))?a[1].replace(/_/g,"."):""):""}();var yKd=function(a){return(a=a.exec(Ba()))?a[1]:""},wqc=function(){if(yzc)return yKd(/Firefox\/([0-9.]+)/);if(gv||kzc||jzc)return xzc;if(zqc){if(Ga()||Ha()){var a=yKd(/CriOS\/([0-9.]+)/);if(a)return a}return yKd(/Chrome\/([0-9.]+)/)}if(vqc&&!Ga())return yKd(/Version\/([0-9.]+)/);if(zzc||Azc){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ba()))return a[1]+"."+a[2]}else if(Bzc)return(a=yKd(/Android\s+([0-9.]+)/))?a:yKd(/Version\/([0-9.]+)/);return""}();var Gqc=function(a,b){return(b&8&&Yu(a)?b^4:b)&-9};Mt.instance_=void 0;Mt.getInstance=function(){return Mt.instance_?Mt.instance_:Mt.instance_=new Mt};Mt.prototype.nextId_=0;Mt.prototype.idPrefix_="";Mt.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Uu=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var Nt=function(a){sj.call(this);this.dom_=a||tj();this.rightToLeft_=zKd;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};Qw(Nt,sj);Nt.prototype.idGenerator_=Mt.getInstance();var zKd=!1;h=Nt.prototype;h.getId=function(){return this.id_||(this.id_=Uu(this.idGenerator_))};
h.setId=function(a){this.parent_&&this.parent_.childIndex_&&(Kta(this.parent_.childIndex_,this.id_),Lta(this.parent_.childIndex_,a,this));this.id_=a};h.getElement=function(){return this.element_};h.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new Gi(this));return this.googUiComponentHandler_};
h.setParent=function(a){if(this==a)throw Error("Yf");var b;if(b=a&&this.parent_&&this.id_){b=this.parent_;var c=this.id_;b=b.childIndex_&&c?Mta(b.childIndex_,c)||null:null}if(b&&this.parent_!=a)throw Error("Yf");this.parent_=a;Nt.superClass_.setParentEventTarget.call(this,a)};h.getParent=function(){return this.parent_};h.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Zf");Nt.superClass_.setParentEventTarget.call(this,a)};h.getDomHelper=function(){return this.dom_};
h.createDom=function(){this.element_=this.dom_.createElement("DIV")};h.render=function(a){AKd(this,a)};h.renderBefore=function(a){AKd(this,a.parentNode,a)};var AKd=function(a,b,c){if(a.inDocument_)throw Error("$f");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=Nt.prototype;
h.decorate=function(a){if(this.inDocument_)throw Error("$f");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=$u(a);this.dom_&&this.dom_.document_==b||(this.dom_=tj(a));this.decorateInternal(a);this.enterDocument()}else throw Error("ag");};h.canDecorate=function(){return!0};h.decorateInternal=function(a){this.element_=a};h.enterDocument=function(){this.inDocument_=!0;BKd(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
h.exitDocument=function(){BKd(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_);BKd(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&NC(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;Nt.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("$f");if(a<0||a>(this.children_?this.children_.length:0))throw Error("bg");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 Lta(this.childIndex_,(void 0).getId());(void 0).setParent(this);Aba(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_=Yu(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};h.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var BKd=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
Nt.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?Mta(this.childIndex_,c)||null:null;c&&a&&(Kta(this.childIndex_,c),La(this.children_,a),b&&(a.exitDocument(),a.element_&&NC(a.element_)),a.setParent(null))}if(!a)throw Error("cg");return a};Qw(qDb,pDb);Qw(rDb,pDb);var CKd=Gw(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),DKd=Gw(["//apis.google.com/js/rpc.js"]),JDb=Ih(CKd),IDb=Ih(DKd),tDb=null;Qw(vDb,sj);vDb.prototype.handleEvent=function(a){var b=new nB(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};vDb.prototype.disposeInternal=function(){vDb.superClass_.disposeInternal.call(this);rB(this.listenKeyIn_);rB(this.listenKeyOut_);delete this.element_};var EKd=new Map;EKd.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");EKd.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");EKd.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var FKd=new Set;FKd.add("application/vnd.google-apps.kix");FKd.add("application/vnd.google-apps.ritz");FKd.add("application/vnd.google-apps.punch");var RKd=function(a,b,c){var d=c&&xi(c,1);c=GKd(c);switch(a[0].getId().getSourceId()){case 13:return HKd(a,b,d,c);case 3:return IKd(a,b,d,c);case 10:return JKd(a,b,d,c);case 27:return JKd(a,b,d,c);case 12:return KKd(a,b);case 2:return LKd(a,b,d,c);case 5:return MKd(a,b,d,c);case 9:return NKd(a,b,d,c);case 6:return OKd(a,b,d,c);case 25:return PKd(a,b,d,c);case 1:return Ji(a[0],ycd,26)?QKd(a,b,d,c):JKd(a,b,d,c);default:return{}}},OKd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:l0(e),lastEditedUtc:X(e,ej,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:xi(e,13),thumbnails:m0(UM(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},LKd=function(a,b,c,d){var e=a.map(function(f){var g=f.getId().getId(),k=f.getMimeType(),m=f.getName(),r=l0(f),w=f.getLastModifiedTimestamp().toDate().getTime(),x=f.getUrl(),
D=Number(hAc(f)),H=f.getDescription(),J=f.getIconUrl(),O=m0(UM(f)),R=X(f,VM,21).getShared(),V=X(f,VM,21).getDownloadUrl(),ba=xi(f,13);var oa=X(f,VM,21);oa=Ri(oa,9);var ta=X(f,VM,21);ta=xi(ta,11);g={id:g,serviceId:"docs",mimeType:k,name:m,type:r,lastEditedUtc:w,url:x,sizeBytes:D,description:H,iconUrl:J,thumbnails:O,isShared:R,downloadUrl:V,embedUrl:ba,copyable:oa,resourceKey:ta};k=X(f,VM,21);Ri(k,12)&&(g.uploadState="success",g.isNew=!0);X(f,VM,21).hasVideoMetadata()&&(f=X(f,VM,21).getVideoMetadata(),
f.hasDuration()&&(k=nn(X(f,tn,2).getSeconds())+X(f,tn,2).getNanos()/1E9,g.duration=k),g.aspectRatio=rm(f,1));return g});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:SKd(a),v2Translated:!0}},MKd=function(a,b,c,d){a=a.map(function(e){var f=X(e,Hcd,15);f=X(f,xcd,1);bq(e,10,xcd,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:l0(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:m0(UM(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},NKd=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:UM(e)[0].getUrl().split("/").pop(),type:l0(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(UM(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},QKd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:l0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(UM(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},JKd=function(a,b,c,d){return{action:b,docs:a.map(TKd),viewToken:d,view:UKd(c||"upload",a),extraUserInputs:SKd(a),v2Translated:!0}},UKd=function(a,b){return b.some(function(c){var d;return((d=X(c,RM,30))==null?void 0:d.getAgentId())===9})?a+"/gmailphotos":
a},IKd=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:l0(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:Number(hAc(f)),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(UM(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,m=(k=X(f,Bcd,18))==null?void 0:X(k,Acd,3);m&&(g.latitude=rm(m,1),
g.longitude=rm(m,2));var r;(f=on((r=X(f,Bcd,18))==null?void 0:En(r,6)))&&(g.version=f);return g});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:SKd(a),v2Translated:!0}},HKd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:UM(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(UM(e),"etjpg")}});return{action:b,docs:a,viewToken:d,
view:c||"et",v2Translated:!0}},PKd=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:l0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:m0(UM(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},
KKd=function(a,b){a=a.map(function(c){var d=X(c,zcd,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}},GKd=function(a){if(!a)return{};var b=xi(a,3);b=b&&JSON.parse(b)||{};return{0:xi(a,1),1:a.getLabel(),2:b}},m0=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}})},SKd=function(a){return{isAttachment:a.some(function(b){return Ri(b,31)})}},TKd=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:VKd(a),mimeType:a.getMimeType(),name:a.getName(),type:l0(a),sizeBytes:Number(hAc(a)),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:m0(UM(a)),isNew:!0};if(b=X(a,RM,30)){c.dataUrl=
xi(b,1)||null;a:{var d=X(a,RM,30);switch(d.getAgentId()){case 9:d=jm(d,Fcd,2,SM);d={remoteRefs:d&&xi(d,1)};break a;case 10:case 15:d=jm(d,Ecd,4,SM);var e=UM(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=xi(b,9)||null;c.uploadState=WKd(b)||null}(d=b&&jm(b,Ecd,4,SM))&&(c.id=d.getPhotoId());(d=b&&jm(b,Gcd,5,SM))&&(c.contentId=
xi(d,1));(d=b&&jm(b,Ccd,7,SM))&&(c.contentId=xi(d,1));(d=b&&jm(b,Dcd,6,SM))&&(c.contentId=xi(d,1));(b==null?void 0:b.getAgentId())===1&&(c.mediaKey=a.getId().getId());return c},VKd=function(a){var b;switch(((b=X(a,RM,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},l0=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"}},WKd=function(a){switch(a==null?void 0:Ii(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 XKd=function(a){this.obj_=a};h=XKd.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 YKd=function(a){this.obj_=a||{}};h=YKd.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 ZKd=function(a){a.obj_.attributes=a.obj_.attributes||{};return new XKd(a.obj_.attributes)};var $Kd=function(){YKd.apply(this,arguments)};Y($Kd,YKd);var aLd=Gw(["https://apis.google.com/js/api.js"]),bLd=Ih(aLd),fLd=function(a,b,c){c=c===void 0?{}:c;var d=!1,e=cLd(a,b,c).then(function(g){d=!0;return g}),f=YMc().then(function(){return d?cLd(a,b,c):dLd(b,c).then(function(g){return eLd(g,a)})});return VLc([e,f])},cLd=function(a,b,c){c=c===void 0?{}:c;return gLd(b,c).then(function(d){return eLd(d,a)})},eLd=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?QLc(a[c]):new QC(function(d,e){var f=Zs(function(){e(Error("dg"))},3E4);
a.load(b,{callback:function(){ra.clearTimeout(f);d(a[c])},onerror:function(g){ra.clearTimeout(f);e(g)}})})},gLd=function(a,b){b=b===void 0?{}:b;return a.gapi&&a.gapi.load?QLc(a.gapi):dLd(a,b)},dLd=function(a,b){b=b===void 0?{}:b;return C9a(bLd,{document:a.document,attributes:b}).then(function(){return a.gapi})},hLd=function(){};
hLd.prototype.load=function(a,b,c){b=b===void 0?window:b;c=c===void 0?{}:c;var d=Date.now();return fLd(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 FDb=function(){Fi.call(this);this.gapiLoader_=new hLd;this.origin_=null;this.gapiPickerIframeResolver_=XLc();this.gapiIframesResolver_=XLc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Y(FDb,Fi);
var iLd=function(a,b){var c=c===void 0?{}:c;var d=jv("gapi.iframes",b);return d?(a=Date.now(),QLc({library:d,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b,c)},jLd=function(a,b,c,d,e,f){var g=!1;g=g===void 0?!1:g;iLd(a,Zu(b.ownerDocument)).then(function(k){var m=k.library;a.gapiIframesResolver_.resolve(m);k=a.gapiPickerIframeResolver_;var r=k.resolve,w=g;w=w===void 0?!1:w;var x={};x["host-message-handler"]=c;a.hostMessageHandlerInternal_=x;var D=Ut(d);D=Ut(D);D=AB(zB(yB(new ht,D.scheme_),
D.getDomain()),D.port_).toString();a.origin_=D;D=(new $Kd).setUrl(d);D.obj_.where=b;D.obj_.allowPost=w;D.obj_.messageHandlers=x;w=jv("makeWhiteListIframesFilter",m)([a.origin_]);D.obj_.messageHandlersFilter=w;e!=null&&D.setId(e);f!=null&&(D.obj_.rpctoken=f);ZKd(D).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");ZKd(D).value().allow="camera 'src' "+a.origin_;m=m.getContext().openChild(D.value());r.call(k,m)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},kLd=function(a,b){return ULc([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=l(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,jv("makeWhiteListIframesFilter",c)([a.origin_])):RLc(Error("eg"))})};FDb.prototype.disposeInternal=function(){lLd(this);Fi.prototype.disposeInternal.call(this)};
var lLd=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var mLd=function(){this.nextId=0};mLd.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var oLd=function(a,b){switch(a.action){case "select-contacts":a=nLd(a.contacts);break;case "visibility":a=a.visible;a=(new Kcd).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?kLd(b,a):QLc()},nLd=function(a){if(!a||a.length==0)return null;var b=new Kcd;b.setCommand(11);var c=new mLd;a.forEach(function(d){if(d.email){var e=(new TM).setName(d.name?d.name:d.email);d=(new zcd).addEmail(d.email);e=Zi(e,zcd,27,d).setId((new PM).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var qLd=function(a,b,c){sj.call(this);this.target=a;this.handle=b||a;this.limits=c||new xj(NaN,NaN,NaN,NaN);this.document_=$u(a);this.eventHandler_=new Gi(this);St(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;uj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=pLd};Qw(qLd,sj);
var pLd=ra.document&&ra.document.documentElement&&!!ra.document.documentElement.setCapture&&!!ra.document.releaseCapture;h=qLd.prototype;h.getHandler=function(){return this.eventHandler_};h.setEnabled=function(a){this.enabled_=a};h.disposeInternal=function(){qLd.superClass_.disposeInternal.call(this);qB(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||yv&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new rLd("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(Zu(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=GLc(tj(this.document_))}};
h.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new rLd("end",this,a.clientX,a.clientY,a,sLd(this,this.deltaX),tLd(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 rLd("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=uLd(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new rLd("beforedrag",this,
a.clientX,a.clientY,a,b,c))&&(vLd(this,a,b,c),a.preventDefault())}};var uLd=function(a,b,c){var d=GLc(tj(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 lj(sLd(a,a.deltaX),tLd(a,a.deltaY))};qLd.prototype.onScroll_=function(a){var b=uLd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;vLd(this,a,b.x,b.y)};
var vLd=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new rLd("drag",a,b.clientX,b.clientY,b,c,d))},sLd=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))},tLd=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))};qLd.prototype.isDragging=function(){return this.dragging_};
var rLd=function(a,b,c,d,e,f,g){Ss.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};Qw(rLd,Ss);var n0=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("eb");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};h=n0.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 n0){a=l(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=l(Object.entries(a)),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};h.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};h.clone=function(){return new n0(this)};var wLd=Gw(["about:blank"]),xLd=Gw(["javascript:undefined"]),yLd=Ih(wLd);xh(yLd);var zLd=Ih(xLd);xh(zLd);Qw(Ot,Nt);h=Ot.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(){Ot.superClass_.createDom.call(this);var a=this.getElement();vKd(a,Aa(this.getCssClass()).split(" "));a.tabIndex=0;Xt(a,!1);ALd(this);BLd(this)};
var ALd=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});rsa(b,yLd);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";Xt(a.bgIframeEl_,!1);UJd(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),Xt(a.bgEl_,!1))},BLd=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),Xt(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};h=Ot.prototype;h.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};h.canDecorate=function(a){return!!a&&a.tagName=="DIV"};h.decorateInternal=function(a){Ot.superClass_.decorateInternal.call(this,a);a=Aa(this.getCssClass()).split(" ");vKd(this.getElement(),a);ALd(this);BLd(this);this.getElement().tabIndex=0;Xt(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);Ot.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new vDb(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);CLd(this,!1)};
h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);zi(this.focusHandler_);Ot.superClass_.exitDocument.call(this);NC(this.bgIframeEl_);NC(this.bgEl_);NC(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_&&CLd(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_);DLd(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)pB(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_)pB(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 CLd=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new wDb(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_||Ktd(d,"hidden")||(rU(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}};
Ot.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var DLd=function(a,b){a.bgIframeEl_&&Xt(a.bgIframeEl_,b);a.bgEl_&&Xt(a.bgEl_,b);Xt(a.getElement(),b);Xt(a.tabCatcherElement_,b)};h=Ot.prototype;h.onShow=function(){this.dispatchEvent("show")};h.onHide=function(){DLd(this,!1);this.dispatchEvent("hide")};h.isVisible=function(){return this.visible_};h.focus=function(){this.focusElement_()};
h.resizeBackground_=function(){this.bgIframeEl_&&Xt(this.bgIframeEl_,!1);this.bgEl_&&Xt(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=ELd(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_&&(Xt(this.bgIframeEl_,!0),SJd(this.bgIframeEl_,c,a));this.bgEl_&&(Xt(this.bgEl_,!0),SJd(this.bgEl_,c,a))};
h.reposition=function(){var a;if(uqc(this.getElement())=="fixed")var b=a=0;else b=GLc(this.getDomHelper()),a=b.x,b=b.y;var c=TJd(this.getElement());var d=ELd(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);av(this.getElement(),a,b);av(this.tabCatcherElement_,a,b)};h.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Zs(this.focusElement_,0,this)};h.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var ELd=function(a){a=a.getDomHelper().document_;return LC(Zu(a)||window)};Ot.prototype.disposeInternal=function(){zi(this.popupShowTransition_);this.popupShowTransition_=null;zi(this.popupHideTransition_);this.popupHideTransition_=null;zi(this.bgShowTransition_);this.bgShowTransition_=null;zi(this.bgHideTransition_);this.bgHideTransition_=null;Ot.superClass_.disposeInternal.call(this)};Qw(Rt,Ot);h=Rt.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_&&xLc(this.titleTextEl_,a)};h.getTitle=function(){return this.title_};h.getContent=function(){return""};
h.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var FLd=function(a){a.getElement()||a.render();return a.getElement()};Rt.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Rt.superClass_.getBackgroundElement.call(this)};var GLd=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&UJd(b,a.backgroundElementOpacity_)};Rt.prototype.handleDrag=function(){};
var HLd=function(a,b){var c=Aa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?vKd(a.titleEl_,c):xKd(a.titleEl_,c));b&&!a.dragger_?(b=new qLd(a.getElement(),a.titleEl_),a.dragger_=b,vKd(a.titleEl_,c),uj(a.dragger_,"start",a.setDraggerLimits_,!1,a),uj(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};h=Rt.prototype;
h.createDom=function(){Rt.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"));uLc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));Jtd(this.titleTextEl_,"heading");Jtd(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Ltd(this.titleCloseEl_,"Close");Jtd(a,"dialog");rU(a,"labelledby",this.titleTextId_||"");Xt(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());Xt(this.buttonEl_,!!this.buttons_);GLd(this,this.backgroundElementOpacity_)};
h.decorateInternal=function(a){Rt.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=KC(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_=KC(document,null,b,a)[0])?(this.titleTextEl_=KC(document,null,c,this.titleEl_)[0],this.titleCloseEl_=KC(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=CLc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=sLc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;rU(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
Xt(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=KC(document,null,b,a)[0])?(this.buttons_=new Qt(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()),Xt(this.buttonEl_,!!this.buttons_));GLd(this,this.backgroundElementOpacity_)};
h.enterDocument=function(){Rt.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_);HLd(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();Jtd(a,"dialog");this.titleTextEl_.id!==""&&rU(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()&&CLd(this,!1)}};h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);HLd(this,!1);Rt.superClass_.exitDocument.call(this)};h.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Rt.superClass_.setVisible.call(this,a))};h.onShow=function(){Rt.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
h.onHide=function(){Rt.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};h.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=LC(Zu(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=TJd(this.getElement());uqc(this.getElement())=="fixed"?this.dragger_.limits=new xj(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new xj(0,0,c-d.width,a-d.height)};
h.onTitleCloseClick_=function(){ILd(this)};var ILd=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new JLd(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},KLd=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&Xt(a.titleCloseEl_,a.hasTitleCloseButton_)};Rt.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};Rt.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Rt.superClass_.disposeInternal.call(this)};
Rt.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 JLd(a,b))&&this.setVisible(!1)}};
Rt.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 JLd(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(m){}Zs(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)ILd(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 JLd(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||ILd(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};var JLd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};Qw(JLd,Ss);
var Qt=function(a){n0.call(this);this.dom_=a||tj();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};Qw(Qt,n0);Qt.prototype.clear=function(){n0.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};Qt.prototype.set=function(a,b,c,d){n0.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};var Pt=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};h=Qt.prototype;
h.render=function(){if(this.element_){vsa(this.element_,Cj);var a=tj(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=JC("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=CLc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&uKd(b,this.class_+"-default")}}};h.getElement=function(){return this.element_};
h.getDomHelper=function(){return this.dom_};h.getButton=function(a){for(var b=JC("BUTTON",this.element_),c,d=0;c=b[d];d++)if(c.name==a||c.id==a)return c;return null};var xDb={key:"ok",caption:"OK"},yDb={key:"cancel",caption:"Cancel"},LLd={key:"yes",caption:"Yes"},MLd={key:"no",caption:"No"},NLd={key:"save",caption:"Save"},OLd={key:"continue",caption:"Continue"};
typeof document!="undefined"&&(Pt(new Qt,xDb,!0,!0),Pt(Pt(new Qt,xDb,!0),yDb,!1,!0),Pt(Pt(new Qt,LLd,!0),MLd,!1,!0),Pt(Pt(Pt(new Qt,LLd),MLd,!0),yDb,!1,!0),Pt(Pt(Pt(new Qt,OLd),NLd),yDb,!0,!0));Qw(zDb,Rt);var ADb=function(a,b){sj.call(this);this.element_=a;a=vLc(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&Yu(a);this.listenKey_=uj(this.element_,oj?"DOMMouseScroll":"mousewheel",this,b)};Qw(ADb,sj);
ADb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=PLd(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=PLd(-d.wheelDeltaX),c=PLd(-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 QLd(a,d,b,c);this.dispatchEvent(b)};
var PLd=function(a){return nj&&(yv||nzc)&&a%40!=0?a:a/40};ADb.prototype.disposeInternal=function(){ADb.superClass_.disposeInternal.call(this);rB(this.listenKey_);this.listenKey_=null};var QLd=function(a,b,c,d){nB.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};Qw(QLd,nB);var HDb;var RLd=Gw(["https://about:blank"]),SLd=Gw(['javascript:""']),TLd=Gw(["about:blank"]);Qw(Yt,zDb);h=Yt.prototype;h.url_="";h.iframe_=null;h.iframeLoaded_=!1;h.loadedFired_=!1;h.callback_=function(){};h.enterDocument=function(){Yt.superClass_.enterDocument.call(this);CDb(this.getBackgroundElement(),this.getHandler())};
h.render=function(a){var b=this;Yt.superClass_.render.call(this,a);this.useGapi_?iLd(this.iframeManager_,window).then(function(){return ULd(b)}).then(null,function(c){return void b.handleError_(c)}):VLd(this);this.enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),FLd(this).setAttribute("popover","manual"))};
var ULd=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);Xt(b,!1);a.getContentElement().appendChild(b);return jLd(a.iframeManager_,b,function(c){var d=Mcd(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=X(d,Jcd,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(bn);d=f.length===0?{action:e}:RKd(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:KLd(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=X(d,Jcd,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(bn);if(d.length===0)d={action:e};else{var g=f.getInternalOnlyV1ViewInfo();f=g&&xi(g,1);g=GKd(g);d=JKd(d,e,f,g)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();WLd(a);Xt(a.iframe_.parentElement,!0);uKd(a.getElement(),"picker-dialog");XLd(a);return c})},
VLd=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});rsa(a.iframe_,YLd(a));uKd(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void WLd(a)});a.iframe_.src=a.url_;XLd(a)},$Ld=function(a){ZLd(a,vj(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},XLd=function(a){var b=Vt(Ut(a.url_),"title");b&&a.setTitle(b)},YLd=function(a){return kba()>=
7&&a.url_.lastIndexOf("https",0)==0?Ih(RLd):gv?Ih(SLd):Ih(TLd)},WLd=function(a){$Ld(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};Yt.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var ZLd=function(a,b){var c=a.gadgetsDomHelper_;uDb(function(){b(c.getWindow().gadgets.rpc)},c)};
Yt.prototype.setUrl=function(a){a=Wt(new ht(a),"rpcService",this.targetId_);Wt(a,"rpctoken",this.rpcToken_);NIc(a,"rpctoken="+this.rpcToken_);yB(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};Yt.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&aMd(this)};Yt.prototype.setCallback=function(a){this.callback_=a;ZLd(this,vj(function(b){b.register(this.targetId_,vj(this.handlePickerAction_,this))},this))};
Yt.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new rDb(this.isVisible())),aMd(this),KLd(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 aMd=function(a){a.appId_&&a.sendCommand(new qDb(a.appId_,window.location.protocol+"//"+window.location.host))};h=Yt.prototype;
h.setRelayUrl=function(a){ZLd(this,vj(function(b){b.setRelayUrl(this.targetId_,a)},this))};h.sendCommand=function(a){var b=this;this.useGapi_&&oLd(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});ZLd(this,vj(function(c){c.call(this.targetId_,"picker",null,a)},this))};
h.resizePicker_=function(){var a=this.getDomHelper().document_;a=Zu(a)||window;if(Vt(Ut(this.url_),"ignoreLimits")=="true")a=new mj(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(Vt(Ut(this.url_),"shadeDialog")=="true"){var b=FLd(this);b=VJd(b);var c=LC(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 mj(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=LC(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=LC(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=LC(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new mj(b,c);SJd(this.getContentElement(),a);this.reposition()};
h.reposition=function(){if(Vt(Ut(this.url_),"shadeDialog")=="true"){var a=TJd(this.getElement()),b=LC(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);b=FLd(this);if(b=VJd(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=GLc(this.getDomHelper()).y;av(this.getElement(),a,b)}else Yt.superClass_.reposition.call(this)};
h.setVisible=function(a){if(a!=this.isVisible()){if(this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}if(this.enablePopover_){b=this.getBackgroundElement();var c=FLd(this);"showPopover"in c&&(a?
(b.showPopover(),c.showPopover()):(b.hidePopover(),c.hidePopover()))}}Yt.superClass_.setVisible.call(this,a);this.sendCommand(new rDb(a))};h.focus=function(){Yt.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 o0=function(a,b){b=b===void 0?Yt:b;nDb.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(o0,oDb);o0.prototype.disposeOnHide_=!1;o0.prototype.enablePopover_=!1;
o0.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(NIc(MIc(Ut(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("gg");var a=new this.pickerConstructor(bMd(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1,this.enablePopover_);
a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var cMd=function(a,b){a.urlParamMap_.set(b,"true");return a};h=o0.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 dMd=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};h=o0.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 bMd=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",oKd(a.nav_));var b=new ht(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){Wt(b,d,c)});return b};var eMd=function(){this.activeSession=p(Qu);this.attachmentsApi=p(sS);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new hQ;this.onCloneBlob=new hQ};
eMd.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=dMd(cMd(cMd(cMd(cMd((new o0(this.onePickUrl)).addView(gKd().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&c.action==="picked")for(var d=l(c.docs),e=d.next();!e.done;e=d.next())e=new cKd(e.value),c.extraUserInputs.isAttachment?(e=new dKd(e),eKd(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};eMd.\u0275fac=function(a){return new (a||eMd)};
eMd.\u0275cmp=C({type:eMd,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:[Yy,nC,lC,FK,DA],encapsulation:2});var p0=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(dR);this.userResources=p(pP);this.analytics=p(lQ);this.isPlusOneText=!1;this.onSubmitComment=new hQ};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};ihd(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=C({type:p0,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},standalone:!1,features:[Gf,xx],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,KDb,7,1,"div",0);a&2&&G(b.isPlusOneText?0:-1)},dependencies:[Yy,nC,jC,FK,DA],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 fMd=["commentBoxContainer"],gMd=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],hMd=function(a,b){return[a,b]},q0=function(){this.analytics=p(lQ);this.hotkeys=p(tU);this.activeSession=p(Qu);this.appEvents=p(aP);this.MARKDOWN="MARKDOWN";this.commentChange=new hQ;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 hQ;this.onChange=new hQ;this.onFocusEvent=new hQ;this.onSubmit=new hQ;this.onRestrict=new hQ;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||ipd(a);this.destroyed$.next()};
h.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(Bf(this.destroyed$)).subscribe(function(b){dob(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 f_a(c)};
h.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var dob=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||rDd(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=C({type:q0,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(jg(wY,5),jg(fMd,5),jg(j0,5));if(a&2){var c;ng(c=og())&&(b.commentDraftComponent=c.first);ng(c=og())&&(b.commentBoxContainer=c.first);ng(c=og())&&(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:[xx],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();eg(gMd);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,LDb,1,1,"b-plus-one-comment-callout",4);L();fg(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();fg(7,1);F(8,QDb,5,3,"div",6);L();F(9,RDb,2,4,"div")}a&2&&(yg("focused",b.focused),B(3),I("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",Lg(16,hMd,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:[Yy,wY,FK,DA,wT,eMd,aKd,j0,nC,jC,lC,p0],encapsulation:2});var r0=function(){this.documentationLinks=p(hS);this.issueLimits=p(HY);this.accessPolicyApi=p(RO);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 iMd=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===IDd.accessLevel)b=a?"Only added users + Googlers may access. The assignee, verifier and collaborators may edit. CCs can comment. Googler access is according to their component-level permissions.":"Only added users + Googlers may access. They have their normal access as defined by the component-level permissions.";else{for(var c=l(Ymb),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?Zmb.descriptionWithExpandedAccess:Zmb.descriptionNoExpandedAccess}else b="";return b};r0.\u0275fac=function(a){return new (a||r0)};
r0.\u0275cmp=C({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=sg(5),I("onedevHovercardTrigger",a),B(3),Ag(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),B(6),S(" Issue access is limited. ",iMd(b,b.accessLimitLevel)," "),B(),I("href",b.documentationLinks.getIssueAccessLimit(),Pe))},dependencies:[Yy,FK,DA,WK,dL],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 jMd=[[["","additionalToolbarItems",""]]],s0=function(){var a=this;this.issuePermissionService=p(fR);this.userPreferencesManager=p(nR);this.editIssueService=p(NS);this.analytics=p(lQ);this.draftStore=p(gS);this.activeSession=p(Qu);this.issueDetailsBrain=p(dR);this.issueCommentDialogsService=p(CY);this.appEvents=p(aP);this.bannedWordsChecker=p(aX);this.componentFridge=p(YO);this.butterBar=p(gO);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.hasAutoRestricted=this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse$=new Wj("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new hQ;this.placeholderText$=new Wj("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=fs;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 Jpd(b,"comment")}));this.commentLimitReached$=this.events$.pipe(A(function(b){var c=a.activeSession.getCommentNumberLimit();return HVa(b)>=c}));this.commentPlaceholderText$=le([this.commentLimitReached$,this.hasAclToComment$,this.placeholderText$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;
c=c.next().value;return b?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?"Sign in to use full features.":d?c:"You do not have access to comment on this issue."}));this.commentBoxEnabled$=le([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&!d&&!c}));this.showRecaptcha$=le([this.hasAclToComment$,this.commentLimitReached$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return b&&!c&&a.enableRecaptcha}));this.isPlusOneCalloutEnabled$=this.issueDetailsBrain.voted$.pipe(A(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new Wj(!1);this.commentButtonStyle$=le([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new Wj(!0);this.commentButtonEnabled$=le([this.hasAclToComment$,
this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&kpd(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=le([this.comment$,this.commentDraftUpdated$]).pipe(A(function(b){var c,d;return(d=(c=l(b).next().value)==null?void 0:c.value)!=null?d:""}),A(function(b){return b.length===0}));this.doAutoRestrictComment$=le([this.issueComponent$,this.comment$,this.commentDraftUpdated$,
this.judgementForNewContent$]).pipe(A(function(b){b=l(b);var c=b.next().value;var d=b.next().value;b.next();b=b.next().value;c=c!=null?c:null;d=d.uploads.length>0;var e=!(c==null||!c.trackerId);b=(b==null?void 0:b.severity)!=="RESTRICTED"&&(b==null?void 0:b.severity)!=="RESTRICTED_PLUS";return Dt(c)&&e&&!Bs(a.activeSession)&&d&&b}))};s0.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
var kMd=function(a){var b;y(function(c){a.hasAutoRestricted=!0;b={severity:"RESTRICTED",judgementReason:"Auto-restricted for issue on public tracker being edited from outside of a tracker",resourcePath:void 0,contentJudgementId:void 0};a.setJudgementForNewContent(a.issueId,b);$r(a.butterBar,"Because this issue is displayed on a public tracker, this comment will be Restricted. You may modify the restriction level before submitting the comment.");ce(c)})};
s0.prototype.ngOnInit=function(){var a=this;this.doAutoRestrictComment$.pipe(fj(this.destroyRef)).subscribe(function(b){b&&!a.hasAutoRestricted&&kMd(a)})};var WDb=function(a){var b;return y(function(c){b=!oR(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(Tr(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);ce(c)})};
s0.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return(c=a)==null||c.stopPropagation(),d=b.enableRecaptcha?b.recaptchaResponse$.getValue():void 0,e=b.editIssueService.issueCommentDraft(b.internalIssueId).comment(),f=b.editIssueService.editableIssue(b.internalIssueId),z(r,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);if(r.nextAddress!=3)return g=r.yieldResult,g?z(r,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(m=b.commentBox)==null||dob(m),r.return());b.commentSubmitted.emit();b.hasAutoRestricted=!1;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=C({type:s0,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&jg(q0,5);if(a&2){var c;ng(c=og())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton",placeholderText:"placeholderText"},outputs:{commentSubmitted:"commentSubmitted"},standalone:!1,features:[Ig([aX])],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&&(eg(jMd),F(0,fEb,1,1),T(1,"async"),E(2,hEb,1,1,"ng-template",null,0,Og));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[VU,q0,lU,ky,vU,xL,rI,xY,r0,WW,ly],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 lMd=function(){};lMd.\u0275fac=function(a){return new (a||lMd)};lMd.\u0275mod=cf({type:lMd});lMd.\u0275inj=Gc({providers:[{provide:OJd,useFactory:function(){return new LJd}}]});var mMd=function(){};mMd.\u0275fac=function(a){return new (a||mMd)};mMd.\u0275mod=cf({type:mMd});mMd.\u0275inj=Gc({imports:[ty,lMd]});var t0=function(){};t0.\u0275fac=function(a){return new (a||t0)};t0.\u0275mod=cf({type:t0});t0.\u0275inj=Gc({providers:[{provide:NJd,useFactory:h0}],imports:[cP,pC,GK,mMd,pV]});var nMd=function(){};nMd.\u0275fac=function(a){return new (a||nMd)};nMd.\u0275mod=cf({type:nMd});nMd.\u0275inj=Gc({imports:[cP,pC,GK]});var u0=function(){};u0.\u0275fac=function(a){return new (a||u0)};u0.\u0275mod=cf({type:u0});u0.\u0275inj=Gc({imports:[cP,J_,MU,GK,WU,IU,t0,pC,nMd]});var v0=function(){};v0.\u0275fac=function(a){return new (a||v0)};v0.\u0275mod=cf({type:v0});v0.\u0275inj=Gc({imports:[cP,pC,fK,GK,MU]});var w0=function(){};w0.\u0275fac=function(a){return new (a||w0)};w0.\u0275mod=cf({type:w0});w0.\u0275inj=Gc({imports:[v0,cP,K_,MU,pC,cK,fK,GK,GX,yL]});var x0=function(){};x0.\u0275fac=function(a){return new (a||x0)};x0.\u0275mod=cf({type:x0});x0.\u0275inj=Gc({imports:[cP,wX,GK,eL,w0]});var y0=function(){};y0.\u0275fac=function(a){return new (a||y0)};y0.\u0275mod=cf({type:y0});y0.\u0275inj=Gc({});var z0=function(){};z0.\u0275fac=function(a){return new (a||z0)};z0.\u0275mod=cf({type:z0});z0.\u0275inj=Gc({imports:[WU,u0,IU,cP,yX,OE,wU,pC,yL,y0,x0,HX]});var oMd=["addLink"],pMd=["peopleKitDiv"],qMd=[Object.assign({},wEb("start","bottom"),xEb("start","top"),{offsetY:8}),Object.assign({},wEb("center","bottom"),xEb("center","top"),{offsetY:8}),Object.assign({},wEb("end","bottom"),xEb("end","top"),{offsetY:8}),Object.assign({},wEb("start","top"),xEb("start","bottom"),{offsetY:-8}),Object.assign({},wEb("end","top"),xEb("end","bottom"),{offsetY:-8})],A0=function(){var a=this;this.activeSession=p(Qu);this.principalTypesFridge=p(MQ);this.issuePermissionService=
p(fR);this.issueDetailsBrain=p(dR);this.autocompleteConfigService=p(QW);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=qMd;this.valueChange=new hQ;this.userInclusionToggle=new hQ;this.toggleAccessLimits=new hQ;this.teamId$=this.issueDetailsBrain.teamId$;
this.ListFieldType=ewd;this.providedValues$=new wf(1);this.groups$=this.providedValues$.pipe(Af(function(b){return a.extractGroups(b)}),zf(new Set));this.OVERLAY_POSITION_LIST=qMd;this.newlySelectedUsersString="";this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new $K,{position:[f$c]});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=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};h.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
h.addItems=function(a){if(a){var b=[];this.values=this.values||[];a=l(a.split(/[,; ]/));for(var c=a.next();!c.done;c=a.next())(c=c.value)&&!this.values.includes(c)&&b.push(c);b.length!==0&&(this.values=[].concat(q(this.values),q(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};A0.\u0275fac=function(a){return new (a||A0)};
A0.\u0275cmp=C({type:A0,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(jg(oMd,5),jg(sH,5),jg(hC,5),jg(pMd,5));if(a&2){var c;ng(c=og())&&(b.addLinkEl=c.first);ng(c=og())&&(b.menuTriggers=c);ng(c=og())&&(b.popupTriggers=c);ng(c=og())&&(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,lEb,
2,1,"ng-template",null,0,Og)(2,mEb,3,4,"ng-template",null,1,Og),K(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),Q(8),L()(),K(9,"div",8)(10,"collapsible-panel",9),Qf(11,tEb,7,4,"div",10,Of),L(),K(13,"div",11,2),F(15,uEb,2,8,"button",12),E(16,vEb,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=sg(1);var c=sg(18);B(4);I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",
b.USER_FIELD_HOVERCARD_CONFIG);B(4);S(" ",b.title," ");B(2);I("ariaLabel",Foa("",b.title,", ",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("title",Hg("",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("isExpanded",!0)("iconName",b.iconName)("hasCompactTitleBar",!0);B();Rf(b.values);B(4);G(b.isAllowedToEditCollection?15:-1);B();I("ngTemplateOutlet",a);B(6);S(" ",b.collectionHovercardDescription,
" ")}},dependencies:[ky,WK,dL,mT,FK,DA,nC,jC,OV,qV,yT,hC,eC,bC,E_,ly],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 rMd=function(){};rMd.\u0275fac=function(a){return new (a||rMd)};rMd.\u0275mod=cf({type:rMd});rMd.\u0275inj=Gc({imports:[ty]});var sMd=function(){};sMd.\u0275fac=function(a){return new (a||sMd)};sMd.\u0275mod=cf({type:sMd});sMd.\u0275inj=Gc({imports:[ty,PX]});var B0=function(){};B0.\u0275fac=function(a){return new (a||B0)};B0.\u0275mod=cf({type:B0});B0.\u0275inj=Gc({imports:[rMd,ty,PX,sMd]});var tMd=function(){};tMd.\u0275fac=function(a){return new (a||tMd)};tMd.\u0275mod=cf({type:tMd});tMd.\u0275inj=Gc({});var uMd=function(){};uMd.\u0275fac=function(a){return new (a||uMd)};uMd.\u0275mod=cf({type:uMd});uMd.\u0275inj=Gc({imports:[ty,bJ,PX,XV,tz,tMd]});var C0=function(){};C0.\u0275fac=function(a){return new (a||C0)};C0.\u0275mod=cf({type:C0});C0.\u0275inj=Gc({imports:[bV,cP,ZV,B0,eL,oU,pV,GK,pC,PV,uMd,rV,MU,RV,QV,U_]});var D0=function(){};D0.\u0275fac=function(a){return new (a||D0)};D0.\u0275mod=cf({type:D0});D0.\u0275inj=Gc({imports:[bV,pV,cP,AV,B0,wU,oU,pV,rV,Q_]});var vMd=function(){};vMd.\u0275fac=function(a){return new (a||vMd)};vMd.\u0275mod=cf({type:vMd});vMd.\u0275inj=Gc({imports:[cP,J_,K_,B_,AV,OE,pC,yL,fK,FU,GK,wU,O_,M_,eL,pU,KX,ZV,NU,C0,U_,z0,D0,kU,rV,eC]});Toa(NY,[Yy,EY,yV,nC,jC,FK,DA,vU,YV,A0,s0,p_,t_,C_,G_,F_],[ly]);var wMd=function(){};wMd.\u0275fac=function(a){return new (a||wMd)};wMd.\u0275mod=cf({type:wMd});wMd.\u0275inj=Gc({});var xMd=function(){};xMd.\u0275fac=function(a){return new (a||xMd)};xMd.\u0275mod=cf({type:xMd});xMd.\u0275inj=Gc({imports:[cP]});var E0=function(){};E0.\u0275fac=function(a){return new (a||E0)};E0.\u0275mod=cf({type:E0});E0.\u0275inj=Gc({imports:[cP,pC,hA]});var F0=function(){};F0.\u0275fac=function(a){return new (a||F0)};F0.\u0275mod=cf({type:F0});F0.\u0275inj=Gc({imports:[tz,lZ,ty,qZ,bJ,$y,lA,oZ]});var yMd=function(){};yMd.\u0275fac=function(a){return new (a||yMd)};yMd.\u0275mod=cf({type:yMd});yMd.\u0275inj=Gc({imports:[cP,JZ,IU,GV,E0,MU,pC,cK,GK,eL,F0,rV,kU,xX]});var G0=function(){};G0.\u0275fac=function(a){return new (a||G0)};G0.\u0275mod=cf({type:G0});G0.\u0275inj=Gc({imports:[cP,fK,pC,cK,sK,eE,zK,GK,XX,NU,yL,OE,xX]});var H0=function(){};H0.\u0275fac=function(a){return new (a||H0)};H0.\u0275mod=cf({type:H0});H0.\u0275inj=Gc({imports:[yMd,wMd,cP,JZ,xMd,MU,pC,GK,G0,xX]});var zMd=Promise;var AMd=function(a){this.channelPromise=a};AMd.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var BMd=function(a,b){this.data=a;this.channel=b};var CMd=function(a){this.port_=a};CMd.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;DMd(d.port1,b);this.port_.postMessage(a,[d.port2].concat(c))};var EMd=function(a,b){DMd(a,b);return new CMd(a)},DMd=function(a,b){b&&(a.onmessage=function(c){b(new BMd(c.data,EMd(c.ports[0])))})};var FMd=function(a){this.verifier_=a};FMd.prototype.verify=function(a){return this.verifier_(a)};var GMd=function(a){var b=Object.create(null);(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("hg");b[c]=!0});return function(c){return b[c]===!0}};var IMd=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 HMd({destination:b,getSource:function(){return c.contentWindow},originVerifier:d instanceof FMd?d:typeof d==="function"?new FMd(d):new FMd(GMd(d)),channelName:e,onMessage:f,onEstablished:a})},HMd=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 AMd(new zMd(function(m,r){var w=function(x){x.source&&x.source===c()&&d.verify(x.origin)&&(x.data.n||x.data)===f&&(b.removeEventListener("message",w,!1),e&&x.data.t!==e?r(Error("ig`"+f+"`"+e+"`"+x.data.t)):(m(EMd(x.ports[0],g)),k&&k(x)))};b.addEventListener("message",w,!1)}))};var JMd=Gw(["https://duckie.corp.google.com"]),KMd=["duckieIframe"],LMd=Ih(JMd),I0=function(){Z.apply(this,arguments);this.duckieUrl=LMd;this.llmChatService=p(BZ);this.darkModeService=p(PW);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 tsa(a.iframe.nativeElement,sra(a.duckieUrl,new Map([["conversationAgentId","a2a:buganizer_agent"],["origin",a.origin]]))),a.channel=IMd({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=IGc(a),c))};I0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(I0)))(b||I0)}}();
I0.\u0275cmp=C({type:I0,selectors:[["b-duckie-chat"]],viewQuery:function(a,b){a&1&&jg(KMd,5);if(a&2){var c;ng(c=og())&&(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 MMd=function(){};MMd.\u0275fac=function(a){return new (a||MMd)};MMd.\u0275mod=cf({type:MMd});MMd.\u0275inj=Gc({imports:[cP]});var NMd=function(){var a=this;this.useExperimentalOrcasAgent=!0;this.isDarkMode=pg.apply(null,[!1].concat(q([])));this.query=pg.apply(null,[""].concat(q([])));this.isLoading=pg.apply(null,[!0].concat(q([])));this.destroyRef=p(Ee);this.darkModeService=p(PW);this.llmChatService=p(BZ);this.contextValues$=this.llmChatService.contextValuesForDuckieRag$;p(Xy).setDefaultFontSetClass("material-icons");this.darkModeService.clientDarkmode$.pipe(fj(this.destroyRef)).subscribe(function(b){a.isDarkMode.set(b)})};
NMd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.isLoading.set(!1)},250)};NMd.\u0275fac=function(a){return new (a||NMd)};
NMd.\u0275cmp=C({type:NMd,selectors:[["gpp-chat"]],standalone:!1,decls:1,vars:1,consts:[[3,"useExperimentalOrcasAgent","isDarkMode","query","contextValues"]],template:function(a,b){a&1&&F(0,yEb,2,6,"gpp-agent-chat",0);a&2&&G(b.isLoading()?-1:0)},dependencies:[NM,ly],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(){NB.apply(this,arguments)};Y(J0,NB);
J0.prototype.navigate=function(a,b){var c=tJc(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 rr(this.state$.value.params.id||0,c));this.state$.next({params:d,queryParams:e,activeView:f});this.events$.next(new ak(this.state$.value.params.id||0,c,c));return Promise.resolve(!0)};var LNa=function(a,b,c){return a.navigate(["/thread",b],c)},tKc=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,YJ);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(){KB.apply(this,arguments);this.lastDuckieResponse$=new Wj(void 0);this.currentThread$=new Wj(void 0);this.newThread$=new Wj(!1)};Y(L0,KB);L0.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};var GQc=function(a,b){return y(function(c){a.lastDuckieResponse$.next(b);ce(c)})},lQc=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 OMd=new ed("@ngrx/effects Internal Root Guard"),PMd=new ed("@ngrx/effects User Provided Effects"),IEb=new ed("@ngrx/effects Internal Root Effects"),QMd=new ed("@ngrx/effects Internal Root Effects Instances");new ed("@ngrx/effects Internal Feature Effects");new ed("@ngrx/effects Internal Feature Effects Instance Groups");var RMd=new ed("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:function(){return EEb}});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 SMd=function(a){return a.pipe(Dla(function(b){return b.constructor&&b.constructor.name!=="Object"&&b.constructor.name!=="Function"?Object.getPrototypeOf(b):b}),me(function(b){return b.pipe(Dla(FEb))}),me(function(b){var c=b.pipe(Bla(function(d){return GEb(a.errorHandler,a.effectsErrorHandler)(d)}),A(function(d){if(d.notification.kind==="N"){var e=d.notification.value;if(typeof e==="function"||!e||!e.type||typeof e.type!=="string"){var f=d.propertyName;var g=d.sourceInstance;var k=d.sourceName;
g=typeof g[f]==="function";f=k?'"'+k+"."+String(f)+(g?"()":"")+'"':'"'+String(f)+'()"';try{var m=JSON.stringify(e)}catch(r){m=e}a.errorHandler.handleError(Error("jg`"+f+"`"+m))}}return d.notification}),we(function(d){return d.kind==="N"&&d.value!=null}),xla());b=b.pipe(nf(1),we(DEb),A(function(d){return d.ngrxOnInitEffects()}));return ve(c,b)}))};M0.\u0275fac=function(a){return new (a||M0)(Zc(Hx),Zc(RMd))};M0.\u0275prov=Fc({token:M0,factory:M0.\u0275fac,providedIn:"root"});fk("@ngrx/effects/init");var Zt=function(a,b){this.effectSources=a;this.store=b;this.effectsSubscription=null};Zt.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=SMd(this.effectSources).subscribe(this.store))};Zt.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)};Zt.\u0275fac=function(a){return new (a||Zt)(Zc(M0),Zc(KF))};Zt.\u0275prov=Fc({token:Zt,factory:Zt.\u0275fac,providedIn:"root"});var N0=function(a,b,c,d){this.sources=a;b.start();b=l(d);for(d=b.next();!d.done;d=b.next())a.addEffects(d.value);c.dispatch({type:"@ngrx/effects/init"})};N0.prototype.addEffects=function(a){this.sources.addEffects(a)};N0.\u0275fac=function(a){return new (a||N0)(Zc(M0),Zc(Zt),Zc(KF),Zc(QMd),Zc(LF,8),Zc(MF,8),Zc(OMd,8))};N0.\u0275mod=cf({type:N0});N0.\u0275inj=Gc({});var TMd=function(){};TMd.\u0275fac=function(a){return new (a||TMd)};TMd.\u0275mod=cf({type:TMd});var UMd,VMd=[],WMd=VMd.concat,XMd,YMd={},O0=void 0;YMd=YMd===void 0?{}:YMd;O0=O0===void 0?{}:O0;
XMd=[{provide:STc,useFactory:function(){p(KF,{optional:!0,skipSelf:!0});return"guarded"}},{provide:TTc,useValue:O0.initialState},{provide:UTc,useFactory:hAa,deps:[TTc]},{provide:YTc,useValue:YMd},{provide:$Tc,useExisting:YMd instanceof ed?YMd:YTc},{provide:XTc,deps:[YTc,[new GAc($Tc)]],useFactory:function(a){return a instanceof ed?p(a):a}},{provide:fUc,useValue:O0.metaReducers?O0.metaReducers:[]},{provide:hUc,deps:[gUc,fUc],useFactory:function(a,b){return a.concat(b)}},{provide:WTc,useValue:O0.reducerFactory?
O0.reducerFactory:Rza},{provide:VTc,deps:[WTc,hUc],useFactory:Uza},RTc,qUc,rUc,tUc,vUc,[{provide:jUc,useValue:O0.runtimeChecks},{provide:iUc,useFactory:function(a){return a},deps:[jUc]},{provide:dAa,deps:[iUc],useFactory:function(){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}},{provide:gUc,multi:!0,deps:[dAa],useFactory:function(a){var b=a.strictActionImmutability;
var c=a.strictStateImmutability;return function(d){return b||c?Xza(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:gUc,multi:!0,deps:[dAa],useFactory:function(a){var b=a.strictActionSerializability;var c=a.strictStateSerializability;return function(d){return b||c?bAa(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:gUc,multi:!0,deps:[dAa],useFactory:function(a){var b=a.strictActionWithinNgZone;
return function(c){return b?Zza(c,{action:function(d){return b&&!d.type.startsWith("@ngrx")}}):c}}}],fAa()];UMd={ngModule:LF,providers:WMd.call(VMd,q(XMd))};
TMd.\u0275inj=Gc({providers:[{provide:cGc,useValue:14},{provide:GA,useExisting:OM},{provide:KB,useExisting:L0},{provide:NB,useExisting:J0},{provide:YJ,useExisting:K0}],imports:[cP,NM,UMd,function(){var a=ad.apply(0,arguments).flat(),b=a.filter(AEb);return{ngModule:N0,providers:[b,{provide:IEb,useValue:[a]},{provide:OMd,useFactory:JEb},{provide:PMd,multi:!0,useValue:[]},{provide:QMd,useFactory:HEb,deps:[IEb,PMd]}]}}([])]});var ZMd=function(){this.appEvents=p(aP);this.llmChatService=p(BZ);this.containerScrolled=!1;this.chatAgentName$=this.llmChatService.isGppLlmChatEnabled$.pipe(A(function(a){return a?"Production Agent":""}))};ZMd.prototype.closeSidebar=function(){this.appEvents.closeIssueDetailsPageSidebar.next()};ZMd.\u0275fac=function(a){return new (a||ZMd)};
ZMd.\u0275cmp=C({type:ZMd,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,KEb,2,0,"div",6),T(9,"async"),T(10,"async"),Nf(11,LEb,2,0,"div",7));a&2&&(B(3),Ag(U(4,2,b.chatAgentName$)),B(5),G(U(9,4,b.llmChatService.isGppLlmChatEnabled$)?8:U(10,6,b.llmChatService.isDuckieChatEnabled$)?11:-1))},dependencies:[Yy,nC,lC,DA,NMd,I0,ly],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=Gc({imports:[cP,pC,EA,TMd,MMd]});var Q0=function(){};Q0.\u0275fac=function(a){return new (a||Q0)};Q0.\u0275mod=cf({type:Q0});Q0.\u0275inj=Gc({imports:[JZ,H0,pV,IU,cP,GV,eL,pU,P0,pC,GK,G0,kU,rV]});var $Md=function(){};$Md.\u0275fac=function(a){return new (a||$Md)};$Md.\u0275mod=cf({type:$Md});$Md.\u0275inj=Gc({imports:[cP]});var R0=function(){};R0.\u0275fac=function(a){return new (a||R0)};R0.\u0275mod=cf({type:R0});R0.\u0275inj=Gc({imports:[cP,yX]});var S0=function(){};S0.\u0275fac=function(a){return new (a||S0)};S0.\u0275mod=cf({type:S0});S0.\u0275inj=Gc({imports:[cP,eL,JX,GV,rV,R0,IU,pV]});var aNd=function(){};aNd.\u0275fac=function(a){return new (a||aNd)};aNd.\u0275mod=cf({type:aNd});aNd.\u0275inj=Gc({imports:[cP,IU]});var bNd=function(){};bNd.\u0275fac=function(a){return new (a||bNd)};bNd.\u0275mod=cf({type:bNd});bNd.\u0275inj=Gc({imports:[JZ,H0,IU,cP,GV,eL,S0,pU,G0,rV,GK,aNd,pC,$Md]});var T0=function(){};T0.\u0275fac=function(a){return new (a||T0)};T0.\u0275mod=cf({type:T0});T0.\u0275inj=Gc({imports:[cP,bNd,S0,pC,kU]});var U0=function(){};U0.\u0275fac=function(a){return new (a||U0)};U0.\u0275mod=cf({type:U0});U0.\u0275inj=Gc({imports:[cP,pC,eE,FU]});var V0=function(){};V0.\u0275fac=function(a){return new (a||V0)};V0.\u0275mod=cf({type:V0});V0.\u0275inj=Gc({imports:[cP,O_,M_,wU,pC]});var W0=function(){};W0.\u0275fac=function(a){return new (a||W0)};W0.\u0275mod=cf({type:W0});W0.\u0275inj=Gc({imports:[cP,pC,GK,eE,SE]});var cNd=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};cNd.\u0275fac=function(a){return new (a||cNd)};
cNd.\u0275cmp=C({type:cNd,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&&(Qf(0,MEb,1,1,"b-user-image",0,Pf),T(2,"slice"),F(3,OEb,1,1));a&2&&(Rf(Soa(2,1,b.emails,b.limit)),B(3),G(b.emails.length-b.limit>0?3:-1))},dependencies:[kV,sy],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 PEb=function(){return[]},dNd=function(){this.makeCritiqueUrl=Awb;this.submitted=[];this.pending=[]};dNd.\u0275fac=function(a){return new (a||dNd)};
dNd.\u0275cmp=C({type:dNd,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,REb,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 eNd=function(){this.changes=[]};eNd.\u0275fac=function(a){return new (a||eNd)};eNd.\u0275cmp=C({type:eNd,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),Bg("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[Yy],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var fNd=function(){this.imageUrls=p(gW);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};da.Object.defineProperties(fNd.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?Gwb(a):void 0}}});fNd.\u0275fac=function(a){return new (a||fNd)};
fNd.\u0275cmp=C({type:fNd,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,TEb,1,1)(4,UEb,1,1),L());a&2&&(B(),I("src",b.LOGO_LIGHT,Pe),B(2),G(b.searchPageUrl?3:4))},dependencies:[qF],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=Gc({imports:[cP,QL,$y,pC,rV]});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=cf({type:Y0});Y0.\u0275inj=Gc({imports:[Zy]});var Z0=function(){};Z0.\u0275fac=function(a){return new (a||Z0)};Z0.\u0275mod=cf({type:Z0});Z0.\u0275inj=Gc({imports:[tz,JZ,TX,EI,Wy,cP,GV,OE,pC,yL,XX,QL,GK,KX,UX,Y0,PE,X0,DU,oX,kU,eX,rV]});var a1=function(){};a1.\u0275fac=function(a){return new (a||a1)};a1.\u0275mod=cf({type:a1});a1.\u0275inj=Gc({imports:[cP,Z0,kU]});var b1=function(){};b1.\u0275fac=function(a){return new (a||b1)};b1.\u0275mod=cf({type:b1});b1.\u0275inj=Gc({imports:[cP,pV,IU,K_,AV,pC,GK,O_,ZV,eL,JX,RX,UX,sK,$y,kU,Q_,LU]});var gNd=function(){};gNd.\u0275fac=function(a){return new (a||gNd)};gNd.\u0275mod=cf({type:gNd});gNd.\u0275inj=Gc({imports:[cP,pC]});var hNd=function(){};hNd.\u0275fac=function(a){return new (a||hNd)};hNd.\u0275mod=cf({type:hNd});hNd.\u0275inj=Gc({imports:[JZ,pV,cP,IU,GV,U0,T0,gNd,pC,yL,fK,XX,GK,O_,eL,JX,Q0,V0,RX,pU,KX,UX,W0,sK,b1,oX,D0,a1,vMd,rV]});var c1=function(){this.matDialog=p(VB)};c1.prototype.show=function(a){this.dialog=this.matDialog.open(iNd,{width:"500px",data:a});return ie(TB(this.dialog))};c1.\u0275fac=function(a){return new (a||c1)};c1.\u0275prov=Fc({token:c1,factory:c1.\u0275fac,providedIn:"root"});
var iNd=function(){this.butterBar=p(gO);this.data=p(UB);this.dialogRef=p(SB);this.teamsService=p(UQ);this.dialogTitle="Create Triage View";this.triageForm=new uE({displayName:new wE("",Gj),scope:new wE("",Gj),showComponentColumn:new wE(!1)});this.data.triage?(this.triage=Em(this.data.triage),this.triage.displayName=Qr(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"};
iNd.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),$r(a.butterBar,"Saving changes...",0),Yd(d,2),z(d,ie(Dld(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return $r(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),Zj(d,0);c=be(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);ce(d)})};iNd.\u0275fac=function(a){return new (a||iNd)};
iNd.\u0275cmp=C({type:iNd,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(),Ag(b.dialogTitle),B(2),I("formGroup",b.triageForm),B(17),I("disabled",!b.triageForm.valid))},dependencies:[yE,Ij,qE,rE,JE,nC,jC,xL,rI,WB,YB,$B,ZB,FE,EE],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 jNd=function(){};jNd.\u0275fac=function(a){return new (a||jNd)};jNd.\u0275mod=cf({type:jNd});jNd.\u0275inj=Gc({imports:[OE,pC,yL,cK,SE,PE]});var d1=function(){Z.apply(this,arguments);var a=this;this.llmService=p(SY);this.imageUrls=p(gW);this.clusters$=new Wj([]);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({},GHd,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(Af(function(b){return qEd(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=C({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,$Eb,2,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.clusters$))?0:-1,c)}},dependencies:[d_,VL,WL,XL,
$ad,ly],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],changeDetection:0});var kNd=new ed("GM2_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var lNd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};lNd.\u0275fac=function(a){return new (a||lNd)(Ye(kNd))};lNd.\u0275dir=df({type:lNd,selectors:[["mat-slider"]],hostAttrs:[1,"gmat-mdc-slider"],standalone:!1});var mNd=new ed("_MatSlider"),nNd=new ed("_MatSliderThumb"),oNd=new ed("_MatSliderRangeThumb"),pNd=new ed("_MatSliderVisualThumb");var qNd={provide:lE,useExisting:Xc(function(){return e1}),multi:!0},e1=function(){var a=this;this._ngZone=p(Tg);this._elementRef=p(Jd);this._cdr=p(Px);this._slider=p(mNd);this._platform=p(Yh);this.valueChange=new gj;this.dragStart=new gj;this.dragEnd=new gj;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=pg.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(fi);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 rNd=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 ch(this._hostElement.value,0)},set:function(a){a===null&&(a=this.min);a=isNaN(a)?0:a;a+="";this._hasSetInitialValue?this._isActive||this._setValue(a):this._initialValue=a}},translateX:{configurable:!0,enumerable:!0,get:function(){if(this._slider.min>=this._slider.max)return this._translateX=this._tickMarkOffset;this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue());return this._translateX},
set:function(a){this._translateX=a}},min:{configurable:!0,enumerable:!0,get:function(){return ch(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return ch(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return ch(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return bh(this._hostElement.disabled)},set:function(a){this._hostElement.disabled=a;this._cdr.detectChanges();this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}},percentage:{configurable:!0,enumerable:!0,get:function(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}},fillPercentage:{configurable:!0,enumerable:!0,get:function(){return this._slider._cachedWidth?
this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}}});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",ch]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[Ig([qNd,{provide:nNd,useExisting:e1}])]});var sNd=["knob"],tNd=["valueIndicatorContainer"],f1=function(){var a=this;this._cdr=p(Px);this._ngZone=p(Tg);this._slider=p(mNd);this._renderer=p(fi);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=p(Jd).nativeElement;this._platform=p(Yh);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&&FFc(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=C({type:f1,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(jg(vA,5),jg(sNd,5),jg(tNd,5));if(a&2){var c;ng(c=og())&&(b._ripple=c.first);ng(c=og())&&(b._knob=c.first);ng(c=og())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Ig([{provide:pNd,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,aFb,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:[vA],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 uNd=["trackActive"],g1=function(){var a=this;this._ngZone=p(Tg);this._cdr=p(Px);this._elementRef=p(Jd);this._dir=p(ei,{optional:!0});this._globalRippleOptions=p(uA,{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=pi();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(Yh);this._knobRadius=8;this._thumbsOverlap=!1;p(bi).load(sA);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){rNd(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};h._initUIRange=function(a,b){rNd(a);a._updateThumbUIByValue();rNd(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=C({type:g1,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(kg(c,nNd,5),kg(c,oNd,4));if(a&2){var d;ng(d=og())&&(b._input=d.first);ng(d=og())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(jg(uNd,5),jg(pNd,5));if(a&2){var c;ng(c=og())&&(b._trackActive=c.first);ng(c=og())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(zg("mat-"+(b.color||"primary")),yg("mdc-slider--range",b._isRange)("mdc-slider--disabled",b.disabled)("mdc-slider--discrete",
b.discrete)("mdc-slider--tick-marks",b.showTickMarks)("_mat-animation-noopable",b._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",bh],discrete:[2,"discrete","discrete",bh],showTickMarks:[2,"showTickMarks","showTickMarks",bh],min:[2,"min","min",ch],color:"color",disableRipple:[2,"disableRipple","disableRipple",bh],max:[2,"max","max",ch],step:[2,"step","step",ch],displayWith:"displayWith"},exportAs:["matSlider"],features:[Ig([{provide:mNd,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&&(eg(),fg(0),K(1,"div",2),M(2,"div",3),K(3,"div",4),M(4,"div",5,0),L(),F(6,dFb,3,1,"div",6),L(),F(7,eFb,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 vNd=function(a,b){return b.componentId},wNd=function(a,b){return b.displayAs},h1=function(){Z.apply(this,arguments);var a=this;this.activatedRoute=p(Vj);this.teamFridge=p(ZQ);this.issueFridge=p(dQ);this.componentActions=p(eW);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=bS;this.selectedOpenFilter$=new gR;this.selectComponents$=new gR;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 Wj(this.dateRangeFilters[0]);this.clusterGranularity$=new Wj(1);this.query$=le([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(lf(0,Lr),A(function(b){var c=l(b);b=
c.next().value;var d=c.next().value;c=c.next().value;return xNd(a)?Sr.apply(null,[Rr("teamid",a.teamId)].concat(q(Array.from(b,function(e){return e.queryAtom})),[c.queryAtom])):Sr.apply(null,[].concat(q(Array.from(b,function(e){return e.queryAtom})),[Rr("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=l(b);b=c.next().value;c=c.next().value;return yNd(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(bS):this.selectedOpenFilter$.delete(bS)};
var xNd=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 yNd=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.experimentalFields.clusterIds[b],f=void 0,g=(f=c.get(e))!=null?f:new Set;g.add(d.issueId);c.set(e,g)}b=[].concat(q(c.values())).map(function(k){return[].concat(q(k))});return Iq(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,m){return m.length-k.length}).slice(0,10).map(function(k){return[].concat(q(k))})};
h1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(h1)))(b||h1)}}();
h1.\u0275cmp=C({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=sg(17);return v(e.openMenu())})("keyup.space",function(){u(c);var e=sg(17);return v(e.openMenu())});F(18,fFb,2,0,"span")(19,gFb,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);xNd(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,q(b.components));return v()});Q(25," Select all ");L()();M(26,"mat-divider");Qf(27,
hFb,3,2,"button",21,vNd);L();K(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);N("keydown.enter",function(){u(c);var e=sg(31);return v(e.openMenu())})("keyup.space",function(){u(c);var e=sg(31);return v(e.openMenu())});K(32,"span");Q(33);L();M(34,"mat-icon",18);L()();K(35,"mat-menu",null,3);Qf(37,iFb,2,1,"button",21,wNd);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=sg(22);var d=sg(36);B(5);Ag(b.teamName);B(7);I("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));B();I("matTooltip",b.openFilter.tooltip||"");B();S(" ",b.openFilter.displayAs," ");B();I("selectable",!1);B();I("matMenuTriggerFor",a);B(2);G(xNd(b)?18:19);B(6);I("checked",xNd(b));B(3);Rf(b.components);B(2);I("selectable",!1);B();I("matMenuTriggerFor",d);B(3);Ag(b.selectedDateRangeFilter$.value.displayAs);B(4);Rf(b.dateRangeFilters);B(7);I("clusters",
U(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[Yy,nC,lC,eK,pH,nH,sH,fL,nL,mL,lL,FK,DA,xL,rI,rK,lNd,g1,e1,d1,ly],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var zNd=function(){};zNd.\u0275fac=function(a){return new (a||zNd)};zNd.\u0275mod=cf({type:zNd});zNd.\u0275inj=Gc({imports:[yA,Zy]});var ANd=function(){};ANd.\u0275fac=function(a){return new (a||ANd)};ANd.\u0275mod=cf({type:ANd});ANd.\u0275inj=Gc({imports:[zNd]});var BNd=function(){};BNd.\u0275fac=function(a){return new (a||BNd)};BNd.\u0275mod=cf({type:BNd});BNd.\u0275inj=Gc({imports:[cP,Z0,ZL,pC,fK,FU,pL,GK,yL,sK,ANd]});var qFb=Date.now(),CNd=function(){var a=this;this.issueFridge=p(dQ);this.router=p(oF);this.ROUTES=As;this.phaseToUrlSlug=au;this.FETCH_SIZE=500;this.teamId$=new wf(1);this.triageId$=new wf(1);this.phase$=new Wj("NEW");this.heading$=this.phase$.pipe(A(function(b){return rt.get(b)}));this.searchFilter$=le([this.teamId$,this.phase$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+lnd[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(rFb)}));this.avgAge$=this.daysOld$.pipe(A(xVa),A(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(A(function(b){var c=b.map(function(e){return Math.floor(e)});b=[];c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=~~b[d]+
1;return Array.from(b,function(e){return e!=null?e:0}).reverse()}));this.ratioDaysOld$=this.countsByDaysOld$.pipe(A(function(b){var c=Math.max.apply(Math,q(b));return b.map(function(d){return d/c})}))};da.Object.defineProperties(CNd.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)}}});
CNd.\u0275fac=function(a){return new (a||CNd)};
CNd.\u0275cmp=C({type:CNd,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,kFb,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,lFb,1,2),T(8,"async"),Nf(9,mFb,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,pFb,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:[Yy,nC,jC,ly],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 DNd=function(){var a=this;this.activatedRoute=p(Vj);this.appSearchState=p(xT);this.teamFridge=p(ZQ);this.ROUTES=As;this.TriagePhase=Vdd;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=l(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+"+"}))};DNd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};DNd.\u0275fac=function(a){return new (a||DNd)};
DNd.\u0275cmp=C({type:DNd,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,sFb,2,2,"span",5),T(10,"async"),Nf(11,tFb,3,3,"code",6),L()()(),F(12,vFb,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:[Yy,nC,lC,CNd,ly],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 ENd="comment priority status assignee self-assign self-unassign unassign".split(" "),FNd=["create"],i1=function(){this.paths=p(vW);this.issueFullFridge=p(nQ);this.toIssuePriority=HSa;this.getResponsibleEmailAddress=BFb;this.getChangelistNumber=xFb;this.getLink=yFb;this.getPreviousDiffValue=CFb;this.getNewDiffValue=AFb;this.shorthandAllDiffs=zFb;this.getClMetadata=wFb;this.isCritiqueComment=Ao;this.isFullGerritComment=Bo;this.STATUS_CODE_FROM_DISPLAY_STRING=ied;this.type="default"};
i1.prototype.ngOnInit=function(){this.type=DFb(this.event)};i1.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?eVa(this.event.formattedComment):""};i1.\u0275fac=function(a){return new (a||i1)};
i1.\u0275cmp=C({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,EFb,4,4)(2,IFb,5,4)(3,JFb,4,4)(4,
KFb,6,5)(5,MFb,4,5)(6,OFb,5,5)(7,PFb,6,6)(8,QFb,4,4)(9,RFb,4,4)(10,SFb,6,6)(11,TFb,5,4)(12,UFb,5,5),F(13,WFb,1,1),F(14,YFb,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(ENd.includes(b.type)?13:-1);B();G(FNd.includes(b.type)?14:-1)}},dependencies:[zud,
BV,SR,HW,fvd],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(NQ);this.quickFilter=new wE("");this.printStats=lGb;this.defaultNumEvents=6;this.numDisplayed$=new Wj(this.defaultNumEvents);this.query$=new wf(1);this.renderDelay$=ee(!0).pipe(of(1E3));this.allEvents$=this.query$.pipe(we(hn),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=l(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(kGb(c))}));this.bucketedEvents$=le([this.events$,this.numDisplayed$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),A(mGb));this.allBucketedEvents$=this.events$.pipe(A(mGb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(A(function(b){return{"<24h":nGb("<24h",b),"24h-7d":nGb("24h-7d",
b),"7d-30d":nGb("7d-30d",b),">30d":nGb(">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=C({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,jGb,5,4),T(1,"async"));a&2&&G(U(1,1,b.renderDelay$)?0:-1)},dependencies:[Ij,qE,DE,i1,ly],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=Gc({imports:[PE,OE,cP,rV,GV,IU,KX,HV]});var rGb=function(a,b){return b.searchId},l1=function(){Z.apply(this,arguments);this.dialogRef=p(SB);this.currentUserBookmarksFridge=p(wP);this.selectedIds=new Set;this.savedSearches$=nhd(this.currentUserBookmarksFridge)};Y(l1,Z);l1.\u0275dir=Z.\u0275dir;var qGb=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=C({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,sGb,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:[nC,jC,YB,$B,ZB,iK,xK,tK,ly],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 GNd=function(){};GNd.\u0275fac=function(a){return new (a||GNd)};GNd.\u0275mod=cf({type:GNd});GNd.\u0275inj=Gc({imports:[cP,pC,cK,GK,yL,zK,OE,PE,pV,pC,dY,JX,eL]});var m1=function(){this.dialog=p(VB)};m1.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){TB(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 HNd=function(){return[]},n1=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(dQ);this.changelistFridge=p(NO);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(Ft(a.ref)==="issue")return c.results;var d;return Qod(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(A(function(b){return b.map(EVa).filter(hn)}),A(S0a));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(Ft(this.ref)==="hotlist")return Et(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=C({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,tGb,1,1,"avatar-bunch",4),T(8,"async"),L(),K(9,"div",5),F(10,uGb,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:Jg(14,HNd))("pending",(g=U(6,10,b.pendingCls$))!=null?g:Jg(15,HNd));B(3);G((d=U(8,12,b.emails$))?7:-1,d);B(3);a:{if(Hs(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:[Yy,nC,jC,cNd,dNd,fNd,ly],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 wGb=function(){return[]},o1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(tQ);this.metadataFridge=p(CO);this.issueFullFridge=p(nQ);this.changelistFridge=p(NO);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(V3a));this.metadata$.pipe(A(X3a));this.gerritChanges$=this.metadata$.pipe(A(Y3a));this.emails$=this.metadata$.pipe(A(Z3a));
this.pendingCls$=le([this.id$,this.metadata$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;c=(d=c==null?void 0:c.issueIds)!=null?d:[];d=[b].concat(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=C({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,vGb,1,2,"progress-pie",1),T(2,"async"),M(3,"issue-timeframe",2),T(4,"async"),F(5,xGb,2,5,"cl-counts",3),T(6,"async"),F(7,zGb,1,1),T(8,"async"),F(9,BGb,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:[cNd,dNd,a_,$Z,eNd,ly],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 INd=(new yud).transform,q1=function(){var a=this;this.kansasPrefsManager=p(nR);this.activeSession=p(Qu);this.filteredSignalsSource=p(p1);this.destroyRef=p(Ee);this.filteredSignalsOptions=Em(this.filteredSignalsSource.activeSession.isInternalSession()?Xkd:Ykd);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?Tkd:Ukd;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(DGb):[].concat(q(Vkd))}));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(DGb):[].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:FGb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:JGb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:LGb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:HGb(b==null?void 0:b.needsAttentionChangelistFilteredSignals,
a.filteredSignalsOptions),googleTasksSignals:MGb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:NGb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),xf({bufferSize:1,refCount:!0}));this.prefs$.pipe(fj(this.destroyRef)).subscribe(function(b){a.prefs=b})},du=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},sJb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=
c;du(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;du(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];du(this,{collapsed:this.prefs.collapsed})};q1.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var JNd=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(DGb):[].concat(q(Vkd))};var KNd=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
q1.prototype.addHotlist=function(a){LNd(this,Cwb(a))};q1.prototype.hasHotlist=function(a){return a==null?!1:MNd(this,Cwb(a))};q1.prototype.hasSavedSearch=function(a){return a==null?!1:MNd(this,Dwb(a))};
var MNd=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},LNd=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=O0a(b,d);du(a,{workAreaUrls:d})}},oJb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();INd(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,du(a,{workAreaUrls:e}))};q1.\u0275fac=function(a){return new (a||q1)};
q1.\u0275prov=Fc({token:q1,factory:q1.\u0275fac,providedIn:"root"});var NNd=function(){this.issueFridge=p(dQ);this.candidateIssues$=this.issueFridge.watchMany(Zkd);this.suggestions$=this.candidateIssues$.pipe(A(Jwb))};NNd.\u0275fac=function(a){return new (a||NNd)};NNd.\u0275prov=Fc({token:NNd,factory:NNd.\u0275fac,providedIn:"root"});var r1=function(){var a=this;this.prefsService=p(q1);this.isNumeric=B$a;this.isActive=function(){return ONd(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(A(function(b){var c;return ONd(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];du(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};r1.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var ONd=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=l(a.aggregatedStatus);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.issueIds===void 0?[]:c.issueIds,e=void 0;if((e=xo.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=W3a(a,"ASSIGNED"),a=W3a(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("lg`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=Gt[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=Gt[(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=C({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,QGb,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);Ag(b.filter.displayAs);B();G(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[ly],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 PNd=function(){};PNd.\u0275fac=function(a){return new (a||PNd)};PNd.\u0275mod=cf({type:PNd});PNd.\u0275inj=Gc({imports:[cP,QL,$y,pC]});var QNd=function(){var a=this;this.issueFridge=p(dQ);this.activeSession=p(Qu);this.QuickFilterKey=fed;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 Qod(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};da.Object.defineProperties(QNd.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
QNd.\u0275fac=function(a){return new (a||QNd)};
QNd.\u0275cmp=C({type:QNd,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,ly],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var RNd=function(){var a=this;this.metadataFridge=p(CO);this.QuickFilterKey=fed;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(RNd.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
RNd.\u0275fac=function(a){return new (a||RNd)};RNd.\u0275cmp=C({type:RNd,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,RGb,5,10,"div",0),T(1,"async"));a&2&&G(U(1,1,b.hasDescendants$)?0:-1)},dependencies:[r1,ly],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=Gc({imports:[cP,QL,$y,pC,X0,PNd]});var SNd={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},TNd=function(){this.data=p(UB);this.paths=p(vW);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=SNd};TNd.\u0275fac=function(a){return new (a||TNd)};
TNd.\u0275cmp=C({type:TNd,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",Fg(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:[nC,jC,WB,YB,$B,ZB],encapsulation:2});var t1=function(){this.issueApi=p(SP);this.dialog=p(VB);this.confirmationDialogService=p(iS);this.issueRelationshipsFridge=p(tQ);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.paths=p(vW);this.butterBar=p(gO);this.editIssueService=p(NS)};
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,m,r,w,x;return y(function(D){if(D.nextAddress==1)return z(D,Promise.all([b.getDescendants(a),ie(b.issueFullFridge.watch(a))]),2);c=D.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;m=g;r=m.childToParents;w=m.completeResult;x=[].concat(q(r.keys()));r.set(a,k.parentIssueIds||[]);return x.length===0?D.return(UNd(b,a,r)):w?D.return(VNd(b,a,x,r)):D.return(WNd(b,a,r))})};
var VNd=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(TB(a.dialog.open(TNd,f))),2);g=k.yieldResult;switch(g){case "ARCHIVE_ALL":return k.return(XNd(a,[b].concat(q(c)),d));case "ARCHIVE_ONE":return k.return(UNd(a,b,d));case "CANCEL":return k.return();default:return k.return(wb(g))}})},XNd=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];YNd(a,c);$r(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){$r(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);ZNd(a,c)})},UNd=function(a,b,c){YNd(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){$r(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);ZNd(a,c)})},WNd=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Fh([Dh("This issue has more than 1000 descendant issues. Archiving only\n                      this issue may make it difficult to find them later. Go to\n                      issue list page and archive issues there."),Hh("br",{}),Hh("br",{}),Hh("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Hh("br",{}),Hh("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){UNd(a,b,c).then(d)},onDismiss:d})})},YNd=function(a,b){b=l(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},ZNd=function(a,b){b=[].concat(q(b.values())).flat();b=l(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,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1)return z(J,ie(Ljd(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;g=l(d);for(k=g.next();!k.done;k=g.next()){m=k.value;r=l(m.relatedChildren);for(w=r.next();!w.done;w=r.next())x=w.value,D=void 0,H=(D=f.get(x.targetIssueId))!=null?D:[],H.push(m.issueId),f.set(x.targetIssueId,H);m.totalChildCount===m.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};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},bu=function(a){return new u1(a.split(">"))},$Nd=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&&Dm(this.pathToAncestor,a.pathToAncestor)};var aOd=function(a,b){a=l(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=l(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
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 bOd=function(){var a=this;this.draftRows=new Map;this.changed$=new sf;this.counter=0;this.createId=function(){return String(a.counter++)}};bOd.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:$Nd(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};
bOd.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};bOd.prototype.remove=function(a){var b=a.ancestorChain.parentChain,c=this.get(b),d=c.filter(function(f){return f.id!==a.id});if(c.length!==d.length){c=l(d);for(var e=c.next();!e.done;e=c.next())e=e.value,e.afterDraftId===a.id&&(e.afterDraftId=a.afterDraftId);this.draftRows.set(b.hash(),d);this.changed$.next(this.draftRows)}};
var cOd=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(){}))))})};bOd.prototype.isSaving=function(){return[].concat(q(this.draftRows.values())).flat().some(function(a){return a.saving})};bOd.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 dOd={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},eOd=function(a){var b=void 0;b=b===void 0?dOd:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new wf(1)},fOd=function(a,b){b=b.hash();return a.expansionState[b]},gOd=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},hOd=function(a,b,c){var d=!1;c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=$Nd(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&fOd(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var g=l(Object.entries(a.expansionState)),k=g.next();!k.done;k=g.next()){k=l(k.value);var m=k.next().value;k=k.next().value;m=bu(m);m.contains(e)&&(d=m.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new u1(d),delete a.expansionState[m.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!fOd(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(SP);this.activeSession=p(Qu);this.issueFullFridge=p(nQ);this.componentFridge=p(YO);this.componentTemplatesFridge=p(dP);this.userPreferencesManager=p(nR);this.currentUser=Pm(this.activeSession.getUserEmail())},jOd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,iOd(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return($3a(d,e))})},lOd=function(a,b){return kOd(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}}))},mOd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ie(kOd(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 kOd=function(a,b){return a.issueFullFridge.watch(b).pipe(we(hn),Af(function(c){var d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,iOd(a,String(c.snapshot[0].componentId)),2);d=k.yieldResult;if(c){var m={};c.snapshot[0].priority&&(m.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(m.severity=c.snapshot[0].severity);c.snapshot[0].type&&(m.type=Hjd[c.snapshot[0].type])}else m={};e=Object.assign({},{componentId:d.component.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",
isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},m,nOd(d.defaultTemplate),oOd(d.component,d.defaultTemplate));e.comment="";e.formattingMode=(g=(f=oR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:f.lastPublishMode)!=null?g:"UNSPECIFIED_FORMATTING_MODE";e.assigneeUser&&(e.status="ASSIGNED");return k.return(e)})}))},nOd=function(a){if(!a)return{};a=Bi(a.snapshot,function(b){return b==null||typeof b==="string"&&ya(b)?
!1:!0});delete a.componentId;return a},oOd=function(a,b){var c=[],d,e;a=l((e=(d=a.componentPathInfo)==null?void 0:d.allCustomField)!=null?e:[]);e=a.next();for(d={};!e.done;d={customField$jscomp$22:void 0},e=a.next())if(d.customField$jscomp$22=e.value,d.customField$jscomp$22.required){var f=void 0;e=(f=d.customField$jscomp$22.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$22.customFieldId};var g=f=void 0,k=void 0,m=(k=(f=b)==null?void 0:(g=f.snapshot.customField)==null?void 0:g.find(function(r){return function(w){return w.customFieldId===
r.customField$jscomp$22.customFieldId}}(d)))!=null?k:e;m&&c.push(Object.assign({},m))}return c.length===0?{}:{customField:c}},iOd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return z(m,Promise.all([ie(a.componentTemplatesFridge.defaultTemplate$(b)),ie(a.componentFridge.watch(b).pipe(we(hn)))]),2);c=m.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;return m.return({component:k,defaultTemplate:g})})};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,m,r,w,x,D,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=m;this.paths=r;this.router=w;this.issueCreationService=x;this.clearcut=D;this.refreshMonitor=H;this.permissionsFridge=J;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return O.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?Lo(this.saveExpansionAtKey):function(){};this.expansion=new eOd(pOd(this));this.draftRows=new bOd;this.refetchingAll$=new Wj(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Ef(pe(function(){return O.rows$})),Af(function(R){R=l(R);R.next();var V=R.next().value;O.refetchingAll$.next(!0);R=[];if(!V)return Promise.resolve();R.push(Mjd(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth));
V=l(V);for(var ba=V.next();!ba.done;ba=V.next())ba=ba.value,ba.type==="data"&&R.push(O.issueFullFridge.poke(ba.id)),ba.level>O.defaultExpansionLevel&&R.push(O.issueRelationshipsFridge.poke(ba.id));return Promise.all(R).then(function(){O.refetchingAll$.next(!1)})}));this.rows$=ve(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,Hha(ee({}),Lr)).pipe(Af(function(){return Ljd(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth)}),Af(function(){for(var R=new Map,
V=l(Object.entries(O.expansion.expansionState)),ba=V.next();!ba.done;ba=V.next()){ba=l(ba.value);var oa=ba.next().value;ba=ba.next().value;oa=bu(oa).nodeId;var ta=void 0;ba=Math.max(ba,(ta=R.get(oa))!=null?ta:0);R.set(oa,ba)}return qOd(O,R)}),kf(this.quickFilters.value$),Af(function(R){R=l(R);var V=R.next().value;var ba=R.next().value;return ba.size===0?(O.hiddenRowCount$.next(0),ee(V)):O.getAllIssues(V).pipe(A(function(oa){return rOd(O,V,ba,oa)}))}),A(function(R){return sOd(O,R)}),xf({refCount:!0,
bufferSize:1}));this.hiddenRowCount$=new Wj(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(we(hn));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new u1([this.rootIssueId]),expandedCount:500,issue$:Fx,hasChildren$:Fx,isEditMode:!1,issuePermissions$:Fx};this.supportsOneLineCreation=ie(this.rootIssue$).then(function(R){return Mbb(R.snapshot[0].componentId)}).then(function(R){return jOd(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 pOd=function(a){a=a.saveExpansionAtKey;if(a!=null){a=Ko(a)();a:if(typeof a!=="object"||Object.getPrototypeOf(a)!==Object.prototype)var b=!1;else{b=l(Object.getOwnPropertyNames(a));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!c||typeof a[c]!=="number"){b=!1;break a}b=!0}return b?a:void 0}},tOd=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,g,k,m,r;y(function(w){switch(w.nextAddress){case 1:return d=b.nodeId,z(w,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=lOd(a.issueCreationService,d),w.return(a.draftRows.create(b,g,c));k=e.snapshot[0].componentId;r={};return z(w,$t(a.router,a.paths.createIssue((r.component=k||void 0,r.parentIssueId=e.issueId,r.redirectUrl=As.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=(m=c)==null?void 0:m.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(m){if(m.nextAddress==1){if(k.length===0)return m.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return z(m,ys(0),2)}a&&gOd(b.expansion,a.ancestorChain,500);ce(m)})}),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,uOd(b,a),2)}return(c=d.yieldResult)?d.return(vOd(b,a,c)):d.return()})};
var uOd=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,mOd(a.issueCreationService,c,b.title),4);case 4:e=g.yieldResult;d=e.issueId;Zj(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 m=Math.min(k,108E5);djd("createIssue",m,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",m);fQ(a.clearcut,k,"createIssue-fromTree")}gOd(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;m=d;b.issueId=m;for(var r=l(k.draftRows.values()),w=r.next();!w.done;w=r.next()){w=l(w.value);for(var x=w.next();!x.done;x=w.next())x=x.value,x.afterDraftId===b.id&&(x.afterIssueId=m)}k.changed$.next(k.draftRows);return g.return(d)}})},vOd=function(a,b,c){var d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?r.jumpTo(2):z(r,cOd(a.draftRows,f),2);if(r.nextAddress!=4)return z(r,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);g=r.yieldResult;k=g.errors;((m=k)==null?0:m.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);ce(r)})},qOd=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 Kjd(a.issueRelationshipsFridge,d)}))})).pipe(Af(function(d){var e=new Map;d=l(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&e.set(f.issueId,f);if(c===a.defaultExpansionLevel)return ee(e);d=wOd(a,e,c);d=new Map(d.map(function(g){return[g,a.defaultExpandedChildren]}));return qOd(a,d,c+1).pipe(A(function(g){var k=new Map(e);g=l(g.entries());for(var m=g.next();!m.done;m=g.next()){var r=l(m.value);m=r.next().value;r=r.next().value;k.set(m,r)}return k}))}))},wOd=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(m){return function(r){return{id:r.targetIssueId,level:m.current$jscomp$53.level+1}}}(e))))}return d},sOd=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=$Nd(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:g.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:g,truncatedSiblingCount:k.length-f.length}));k=f.map(function(m){return function(r){var w=$Nd(m.parentRow$jscomp$1.ancestorChain,r.targetIssueId);return{type:"data",id:r.targetIssueId,level:m.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(r.targetIssueId).pipe(A(Z4a)),ancestorChain:w,
expandedCount:xOd(a,w,m.childrenLevel,b),issue$:a.issueFullFridge.watch(r.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(qq(r.targetIssueId)).pipe(A(function(x){return x!=null?x:Old}),zf(Old))}}}(e));d.push.apply(d,q(yOd(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},yOd=function(a,b,c){var d=[].concat(q(b));a=a.draftRows.get(c);a=l(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$8:void 0},e=a.next())c.draft$jscomp$8=e.value,b.some(function(f){return function(g){return g.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(g){return g.id===f.draft$jscomp$8.afterDraftId||g.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},xOd=function(a,b,c,d){var e=b.nodeId;b=fOd(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(m){return{issueId:m,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+((g=f)==null?void 0:g.map(function(m){return dq(m)}))),k.return();ce(k)})};
w1.prototype.getAllIssues=function(a){for(var b=this,c=new Set,d=l(a.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);a=l(a.values());for(d=a.next();!d.done;d=a.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=l(d),e=d.next();!e.done;e=d.next())c.add(e.value);return le([].concat(q(c)).map(function(f){return b.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(hn)}))};
var rOd=function(a,b,c,d){function e(m){if(!m)return!1;var r=f.get(m),w=g.get(m);if(!r||r.relatedChildren.length===0)return w;var x=r.relatedChildren.filter(function(D){return e(D.targetIssueId)});k+=r.relatedChildren.length-x.length;f.set(m,Object.assign({},r,{relatedChildren:x}));return x.length!==0||w}var f=new Map(b.entries()),g=new Map(d.map(function(m,r,w){return[m.issueId,Lwb(c,r,w)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},x1=function(){this.analytics=p(lQ);this.butterBar=
p(gO);this.issueFullFridge=p(nQ);this.issuePicker=p(fY);this.issueRelationshipsFridge=p(tQ);this.paths=p(vW);this.router=p(oF);this.issueCreationService=p(v1);this.clearcut=p(eQ);this.refreshMonitor=p(aQ);this.permissionsFridge=p(JQ)};x1.prototype.create=function(a,b,c,d){b=b===void 0?new gR: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 COd=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=EIc(function(f,g){if(e.activeDrag){var k=f||0,m=g.getBoundingClientRect();f=m.height;k-=m.top;f=VGb(k<=f*
.25?"top":k>=f*.75?"bottom":"middle",g);g=f.position;f=f.rowElement;switch(g){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var r=(k=(r=f.querySelector(".title-location"))==null?void 0:r.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;r=f.offsetLeft+r;k=g==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;m=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=r+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=m-r+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:g};zOd(e,f,g)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var g,k=(g=f.target)==null?void 0:g.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var m;if(((m=e.currentReorderingGuide)==null?void 0:m.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){AOd(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,BOd(e.rowSelectionModel),"mouse",4);AOd(e)})})};
COd.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(WGb(c));DOd(this.rowSelectionModel);EOd(this);this.dragPreview=this.dragPreviewTemplate.cloneNode(!0);document.body.appendChild(this.dragPreview);this.dragPreview.style.display="block";this.dragPreview.style.top="-1000px";this.dragPreview.innerText=this.rowSelectionModel.selectedCount===1?"Moving 1 issue":"Moving "+this.rowSelectionModel.selectedCount+" issues";a.dataTransfer.setDragImage(this.dragPreview,
0,0);a.dataTransfer.dropEffect="move";a=this.rows.toArray().filter(function(d){return b.rowSelectionModel.isSelected(d.row.ancestorChain)});a=l(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var FOd=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)},GOd=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(d!==-1&&d!==0){c=c.slice(0,d).reverse();c=l(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if(d.row.type==="load-more-children"){d=d.element.previousElementSibling;
if(!d)continue;var e={position:"before",rowElement:d};break}if(d.row.ancestorChain.parentChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"after",rowElement:d.element};break}if(d.row.ancestorChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"current",rowElement:d.element};break}}a.reorder(e,[b.row.ancestorChain],"keyboard",2)}};
COd.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)}};
COd.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"?FOd(this,a):(b=c&&b.row.level<UGb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
COd.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=WGb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":FOd(this,b);break;case "ArrowRight":GOd(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
COd.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=WGb(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:TGb(d)})})}};
var AOd=function(a){for(var b=l(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=l(a.rootElement.querySelectorAll("tr.nodrop"));for(c=b.next();!c.done;c=b.next())c.value.classList.remove("nodrop");a.rowSelectionModel.clear();a.placeholder.style.display="none";a.insertionBar.style.display="none";var d;(d=a.updatingNoDropRows)==null||d.unsubscribe();var e,f;(e=a.dragPreview)==null||(f=e.parentElement)==null||f.removeChild(a.dragPreview);
a.activeDrag=!1},zOd=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 WGb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},EOd=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=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.row.ancestorChain.some(function(f){return d.has(f)})&&e.element.classList.add("nodrop")})};var y1=function(){Z.call(this);var a=this;this.analytics=p(lQ);this.dragStarted$=new sf;this.onRowsMoved$=new sf;ve(this.dragStarted$,this.onRowsMoved$).pipe(D7a(),Bf(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=Jq(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);djd("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 HOd=function(){this.changed$=new sf;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};HOd.prototype.init=function(a){this.visibleRows=a};HOd.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var LHb=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};
HOd.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};HOd.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var DOd=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=l(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=bu(e.value);for(var f=l(b),g=f.next();!g.done;g=f.next())g=g.value,aOd(e,g)&&(a.selectedRowHashes.add(g.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},BOd=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 bu(f)}).map(function(f){return f.nodeId})),d=[];a=l(a.selectedRowHashes.values());for(var e=a.next();!e.done;e=a.next())(e=b.get(e.value))&&(e.ancestorChain.parentChain.some(function(f){return c.has(f)})||d.push(e.ancestorChain));return d};
da.Object.defineProperties(HOd.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this.selectedRowHashes)).map(function(a){return bu(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var IOd=function(){return["active-indicator","load-more-children"]},wHb=function(){return[]},JOd=As.listIssues.makeHref,KOd={type:"data",id:"",issue$:Fx,hasChildren$:Fx,ancestorChain:new u1([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:Fx},z1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(tQ);this.router=p(oF);this.butterBar=p(gO);this.analytics=p(lQ);this.issueArchiveService=p(t1);this.ngZone=p(Tg);this.elementRef=p(Jd);this.domSafe=p(sR);this.reorderingSessionTracker=
p(y1);this.cdr=p(iQ);this.relationsTableModelFactory=p(x1);this.liveAnnouncer=p(sz);this.clearcut=p(eQ);this.paths=p(vW);this.checkBeforeExit=p(yY);this.IssueFieldType=xdd;this.defaultExpansionLevel=1;this.internalFilters=new gR;this.isClosed=JVa;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 HOd;this.hasLogged=!1;this.correctedDisplayedRows=new ig;this.TITLE_FIXED_OFFSET_PX=42;this.EDITABLE_TITLE_OFFSET_PX=8;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=Ir(a.rows$))!=null?c:[]).findIndex(function(d){return SGb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+". "+(cq(c)?dq(c):c))}};this.dataColumns=[].concat(q(CHd));
this.tableColumns=this.getRenderableColumns(this.dataColumns)};Y(z1,Z);z1.\u0275dir=Z.\u0275dir;
z1.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(zY(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$=Hha([this.tableModel.rows$,ee([KOd])],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,Lr));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();LOd(a,c)}));this.rowReorderingModel=new COd(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"?EHb(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,fOd(c,d)||gOd(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return y(function(e){if(e.nextAddress==1)return Qjd(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")),hOd(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 LOd=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;Nid(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",Nid(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=l(b).next().value;a.rowDirectiveMap=new Map(a.displayedRows.map(function(c){return[c.row.ancestorChain.hash(),c]}));b=b.map(function(c){return a.rowDirectiveMap.get(c.ancestorChain.hash())}).filter(Boolean);a.correctedDisplayedRows.reset(b);mg(a.correctedDisplayedRows)});this.focusManager=Ez(new szd(this.correctedDisplayedRows,
SGb))};z1.prototype.toggleExpansion=function(a){gOd(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=As.viewIssue.makeHref(b.id),pq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Mr(this.domSafe,b):$t(this.router,b))};
var EHb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),gOd(a.tableModel.expansion,b.ancestorChain.parentChain,500),z(d,ys(0),2);a.focusManager.setActiveItem(c);ce(d)})},zHb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return MOd(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:!Ir(a.hasChildren$),
action:function(){var e=JOd({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(){YIb(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(){NOd(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(){GOd(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){FOd(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(){OOd(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;SGb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);ce(e)})};
var HHb=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;SGb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},YIb=function(a,b){tOd(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},NOd=function(a,b){b.type==="data"?tOd(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):tOd(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};z1.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var POd=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"&&(EHb(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?YIb(c,a):NOd(c,a));a.type==="draft-issue"&&a.saving&&NOd(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 MOd=function(a,b,c){var d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?x.return():z(x,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=As.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=c.afterIssueId,r.title=c.title,r.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,r.type=(m=(g=d)==null?void 0:g.snapshot[0].type)!=null?m:void 0,r));if(pq(b))return HHb(a,c),a.domSafe.openInNewTab(w),x.return();if(b&&b.shiftKey)return HHb(a,c),Mr(a.domSafe,w),x.return();$t(a.router,w);ce(x)})},OOd=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);SGb((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(){$r(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};z1.prototype.isOpen=function(a){return yo(a)};
z1.prototype.getAssigneeString=function(a){var b,c;return Lbb(Om(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=C({type:z1,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&jg(dX,5);if(a&2){var c;ng(c=og())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},standalone:!1,features:[Ig([iQ]),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),Wf(1,4),E(2,XGb,1,0,"th",5)(3,YGb,2,0,"td",6),Xf(),Wf(4,7),E(5,ZGb,1,0,"th",5)(6,$Gb,3,0,"td",8),Xf(),Wf(7,9),E(8,aHb,
2,0,"th",5)(9,bHb,2,1,"td",10),Xf(),Wf(10,11),E(11,cHb,2,0,"th",5)(12,dHb,2,0,"td",10),Xf(),Wf(13,9),E(14,eHb,2,0,"th",5)(15,fHb,4,9,"td",10),Xf(),Wf(16,9),E(17,gHb,2,0,"th",5)(18,hHb,3,3,"td",10),Xf(),Wf(19,9),E(20,kHb,3,1,"th",5)(21,qHb,3,1,"td",10),Xf(),Wf(22,9),E(23,rHb,2,0,"th",5)(24,sHb,3,4,"td",10),Xf(),Wf(25,9),E(26,tHb,2,0,"th",5)(27,uHb,3,3,"td",10),Xf(),Wf(28,12),E(29,vHb,1,0,"th",5)(30,xHb,3,4,"td",10),Xf(),Wf(31,13),E(32,yHb,1,0,"th",5)(33,DHb,5,1,"td",14),Xf(),Wf(34,15),E(35,FHb,6,7,
"td",16),Xf(),Wf(36,17),E(37,GHb,2,0,"th",5)(38,IHb,7,6,"td",16),Xf(),F(39,KHb,1,1,"tr",18),E(40,MHb,3,12,"tr",19)(41,NHb,1,4,"tr",20)(42,OHb,1,2,"tr",21),L(),M(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(I("dataSource",b.rows$)("trackBy",b.trackBy),B(7),I("matColumnDef",b.IssueFieldType.ISSUE_ID),B(6),I("matColumnDef",b.IssueFieldType.TITLE),B(3),I("matColumnDef",b.IssueFieldType.TYPE),B(3),I("matColumnDef",b.IssueFieldType.ASSIGNEE),B(3),I("matColumnDef",b.IssueFieldType.STATUS),B(3),I("matColumnDef",
b.IssueFieldType.TEAM),B(14),G(b.options.hideColumnHeaders?-1:39),B(),I("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(),I("matRowDefColumns",Jg(15,IOd))("matRowDefWhen",b.isLoadMoreRow),B(),I("matRowDefColumns",POd(b))("matRowDefWhen",b.isDraftRow))},dependencies:[kz,Yy,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,FK,DA,UY,AW,VU,Hzd,qX,GW,IW,rX,tX,Vzd,CU,iU,dX,kV,ly],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 RHb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RHb,W);h=RHb.prototype;h.getFilename=function(){return xi(this,1)};h.setFilename=function(a){return yj(this,1,a)};h.getLineNumber=function(a){return hx(this,2,a)};h.getChangeNumber=function(){return En(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Rp(this,3)};h.setChangeNumber=function(a){return Kn(this,3,a)};var THb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(THb,W);var QOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,QOd.messageId)};Y(QOd,W);QOd.messageId="b.MentionSearchResult";var ROd=function(){this.executor=p(pO)};ROd.\u0275fac=function(a){return new (a||ROd)};ROd.\u0275prov=Fc({token:ROd,factory:ROd.\u0275fac,providedIn:"root"});var A1=function(){this.mentionsApi=p(ROd);this.refreshMonitor=p(aQ);this.analytics=p(lQ)},SOd=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=Eid(a.refreshMonitor,pe(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:QOd}).then(UHb).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 TOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TOd,W);var UOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,UOd.messageId)};Y(UOd,W);h=UOd.prototype;h.getIssueId=function(){return En(this,1,void 0,jb)};h.getIssueId_asString=function(){return In(this,1,void 0,jb)};h.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};h.getResponseId=function(){return xi(this,2,void 0,jb)};h.setResponseId=function(a){return yj(this,2,a,jb)};UOd.messageId="hmf.SendFeedbackRequest";var B1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,B1.messageId)};Y(B1,W);B1.prototype.getIssueCategory=function(){return Ii(this,1,void 0,jb)};B1.prototype.getIssueId=function(){return En(this,2,void 0,jb)};B1.prototype.getIssueId_asString=function(){return In(this,2,void 0,jb)};B1.prototype.setIssueId=function(a){return Kn(this,2,a,void 0,jb)};B1.messageId="hmf.GetIssueEligibilityResponse";var VOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,VOd.messageId)};Y(VOd,W);h=VOd.prototype;h.getResponse=function(){return xi(this,1,void 0,jb)};h.hasResponse=function(){return wm(this,1,jb)};h.getIssueCategory=function(){return Ii(this,2,void 0,jb)};h.getResponseId=function(){return xi(this,3,void 0,jb)};h.setResponseId=function(a){return yj(this,3,a,jb)};h.getIssueId=function(){return En(this,4,void 0,jb)};
h.getIssueId_asString=function(){return In(this,4,void 0,jb)};h.setIssueId=function(a){return Kn(this,4,a,void 0,jb)};VOd.messageId="hmf.GetIssueHelpResponse";var C1=function(){this.executor=p(oO)},WOd=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:VOd}).pipe(A(WHb),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(XHb),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 UOd).setIssueId(b.issueId).setResponseId(b.responseId);var f=new TOd;b=Vn(f,1,Pdd[b.userFeedback.sentiment]);e=Zi(e,TOd,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(){BO.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,BO);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(){BO.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,BO);E1.prototype.fetchOne=function(a){return WOd(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(lQ);this.activeSession=p(Qu);this.contextSensitiveRegistry=p(cR);this.issueHelpMeFixFridge=p(E1);this.issueHelpMeFixEligibilityFridge=p(D1);this.helpMeFixApi=p(C1);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(fn),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 XOd=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(nQ);this.issueApi=p(RP);this.prompts=p(YOd);this.contextSensitiveRegistry=p(cR);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(hn),pf());this.issue$=this.issueId$.pipe(Af(function(c){return a.issueFullFridge.watch(c)}),we(hn),pf(function(c,d){return c.issueId===d.issueId&&c.version===d.version}));this.summarizable$=this.issue$.pipe(Af(function(c){return ZOd(a.prompts,c.issueId).pipe(A(function(d){return{issue:c,isSummarizable:d}}))}),
xf({refCount:!0,bufferSize:1}));this.summary$=this.summarizable$.pipe(we(function(c){return c.isSummarizable}),Af(function(c){return $Od(a,c.issue)}),xf({refCount:!0,bufferSize:1}));var b=p(Ee);this.summary$.pipe(fj(b)).subscribe()},$Od=function(a,b){return a.getIssueSummary(b,"COMMENTS_LONG").pipe(Af(function(c){return(c==null?0:c.summary)?ee(c):aPd(a,b)}))};
G1.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(jf(function(c){c.status!==404&&mn("Error to get an issue summary: error: ",c);return ee(void 0)}))};var aPd=function(a,b){return lid(a.issueApi,b.issueId).pipe(jf(function(c){mn("Error to generate an issue summary: error: ",c);return ee(void 0)}))};G1.\u0275fac=function(a){return new (a||G1)};G1.\u0275prov=Fc({token:G1,factory:G1.\u0275fac,providedIn:"root"});
var YOd=function(){this.eventsForIssueFridge=p(TP)},ZOd=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(A(function(c){return ZHb(c)}),pf())};YOd.\u0275fac=function(a){return new (a||YOd)};YOd.\u0275prov=Fc({token:YOd,factory:YOd.\u0275fac,providedIn:"root"});var bPd={issueId:"",category:"issue-summary",displayName:"AI Summary",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},cPd={issueId:"",category:"help-me-fix",displayName:"Help me fix",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},dPd=["issue-summary","help-me-fix"],H1={},ePd=(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(cR);this.issueEnrichmentFridge=p(XP);this.enrichmentCategoryFridge=p(CP);this.activeSession=p(Qu);this.llmIssueSummaryService=p(G1);this.helpMeFixService=p(F1);this.commentFormatter=p(lR);this.enrichmentApi=p(GO);this.issueUserEventsService=p(oW);this.issueId$=
this.contextSensitiveRegistry.getIssueId().pipe(we(hn),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=l(b);for(var d=
b.next();!d.done;d=b.next())d=d.value,c.set(d.name,d.displayName);return c}));this.issueSummaryEnrichment$=this.llmIssueSummaryService.summarizable$.pipe(Af(function(b){return b.isSummarizable&&a.activeSession.isInternalSession()?a.llmIssueSummaryService.summary$.pipe(A(function(c){return c!=null&&c.summary?Object.assign({},bPd,{issueId:b.issue.issueId,general:{content:c.summary,formattedContent:{markdownFormat:c.formattedSummary}}}):Object.assign({},bPd,{issueId:b.issue.issueId})}),zf(Object.assign({},
bPd,{issueId:b.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:Dh("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({},cPd,{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=l(b);var d=c.next().value;var e=c.next().value;b=c.next().value;c=c.next().value;d=d.map(function(f){var g;return Object.assign({},f,{displayName:(g=e.get(f.category))!=null?
g:f.category})});b&&d.push(b);c&&d.push(c);return d}))};I1.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c){var d=this;return y(function(e){return e.nextAddress==1?c==="issue-summary"?z(e,fPd(d,b),0):c==="help-me-fix"?z(e,gPd(d,a,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=ePd[c];return e==="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED"?f.jumpTo(0):z(f,ie(d.enrichmentApi.submitEnrichmentFeedback({issueId:a,category:b,feedbackType:e})),0)})};
var fPd=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,m=c.issueVersion;var r=new nW;g=(new Mwd).setSummaryType(Add[g]).setModelVersion(k).setIssueVersion(m);r=mp(r,1,Nwd,g);e=e.logIssueUserEvent(f,"FEATURE_SUMMARY",b,r);d=z(d,ie(e),0)}else d=d.jumpTo(0);return d})},gPd=function(a,b,c){return y(function(d){switch(d.nextAddress){case 1:return z(d,
ie(a.issueUserEventsService.logIssueUserEvent(b,"FEATURE_HELP_ME_FIX",c)),2);case 2:switch(c){case "EVENT_TYPE_IMPRESSION":return d.jumpTo(3);case "EVENT_TYPE_THUMBS_UP":return d.jumpTo(4);case "EVENT_TYPE_THUMBS_DOWN":return d.jumpTo(5);case "EVENT_TYPE_VIEW":return d.jumpTo(6)}d.jumpTo(0);break;case 3:return z(d,a.helpMeFixService.trackImpression(),8);case 8:d.jumpTo(0);break;case 4:return z(d,a.helpMeFixService.trackThumbsUp(),9);case 9:d.jumpTo(0);break;case 5:return z(d,a.helpMeFixService.trackThumbsDown(),
10);case 10:d.jumpTo(0);break;case 6:return z(d,XOd(a.helpMeFixService),11);case 11:d.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(bR);this.issueRelationshipsFridge=p(tQ);this.issueFullFridge=p(nQ);this.issueFridge=p(dQ);this.codeMentions=p(A1);this.eventsForIssue=p(TP);this.activeSession=p(Qu);this.issueEnrichmentService=p(I1);this.id$=this.paramsService.issueId$.pipe(we(hn),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(Dm));this.blockedIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),pf(Dm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),pf(Dm));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(Dm));this.blockersDualCount$=le([this.id$,this.blockerIssueIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return hPd(a,b,c,["BLOCKED_BY"])}),xf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(A(aIb),
xf({bufferSize:1,refCount:!0}));this.blockedDualCount$=le([this.id$,this.blockedIssueIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return hPd(a,b,c,["BLOCKING"])}),xf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(A(aIb),xf({bufferSize:1,refCount:!0}));this.childrenDualCount$=le([this.id$,this.childrenIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return hPd(a,b,c,["CHILDREN"])}),xf({bufferSize:1,refCount:!0}));
this.countChildrenDisplay$=this.childrenDualCount$.pipe(A(aIb),xf({bufferSize:1,refCount:!0}));this.parentsDualCount$=le([this.id$,this.parentIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return hPd(a,b,c,["PARENT"])}),xf({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(A(aIb),xf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=le([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;
var d=c.next().value;c=c.next().value;return hPd(a,b,[].concat(q(c),q(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(A(aIb),xf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=le([this.id$,this.duplicateIssueIds$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=c.next().value;return hPd(a,b,c,["DUPLICATE"])}),xf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(A(function(b){return b.total}),A(bIb),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!a$a(c)})}),A(function(b){return cu(b.length)}),A(bIb),xf({bufferSize:1,refCount:!0}));this.countInsightsDisplay$=this.issueEnrichmentService.issueEnrichments$.pipe(A(function(b){return cu(b.length)}),A(bIb),xf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(we(hn),
Af(function(b){return SOd(a.codeMentions,b)}),A(function(b){var c,d;return cu((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),A(bIb),xf({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(A(function(b){return cu(b.filter(vo).length)}),A(bIb),xf({bufferSize:1,refCount:!0}))},hPd=function(a,b,c,d){d=d===void 0?[]:d;c=Jq(c);if(!b||c.length===0)return ee({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return cIb(b,e)}).filter(hn).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(yo).filter(MVa).length;return{open:cu(e),total:cu(c.length)}})):le(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(A(function(e){return{open:cu(e.filter(hn).filter(yo).filter(MVa).length),total:cu(e.filter(function(f){return!f||MVa(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(nQ);this.butterBar=p(gO);this.analytics=p(lQ);this.refreshMonitor=p(aQ);this.contextSensitiveRegistry=p(cR);this.issuePermissionService=p(fR);this.issuePicker=p(fY);this.errorHandler=p(wO);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 hQ;this.tableColumns=[].concat(q(BHd));
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(){iPd(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ef(this.blockerIds$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;if(b!=null){b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}}))};Y(K1,Z);K1.\u0275dir=Z.\u0275dir;
var kIb=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){jPd(a,b,d)}),0)})},jPd=function(a,b,c){y(function(d){return c.length===0?d.return():z(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){yO(a.errorHandler,e)}),0)})},iPd=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:Zj(e,0);break;case 3:d=be(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(cq(d)?dq(d):d)),ce(e)}})};K1.\u0275fac=function(a){return new (a||K1)};
K1.\u0275cmp=C({type:K1,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&jg(d_,5);if(a&2){var c;ng(c=og())&&(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,eIb,1,
1,"ng-container"),T(7,"async"),L(),F(8,gIb,2,3),T(9,"async"),Nf(10,iIb,6,1,"div"),F(11,jIb,4,2,"p",5),T(12,"async"),E(13,lIb,3,3,"ng-template",null,0,Og));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:[ky,Yy,FK,DA,VU,d_,ly],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(kQ);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;g4a()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){kPd(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){kPd(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 kPd=function(a){a.ignoringNextNav||(Fid("appNavStart"),a.mostRecentlyMeasured="")},lPd=function(a,b){Fid(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)&&g4a())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(rR);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 mPd=function(){this.imageUrls=p(gW);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};mPd.\u0275fac=function(a){return new (a||mPd)};
mPd.\u0275cmp=C({type:mPd,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:[nC,jC,WB,YB,$B,ZB],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(nQ);this.butterBar=p(gO);this.analytics=p(lQ);this.refreshMonitor=p(aQ);this.issueRelationshipsFridge=p(tQ);this.ROUTES=As;this.parentIssueIds$=new Wj([]);this.filters=[];this.tableColumns=[].concat(q(BHd));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return nPd(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(cq(c)?dq(c):c))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var b=l(a.parentIssueIds$.value),c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}))};Y(N1,Z);N1.\u0275dir=Z.\u0275dir;N1.prototype.ngOnInit=function(){};
var nPd=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=C({type:N1,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&jg(d_,5);if(a&2){var c;ng(c=og())&&(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,mIb,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:[d_,ly],
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 hQ;this.onConfirm=new hQ;this.onCancel=new hQ;this.internalSelectedOptions=new gR};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=C({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=sg(1),e;(e=d.isOpen)!=null&&e?d.close():d.open();return v()});M(3,"mat-icon",3);F(4,oIb,2,3);L();K(5,"onedev-popup-panel",4,1)(7,"div",5);F(8,pIb,2,1,"h1",6);Qf(9,sIb,7,5,"div",7,Pf);F(11,
tIb,6,2);L()()}a&2&&(a=sg(6),yg("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(),Rf(b.options),B(2),G(b.showActionButtons?11:-1))},dependencies:[Yy,nC,jC,lC,xL,rI,rK,FK,DA,DW,EW,ly],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 oPd=function(){return[]},BIb=function(a){return{filteredCount:a}},P1=function(){Z.call(this);var a=this;this.brain=p(dR);this.issuePicker=p(fY);this.issueRelationshipsFridge=p(tQ);this.issueFullFridge=p(nQ);this.router=p(oF);this.routePerformance=p(M1);this.element=p(Jd);this.analytics=p(lQ);this.issuePermissionService=p(fR);this.activeSession=p(Qu);this.counts=p(J1);this.matDialog=p(VB);this.butterBar=p(gO);this.makeIlpUrlForParentIssue=Hwb;this.recallFilters=Ko("deps-filters");this.saveFilters=
Lo("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(hn),A(Mbb));this.issue$=this.brain.issueJs$.pipe(we(hn));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(MVa).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=wo(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=wo(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=l(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=UIb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=le([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(A(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return VIb(Math.round(b*100)/100)+" completed | "+VIb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new sf;this.issueFilters=new gR;this.ISSUE_FILTER_OPTIONS=[{key:Gt.OPEN.key,title:Gt.OPEN.displayAs,description:"Hides closed issues"},{key:Gt.ASSIGNED_TO_ME.key,title:Gt.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];ie(I_a("b-issue-relations-table tr .mat-column-title a",
this.element.nativeElement).pipe(Bf(ve(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){lPd(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(Mwb))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(q(b)))}))};Y(P1,Z);P1.\u0275dir=Z.\u0275dir;
var QIb=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){pPd(a,c,e)}),0)})},pPd=function(a,b,c){var d=l(c).next().value;var e,f,g,k;y(function(m){if(m.nextAddress==1)return(e=d)?z(m,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):m.return();f=m.yieldResult;
g=f.errors;return((k=g)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),m.return()):z(m,a.issueFullFridge.poke(b),0)})};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||YIb(a)};
P1.prototype.openLearnMore=function(){this.matDialog.open(mPd,{maxWidth:"1300px",width:"90%"})};P1.\u0275fac=function(a){return new (a||P1)};
P1.\u0275cmp=C({type:P1,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(jg(z1,5),jg(K1,5),jg(N1,5));if(a&2){var c;ng(c=og())&&(b.relationsTable=c.first);ng(c=og())&&(b.blockersTable=c.first);ng(c=og())&&(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,uIb,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,NIb,40,47,"div",9);T(8,"async");E(9,PIb,1,1,"ng-template",null,0,Og)(11,RIb,3,3,"ng-template",null,1,Og)(13,TIb,4,4,"ng-template",null,2,Og)}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:Jg(12,oPd))("showActionButtons",
!1)("showActiveState",!0);B(4);G((d=U(8,10,b.issueId$))?7:-1,d)}},dependencies:[ky,Yy,WK,dL,nC,lC,FK,DA,VU,O1,iU,o1,K1,z1,N1,ly,ry],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 qPd=function(){};qPd.\u0275fac=function(a){return new (a||qPd)};qPd.\u0275mod=cf({type:qPd});qPd.\u0275inj=Gc({imports:[cP,pC,yL,sK,GK,QX]});var Q1=function(){};Q1.\u0275fac=function(a){return new (a||Q1)};Q1.\u0275mod=cf({type:Q1});Q1.\u0275inj=Gc({imports:[tz,EI,Wy,cP,OE,eL,pC,cK,Y0,XX,QL,GK,PE,JZ,TX,WU,JX,Z0,UX,qPd,DU,kU,s1,eX,rV]});var R1=function(){Z.apply(this,arguments);var a=this;this.prefsService=p(q1);this.issueFullFridge=p(nQ);this.savedSearchFridge=p(vP);this.analytics=p(lQ);this.activeSession=p(Qu);this.TREE_COLUMNS=[].concat(q(FHd));this.TREE_OPTIONS=Object.assign({},HHd);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new sf;this.hideRecentActivity=!1;this.typeAndId$=new Wj([void 0,void 0]);this.typeAndId$.pipe(Af(function(b){var c=l(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=l(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=l(b);b=c.next().value;c=c.next().value;if(b==="issue")return"parentid:"+c+"+ | id:"+c;if(b==="savedsearch")return"savedsearchid:"+c;if(b==="hotlist")return"hotlistid:"+c}),A(function(b){if(b!==void 0){var c;if((c=a.activeSession.getTracker())==
null?0:c.trackerId){var d;b+=" trackerid:"+((d=a.activeSession.getTracker())==null?void 0:d.trackerId)}return b}}))};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 KNd(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=Et(a);this.entityType=Ft(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=C({type:R1,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&jg(z1,5);if(a&2){var c;ng(c=og())&&(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,eJb,4,2);if(a&2){var c;G((c=b.referencedId)?0:-1,c)}},styles:["[_nghost-%COMP%] { display: block; }"]});var rPd=Object.assign({},GHd,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),sPd={column:"MODIFIED_TIME",direction:"DESCENDING"},S1=function(){var a=this;this.prefsService=p(q1);this.activeSession=p(Qu);this.issueFridge=p(dQ);this.DEFAULT_COLUMNS=[].concat(q(DHd));this.PROGRESS_COLUMNS=[].concat(q(EHd));this.TABLE_OPTIONS=Object.assign({},rPd);this.INITIAL_SORT=sPd;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new Wj(void 0);this.issueQuery$=this.searchString$.pipe(A(fJb));
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 Qod(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?[]:KNd(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=C({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,gJb,4,9),F(1,iJb,2,3));a&2&&(G(b.isInternalSession?0:-1),B(),G(b.showTable()?
1:-1))},dependencies:[n1,QNd,d_,ly],styles:["[_nghost-%COMP%] { display: block; }"]});var tJb=function(a,b){return b.workAreaUrl},T1=function(){Z.call(this);var a=this;this.prefsService=p(q1);this.issueFullFridge=p(nQ);this.hotlistFridge=p(rP);this.savedSearchFridge=p(vP);this.hotlistPicker=p(MY);this.issuePicker=p(fY);this.savedSearchPicker=p(m1);this.analytics=p(lQ);this.clipboard=p(uR);this.butterBar=p(gO);this.parentIssueSuggestions=p(NNd);this.imageUrls=p(gW);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=Ft;this.makeBuganizerUrl=Gwb;this.makeIlpUrlForParentIssue=Hwb;this.getEntityTypeName=Fwb;this.extractLastDigits=Et;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=JNd(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 Ft(e)===
"issue"})}),A(function(d){return d.map(Et)}),pf(Dm),A(function(d){return d.filter(hn)}),Af(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return Ft(e)==="hotlist"})}),A(function(d){return d.map(Et)}),pf(Dm),A(function(d){return d.filter(hn)}),Af(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return Ft(e)==="savedsearch"})}),
A(function(d){return d.map(Et)}),pf(Dm),A(function(d){return d.filter(hn)}),Af(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(kf(this.issues$),Bf(this.destroyed$),A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;return d.map(function(g){var k=f.find(function(m){return m.issueId===g});return{workAreaUrl:g,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(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)),m=g[f];g[f]=g[k];g[k]=m}e=g.slice(0,e);d=d[0];e.includes(d)||(e.pop(),e.unshift(d));d=e}a.suggestions=d;a.workAreaReferences.length===0&&(d=d.length,a.analytics.trackEvent("missionControl","suggestions-shown",String(d),d))})};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=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.titles[b.issueId]=(c=b.snapshot[0])==null?void 0:c.title}};
h.updateTitlesForHotlists=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[Cwb(b.hotlistId)]=b.name};h.updateTitlesForSavedSearches=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[Dwb(b.searchId)]=b.name};
var tPd=function(a){var b,c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return b=a.workAreaReferences.filter(function(x){return Ft(x)==="hotlist"}).map(Et).map(Number),z(w,YDd(a.hotlistPicker,b,ee([])),2);c=w.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(Cwb);m=((k=(g=c)==null?void 0:g.hotlistDiff.removed)!=null?k:[]).map(Cwb);r=a.workAreaReferences.slice();r=L0a(m,r);r=O0a(f,r);du(a.prefsService,{workAreaUrls:r});ce(w)})},uPd=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&&LNd(a.prefsService,b);ce(c)})},wJb=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&&LNd(a.prefsService,b)},vPd=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(Dwb);LNd(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=C({type:T1,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("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,jJb,3,1,"button",9);K(8,"mat-menu",null,0)(10,"button",10);N("click",function(){u(c);return v(uPd(b))});Q(11,"Issue (parent/child project)");L();
K(12,"button",10);N("click",function(){u(c);return v(tPd(b))});Q(13,"Hotlist");L();K(14,"button",10);N("click",function(){u(c);return v(vPd(b))});Q(15,"Saved Search");L()()();F(16,uJb,4,3,"mat-tab-group",11)(17,zJb,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:[Yy,qF,eK,pH,nH,sH,nC,jC,lC,rK,OL,FL,IL,JL,KL,FK,DA,YW,WK,dL,iW,R1,ly],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=Gc({imports:[cP,fK,$y,pC,sK,QL,GK,s1,Z0,GNd,Q1,k1,JX,eL,SX]});Toa(R1,[nC,jC,o1,RNd,z1,j1,S1],[ly]);var wPd=function(){};wPd.\u0275fac=function(a){return new (a||wPd)};wPd.\u0275mod=cf({type:wPd});wPd.\u0275inj=Gc({imports:[cP,OE,HU,QL,GK,pC,MM,PE,k1,kU,U1]});var xPd=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 hQ;this.prevPage=new hQ;this.pageSizeChange=new hQ};xPd.prototype.ngOnInit=function(){};xPd.\u0275fac=function(a){return new (a||xPd)};
xPd.\u0275cmp=C({type:xPd,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,BJb,8,1),K(1,"span",1)(2,"strong"),Q(3),L(),F(4,CJb,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),Ag(b.startIndex),B(),G(b.endIndex!=null?4:-1),B(4),Ag(b.totalNumber),B(),I("matTooltip",b.previousPageLabel)("disabled",
!b.hasPreviousPage),B(2),I("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[Yy,nC,lC,eK,pH,nH,sH,FK,DA],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var QJb=function(a,b){return{issueIds:a,teamId:b}},ZJb=function(){return[]},$Jb=function(){return{}},LJb=function(a,b){return b.key},V1=function(){Z.call(this);var a=this;this.activeSession=p(Qu);this.paramsService=p(bR);this.appSearchState=p(xT);this.userPreferencesManager=p(nR);this.imageUrls=p(gW);this.teamExperimentalFieldsFridge=p(YQ);this.triageService=p(dS);this.punctualService=p(qY);this.issueFridge=p(dQ);this.issueFullFridge=p(nQ);this.bLocation=p(hU);this.refreshMonitor=p(aQ);this.issueExperimentalFieldsFridge=
p($P);this.starredTeamsService=p(aS);this.teamsService=p(UQ);this.ROUTES=As;this.TriageServiceMode=$nd;this.SUBPHASE_TO_DISPLAY_NAME=gnd;this.LAST_30_DAYS=End.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=fs;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new gR;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=Nld(this.paramsService,"phase").pipe(A(function(d){var e;return(e=jnd.get(d))!=null?e:"NEW"}),pf());this.subphase$=Nld(this.paramsService,"subphase").pipe(A(function(d){var e;return(e=ind.get(d))!=null?e:void 0}),pf());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new Wj(1);this.activeSort$=new Wj(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=l(d);d=f.next().value;return(e=f.next().value)?d.filter(function(g){return Pr(g)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(A(function(d){return[].concat(q(d)).map(function(e){return End[e]})}));this.alerts$=this.phase$.pipe(A(function(d){return gKb.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(A(function(d){return u8a(d)}));
this.filteredIssuesInPhase$=le([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return dKb(d,f,e)}));this.filteredTotalRowCount$=le([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d.length+e.length}),xf({refCount:!0,bufferSize:1}));this.startIndex$=le([this.pageSize$,this.pageNumber$]).pipe(A(function(d){var e=l(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=l(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=l(d);d=e.next().value;var f=e.next().value;var g=e.next().value;e=e.next().value;
return fKb(d,f,g,e)}),xf({refCount:!0,bufferSize:1}));this.issueIdsToRender$=le([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d.slice(f-1,e)}),pf(Dm),xf({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=le([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var g=e.next().value;var k;return((k=
Dnd.get(d))!=null?k:[]).map(function(m){var r=f.filter(m.check).length;m.key==="NEEDS_ATTENTION"&&(r+=g.length);return Object.assign({},m,{count:r})})}),A(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(A(function(d){return gKb.get(d)}));this.issues$=this.issueIdsToRender$.pipe(Af(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=Ynd(this.data).pipe(we(hn));this.tableOptions$=
le([this.issues$,this.customFieldConfigs$]).pipe(A(function(d){d=l(d);d.next();return{enableSelection:!0,showMenu:!1,modes:{createdTime:"relativepastshort"},navigationOptions:{clickTargets:"NONE",alwaysOpenNewTab:!0},sortMode:"EXTERNAL_SORT",activeRowMode:"REMAIN_ACTIVE",optionalColumns:d.next().value.map(function(e){return{type:"CUSTOM_FIELD",customFieldId:Km(e.customFieldId)}})}}));this.teamExperimentalFields$=this.teamExperimentalFieldsFridge.watch(this.teamId);this.tableColumns$=le([this.teamExperimentalFields$,
this.phase$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;d=d==null?void 0:d.triage.find(function(k){return""+k.id===a.triageId});e=[].concat(q(nnd[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 Wj(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=Red("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
le([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(A(function(d){return fnd[d]}));this.subphaseDisplayName$=this.subphase$.pipe(A(function(d){return d?gnd[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(A(function(d){return d?"Showing issues in the "+gnd[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 Mz(!0,[]);this.punctualSubscriptions=new Rd;var c=p(lQ);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([End.LAST_30_DAYS.key])}));this.subscriptions.add(this.data.allIssues$.subscribe(function(d){for(var e=l(d.entries()),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;gWa(f,d)&&pnd.add(g.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){yPd(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=l(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 yPd=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new Rd;b=l(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$391:void 0},c=b.next())d.issueId$jscomp$391=c.value,Array.isArray(d.issueId$jscomp$391)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$391).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$391,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$391).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$391,{trustMemory:!1})}}(d))))};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 YJb=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},zPd=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:Km(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(Dld(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,Ind(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 GJb=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=au[c];e=b&&hnd[b];f=As.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=C({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,FJb,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(GJb(b))});Q(22,"All subphases");L();M(23,"hr");Qf(24,HJb,2,1,"button",14,Pf);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(D){u(c);return v(zPd(b,D))})("prevPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value-1);return v()})("nextPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value+1);return v()});
L();K(36,"div",16)(37,"a",17);M(38,"mat-icon",18);L();K(39,"a",19);M(40,"mat-icon",20);L()()();F(41,IJb,1,0,"mat-progress-bar",21);T(42,"async");K(43,"div",22)(44,"div",23);F(45,OJb,2,3);T(46,"async");F(47,RJb,1,5,"ng-container");T(48,"async");L();K(49,"b-resizable-sidebar",24);T(50,"async");N("widthChanged",function(D){u(c);D<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(D),Sed("triage-sidebar-width")(D));return v()});E(51,XJb,2,3,"ng-template",25);L()()();E(52,cKb,2,1,"ng-template",
null,1,Og)}if(a&2){var d,e,f,g;a=sg(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",Fg(U(14,34,b.subphaseSelectorTooltip$)))("matMenuTriggerFor",a);B(3);Ag(U(17,
36,b.subphaseDisplayName$));B(8);Rf(U(26,38,b.subphases$));B(3);yg("invisible",!((e=U(28,40,b.issueIdsToRender$))==null?0:e.length));var k,m,r,w;I("showPageSizeSelector",!0)("startIndex",(k=U(29,42,b.startIndex$))!=null?k:1)("endIndex",(m=U(30,44,b.endIndex$))!=null?m: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:[ky,Yy,nC,jC,lC,fL,nL,mL,eK,pH,nH,sH,Zwd,vJ,FK,DA,vU,yT,d_,r_,VY,s_,xPd,AU,zU,
JY,ly],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=Gc({});var X1=function(){};X1.\u0275fac=function(a){return new (a||X1)};X1.\u0275mod=cf({type:X1});X1.\u0275inj=Gc({imports:[cP,MU,pC,GK,W1]});var APd=function(){};APd.\u0275fac=function(a){return new (a||APd)};APd.\u0275mod=cf({type:APd});APd.\u0275inj=Gc({imports:[cP,pC,fK,GK]});var BPd=function(){};BPd.\u0275fac=function(a){return new (a||BPd)};BPd.\u0275mod=cf({type:BPd});BPd.\u0275inj=Gc({imports:[cP,OE,pC,pL,fK,VX,HU,GK,wU,MU,Z0,hNd,OU,APd,PE,k1,DU,kU,X1]});var Y1=function(){var a=this;this.teamsService=p(UQ);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new hQ;this.onEmptyQuery=new hQ;this.searchQuery$=new sf;this.teamSuggestions$=this.searchQuery$.pipe(lf(300),pf(),Af(function(b){return WQ(a.teamsService,b)}),A(function(b){return b.map(function(c){return new iKb(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=C({type:Y1,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&jg($X,7);if(a&2){var c;ng(c=og())&&(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=sg(2);return v(b.search(d.value))})("input",function(){u(c);var d=sg(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))});Qf(5,lKb,7,7,"mat-option",5,Pf);T(7,"async");L()()}a&2&&(a=sg(4),B(),I("placeholder",Fg(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),Rf(U(7,8,b.teamSuggestions$)))},dependencies:[bY,ZX,xA,$X,FK,DA,Ij,qE,xE,ly,sy],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 iKb=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 CPd(a.slice(0,e+1),b.slice(0,e+1))})},CPd=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(YQ);this.teamsService=p(UQ);this.starredTeamsService=p(aS);this.teamUserActivity=p($R);this.selectedTeam$=new Wj(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=l(b);var c=b.next().value;b.next().value.forEach(function(d){c.has(d)||
c.set(d,{id:d,triage:[{id:0}],playbooks:[]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(A(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=le([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;c=new Set(c);b=l(b);for(var d=b.next();!d.done;d=b.next())c.add(d.value.teamId);return[].concat(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 tVa(b,function(c){return to(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(Af(function(b){return Bld(a.teamsService,b).pipe(A(function(c){var d=new Map;c=l(c);for(var e=c.next();!e.done;e=c.next()){var f=
l(e.value);e=f.next().value;f=f.next().value;d.set(e,f.name)}return d}))}));this.starredTeamIdToTriageIds$=this.starredTriageViews$.pipe(A(function(b){var c=new Map;b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.teamId;e=e.triageId;var f=void 0,g=(f=c.get(d))!=null?f:new Set;g.add(e);c.set(d,g)}return c}));this.defaultTriageViewList$=le([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(A(function(b){var c=l(b);var d=c.next().value;
b=c.next().value;var e=c.next().value;c=c.next().value;c=new Set(c);var f=[];d=l(d);for(var g=d.next();!g.done;g=d.next()){var k=l(g.value);g=k.next().value;var m=k=k.next().value;k=c.has(g);var r=void 0,w=(r=b.get(g))!=null?r:g;m=l(m);for(r=m.next();!r.done;r=m.next()){var x=l(r.value);r=x.next().value;x=x.next().value;var D=void 0,H=void 0,J=(H=(D=e.get(g))==null?void 0:D.has(r))!=null?H:!1;if(k||J)D=void 0,f.push({teamId:g,teamName:w,triageId:r,triageName:Qr(w,x),scope:(D=x.scope)!=null?D:""})}}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=l(b);var c=b.next().value;b=b.next().value;return c===null?[]:b===void 0?[{teamId:c.id,teamName:c.name,triageId:"0",triageName:Qr(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:Qr(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=le([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Y(Z1,Z);Z1.\u0275dir=Z.\u0275dir;Z1.prototype.getTriageLink=function(a,b){return As.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,Ind(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=C({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,mKb,1,0),T(11,"async"),Nf(12,nKb,1,0),L(),F(13,AKb,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:[fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,iU,JY,Y1,ly],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=Gc({imports:[cP,dY,yL,GK,OE]});var DPd=function(){};DPd.\u0275fac=function(a){return new (a||DPd)};DPd.\u0275mod=cf({type:DPd});DPd.\u0275inj=Gc({imports:[cP,pC,XX,GK,kU,X1,eX,a2]});var EPd=function(){};EPd.\u0275fac=function(a){return new (a||EPd)};EPd.\u0275mod=cf({type:EPd});EPd.\u0275inj=Gc({imports:[cP,wPd,BPd,DPd,BNd]});var FPd=function(){this.roundCorners=this.showDividers=!1};FPd.\u0275fac=function(a){return new (a||FPd)};
FPd.\u0275cmp=C({type:FPd,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),fg(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(lS);this.activeSession=p(Qu);this.STATUS_JS_FULL_TEXT=Sm;this.STATUSES=zod;this.SEVERITIES_VALUES=Dod;this.PRIORITIES_VALUES=yod;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new hQ;this.onQuickBulkEdit=new hQ;this.onBulkEditIssueRelation=new hQ;this.onBulkMarkIssueRead=new hQ;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=C({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,BKb,4,2,"button",9);K(2,"button",10);N("click",function(){u(c);return v(b.bulkMarkIssueRead())});Q(3);L();F(4,CKb,4,2,"button",9);F(5,DKb,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,EKb,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);Qf(46,FKb,2,1,"button",13,Pf);L();K(48,"mat-menu",null,2);Qf(50,GKb,2,1,"button",13,Pf);L();K(52,"mat-menu",null,3);Qf(54,HKb,2,1,"button",13,Pf);L();K(56,"mat-menu",null,4);bg(58);Qf(59,KKb,4,4,null,null,Pf);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=sg(45);var d=sg(49),e=sg(53),f=sg(57),g=sg(62),k=sg(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);Rf(b.PRIORITIES_VALUES);B(4);Rf(b.SEVERITIES_VALUES);B(4);Rf(b.STATUSES);B(4);a=cg(b.getIssueTypes());B();Rf(a)}},dependencies:[eK,pH,nH,sH,Yy,yT,FPd,nC,jC,rK,FK,DA],encapsulation:2,changeDetection:0});var GPd=function(){this.activeSession=p(Qu);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new hQ;this.flagAsSpamClicked=new hQ;this.isAnonymous=this.activeSession.isAnonymous()};GPd.\u0275fac=function(a){return new (a||GPd)};
GPd.\u0275cmp=C({type:GPd,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,NKb,8,4);a&2&&G(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[eK,pH,nH,sH,yT,nC,jC],encapsulation:2,changeDetection:0});var c2=function(){};c2.\u0275fac=function(a){return new (a||c2)};c2.\u0275mod=cf({type:c2});c2.\u0275inj=Gc({imports:[cP]});var d2=function(){};d2.\u0275fac=function(a){return new (a||d2)};d2.\u0275mod=cf({type:d2});d2.\u0275inj=Gc({imports:[fK,cP,MU,c2,pC,sK,GK]});var f2=function(){var a=this;this.activeSession=p(Qu);this.connectionChecker=p(HPd);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(){}),Nla())};f2.prototype.intercept=function(a,b){return this.activeSession.getFlag("enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?IPd(this,b,a):b.handle(a)};
var IPd=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){JPd(a,b,c,g).pipe(Bf(f)).subscribe(d)}}),f=new wf(1);return function(){f.next();e.unsubscribe()}})},JPd=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?fe(function(){return d}):a.connectionChecker.ok$.pipe(Af(function(e){return e?fe(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 Wj(!1)};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275prov=Fc({token:e2,factory:e2.\u0275fac,providedIn:"root"});var HPd=function(){var a=this;this.ngZone=p(Tg);this.ok$=new Vd(function(b){var c=ypb("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
HPd.\u0275fac=function(a){return new (a||HPd)};HPd.\u0275prov=Fc({token:HPd,factory:HPd.\u0275fac,providedIn:"root"});var KPd={provide:CDc,useExisting:f2,multi:!0};var LPd=function(){this.activeSession=p(Qu);this.ssoInterceptorState=p(e2);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};LPd.\u0275fac=function(a){return new (a||LPd)};
LPd.\u0275cmp=C({type:LPd,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,SKb,6,3,"b-callout",0),T(1,"async"));a&2&&G(U(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[JU,KU,nC,jC,ly],encapsulation:2,changeDetection:0});var MPd=function(){this.session=p(Qu);this.showHiringBanner=this.session.getFlag("showHiringBanner")&&this.session.isInternalSession()&&(this.session.getUserTypeLabel()==="UNRESTRICTED_FTE"||this.session.getUserTypeLabel()==="RESTRICTED_FTE")};MPd.\u0275fac=function(a){return new (a||MPd)};
MPd.\u0275cmp=C({type:MPd,selectors:[["b-hiring-banner"]],standalone:!1,features:[Ig([iQ])],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,TKb,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=Gc({imports:[cP]});var h2=function(){this.hotkeys=p(tU)};h2.prototype.ngOnInit=function(){this.hotkeys.pause()};h2.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};h2.\u0275fac=function(a){return new (a||h2)};
h2.\u0275cmp=C({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"),Qf(4,VKb,7,1,"thead",null,Pf),L()(),K(6,"mat-dialog-actions")(7,"button",1),Q(8,"Close"),L()());a&2&&(B(4),Rf(Rtd(b.hotkeys)))},
dependencies:[nC,jC,WB,YB,$B,ZB],encapsulation:2});var i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=cf({type:i2});i2.\u0275inj=Gc({imports:[cP,pC,cK]});var fu=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};fu.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};fu.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};fu.prototype.toString=function(){return this.toApiUrlParam()};var iu=function(a,b){this.fieldId=a;this.direction=b};iu.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};iu.prototype.toString=function(){return this.toApiUrlParam()};var NPd=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 Wj(this)},OPd=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=yCb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new NPd(d,a,b)};NPd.prototype.hasPreviousPage=function(){return this.params.page>1};NPd.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var PPd=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},QPd=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=PPd(a,c.issueId);e!==-1&&(e-=a.startIndex,xCb(a.issues[e],c,d))}a.changed$.next(a)},RPd=function(a,b,c,d){b=PPd(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)};NPd.prototype.clone=function(){var a=new NPd(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};da.Object.defineProperties(NPd.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(SP);this.hotlistApi=p(mP);this.paths=p(vW)};j2.prototype.create=function(a){return new SPd(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 SPd=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("ng"));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=yhb(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=OPd(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},TPd=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var l2=function(){this.$window=p(rR);this.searchResultsPageFetcherFactory=p(j2);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},VPd=function(a,b){var c=Ho();UPd(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},XPd=function(a){var b=Ho(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=WPd(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},YPd=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},ZPd=function(a,b){var c=Ho();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=Em(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 $Pd=function(a){a.currentResultsFetcher?k2(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){mn("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},WPd=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 iu(new fu(b.fieldId),b.direction)}));return a}return null},
aQd=function(a,b,c){b=Em(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},bQd=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=aQd(a,b,b.page),k2(a.currentResultsFetcher).catch(function(c){mn("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=aQd(a,b,b.page-1),ys(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:k2(c)}).catch(function(c){mn("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
TPd(a.currentResultsFetcher)&&(a.nextResultsFetcher=aQd(a,b,b.page+1),ys(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:k2(c)}).catch(function(c){mn("unexpected error fetching:",c)}))};
l2.prototype.setSearchParams=function(a){a.page=Gm(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("og");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&&Dm(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&Dm(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:YPd(this)}bQd(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var UPd=function(a){var b=Gm(""+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(rR);this.activeSession=p(Qu)};m2.prototype.setTitle=function(a){a=ju(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(bR);this.issueFullFridge=p(nQ);this.pageTitle=p(m2);this.accessIndicatorService=p(VW);this.newTitle$=this.paramsService.routeParams$.pipe(pf(Dm),Af(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=FWa(this.init)};Y(n2,Z);n2.\u0275dir=Z.\u0275dir;
n2.prototype.onRouteParamsChanged=function(a){return a.issueId?cQd(this,a.issueId):Fx};var cQd=function(a,b){return le([a.issueFullFridge.watch(b),jzd(a.accessIndicatorService,b).pipe(zf(void 0),jf(function(){return ee(void 0)}))]).pipe(zf([void 0,void 0]),A(function(c){c=l(c);var d=c.next().value;c=c.next().value;d=d==null?void 0:d.snapshot[0].title;if(!d)return"View issue";d=d+" ["+b+"]";if(c==null?0:c.displayText)d=d+" - "+c.displayText;return d}))};
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 gQd=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(dQd(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(),
eQd(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);dQd(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();eQd(this);fQd(this)};gQd.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
gQd.prototype.stop=function(){this.state=2;eQd(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 fQd=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)}};
gQd.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 eQd=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"},dQd=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};gQd.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var hQd=function(a){this.element=a;this.bugs=[]};hQd.prototype.start=function(){for(var a=this,b=0;b<3;b++)iQd(this);this.intervalSubscription=nia(1E4).subscribe(function(){iQd(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};hQd.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=l(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};var iQd=function(a){var b=new gQd(a.element);b.start();a.bugs.push(b)};var o2=function(){var a=this;this.ngZone=p(Tg);this.userPreferencesManager=p(nR);this.snackBar=p(uC);this.elementRef=p(Jd);this.bugAnimation=new hQd(this.elementRef.nativeElement);this.destroyed$=new wf(1);this.active$=new Wj(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(pf(),Bf(this.destroyed$)).subscribe(function(b){b?jQd(a):kQd(a)})};o2.prototype.ngOnInit=function(){document.visibilityState==="visible"&&lQd(this)};o2.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var lQd=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),lQd(this))};o2.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var kQd=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){mQd(a)});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},jQd=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})},mQd=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=C({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()},gha)},standalone:!1,decls:0,vars:0,template:function(){},
encapsulation:2});var nQd=function(){var a=this;this.userPreferencesManager=p(nR);this.activeSession=p(Qu);this.isEnabled$=this.userPreferencesManager.bugScreensaverPreferences$.pipe(A(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};nQd.\u0275fac=function(a){return new (a||nQd)};
nQd.\u0275cmp=C({type:nQd,selectors:[["bug-screensaver-manager"]],standalone:!1,decls:2,vars:3,template:function(a,b){a&1&&(F(0,YKb,1,0,"bug-screensaver"),T(1,"async"));a&2&&G(U(1,1,b.isEnabled$)?0:-1)},dependencies:[o2,ly],encapsulation:2});var p2=function(){};p2.\u0275fac=function(a){return new (a||p2)};p2.\u0275mod=cf({type:p2});p2.\u0275inj=Gc({imports:[cP,HU,WU,LU]});var oQd=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:""};oQd.\u0275fac=function(a){return new (a||oQd)};
oQd.\u0275cmp=C({type:oQd,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,aLb,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 pQd=function(){};pQd.\u0275fac=function(a){return new (a||pQd)};pQd.\u0275mod=cf({type:pQd});pQd.\u0275inj=Gc({imports:[cP]});var q2=function(){var a=this;this.paths=p(vW);this.context=p(cR);this.activeSession=p(Qu);this.componentFridge=p(YO);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=
l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return qQd(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){or("create","click",a)};
var qQd=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 m=l(k);k=m.next().value;m=m.next().value;return{name:Ebb(k),path:m}})};q2.\u0275fac=function(a){return new (a||q2)};
q2.\u0275cmp=C({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,cLb,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[xU,ly],encapsulation:2,changeDetection:0});var r2=function(){this.router=p(oF);this.location=p(hU)},rQd=function(a){var b=a.location.getUrl();$t(a.router,"/",{skipLocationChange:!0}).then(function(){return $t(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(hU);this.paths=p(vW);this.issuePagination=p(l2);this.sidebarItemFactory=p(sQd);this.appEvents=p(aP);this.analytics=p(lQ);this.currentUserBookmarksFridge=p(wP);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(mhd(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
tQd(a,b.hotlists);a.sidebarData.bookmarkGroups=uQd(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=tQd(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=uQd(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(nhd(this.currentUserBookmarksFridge).subscribe(function(b){b=vQd(a,b);a.sidebarData.userSearches=b;vba(a.userSavedSearches);yba(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(xP(this.currentUserBookmarksFridge).subscribe(function(b){wQd(a,
b);a.appEvents.sidebarUpdated.next()}))};Y(s2,Z);s2.\u0275dir=Z.\u0275dir;
var tQd=function(a,b){return b.map(function(c){return xQd(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},uQd=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new yQd(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},vQd=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 zQd(a.sidebarItemFactory,c)})},wQd=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 xQd(a.sidebarItemFactory,c)});vba(a.userHotlists);yba(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||(YPd(this.issuePagination),mxd(this.paths,a)&&rQd(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?pj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
t2.prototype.isEditable=function(){return AQd(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!AQd(this)&&this.starred};
var AQd=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},BQd=function(a,b){var c=oR(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},CQd=function(a,b){$r(a.butterBar,"Updating homepage...",0);rmd(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(nf(1)).subscribe(function(){$r(a.butterBar,"Homepage updated")})},DQd=function(a,b,c,d,e,f,g,k,m,r,w,x){t2.call(this,a,b,c,d,e,g,k,m);this.hotlistApi=
f;this.errorHandler=r;this.confirmationDialogService=w;this.appEvents=x;this.href=As.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Y(DQd,t2);h=DQd.prototype;h.isPreferredHomepage=function(){return BQd(this,"HOTLIST")};h.setAsPreferredHomepage=function(){CQd(this,"HOTLIST")};
h.archive=function(){var a=this;$r(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});$r(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;$r(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});$r(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Dh("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar()}})};
h.doUnstar=function(){var a=this;$r(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){$r(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var EQd=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(EQd,t2);EQd.prototype.isUnstarable=function(){return!1};
EQd.prototype.unstar=function(){};EQd.prototype.isPreferredHomepage=function(){return BQd(this,"SAVED_SEARCH")};EQd.prototype.setAsPreferredHomepage=function(){CQd(this,"SAVED_SEARCH")};
var yQd=function(a,b,c,d,e,f,g,k,m,r,w,x){t2.call(this,a,b,c,d,e,f,g,k);this.errorHandler=m;this.sidebarItemFactory=r;this.confirmationDialogService=w;this.appEvents=x;this.items=[];a=l(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(xQd(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(zQd(this.sidebarItemFactory,b))}this.items.sort(function(D,H){return D.name.localeCompare(H.name)})};Y(yQd,t2);h=yQd.prototype;
h.isPreferredHomepage=function(){return BQd(this,"BOOKMARK_GROUP")};h.setAsPreferredHomepage=function(){CQd(this,"BOOKMARK_GROUP")};
h.archive=function(){var a=this;$r(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});$r(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;$r(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});$r(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Dh("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar()}})};
h.doUnstar=function(){var a=this;$r(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){$r(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var sQd=function(){this.activeSession=p(Qu);this.userApi=p(qP);this.bookmarkGroupsApi=p(JO);this.hotlistApi=p(mP);this.errorHandler=p(wO);this.paths=p(vW);this.analytics=p(lQ);this.butterBar=p(gO);this.userPreferencesManager=p(nR);this.confirmationDialogService=p(iS);this.appEvents=p(aP)},xQd=function(a,b){return new DQd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},zQd=
function(a,b){return new EQd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};sQd.\u0275fac=function(a){return new (a||sQd)};sQd.\u0275prov=Fc({token:sQd,factory:sQd.\u0275fac,providedIn:"root"});var u2=function(){this.prefs=p(nR);this.expanded=!0;this.content=this.header=null;this.onExpand=new hQ};u2.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!tmd(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(smd(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=C({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,dLb,1,0,"ng-container",1),L(),F(2,fLb,1,1,"ng-container"));a&2&&(yg("opened",b.expanded)("closed",!b.expanded),Kf("aria-expanded",b.expanded),B(),I("ngTemplateOutlet",b.header),B(),G(b.expanded?2:-1))},dependencies:[ky],encapsulation:2});var FQd=function(){return[]},v2=function(){var a=this;this.location=p(ki);this.starredTeamsService=p(aS);this.bLocation=p(hU);this.triageService=p(dS);this.sidebar=p(s2);this.routeParamsService=p(bR);this.teamExperimentalFieldsFridge=p(YQ);this.teamFridge=p(ZQ);this.ROUTES=As;this.ALL_PHASES=end;this.phaseToUrlSlug=au;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=l(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=l(b);b=c.next().value;c=c.next().value;return[].concat(q(b),[c]).filter(hn)}),A(function(b){return Iq(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 Jq(b.filter(hn))}),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 tVa(b,function(c){return to(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=le([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=[];d=l(d);for(var e=d.next();!e.done;e=
d.next()){e=e.value;var f=e.teamId,g=e.triageId,k=void 0,m=(k=b.get(f))==null?void 0:k.get(Number(g));m?(g=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:y8a(g,f,m)})):console.log("triage not found",f,g)}return c}))},pLb=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(As.viewTriage.makeHref(a,c,au[b],""))};v2.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(As.triageSettings.makeHref())};v2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};v2.\u0275fac=function(a){return new (a||v2)};
v2.\u0275cmp=C({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,tLb,2,1),T(1,"async"));if(a&2){var c,d;G((c=(d=U(1,1,b.triageSidebarEntries$))!=null?d:Jg(3,FQd))?0:-1,c)}},dependencies:[Yy,nC,lC,eK,pH,nH,oH,sH,u2,ly],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 GQd=function(){this.location=p(hU);this.analytics=p(lQ);this.paths=p(vW);this.sidebar=p(s2);this.bookmarkGroups=[];this.hotlists=[]};h=GQd.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(As.editHotlist.makeHref(a))};
h.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};h.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};GQd.\u0275fac=function(a){return new (a||GQd)};
GQd.\u0275cmp=C({type:GQd,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,JLb,7,2,"div");a&2&&G(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[Yy,nC,lC,eK,pH,nH,oH,sH,u2],encapsulation:2,changeDetection:0});var HQd=function(){this.admins=[]};HQd.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Mm(this.bookmarkGroup.adminUsers)};HQd.\u0275fac=function(a){return new (a||HQd)};
HQd.\u0275cmp=C({type:HQd,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(),Ag(b.bookmarkGroup.name),B(3),S("ID: ",b.bookmarkGroup.bookmarkGroupId),B(2),Bg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),Ag(b.bookmarkGroup.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bookmark-group-card[_ngcontent-%COMP%]{max-width:450px}.bookmark-group-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.bookmark-group-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var IQd=["searchBox"],w2=function(){this.cdr=p(iQ,{self:!0});this.activeSession=p(Qu);this.userApi=p(qP);this.bookmarkGroupsApi=p(JO);this.hotlistApi=p(mP);this.paths=p(vW);this.analytics=p(lQ);this.errorHandler=p(wO);this.appEvents=p(aP);this.currentUserBookmarksFridge=p(wP);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new hQ;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&&JQd(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 JQd=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();ie(mhd(a.currentUserBookmarksFridge)).then(function(b){if(a.showGroups)for(var c=l(b.bookmarkGroups),d=c.next();!d.done;d=c.next()){d=d.value;d.starred&&a.favoriteBookmarkGroups.add(d.id);var e=void 0;d=l((e=d.sublinks)!=null?e:[]);for(e=d.next();!e.done;e=d.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}if(a.showHotlists)for(b=l(b.hotlists),c=b.next();!c.done;c=b.next())c=c.value,c.starred&&a.favoriteHotlists.add(c.id);
a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h=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=l(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var g=l(e),k=g.next();!k.done;k=g.next()){k=k.value;var m=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(m);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(m)}g=
l(f);for(k=g.next();!k.done;k=g.next())k=k.value,m=k.hotlistId,k.href=As.viewHotlist.makeHref(m),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(m);a.matches=[].concat(q(e),q(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};h.shouldShowStar=function(a){return this.allowStarring&&!Mm(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();JQd(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=C({type:w2,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(jg(IQd,5),jg($X,5));if(a&2){var c;ng(c=og())&&(b.searchBoxEl=c.first);ng(c=og())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},standalone:!1,features:[Ig([iQ])],decls:14,vars:5,consts:[["searchBox",""],["auto","matAutocomplete"],["itemHovercard",
"onedevHovercard"],[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder","Enter query","role","combobox",3,"ngModelChange","keydown.space","ngModel","matAutocomplete"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"bv2-hotlist-search-subtext"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred"],[3,"hotlist"],[3,"bookmarkGroup"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],
[3,"starClicked","starMessage","unStarMessage","starred"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"input",4,0);Eg("ngModelChange",function(d){u(c);Dg(b.query,d)||(b.query=d);return v(d)});N("ngModelChange",function(){u(c);return v(b.onQueryChange())})("keydown.space",function(d){u(c);return v(b.onSpace(d))});L();F(3,KLb,1,0,"b-spinner");K(4,"mat-autocomplete",5,1);N("optionSelected",function(d){u(c);b.itemSelect.emit(d.option.value);return v()});Qf(6,OLb,9,7,"mat-option",6,Pf);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=sg(5),B(),Cg("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),Rf(b.matches))},dependencies:[HQd,SZ,WK,dL,iU,JY,Ij,qE,xE,bY,ZX,xA,$X],encapsulation:2});var KQd=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new hQ};KQd.\u0275fac=function(a){return new (a||KQd)};
KQd.\u0275cmp=C({type:KQd,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&jg(hC,5);if(a&2){var c;ng(c=og())&&(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,PLb,3,4,"ng-template",null,0,Og));a&2&&(a=sg(3),I("xapInlineDialogClick",a),Kf("aria-label",b.ariaLabel))},dependencies:[Yy,eC,bC,FK,DA,hC,wL,w2],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var x2=function(){this.location=p(hU);this.analytics=p(lQ);this.paths=p(vW);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=C({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,QLb,3,1,"ng-template",null,0,Og)(5,eMb,1,1,"ng-template",null,1,Og),L()());if(a&2){a=sg(4);var b=sg(6);B(2);I("header",a)("content",b)}},dependencies:[Yy,KQd,nC,lC,eK,pH,nH,oH,sH,u2],encapsulation:2,changeDetection:0});var y2=function(){Z.call(this);var a=this;this.location=p(hU);this.activeSession=p(Qu);this.analytics=p(lQ);this.sidebar=p(s2);this.paths=p(vW);this.routerEvents=p(kQ);this.cdr=p(Px);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(As.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=C({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,fMb,3,1,"ng-template",null,0,Og)(5,nMb,1,1,"ng-template",null,1,Og),L()());if(a&2){a=sg(4);var b=sg(6);B(2);I("header",a)("content",b)}},dependencies:[Yy,KQd,nC,lC,eK,pH,nH,oH,sH,u2],encapsulation:2,changeDetection:0});var z2=function(){Z.call(this);var a=this;this.cdr=p(iQ,{self:!0});this.location=p(hU);this.savedSearchApi=p(uP);this.paths=p(vW);this.butterBar=p(gO);this.analytics=p(lQ);this.sidebar=p(s2);this.errorHandler=p(wO);this.routerEvents=p(kQ);this.confirmationDialogService=p(iS);this.appEvents=p(aP);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){LNd(this.mcPrefs,Dwb(a));this.location.setUrl(this.paths.home())};
var rMb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Dh("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){LQd(a,b)}})},LQd=function(a,b){var c=b.id;$r(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});$r(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=C({type:z2,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},standalone:!1,features:[Ig([iQ]),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,oMb,2,0,"ng-template",null,0,Og)(5,vMb,1,1,"ng-template",null,
1,Og),L()());if(a&2){a=sg(4);var b=sg(6);B(2);I("header",a)("content",b)}},dependencies:[Yy,nC,lC,eK,pH,nH,oH,sH,u2],encapsulation:2,changeDetection:0});var MQd=function(){};MQd.\u0275fac=function(a){return new (a||MQd)};
MQd.\u0275cmp=C({type:MQd,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(Tg);this._elementRef=p(Jd);this._ariaDescriber=p(uz);this._renderer=p(fi);this._animationsDisabled=pi();this._idGenerator=p(di);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=p(ez);this._document=p(Uh);var a=p(bi);a.load(MQd);a.load(fz)};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()}wz(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){wz(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?vz(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
h._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;(a=this._badgeElement)==null||a.appendChild(this._inlineBadgeDescription)};h._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
h._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};h._clearExistingBadges=function(){for(var a=l(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
da.Object.defineProperties(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&&yg("mat-badge-overlap",b.overlap)("mat-badge-above",b.position.indexOf("below")===-1)("mat-badge-below",b.position.indexOf("below")!==-1)("mat-badge-before",b.position.indexOf("before")!==-1)("mat-badge-after",b.position.indexOf("before")===-1)("mat-badge-small",b.size==="small")("mat-badge-medium",b.size==="medium")("mat-badge-large",b.size==="large")("mat-badge-hidden",b.hidden||
!b.content)("mat-badge-disabled",b.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",bh],disabled:[2,"matBadgeDisabled","disabled",bh],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",bh]}});var B2=function(){var a=this;this.cdr=p(iQ,{self:!0});this.activeSession=p(Qu);this.butterBar=p(gO);this.appSearchState=p(xT);this.paths=p(vW);this.userPreferencesManager=p(nR);this.sidebar=p(s2);this.location=p(ki);this.appEvents=p(aP);this.missionControlPrefs=p(q1);this.needsAttentionTaskFridge=p(IQ);this.bLocation=p(hU);this.ROUTES=As;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:Fsd(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:Hsd(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=As.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||VN).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 hQ;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 Dm(d,e)}),Af(function(d){var e=l(d);d=e.next().value;var f=e.next().value;
e=e.next().value;f=f.map(function(g){return zr(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 zMb=function(a,b){$r(a.butterBar,"Updating homepage...",0);rmd(a.userPreferencesManager,{resourceType:b}).subscribe(function(){$r(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(As.triageSettings.makeHref())};
B2.\u0275fac=function(a){return new (a||B2)};
B2.\u0275cmp=C({type:B2,selectors:[["b-sidebar"]],standalone:!1,features:[Ig([iQ])],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,BMb,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,CMb,2,1,"button",10);T(11,"async");K(12,"mat-menu",null,0);E(14,DMb,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,EMb,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(),yg("selected",Gsd(b.appSearchState,b.userEmail)),B(),I("href",
b.assignedPath,Pe),B(3),G(U(11,29,b.isHomepageAssignedToMe$)?-1:10),B(5),yg("selected",b.appSearchState.isStarred()),B(),I("href",b.starredPath,Pe),B(3),yg("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),B(),I("href",b.ccdPath,Pe),B(3),yg("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),B(),I("href",b.collaborateOnPath,Pe),B(3),yg("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),B(),I("href",b.reportedPath,Pe),B(3),yg("selected",b.appSearchState.currentQuery===
Hsd(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,Yy,nC,lC,eK,pH,nH,oH,sH,A2,
v2,GQd,x2,y2,z2,ly],encapsulation:2});var NQd=function(){};NQd.\u0275fac=function(a){return new (a||NQd)};NQd.\u0275mod=cf({type:NQd});NQd.\u0275inj=Gc({imports:[cP]});var C2=function(){};C2.\u0275fac=function(a){return new (a||C2)};C2.\u0275mod=cf({type:C2});C2.\u0275inj=Gc({imports:[cP,NQd,N_,eL,kU,X1,QV,GK,OE,RV,dY]});var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=cf({type:D2});D2.\u0275inj=Gc({imports:[cP,yU]});var OQd=function(){};OQd.\u0275fac=function(a){return new (a||OQd)};OQd.\u0275mod=cf({type:OQd});OQd.\u0275inj=Gc({imports:[tz,Zy]});var E2=function(){};E2.\u0275fac=function(a){return new (a||E2)};E2.\u0275mod=cf({type:E2});E2.\u0275inj=Gc({imports:[D2,cP,C2,pC,fK,OQd,F0,uF,sK]});var PQd=function(){this.executor=p(oO)};PQd.\u0275fac=function(a){return new (a||PQd)};PQd.\u0275prov=Fc({token:PQd,factory:PQd.\u0275fac,providedIn:"root"});var F2=function(){Z.apply(this,arguments);this.dialogRef=p(SB);this.tosApi=p(PQd);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=C({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),
Eg("ngModelChange",function(c){Dg(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),Cg("ngModel",b.ackChecked),B(10),I("disabled",!b.ackChecked))},dependencies:[qE,xE,nC,jC,xL,rI,YB,$B,ZB],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(VB)};Y(G2,Z);G2.\u0275dir=Z.\u0275dir;G2.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&TB(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=C({type:G2,selectors:[["b-terms-of-service"]],standalone:!1,features:[Gf],decls:0,vars:0,template:function(){},encapsulation:2});var QQd=function(){};QQd.\u0275fac=function(a){return new (a||QQd)};QQd.\u0275mod=cf({type:QQd});QQd.\u0275inj=Gc({imports:[OE,cP,pC,yL,cK]});var H2=function(){};H2.\u0275fac=function(a){return new (a||H2)};H2.\u0275mod=cf({type:H2});H2.\u0275inj=Gc({imports:[cP,QQd]});var I2=function(){Z.apply(this,arguments);this.routerEvents=p(kQ);this.bLocation=p(hU);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 RQd=function(){this.$window=p(rR);this.activeSession=p(Qu);this.faviconUrl=this.defaultFaviconUrl=Bh("https://www.gstatic.com/buganizer/img/v4/favicon.png")},SQd=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=b==null?void 0:b.href;a.faviconUrl=c?Bh(c):a.defaultFaviconUrl;c=a.activeSession.getTracker();var d;if(c==null?0:(d=c.branding)==null?0:d.logoUrl){var e;a=Bh(c==null?void 0:(e=c.branding)==null?void 0:e.logoUrl)}else a=a.faviconUrl;e=a;if(b&&b.href!==
e.toString())if(e instanceof vh)b.href=xh(e).toString(),b.rel="icon";else{if(TFc.indexOf("icon")===-1)throw Error("$a`icon");e=Ch(e);e!==void 0&&(b.href=e,b.rel="icon")}};RQd.\u0275fac=function(a){return new (a||RQd)};RQd.\u0275prov=Fc({token:RQd,factory:RQd.\u0275fac,providedIn:"root"});var TQd=Ted("edited-ids"),UQd=LWa("edited-ids"),VQd=Ted("viewed-ids"),WQd=LWa("viewed-ids"),XQd=function(){this.appEvents=p(aP);this.stop$=new sf;this.edited=new BGd(50);this.viewed=new BGd(50)},YQd=function(a){EGd(a.viewed,WQd());EGd(a.edited,UQd());a.appEvents.issueViewed.pipe(Bf(a.stop$)).subscribe(function(b){CGd(a.viewed,b);VQd(DGd(a.viewed))});a.appEvents.issueEdited.pipe(Bf(a.stop$)).subscribe(function(b){CGd(a.edited,b);TQd(DGd(a.edited))})};XQd.\u0275fac=function(a){return new (a||XQd)};
XQd.\u0275prov=Fc({token:XQd,factory:XQd.\u0275fac,providedIn:"root"});var ZQd=/^\s*[^:/?#]+:/i,$Qd=/^#/i,K2=function(){var a=this;this.bLocation=p(hU);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"))&&!ZQd.test(c))if($Qd.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 aRd=[],bRd=!1,cRd=function(){this.destroyRef=p(Ee);this.hatsService=p(eY);this.iconRegistry=p(Xy);this.session=p(Qu);this.appHistory=p(I2);this.routePerformance=p(M1);this.linkClickHandler=p(K2);this.issueLru=p(XQd);this.faviconService=p(RQd);this.imageUrls=p(gW);this.ngZone=p(Tg);this.peoplekitService=p(SW)},dRd=function(a){bRd||(a.iconRegistry._addSvgIconSetConfig("",new XDc(a.imageUrls.ICON_URL,null)),bRd=!0);if(a.session.isInternalSession()){uAd(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(nf(1),
fj(a.destroyRef)).subscribe();for(var b=l(aRd),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;a.session.getFlag(c.flagName)&&uAd(a.hatsService,d).pipe(nf(1),fj(a.destroyRef)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();a.destroyRef.onDestroy(function(){a.linkClickHandler.uninstall()});YQd(a.issueLru);SQd(a.faviconService);a.ngZone.runOutsideAngular(function(){a.peoplekitService.peopleStore.warmUpCache()})};
cRd.\u0275fac=function(a){return new (a||cRd)};cRd.\u0275prov=Fc({token:cRd,factory:cRd.\u0275fac,providedIn:"root"});var HMb=0;var eRd=HWa("blinkers-activated"),fRd=Jo("blinkers-activated"),gRd=Jo("log-xhrs-to-console"),hRd=HWa("log-xhrs-to-console"),iRd=IMb("debug-dom-mutation","var(--c400)"),jRd=IMb("debug-ng-zone","var(--red-400)"),kRd=IMb("debug-xhr","var(--green-500)",1200),lRd=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;HMb++;var d=156;d+=(HMb-1)*12;return function(e,f){f=f===void 0?b:f;var g,k=(g=document.getElementById(a))!=null?g:FMb(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(gQ);this.userActivity=p(jQ);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=!gRd(),hRd(b),b?mRd(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()&&nRd(this)};L2.prototype.ngOnDestroy=function(){oRd(this)};L2.prototype.isEnabled=function(){return fRd()};L2.prototype.enable=function(){this.isEnabled()||(eRd(!0),nRd(this))};L2.prototype.disable=function(){eRd(!1);oRd(this)};
var nRd=function(a){a.activityMonitor.dom$.pipe(Bf(a.destroyed$)).subscribe(function(){return void iRd()});Yid(a.activityMonitor);a.activityMonitor.cdr$.pipe(Bf(a.destroyed$)).subscribe(function(){return void jRd()});a.activityMonitor.xhr$.pipe(Bf(a.destroyed$)).subscribe(function(){kRd();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 lRd(b)});
document.addEventListener("click",a.onAnyClick);gRd()&&mRd(a)},oRd=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},mRd=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=Pm(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(aP);this.ngZone=p(Tg);this.window=p(rR);this.buganizerBlinkers=p(L2);this.currentUser=p(M2);this.routeParamsService=p(bR);this.userPreferencesManager=p(nR);this.router=p(oF);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.starredTeamsService=p(aS);this.teamsService=p(UQ);this.fridges=[p(CO),p(HO),p(KO),p(NO),p(SO),p(YO),p(dP),p(wP),p(BP),p(CP),p(TP),p(VP),p(WP),p(rP),p($P),p(dQ),p(nQ),p(pQ),p(tQ),p(HQ),p(IQ),p(JQ),
p(MQ),p(NQ),p(vP),p(QQ),p(XQ),p(YQ),p(ZQ),p(aR)];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 UMb(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:Wid,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:Ued("debug-logging"),toggleOptOutExperiments:Ued("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,setFlagOverrideForOneDay:PWa,
clearFlagOverride:QWa,clearAllFlagOverrides:MWa,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return mo()},get initialPrefs(){return mo().userPreferences},get currentPrefs(){return oR(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(Ped.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 Rfd=!Rfd},setTrackerOverride:function(c){XMb(String(c),1)},clearTrackerOverride:function(){XMb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},
getTeamExperiments:function(c){return Cld(a.teamsService,c)},updateTeamExperiments:function(c){return Dld(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(Vj);this.router=p(oF);this.hideAppChrome=ah.apply(null,[function(){if(a.router.lastSuccessfulNavigation()!==null){var b,c=(b=a.activatedRoute.snapshot.firstChild)==null?void 0:b.routeConfig;return!(!c||!c.hideAppChrome)}}].concat(q([])))};O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275prov=Fc({token:O2,factory:O2.\u0275fac,providedIn:"root"});var pRd=function(a){this.delegate_=a};pRd.prototype.getDelegate=function(){return this.delegate_};var qRd=function(a){this.delegate_=a;this.target_=null};Y(qRd,pRd);qRd.prototype.getType=function(){return this.getDelegate().xa};var rRd=function(a){this.delegate_=a};Y(rRd,pRd);h=rRd.prototype;h.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ra,new qRd(f,e))},c)};h.listenOnce=function(){throw Error("pg");};h.unlisten=function(){throw Error("pg");};h.unlistenByKey=function(){throw Error("pg");};h.dispatchEvent=function(){throw Error("pg");};h.removeAllListeners=function(){throw Error("pg");};h.getParentEventTarget=function(){throw Error("pg");};
h.fireListeners=function(){throw Error("pg");};h.getListener=function(){throw Error("pg");};h.hasListener=function(){throw Error("pg");};rRd.prototype[LHc]=!0;var sRd=function(a){this.delegate_=a};Y(sRd,rRd);sRd.prototype.getHeight=function(){return this.getDelegate().pa()};sRd.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};sRd.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};var tRd=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Y(tRd,pRd);tRd.prototype.then=function(a,b,c){var d;a&&(d=uRd(this,a));this.getDelegate().aa(d,b,c)};var uRd=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,pRd);P2.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new tRd(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 vRd=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(oF);this.window=p(rR)};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,vRd(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new tRd(b.getDelegate().bf(),sRd));b.barPromise_.then(d,e)})).then(function(d){wRd(a,d)}))})};var wRd=function(a,b){a.router.events.pipe(we(M4a),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(bR);this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.handlers$=this.paramsService.routeParams$.pipe(pf(Dm),Af(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=FWa(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(kQ);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 xRd=["leftSidebar"],yRd=function(){var a=this;this.hideAppChromeHelper=p(O2);this.renderer=p(fi);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")}})};yRd.\u0275fac=function(a){return new (a||yRd)};
yRd.\u0275cmp=C({type:yRd,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,YMb,2,0,"div",0)(1,ZMb,2,0,"div",0)(2,$Mb,0,0);if(a&2){var c;G((c=b.hideAppChrome())===!0?0:c===!1?1:2)}},dependencies:function(){return[aF,T2]},encapsulation:2});
var T2=function(){Z.call(this);var a=this;this.appInitializer=p(cRd);this.appSearchState=p(xT);this.appEvents=p(aP);this.performanceToClearcut=p(Uid);this.window=p(rR);this.issueComments=p(xS);this.oneGoogleBar=p(Q2);this.scrollTiming=p(S2);this.pageTitleUpdaterService=p(n2);this.pageLoadOptimizerService=p(R2);this.bedbugService=p(N2);this.userActivity=p(jQ);this.bLocation=p(hU);this.reloadService=p(r2);this.activeSession=p(Qu);this.hotkeys=p(tU);this.paths=p(vW);this.userPrefs=p(nR);this.issuePagination=
p(l2);this.userFeedback=p(TY);this.matDialogService=p(VB);this.renderer=p(fi);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();dRd(this.appInitializer);this.bedbugService.install();this.userActivity.install();Vid(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=fNb(r.density);r!==a.densityClass&&(a.renderer.addClass(document.body,r),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=r)});this.subscriptions.add(Lsd(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:[ds("2"),mab()],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:[es("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[es("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:Fsd(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:Hsd(this.activeSession.getUserEmail())}),g=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),m=this.paths.listIssues({q:"vote:true"});b.push({keys:[es("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},
{keys:[es("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[es("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(g)}},{keys:[es("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[es("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.bLocation.setUrl(m)}},{keys:[es("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:["?",lab("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(h2,{minWidth:512})}});this.subscriptions.add(uU(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();g4a()&&(Gid!=null&&Gid.disconnect(),Gid=new q4a.PerformanceObserver(v4a),Gid.observe({entryTypes:["measure"]}));setTimeout(WKb,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 dNb=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=mxd(this.paths,a);YPd(this.issuePagination);b&&rQd(this.reloadService);this.bLocation.setUrl(a)};var aNb=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=C({type:T2,selectors:[["app-root-body"]],viewQuery:function(a,b){a&1&&jg(xRd,5);if(a&2){var c;ng(c=og())&&(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,cNb,4,2,"div",1),M(3,"b-sso-expired-callout-outlet"),K(4,"div",2),F(5,eNb,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[aF,nQd,oQd,MPd,AU,B2,G2,LPd]},encapsulation:2});var zRd=function(){};zRd.\u0275fac=function(a){return new (a||zRd)};zRd.\u0275mod=cf({type:zRd});zRd.\u0275inj=Gc({imports:[cP,p2,LU,pQd,pC,g2,i2,DU,E2,H2]});var U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=cf({type:U2});U2.\u0275inj=Gc({imports:[cP]});var ARd=function(){};ARd.\u0275fac=function(a){return new (a||ARd)};ARd.\u0275mod=cf({type:ARd});ARd.\u0275inj=Gc({imports:[cP,pC,cK,BK,WU,U2]});var V2=function(){};V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=cf({type:V2});V2.\u0275inj=Gc({imports:[xV,GV,pC,cP]});var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=cf({type:W2});W2.\u0275inj=Gc({imports:[cP,fK,sK,zK,MU,pC,SE,yL,OE,V2]});var BRd=function(){};BRd.\u0275fac=function(a){return new (a||BRd)};BRd.\u0275mod=cf({type:BRd});BRd.\u0275inj=Gc({imports:[ty]});var CRd=function(){};CRd.\u0275fac=function(a){return new (a||CRd)};CRd.\u0275mod=cf({type:CRd});CRd.\u0275inj=Gc({imports:[ty,bJ,MId]});var X2=function(){};X2.\u0275fac=function(a){return new (a||X2)};X2.\u0275mod=cf({type:X2});X2.\u0275inj=Gc({imports:[ty,$y,bJ,OE,BRd,CRd,QX]});var DRd=function(){};DRd.\u0275fac=function(a){return new (a||DRd)};DRd.\u0275mod=cf({type:DRd});DRd.\u0275inj=Gc({imports:[cP,cK,X2,W2,OE,V2,pC,GK]});var ERd=function(){};ERd.\u0275fac=function(a){return new (a||ERd)};ERd.\u0275mod=cf({type:ERd});ERd.\u0275inj=Gc({imports:[cP,GV,yL,pC,cK,oU,wX,kU,rV]});var FRd=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"]]),GRd=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),iNb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),jNb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),HRd=function(){this.$log=p(uO);this.activeSession=p(Qu);this.sessionIsInternal=this.activeSession.isInternalSession()};HRd.\u0275fac=function(a){return new (a||HRd)};HRd.\u0275prov=Fc({token:HRd,factory:HRd.\u0275fac,providedIn:"root"});var lNb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var IRd=new ed("GM2_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var JRd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};JRd.\u0275fac=function(a){return new (a||JRd)(Ye(IRd))};JRd.\u0275dir=df({type:JRd,selectors:[["mat-paginator"]],hostAttrs:[1,"gmat-mdc-paginator"],standalone:!1});var KRd=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}};KRd.\u0275fac=function(a){return new (a||KRd)};KRd.\u0275prov=Fc({token:KRd,factory:KRd.\u0275fac,providedIn:"root"});var LRd=new ed("MAT_PAGINATOR_DEFAULT_OPTIONS"),Y2=function(){var a=this;this._intl=p(KRd);this._changeDetectorRef=p(Px);this._pageSizeLabelId=p(di).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 gj;this.initialized=this._initializedStream;var b=this._intl,c=p(LRd,{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 ch(b,0)});this._updateDisplayedPageSizeOptions()}}});Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=C({type:Y2,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ch],length:[2,"length","length",ch],pageSize:[2,"pageSize","pageSize",ch],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",bh],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",bh],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",bh]},outputs:{page:"page"},exportAs:["matPaginator"],
decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button",
"matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],
["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass",
"disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled",
"disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,rNb,5,4,"div",3),K(3,"div",4)(4,"div",5),Q(5),L(),F(6,sNb,3,5,"button",6),K(7,"button",7),N("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),Bd(),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())}),Bd(),K(11,"svg",8),M(12,
"path",11),L()(),F(13,tNb,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:[cE,cI,xA,lC,DA],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 MRd=function(){this.paths=p(vW);this.ROUTES=As;this.children=[];this.onVisit=new hQ;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};MRd.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};MRd.\u0275fac=function(a){return new (a||MRd)};
MRd.\u0275cmp=C({type:MRd,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,uNb,1,3,"mat-paginator",1),K(1,"ul",2),Qf(2,vNb,6,4,"li",null,Pf),
L());a&2&&(G(b.children.length>b.pageSize?0:-1),B(2),Rf(b.childrenOnPage))},dependencies:[WK,dL,bW,JRd,Y2],encapsulation:2});var NRd=function(){};NRd.\u0275fac=function(a){return new (a||NRd)};NRd.\u0275mod=cf({type:NRd});NRd.\u0275inj=Gc({imports:[mC,eI,EA,Y2]});var ORd=function(){};ORd.\u0275fac=function(a){return new (a||ORd)};ORd.\u0275mod=cf({type:ORd});ORd.\u0275inj=Gc({providers:[aud],imports:[NRd]});var Z2=function(){};Z2.\u0275fac=function(a){return new (a||Z2)};Z2.\u0275mod=cf({type:Z2});Z2.\u0275inj=Gc({imports:[cP,eL,R0,ORd]});var PRd=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new hQ;this.onClickCopyIssueShortLinks=new hQ;this.onClickCopyAsIssueSearch=new hQ};PRd.\u0275fac=function(a){return new (a||PRd)};
PRd.\u0275cmp=C({type:PRd,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,wNb,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=sg(6),B(3),I("matMenuTriggerFor",a),B(4),G(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[eK,pH,nH,sH,nC,jC,FPd,yT],encapsulation:2,changeDetection:0});lJa(nJa(mJa(function(a){this._elementRef=a})));q(["disabled","disableRipple","color","tabIndex"]);var QRd=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var RRd=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=RRd.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 SRd=Gua("state",[jj("void, hidden",ij({transform:"scale(0.8)",opacity:0})),jj("visible",ij({transform:"scale(1)",opacity:1})),kj("* => visible",hj("150ms cubic-bezier(0, 0, 0.2, 1)")),kj("* => void, * => hidden",hj("75ms cubic-bezier(0.4, 0.0, 1, 1)",ij({opacity:0})))]);var TRd=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(Uh);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-"+TRd++;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,eA);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(Tg),Ye(Jd),Ye(Px),Ye(Yh),Ye(QRd))};a3.\u0275dir=df({type:a3,viewQuery:function(a,b){a&1&&jg(gA,7);if(a&2){var c;ng(c=og())&&(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=$g({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:QRd,useValue:b}]});a=a.attach(new cA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new QRd,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new RRd(b,e);if(a instanceof gg)f.instance=b.attachTemplatePortal(new dA(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new cA(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 gi;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"):Yz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
h._createInjector=function(a,b){return $g({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:RRd,useValue:b},{provide:qC,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)(Zc(iA),Zc(sz),Zc(Ae),Zc(mz),Zc(b3,12),Zc(fKc))};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(RRd),Ye(qC))};
c3.\u0275cmp=C({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,xNb,3,1,"div",1));a&2&&(B(),Ag(b.data.message),B(),I("ngIf",b.hasAction))},dependencies:[fy,QI],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=C({type:e3,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&Rna("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(jna("@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,yNb,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:[gA],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:[SRd]}});var f3=function(){};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275mod=cf({type:f3});f3.\u0275inj=Gc({imports:[lA,hA,ty,bJ,Zy]});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)(Zc(iA),Zc(sz),Zc(Ae),Zc(mz),Zc(g3,12),Zc(fKc))};g3.\u0275prov=Fc({token:g3,factory:g3.\u0275fac,providedIn:f3});var URd={duration:1E3},VRd=new ed("xap-clipboard-snackbar-options"),WRd=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},XRd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1){b=Object.assign({},URd,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(WRd.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}}});WRd.\u0275fac=function(a){return new (a||WRd)(Ye(uR),Ye(g3),Ye(VRd,8))};WRd.\u0275dir=df({type:WRd,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&N("click",function(){return XRd(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var YRd=function(){};YRd.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};YRd.\u0275fac=function(a){return new (a||YRd)};
YRd.\u0275cmp=C({type:YRd,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&yg("xap-copy-button-unthemed",!b.color)},inputs:{copyText:"copyText",disabled:"disabled",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledBy:[0,"aria-labelledby","ariaLabelledBy"],ariaDescribedBy:[0,"aria-describedby","ariaDescribedBy"],tabIndex:[0,"tabindex","tabIndex"],color:"color"},decls:3,vars:7,consts:[["mat-icon-button","","type","button",3,"xapCopyToClipboard",
"disabled","color"],[1,"xap-clipboard-icon"]],template:function(a,b){a&1&&(K(0,"button",0)(1,"mat-icon",1),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:[ty,bJ,QI,$y,Yy,f3,WRd],encapsulation:2,changeDetection:0});var ZRd=function(){};ZRd.\u0275fac=function(a){return new (a||ZRd)};ZRd.\u0275mod=cf({type:ZRd});ZRd.\u0275inj=Gc({imports:[YRd]});var h3=function(){};h3.\u0275fac=function(a){return new (a||h3)};h3.\u0275mod=cf({type:h3});h3.\u0275inj=Gc({imports:[cP,fK,pC,c2,MU,ZRd]});var $Rd=function(){this.clipboard=p(uR);this.analytics=p(lQ);this.butterBar=p(gO);this.window=p(rR);this.activeSession=p(Qu);this.shortLinkPrefix=Hs(this.activeSession)?"b/":"b-qa/"},$Ob=function(a,b){a.clipboard.copy(b.join(", "));$r(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},aPb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));$r(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},bPb=function(a,b){b=As.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);$r(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};$Rd.\u0275fac=function(a){return new (a||$Rd)};$Rd.\u0275prov=Fc({token:$Rd,factory:$Rd.\u0275fac,providedIn:"root"});var i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=cf({type:i3});i3.\u0275inj=Gc({imports:[cP,eL,R0]});var aSd=function(){};aSd.\u0275fac=function(a){return new (a||aSd)};aSd.\u0275mod=cf({type:aSd});aSd.\u0275inj=Gc({imports:[cP,OE,pC,NU,yL,cK,yX]});var j3=function(){this.componentActions=p(eW);this.errorHandler=p(wO);this.cdr=p(iQ)};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&&bSd(a.selectedId);a.selectedId=b;if(a=cSd(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},dSd=function(a){if(!a.selectedId)return null;var b;return(b=a.components.find(function(c){return c.componentId===a.selectedId}))!=null?b:null},eSd=function(a){return a.selectedId?a.components.findIndex(function(b){return b.componentId===a.selectedId}):-1},bSd=function(a){a&&(a=cSd(a))&&a.setAttribute("aria-selected","false")},cSd=function(a){return a?document.getElementById("component-"+
a):null},fSd=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=C({type:j3,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var CNb=function(a){return{q:a}},l3=function(){j3.apply(this,arguments);this.paths=p(vW);this.ROUTES=As;this.includeArchived=!1;this.childClosed=new hQ;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&&gSd(this)};l3.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;k3(this,a);this.rootController.selectionChanged(this,a)};
var gSd=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=eSd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(bSd(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=eSd(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=dSd(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=dSd(this);a&&this.showChildren(a)};h.setSelected=function(a,b){fSd(b)||(k3(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};h.toggleChildrenForSelectedId=function(){var a=dSd(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=C({type:l3,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},standalone:!1,features:[Ig([iQ]),Gf,xx],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),Qf(1,JNb,19,11,"li",1,Pf),L());a&2&&(B(),Rf(b.components))},dependencies:[Yy,FK,DA,nC,jC,iU,aW,iW,l3],encapsulation:2});var NNb=function(a){return{q:a}},m3=function(){j3.call(this);this.paths=p(vW);this.hotkeys=p(tU);this.elementRef=p(Jd);this.ROUTES=As;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new hQ;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(){hSd(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&&iSd(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 iSd=function(a){te(0).pipe(Bf(a.destroyed$)).subscribe(function(){hSd(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&&bSd(b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};h.setSelected=function(a,b){fSd(b)||(k3(this,a),this.selectionChanged(null),n3(this),b.preventDefault(),b.stopPropagation())};
h.registerKeys=function(){var a=this;this.subscriptions.add(uU(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=dSd(this);a&&this.showChildren(a)}};
h.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=dSd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};h.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(dSd(this).showChildren=!1,this.cdr.detectChanges())};
h.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=eSd(this);hSd(this)&&a>=1&&(k3(this,this.components[a-1].componentId),n3(this))}};
h.selectNext=function(){if(hSd(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=eSd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(bSd(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=jSd(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=cSd(b||a.selectedId)){b=jSd(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},jSd=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},hSd=function(a){return!!(a.components&&a.components.length>0)};m3.\u0275fac=function(a){return new (a||m3)};
m3.\u0275cmp=C({type:m3,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},standalone:!1,features:[Ig([iQ]),Gf,xx],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),Qf(1,UNb,19,10,"li",1,Pf),L());a&2&&(B(),Rf(b.components))},dependencies:[Yy,FK,DA,nC,jC,iU,aW,iW,l3],encapsulation:2});var o3=function(){};o3.\u0275fac=function(a){return new (a||o3)};o3.\u0275mod=cf({type:o3});o3.\u0275inj=Gc({imports:[cP,GK,pC,kU,yX,SX]});var p3=function(){this.customFieldHelper=p(ES);this.customFields=this.selectedComponent=null;this.fieldSelected=new hQ;this.filter=function(){return!0}};p3.prototype.onComponentSelect=function(a){var b=this;(this.selectedComponent=a)?this.customFields=FS(this.customFieldHelper,a).filter(function(c){return b.filter(c)}).sort(function(c,d){return c.name.localeCompare(d.name)}):this.customFields=null};p3.\u0275fac=function(a){return new (a||p3)};
p3.\u0275cmp=C({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,ZNb,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:[EU,cE,VD,cI,xA,SD,rW],encapsulation:2});var q3=function(){};q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275mod=cf({type:q3});
q3.\u0275inj=Gc({imports:[cP,FU,WX]});var kSd=function(a){return{value:a}},r3=function(){this.isNonemptyJsonDateValue=bSa};r3.prototype.toDate=function(a){return Bm(a)};r3.\u0275fac=function(a){return new (a||r3)};
r3.\u0275cmp=C({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,$Nb,1,0,"ng-container",3),L(),E(2,aOb,0,0,"ng-template",null,0,Og)(4,nOb,8,8,"ng-template",null,1,Og));a&2&&(a=sg(5),B(),I("ngTemplateOutlet",b.customFieldValue==null?
null:a)("ngTemplateOutletContext",Kg(2,kSd,b.customFieldValue)))},dependencies:[ky,BV],encapsulation:2});var s3=function(){};s3.\u0275fac=function(a){return new (a||s3)};s3.\u0275mod=cf({type:s3});s3.\u0275inj=Gc({imports:[cP,GV]});var lSd=function(){this.documentationLinks=p(hS);this.userAccess=p(JP);this.errorHandler=p(wO);this.data=p(UB);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};lSd.prototype.ngOnInit=function(){mSd(this,this.issuesToFlag)};
var mSd=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:KP(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);mSd(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};lSd.\u0275fac=function(a){return new (a||lSd)};
lSd.\u0275cmp=C({type:lSd,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,oOb,3,2,"div"),F(13,qOb,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",pod(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:[nC,jC,WB,YB,$B,ZB],encapsulation:2});var t3=function(){this.cdr=p(iQ,{self:!0});this.dialogRef=p(SB);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=C({type:t3,selectors:[["b-bulk-move-dialog"]],standalone:!1,features:[Ig([iQ])],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:[nC,jC,YB,$B,ZB,rW],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 hQ;this.closePicker=new hQ;this.currentPickerDate=new Cm};u3.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new Cm(Kbb(this.sloEditTime)))!=null?b:void 0}};u3.prototype.setDate=function(a){this.currentPickerDate=a};u3.\u0275fac=function(a){return new (a||u3)};
u3.\u0275cmp=C({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:[Ig([iQ]),xx],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:[H_,tV],
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 nSd=function(){this.data=p(UB);this.dialogRef=p(SB);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};nSd.prototype.close=function(){this.dialogRef.close(this.commitEvent)};nSd.\u0275fac=function(a){return new (a||nSd)};
nSd.\u0275cmp=C({type:nSd,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:[YB,ZB,u3],encapsulation:2});var v3=function(){this.data=p(UB);this.dialogRef=p(SB);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=C({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,rOb,4,4,"div",1)(3,sOb,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:[Ij,qE,xE,nC,jC,YB,$B,ZB,fE,QE,cE,VD,SD,y_],encapsulation:2});var w3=function(){this.data=p(UB);this.dialogRef=p(SB);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=C({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),Eg("ngModelChange",function(c){Dg(b.addItems,c)||(b.addItems=c);return c}),L()(),M(10,"br"),K(11,"mat-form-field",2)(12,"mat-label"),Q(13),L(),K(14,"input",3),Eg("ngModelChange",function(c){Dg(b.removeItems,c)||(b.removeItems=c);return c}),L()()()(),K(15,"mat-dialog-actions")(16,"button",4),N("click",function(){return b.close()}),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(),Cg("ngModel",b.addItems),B(4),S(" ",b.fieldDisplayName," to Remove "),B(),Cg("ngModel",b.removeItems))},dependencies:[Ij,qE,xE,nC,jC,fE,QE,cE,VD,SD,YB,$B,ZB],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var oSd=["hotlistFilterInput"],pSd=["hotlistCreate"],qSd=["hotlistApply"],rSd=["hotlistLoad"],sSd=["menuitem"],x3=function(){Z.apply(this,arguments);this.liveAnnouncer=p(sz);this.butterBar=p(gO);this.userAccess=p(JP);this.analytics=p(lQ);this.activeSession=p(Qu);this.cdr=p(iQ,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new hQ;this.onApply=new hQ;this.onLoad=new hQ;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(){tSd(a)})};
x3.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};x3.prototype.ngOnChanges=function(){uSd(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;vSd(this)};
var uSd=function(a){var b={};Jta(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=l(a.choices),d=c.next();!d.done;d=c.next())d=d.value,b[d.hotlistId]=0,a.validHotlistIds.add(d.hotlistId);if(a.selectedHotlistIds){c=a.selectedHotlistIds.length;d=l(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=l(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=l(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Eba(a.choices,function(g,k){var m=b[g.hotlistId],r=b[k.hotlistId];return m>r?-1:m<r?1:wa(g.name,k.name)})}}};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(Fta(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];KP(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var tOb=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},uOb=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;BOb(a);a.close()},BOb=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},vSd=function(a){for(var b=a.filterText,c=!1,d=l(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=Zaa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=B$a(Aa(b))&&!!b&&!!a.onLoad},tSd=function(a){a.trigger.menuOpen||(uSd(a),a.filterText="",vSd(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},wSd=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+rba(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
x3.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",vSd(this),this.onCreate.emit({name:b,successCallback:function(c){uOb(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");$r(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";vSd(this);for(var c=Gm(b),d=l(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){uOb(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){uOb(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
x3.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!Dm(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var vOb=function(a,b){tOb(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},DSd=function(a,b){b=b===void 0?0:b;var c=xSd(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=uba(xSd(a),b),ySd(a),zSd(a,b)):a.focusedRowIndex<d&&a.canCreate?ASd(a,d):a.focusedRowIndex<d+1&&a.canLoad?BSd(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
CSd(a,d)},xSd=function(a){return a.menuItems.map(function(b){return b.nativeElement})},ESd=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)ASd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)BSd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)ASd(a,a.choices.length);else{var c=xSd(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=uba(xSd(a),b),ySd(a),zSd(a,b)):(a.focusedRowIndex=-1,zSd(a,null))}},zSd=function(a,b){a.filterElement&&sU(a.filterElement.nativeElement,b);a.focusFilterBox()},ASd=function(a,b){a.focusedRowIndex=b;sU(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},BSd=function(a,b){a.focusedRowIndex=b+1;sU(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},CSd=function(a,b){a.focusedRowIndex=b+2;sU(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},ySd=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=xSd(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},wOb=function(a){return a==null?"mixed":a.toString()},
xOb=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=C({type:x3,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(jg(sH,5),jg(oSd,5),jg(pSd,5),jg(qSd,5),jg(rSd,5),jg(sSd,5));if(a&2){var c;ng(c=og())&&(b.trigger=c.first);ng(c=og())&&(b.filterElement=c.first);ng(c=og())&&(b.createElement=c.first);ng(c=og())&&(b.applyElement=c.first);ng(c=og())&&(b.loadElement=c.first);ng(c=og())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},standalone:!1,features:[Ig([iQ]),Gf,xx],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);Eg("ngModelChange",function(d){u(c);Dg(b.filterText,d)||(b.filterText=d);return v(d)});N("ngModelChange",
function(){u(c);return v(vSd(b))})("mousedown",function(d){u(c);return v(d.stopPropagation())})("blur",function(){u(c);return v(tSd(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"?(DSd(b),d.preventDefault()):d.key==="ArrowUp"?(ESd(b),d.preventDefault()):d.key==="PageUp"?ESd(b,11):d.key==="PageDown"?DSd(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||
(vOb(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(),BOb(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&uOb(b,b.choices[b.focusedRowIndex]));return v()});L()()();M(11,"mat-divider");E(12,DOb,12,7,"ng-template",14);L()()}a&2&&(a=sg(5),I("matMenuTriggerFor",a)("disabled",b.isAnonymous),
B(2),Ag(wSd(b)),B(7),Cg("ngModel",b.filterText))},dependencies:[eK,pH,nH,oH,sH,nC,jC,Ij,qE,KE,xE,wA,FK,DA,rK,yT],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 HSd=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 zS;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";FSd(this,b);GSd(this,b)},FSd=function(a,b){var c=b[0],d=xo.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},ISd=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||po(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},GSd=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=ISd(c);a.selectedVerifiersStatus=ISd(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])};
HSd.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;JSd(this)};HSd.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var OOb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},JOb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?KSd(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||KSd(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),KSd(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},KSd=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},JSd=function(a){a.issueState===OSa&&a.commonAssignee?a.origCommonIssueState===OSa?a.issueState=PSa:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!ped.has(a.issueState)||(a.issueState=OSa)},LSd=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},MSd=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);LSd(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=C({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,IOb,11,0,"div",0);a&2&&G(b.externalWarnings.length>0?0:-1)},dependencies:[aW,WW],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=Gc({imports:[yX,HX]});var NSd=["dialog"],OSd=["statusForm"],A3=function(){Z.call(this);this.matDialog=p(VB);this.activeSession=p(Qu);this.hotkeys=p(tU);this.userPreferencesManager=p(nR);this.comment=new zS;this.save=new hQ;this.close=new hQ;this.externalWarnings=[];this.issueStates=ZSa();this.issueEditBuilder=null;this.FocusableField=PSd;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");var a,b;this.comment.formattingMode=(b=(a=oR(this.userPreferencesManager).commentFormattingPreferences)==
null?void 0:a.lastPublishMode)!=null?b:"UNSPECIFIED_FORMATTING_MODE"};Y(A3,Z);A3.\u0275dir=Z.\u0275dir;
A3.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new HSd(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&JOb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});TB(this.matDialogRef).pipe(Bf(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};
var WOb=function(a){var b;if(!(b=!a.statusForm||a.statusForm.invalid))a:{if(a.issueEditBuilder!=null){b=MSd(a.issueEditBuilder);var c=b.get("status");if(c==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(c==="VERIFIED"){b=!OOb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}return b||a.enableRecaptcha&&a.issueEditBuilder.recaptchaResponse===""?!1:!0},mu=function(a){if(WOb(a)){var b;(b=a.matDialogRef)==null||b.close(!0)}};
A3.prototype.setAssignee=function(a){this.issueEditBuilder&&(this.issueEditBuilder.commonAssignee=a,JSd(this.issueEditBuilder))};A3.\u0275fac=function(a){return new (a||A3)};
A3.\u0275cmp=C({type:A3,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&(jg(NSd,5),jg(OSd,5));if(a&2){var c;ng(c=og())&&(b.dialog=c.first);ng(c=og())&&(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,XOb,14,5,"ng-template",null,0,Og)},dependencies:[WB,YB,$B,ZB,yE,Ij,qE,rE,xE,vE,nC,jC,yT,eK,pH,nH,sH,q0,xY,y3,R_],encapsulation:2});
var PSd={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var B3=function(){this.dialogRef=p(SB);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=C({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),Eg("emailChange",function(c){Dg(b.reporter,c)||(b.reporter=c);return c}),L()()()(),K(8,"mat-dialog-actions")(9,"button",4),N("click",function(){return b.cancel()}),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),Cg("email",b.reporter),B(4),I("disabled",!b.enableSubmit()))},dependencies:[nC,jC,YB,
$B,ZB,cE,VD,SD,R_],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var QSd=["addCommentDialog"],C3=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(YO);this.cdr=p(iQ);this.activeSession=p(Qu);this.analytics=p(lQ);this.hotkeys=p(tU);this.componentActions=p(eW);this.issueTypeDialog=p(jS);this.copyIssueIdService=p($Rd);this.matDialog=p(VB);this.$log=p(uO);this.issuePicker=p(fY);this.userPreferencesManager=p(nR);this.accessIndicatorService=p(VW);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 hQ;this.onCreateHotlist=new hQ;this.onLoadHotlist=new hQ;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Y(C3,Z);C3.\u0275dir=Z.\u0275dir;var RSd=function(a){var b=new zS,c,d;b.formattingMode=(d=(c=oR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:c.lastPublishMode)!=null?d:"UNSPECIFIED_FORMATTING_MODE";return b};C3.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};
var SSd=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},YOb=function(a){return SSd(a)?"Mark as read":"Mark as unread"},nu=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};C3.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=l(a),c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value).hotlistId!=null||(d.hotlistId=[])}this.hotlistIdMatrix=a.map(function(e){return e.hotlistId});this.cdr.detectChanges();a=TSd(a);this.uniqueComponentIds$.next(a)};
var TSd=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.includes(c.componentId)||b.push(c.componentId);return b},USd=function(a){if(!jO(a.activeSession)){a.externalWarnings=[];var b=le(a.getSelectedIssues().map(function(e){return jzd(a.accessIndicatorService,e.issueId,e.componentId).pipe(A(function(f){return{issue:e,indicator:f}}))}));ie(b).then(function(e){e=l(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:g.issueId})}}).then(function(){a.cdr.detectChanges()});b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=l(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$614:void 0},c=b.next())d.id$jscomp$614=c.value,a.componentActions.get(d.id$jscomp$614).then(function(e){if(a.activeSession.isInternalSession()&&Ct(e)||iO(a.activeSession)&&Dt(e)){var f,g=(f=e.componentPathInfo)==null?void 0:f.componentPathName;a.externalWarnings.push({type:"component",path:g?g.join(" > "):e.componentId,
accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$614+".")}}(d))}};h=C3.prototype;h.getCommonEffortSpec=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
h.bulkEdit=function(a){switch(a){case "ASSIGNEE":VSd(this,null,0);break;case "COMPONENT":WSd(this);break;case "VERIFIER":VSd(this,null,1);break;case "REPORTER":XSd(this);break;case "CHANGELIST":YSd(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":ZSd(this);break;case "FOUND_IN":YSd(this,"foundInVersion","Found In");break;case "VERIFIED_IN":YSd(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":YSd(this,"targetedToVersion","Targeted To");break;case "COMMENT":$Sd(this);
break;case "SLO_START_TIME":aTd(this);break;case "ESTIMATED_EFFORT":bTd(this);break;case "CC":YSd(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;VSd(this,xo.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?cTd(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):cTd(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?cTd(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):cTd(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?cTd(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):cTd(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":VSd(this,TSa,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
h.bulkMarkIssueRead=function(){var a=SSd(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=nu(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"&&tod(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&tod(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},VSd=function(a,b,c){a.hasSelectedIssues()&&(USd(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},dTd=function(a){var b=a.onSave,c=b.emit,d=nu(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||JOb(e);e=l(MSd(e));for(var g=e.next();!g.done;g=e.next()){var k=l(g.value);g=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:g,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},
XSd=function(a){a.hasSelectedIssues()&&(USd(a),TB(a.matDialog.open(B3,{width:"400px"})).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&D3(a,"reporter",b)}),a.hotkeys.pause())},YSd=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(TB(a.matDialog.open(w3,{width:"400px",data:{fieldDisplayName:c}})).pipe(Bf(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&eTd(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},aTd=function(a){a.hasSelectedIssues()&&(TB(a.matDialog.open(nSd,
{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:nu(a),actions:c}]})}}),a.hotkeys.pause())},bTd=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}});TB(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:nu(a),actions:f}]})}});a.hotkeys.pause();ce(d)})},eTd=function(a,b,c,d,e){e=e===void 0?!1:e;c=hu(c);d=hu(d);var f=[],g=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(m){return ASa(m,g).map(function(r){return r.trim()})};ya(c)||(c=k(c),e&&(c=c.filter(function(m){return!isNaN(m)})),
f.push.apply(f,q(c.map(function(m){return{fieldName:b,value:m,actionType:"ADD"}}))));ya(d)||(d=k(d),f.push.apply(f,q(d.map(function(m){return{fieldName:b,value:m,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:nu(a),actions:f}]})},WSd=function(a){a.hasSelectedIssues()&&(TB(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:nu(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},fTd=function(a){a.hasSelectedIssues()&&(TB(a.matDialog.open(lSd,{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())},$Sd=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=RSd(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),TB(a.addCommentDialogRef).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&kpd(a.comment)&&D3(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),USd(a))},ePb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},ZSd=function(a){a.hasSelectedIssues()&&TB(a.matDialog.open(z_,{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=l(g);g=k.next().value;k=k.next().value;k!==c[g]&&(k?d.push(g):e.push(g),f++)});a=[];d.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:d.join(",")});e.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:e.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:nu(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var cTd=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:nu(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=C({type:C3,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(jg(QSd,5),jg(x3,5),jg(A3,5));if(a&2){var c;ng(c=og())&&(b.addCommentDialog=c.first);ng(c=og())&&(b.hotlistPicker=c.first);ng(c=og())&&(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=Gc({imports:[cP,fK,pC,SE,OE,zA,GK,sK,zK,MU]});var F3=function(){};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275mod=cf({type:F3});F3.\u0275inj=Gc({imports:[cP,cK,yX,OE,pC,MU,fK,u0,y0,z3,S_]});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});Cba(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=C({type:G3,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},standalone:!1,features:[Ig([iQ]),Gf,xx],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,ZOb,2,4,"b-app-bar-bulk-edit-menus",1);F(1,cPb,1,2,"b-copy-issue-id-button",2);F(2,dPb,2,2,"div",3);K(3,"b-app-bar-more-menu",4);N("flagAsSpamClicked",function(){u(c);return v(fTd(b))});L();K(4,"b-state-modal",5);N("save",function(){u(c);return v(dTd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();
E(5,hPb,11,6,"ng-template",null,0,Og)}a&2&&(G(b.hasSelectedIssues()?0:-1),B(),G(b.hasSelectedIssues()?1:-1),B(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),B(),I("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),B(),I("externalWarnings",b.externalWarnings))},dependencies:[GPd,b2,q0,PRd,x3,nC,jC,WB,YB,$B,ZB,A3,xY,y3,ly],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=Gc({imports:[d2,WU,u0,cP,yX,h3,E3,MU,pC,cK,F3,y0,z3]});var gTd=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},hTd=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=Om(c.assigneeUser)||"";this.verifier=Om(c.verifierUser)||
"";this.collaborators=Nm(c.collaboratorsUsers).map(Lm);this.staffing=c.staffing||null;this.cc=Nm(c.ccUsers).map(Lm);this.title=c.title||"";this.comment=c.comment||"";this.formattingMode=c.formattingMode?c.formattingMode:"PLAIN";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||!1;this.issueAccessLimitLevel=c.issueAccessLimitLevel||"LIMIT_NONE";this.customFieldValues=Object.create(null);a=l(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=
b;a=l(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=c.typedDefaultValue!=null?c.typedDefaultValue:{customFieldId:b})},jTd=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;iTd(a.type)?delete c.type:c.type=a.type;iTd(a.priority)?delete c.priority:c.priority=a.priority;iTd(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=Pm(a.assignee);c.verifierUser=Pm(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return Pm(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=NSa(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return Pm(f)});c.comment=a.comment;c.formattingMode=a.formattingMode;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];c.issueAccessLimitLevel=
a.issueAccessLimitLevel;for(var d=l(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!Jm(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:mn("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 iTd=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=l(this.collaborators),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)?this.collaboratorGroups.push(d):b.push(d);this.collaborators=b};
var BQb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},CQb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},kTd={value:"--",displayText:"--"};var lTd=new wl("M/d/yyyy"),J3=function(){this.dateFormatter=p(mS);this.boundValueChange=new hQ;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=uSa(this.boundValue);else{var b;a=(b=Bm(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=lTd.format(a);else{var d;a=(d=CSa(lTd.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=C({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:[u_],encapsulation:2});var mTd=["allocationInput"],nTd=["editAllocationBtn"],oTd=function(a,b){return b.columnDef},qPb=function(a,b){return b.value},FPb=function(a,b){return b.displayText},K3=function(){var a=this;this.subscriptions=new Rd;this.userToLossyEmail=Om;this.rows$=new Wj([]);this.trackBy=function(b,c){return c[0].user.user.emailAddress};this.tableColumns$=new Wj(["user","involvement","remove-user"]);this.timeboundQuarterColumns$=new Wj([]);this.Involvement=wdd;this.involvementOptions=Bod.map(function(b){return{value:b,
displayText:Fo[b]}});this.roleOptions$=new Wj([{value:void 0,displayText:"--"}].concat(q(Cod.map(function(b){return{value:b,displayText:UN[b]}}))));this.allocationUnderEdit=null;this.allocationInputChanges$=new Wj("");this.allocations=[];this.isAllowedToEdit=!1;this.updatedAllocations=new hQ;this.removedUser=new hQ;this.subscriptions.add(this.allocationInputChanges$.pipe(lf(250),pf()).subscribe(function(){LPb(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&&pTd(this)};
var pTd=function(a){var b=[],c=a.allocations.some(function(m){var r;return((r=m.allocation)==null?void 0:r.percentage)!==void 0});b=qTd(a,c);var d=[];d=b.length?b.map(function(m){return m.columnDef}):[c?"allocation":"involvement"];a.tableColumns$.next(["user","role","is-lead"].concat(q(d),["remove-user"]));a.timeboundQuarterColumns$.next(b);c=new Map;d=l(a.allocations.filter(function(m){var r;return(r=m.user)==null?void 0:r.user}));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,
k=(f=e.user)==null?void 0:(g=f.user)==null?void 0:g.emailAddress;k&&(f=void 0,g=(f=c.get(k))!=null?f:[],g.push(e),c.set(k,g))}c=[].concat(q(c.values()));a.rows$.next(c.map(function(m){var r=[];if(b.length){for(var w=l(b),x=w.next();!x.done;x=w.next()){x=x.value;var D=x.extractPlannedAllocation(m),H=void 0,J=void 0;((H=D.allocation)==null?void 0:H.startDate)===x.startDate&&((J=D.allocation)==null?void 0:J.endDate)===x.endDate?r.push(D):(J=H=void 0,r.push(Object.assign({},D,{allocation:Object.assign({},
D.allocation,{aggregationValue:(J=(H=D.allocation)==null?void 0:H.aggregationValue)!=null?J:0,startDate:nVa(x.startDate),endDate:nVa(x.endDate)})})))}m=r}return m}).sort(function(m,r){var w,x,D,H,J,O;m=(J=(w=m[0].user)==null?void 0:(x=w.user)==null?void 0:x.emailAddress)!=null?J:"";r=(O=(D=r[0].user)==null?void 0:(H=D.user)==null?void 0:H.emailAddress)!=null?O:"";return!m&&r?-1:!r&&m?1:m.localeCompare(r)}))},qTd=function(a,b){a=rTd(a);var c=a.earliestDate,d=a.latestDate;a=[];if(!c||!d)return a;var e=
oVa(c).quarterStartDate;c=oVa(d).quarterStartDate;d=e;for(e={};d<=c;e={quarterStartDate$jscomp$1:void 0,quarterEndDate$jscomp$1:void 0}){var f=oVa(d);e.quarterStartDate$jscomp$1=f.quarterStartDate;e.quarterEndDate$jscomp$1=f.quarterEndDate;f=e.quarterStartDate$jscomp$1.getFullYear();var g=Math.floor(e.quarterStartDate$jscomp$1.getMonth()/3)+1;a.push({columnDef:"q"+g+"-"+f,displayText:"Q"+g+" "+f,startDate:e.quarterStartDate$jscomp$1,endDate:e.quarterEndDate$jscomp$1,extractPlannedAllocation:function(k){return function(m){a:{var r=
k.quarterStartDate$jscomp$1,w=k.quarterEndDate$jscomp$1;if(r||w){for(var x=l(m),D=x.next();!D.done;D=x.next()){D=D.value;var H=void 0,J=void 0,O=((H=D.allocation)==null?0:H.startDate)?ro((J=D.allocation)==null?void 0:J.startDate):void 0;J=H=void 0;var R=((H=D.allocation)==null?0:H.endDate)?ro((J=D.allocation)==null?void 0:J.endDate):void 0;if(!O&&!R||!O&&w&&R>=w||!R&&r&&O<=r||O&&R&&r&&w&&O<=r&&R>=w){m=D;break a}}m=Object.assign({},m[0],{allocation:{involvement:"ZERO",aggregationValue:0,startDate:r?
nVa(r):void 0,endDate:w?nVa(w):void 0}})}else m=m[0]}return m}}(e),displayInvolvementAsPercentage:b});d=new Date(d.getFullYear(),d.getMonth()+3,1)}return a},rTd=function(a){var b=void 0,c=void 0;a=l(a.allocations);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=void 0,g=((e=d.allocation)==null?0:e.startDate)?ro((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)?ro((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}},yPb=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J;return y(function(O){f=Go(c);if(!f||!d&&e===void 0||((g=c.allocation)==null?void 0:g.involvement)===d&&((k=c.allocation)==null?void 0:k.percentage)===e)return a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0,O.return();m=b.filter(function(R){return Go(R)!==f});r=Eo(c);w=[].concat(q(a.allocations.filter(function(R){return Eo(R)!==r})),q(m));if(d&&d!=="INVOLVEMENT_UNSPECIFIED")x=
Object.assign({},c.allocation,{involvement:d,aggregationValue:0,percentage:void 0});else if(e!==void 0||d==="INVOLVEMENT_UNSPECIFIED")e!=null||(e=1),x=Object.assign({},c.allocation,{percentage:e,aggregationValue:0,involvement:void 0});w.push(Object.assign({},c,{allocation:x}));D=a.rows$.value.findIndex(function(R){return Eo(R[0])===r});H=b.findIndex(function(R){return Go(R)===f});J=H*a.rows$.value.length+D;a.updatedAllocations.emit(w);a.allocationUnderEdit=null;a.allocationFromInputPlain=void 0;setTimeout(function(){var R,
V;(R=a.editAllocationBtns.get(J))==null||(V=R.nativeElement)==null||V.focus()},0);ce(O)})},BPb=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=Fo[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)},ou=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?yPb(a,b,a.allocationUnderEdit,void 0,Math.round(d)/100):g&&yPb(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 Go(r)===
Go(a.allocationUnderEdit)}),BPb(a),b>=0){var k,m;(k=a.editAllocationBtns.get(b))==null||(m=k.nativeElement)==null||m.focus()}},LPb=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)))},
uPb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=Eo(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],m=void 0,Eo(k)===d&&!((m=k.user)==null||!m.isLead)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{isLead:c})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ce(r)})},pPb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=Eo(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],
m=void 0,Eo(k)===d&&((m=k.user)==null?void 0:m.role)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{role:c!=="JOB_ROLE_UNSPECIFIED"?c:void 0})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ce(r)})},TPb=function(a,b){var c,d,e,f,g;return y(function(k){c=Eo(b);if(!c)return k.return();d=[].concat(q(a.allocations)).filter(function(m){return Eo(m)!==c});if(d.length===a.allocations.length)return k.return();a.updatedAllocations.emit(d);g=(e=b.user)==null?void 0:(f=e.user)==null?
void 0:f.emailAddress;a.removedUser.emit(g);ce(k)})},CPb=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)+"% ("+(Fo[a.involvement]+")")}return""},rPb=function(a){var b;return(a=(b=a.user)==null?void 0:b.role)?ir[a]:""};
K3.\u0275fac=function(a){return new (a||K3)};
K3.\u0275cmp=C({type:K3,selectors:[["b-allocated-users-table"]],viewQuery:function(a,b){a&1&&(jg(mTd,5),jg(nTd,5,Jd));if(a&2){var c;ng(c=og())&&(b.allocationInputEl=c.first);ng(c=og())&&(b.editAllocationBtns=c)}},inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[xx],decls:31,vars:17,consts:[["editAllocationBtn",""],["allocationInput",""],["allocationAuto","matAutocomplete"],[1,"allocated-users-table-container"],
["mat-table","",3,"dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","user",3,"sticky"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","role",3,"sticky"],["matColumnDef","is-lead",3,"sticky"],["matColumnDef","involvement"],["matColumnDef","allocation"],[3,"matColumnDef"],["matColumnDef","remove-user",3,"stickyEnd"],["mat-header-row",""],
["mat-row",""],["mat-header-cell",""],["tabindex","-1","mat-cell",""],[1,"user-cell"],["size","small",3,"email"],[1,"user-name",3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[1,"role-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"help-icon",3,"matTooltip"],["aria-label","Select role",1,"role-select",3,"selectionChange","disabled","value"],[3,"value"],[1,"is-lead-header"],[3,"change","checked","disabled","aria-label"],[1,"involvement-header"],["aria-label",
"Select involvement",1,"involvement-select",3,"selectionChange","disabled","value"],[1,"allocation-header"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",
1,"edit-allocation-btn",3,"click","disabled"],"svgIcon edit-outline fill none iconPositionEnd ".split(" "),["aria-label","Select involvement level or enter percentage (between 0 and 100) for user",1,"allocation-input",3,"ngModelChange","keydown","input","blur","matAutocomplete","ngModel","disabled"],[3,"optionSelected"],["mat-header-cell","",3,"class",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["mat-cell",""],["aria-label","Select involvement",1,"involvement-select",3,"disabled",
"value"],["type","button","mat-button","","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"click","disabled"],["aria-label",
"Select involvement or enter percentage (between 0 and 100) for user",1,"allocation-input",3,"ngModelChange","keydown","keyup","blur","matAutocomplete","ngModel","disabled"],["type","button","mat-icon-button","","aria-label","Remove allocated user","matTooltip","Remove allocated user",1,"remove-user-btn","xs",3,"click","disabled"],["svgIcon","delete","fill","none"]],template:function(a,b){a&1&&(bg(0),T(1,"async"),K(2,"div",3)(3,"table",4),E(4,iPb,1,0,"tr",5)(5,jPb,1,0,"tr",6),Wf(6,7),E(7,kPb,2,0,
"th",8)(8,mPb,2,1,"td",9),Xf(),Wf(9,10),bg(10),E(11,nPb,4,2,"th",8)(12,sPb,7,5,"td",9),Xf(),Wf(13,11),bg(14),E(15,tPb,4,2,"th",8)(16,vPb,2,4,"td",9),Xf(),Wf(17,12),bg(18),E(19,wPb,4,2,"th",8)(20,zPb,6,3,"td",9),Xf(),Wf(21,13),bg(22),E(23,APb,4,2,"th",8)(24,HPb,3,1,"td",9),Xf(),Qf(25,RPb,4,2,"ng-container",14,oTd),T(27,"async"),Wf(28,15),E(29,SPb,2,0,"th",8)(30,UPb,3,1,"td",9),Xf(),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(),cg("Optionally override the role of the user. If\n      not overridden, the user will be filling the role aligned with their job profile."),B(3),I("sticky",!0),B(),cg("Optionally mark users as lead(s) for this\n      issue."),B(4),cg("Set the involvement level of people\n      allocated to this issue. Zero involvement levels are useful when a person is involved in the\n      work but does not spend a significant portion of their time on it."),
B(4),cg("Set the involvement level (or percentage\n      between 0 and 100) of people allocated to this issue. Zero involvement levels are useful when\n      a person is involved in the work but does not spend a significant portion of their time on\n      it."),B(3),Rf(U(27,15,b.timeboundQuarterColumns$)),B(3),I("stickyEnd",!0))},dependencies:[cP,Yy,OE,Ij,qE,xE,pC,nC,jC,lC,yL,xL,rI,XX,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,GK,FK,DA,MU,yT,aY,ZX,xA,$X,eI,cI,dI,rV,kV,hV,ly],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 sTd=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new hQ;this.removePlaceholder=new hQ},tTd=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};da.Object.defineProperties(sTd.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?UN[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
sTd.\u0275fac=function(a){return new (a||sTd)};
sTd.\u0275cmp=C({type:sTd,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 tTd(b)})("keydown.enter",function(){return tTd(b)})("keydown.space",function(){return tTd(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",Gg("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:[cP,Yy,pC,nC,lC,GK,FK,DA,$y,rV,kV],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 uTd=function(){return[]},L3=function(){this.matDialog=p(VB)};L3.prototype.show=function(a,b){this.dialog=this.matDialog.open(M3,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return ie(TB(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(UB);this.dialogRef=p(SB);this.role="SWE";this.count=new wE(1,{validators:[Gj,Awa(/^\d+$/),vwa(1),wwa(3E5)]});this.roleToCountMap=new Map;this.roleOptions$=new Wj(Cod.map(function(f){return{value:f,displayText:UN[f],disabled:!1}}));for(var b=l(this.data.allocatedPlaceholders),c=b.next();!c.done;c=b.next()){var d=c.value;c=d.role;var e=void 0;d=Math.ceil((e=d.count)!=null?e:0);this.roleToCountMap.set(c,d)}this.roleOptions$.next(Cod.map(function(f){return{value:f,
displayText:UN[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);vTd(this)},vTd=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=C({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;
vTd(b)}),Qf(8,VPb,4,5,"span",5,Pf),T(10,"async"),L()(),K(11,"mat-form-field",6)(12,"mat-label"),Q(13,"Number"),L(),M(14,"input",7),F(15,WPb,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);Ag(b.title);B(5);I("value",b.role)("disabled",b.updatingExistingPlaceholder);B();var c;Rf((c=U(10,9,b.roleOptions$))!=null?c:Jg(11,uTd));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:[cP,pC,nC,jC,cK,WB,YB,$B,ZB,eE,SD,cE,VD,TD,SE,fE,QE,FU,EU,cI,xA,GK,FK,DA,lA,PE,Ij,zE,qE,JE,IE,HE,DE,ly],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 wTd=function(){return[]},N3=function(){this.matDialog=p(VB)};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(TB(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(UB);this.dialogRef=p(SB);this.editIssueService=p(NS);this.hotkeys=p(tU);this.placeholderDialogService=p(L3);this.checkBeforeExit=p(yY);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=ss(f).map(function(k){var m,r;return(r=(m=k.user)==null?void 0:
m.emailAddress)!=null?r:""}).filter(function(k){return!!k});f=l(f);for(var g=f.next();!g.done;g=f.next())if(a.emailsSet.has(g.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new Wj([]);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 Cod.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$=Jpd(this.editIssueService.savingState((c=this.issueId)!=null?c:""),"staffing");var d;this.plannedAllocations$.next((d=this.data.plannedAllocations)!=null?d:[]);b=l(this.plannedAllocations$.value);for(var e=b.next();!e.done;e=b.next())d=c=void 0,(e=(c=e.value.user)==
null?void 0:(d=c.user)==null?void 0:d.emailAddress)&&this.emailsSet.add(e)};Y(O3,Z);O3.\u0275dir=Z.\u0275dir;O3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(zY(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 YPb=function(a,b,c){var d,e,f,g,k,m;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=Eo(f);if(!g)return r.return();k=[].concat(q(a.plannedAllocations$.value));m=k.findIndex(function(w){return Eo(w)===g});m<0?k.push(f):k[m]=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=Eo(c);if(!d)return g.return();e=[].concat(q(b.plannedAllocations$.value));f=e.findIndex(function(k){return Eo(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 xTd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(b.length<1)return m.return();c=ss(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return m.return();g={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(q(a.plannedAllocations$.value),[g]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);ce(m)})};h=O3.prototype;
h.hasChanges=function(){return!Dm(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,Ypd(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=C({type:O3,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&jg(TW,5);if(a&2){var c;ng(c=og())&&(b.usersInput=c.first)}},features:[Gf],decls:26,vars:29,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"keydown"],["messageType","caution"],[1,"placeholder-display"],[1,"placeholder-chip-set"],[3,"placeholder","isAllowedToEdit"],[1,"add-placeholder-actions"],[3,"matTooltip","matTooltipDisabled"],["type","button","mat-stroked-button","","color","primary",1,"add-placeholder-btn",
"small",3,"click","disabled"],["name","help-outline","size","small","role","button","tabindex","0",1,"add-placeholder-help-icon",3,"matTooltip"],[3,"usersChange","maxUserAllowed","removeContainerDivTabIndex","placeholderText","customValidators"],[3,"updatedAllocations","removedUser","allocations","isAllowedToEdit"],["mat-dialog-actions",""],["type","button","mat-stroked-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel-button",3,"click","disabled"],["type","button","mat-flat-button",
"","color","primary",1,"done-button",3,"click","disabled"],[3,"editPlaceholder","removePlaceholder","placeholder","isAllowedToEdit"]],template:function(a,b){if(a&1){var c=t();K(0,"h1",0);Q(1);L();bg(2);T(3,"async");K(4,"section",1);N("keydown",function(k){u(c);var m=dg(2);return v(b.onKeydown(k,m!=null?m:!1))});F(5,XPb,3,0,"b-callout",2);bg(6);T(7,"async");K(8,"div",3)(9,"div",4);Qf(10,ZPb,1,2,"b-placeholder-chip",5,Pf);T(12,"async");L();K(13,"div",6)(14,"span",7)(15,"button",8);N("click",function(){u(c);
var k=dg(6);return v(YPb(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(xTd(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();Ag(b.title);B();a=cg(U(3,16,b.isSaving$));B(3);G(b.isAllowedToEdit?-1:5);B();var d,e=cg((d=U(7,19,b.availableRolesToAllocate$))!=null?d:Jg(26,wTd));B(4);var f;Rf((f=U(12,22,b.placeholderAllocations$))!=null?f:Jg(27,wTd));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,24,b.plannedAllocations$))!=null?g:Jg(28,wTd))("isAllowedToEdit",b.isAllowedToEdit&&!a);B(3);I("disabled",
a);B(2);I("disabled",!b.hasChanges()||a)}},dependencies:[K3,cP,LU,JU,KU,pC,nC,jC,cK,WB,YB,$B,ZB,GK,FK,DA,MU,yT,GX,TW,lA,sTd,ly],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(iS)},yTd=function(a,b,c){return y(function(d){return d.return(sod(a.confirmationDialogService,{title:b,content:Dh(c)}))})},zTd=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(yTd(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&$Pb(b)?c.return(yTd(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 ATd=["saveBeforeClosingDialog"],BTd=["deleteDialog"],vQb=function(){return[]},CTd={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(VB);this.cdr=p(iQ,{self:!0});this.templatesApi=p($O);this.hotlistApi=p(mP);this.constants=p(lS);this.paths=p(vW);this.butterBar=p(gO);this.analytics=p(lQ);this.issueTypeDialog=p(jS);this.componentActions=p(eW);this.documentationLinks=p(hS);this.appEvents=p(aP);this.accessPolicyApi=p(RO);this.trackerFridge=p(aR);this.componentFridge=p(YO);this.currentUserBookmarksFridge=p(wP);this.autocompleteConfigService=p(QW);this.confirmIssueAccessLimitSettingsService=
p(P3);this.activeSession=p(Qu);this.sessionIsInternal=this.activeSession.isInternalSession();this.staffingDialogService=p(N3);this.customFieldHelper=p(ES);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=DTd(this);this.priorityChoices=ETd(this);this.severityChoices=FTd(this);this.FieldType=zV;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=As;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=Mm(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)});Eba(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");$r(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){$r(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;Ai(a.newSelectionMap,function(d,e){e=Gm(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(xP(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var DTd=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:FQb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[kTd].concat(b)},FQb=function(a){return a===kTd.value?a:Qm(a)};Q3.prototype.getDateValue=function(a){return a};Q3.prototype.getListFieldType=function(a){return a};
var yQb=function(a){var b,c,d,e;return((b=a.repeatedTextValue)==null?void 0:b.values)||((c=a.repeatedDateValue)==null?void 0:c.values)||((d=a.repeatedEnumValue)==null?void 0:d.values)||((e=a.repeatedNumericValue)==null?void 0:e.values)||null},mQb=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?tod(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);GTd(a);a.cdr.detectChanges()},ETd=function(a){return[kTd].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},FTd=function(a){return[kTd].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},HTd=function(a){return a.templateRows.filter(function(b){return!b.inherited})},
ITd=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 EQb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;R3(a)};Q3.prototype.toggleRow=function(a){var b=this,c=this.currentIndex;JTd(this,function(){a.index===c?EQb(b):b.openEditor(a.index)})};
var KTd=function(a){a.templateHotlistIds.push([]);JTd(a,function(){a.openEditor()})},eQb=function(a,b){return b.index>=0&&b.index===a.currentIndex},gQb=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},DQb=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){if(O.nextAddress==1){if(!a.currentTemplate)return O.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return z(O,zTd(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:CTd}),2)}f=O.yieldResult;if(!f)return O.return();a.currentIndex<0?(k="creating",m={componentId:a.componentId,default:!1},g=function(R){$r(a.butterBar,R.name?'Template "'+R.name+'" created.':
"Template created.");a.analytics.trackEvent("template","create");LTd(a,"create",R.snapshot);MTd(a,"create",R.templateId);NTd(a,"create",R.templateId);a.templates.push(R);a.openEditor(a.templates.length-1)}):(k="updating",r=a.currentIndex,m=a.templates[r],g=function(R){$r(a.butterBar,R.name?'Template "'+R.name+'" updated.':"Template updated.");a.analytics.trackEvent("template","update");LTd(a,"update",R.snapshot);MTd(a,"update",R.templateId);NTd(a,"update",R.templateId);a.templates[r]=R;EQb(a)});a.currentTemplate.hotlistId=
a.templateHotlistIds[a.hotlistPickerIndex];jTd(a.currentTemplate,m);$r(a.butterBar,"Saving template...");x=w=m;D=x.componentId;J=(H=x.templateId)&&String(H)!=="0"?a.templatesApi.update(D,H,w):a.templatesApi.create(D,w);return O.return(J.then(function(R){a.appEvents.templateModified.next(String(a.componentId));g(R);a.cdr.detectChanges()}).catch(function(R){R=dq(R);a.butterBar.showWarning(R?"Error "+k+" template: "+R:"There was an error "+k+" the template.",0)}))})},dQb=function(a,b){TB(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(Bf(a.destroyed$)).subscribe(function(c){c&&OTd(a,b)})},OTd=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());wba(a.templateHotlistIds,c);wba(a.templates,c);a.defaultIndex=a.templates.findIndex(function(f){return f.default});R3(a);a.cdr.detectChanges();$r(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)),
$r(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&EQb(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)}})},QTd=function(a,b){b?DQb(a).then(function(){PTd(a);a.cdr.detectChanges()}):PTd(a)},fQb=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=RTd(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();R3(this);GTd(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else STd(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=RTd(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
R3(b);GTd(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var STd=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},JTd=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,TTd(a)):b()},LTd=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},MTd=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
NTd=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},TTd=function(a){TB(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(Bf(a.destroyed$)).subscribe(function(b){b!==void 0&&QTd(a,b)})},PTd=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},RTd=function(a,b){var c={};a=l(a.allCustomFields);for(var d=a.next();!d.done;d=a.next())d=d.value,
c[d.customFieldId.toString()]=d;return new I3(c,b)};
Q3.prototype.loadCustomFields=function(){var a=this,b,c,d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1){if(!a.supportCustomFields)return x.return();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=(m=b.componentPathInfo)==null?void 0:m.fieldConfigsV2Map)!=null?r:new Map;a.fieldConfigsV2=[].concat(q(e)).reverse().flatMap(function(D){var H;return(H=w.get(D))!=null?H:[]});a.allCustomFields=FS(a.customFieldHelper,b);a.cdr.detectChanges();return Zj(x,0)}be(x);a.butterBar.showWarning("Unable to load custom fields");ce(x)})};
var GTd=function(a){var b;a.customFieldRows=UTd(a,(b=a.currentTemplate)==null?void 0:b.type).map(function(c){return new hTd(c,c.type==="TEXT"?"1":"2")})},UTd=function(a,b){return VTd(a,a.allCustomFields,b)},VTd=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=l(a.templates);for(var c=b.next();!c.done;c=b.next())c=c.value,c.snapshot.hotlistId?a.templateHotlistIds.push(c.snapshot.hotlistId):a.templateHotlistIds.push([]);a.defaultIndex=a.templates.findIndex(function(d){return d.default});a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load templates")})};
var R3=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new gTd(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new gTd(-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 gTd(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new gTd(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new gTd(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},cQb=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(hu(d))&&(d="(unnamed template)");a.defaultIndex=b;$r(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");Yd(g,2,3);return z(g,WTd(a,c.templateId),5);case 5:$r(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"+(cq(e)?": "+dq(e):"."),a.butterBar.showWarning(f),g.jumpTo(3)}})},WTd=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=C({type:Q3,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(jg(ATd,5),jg(BTd,5));if(a&2){var c;ng(c=og())&&(b.saveBeforeClosingDialog=c.first);ng(c=og())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},standalone:!1,features:[Ig([iQ]),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();Qf(13,HQb,3,1,"tr",
null,Pf);F(15,LQb,3,1);L();K(16,"div",13)(17,"b-button",14);N("onAction",function(){u(c);return v(KTd(b))});Q(18," Create New Template ");L()();E(19,MQb,7,3,"ng-template",null,0,Og)(21,NQb,9,4,"ng-template",null,1,Og);L()}if(a&2){var d;B(3);I("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Pe);B(10);Rf(HTd(b));B(2);G((d=ITd(b))?15:-1,d)}},dependencies:[VU,Yy,lU,bW,yV,Ij,zE,qE,xE,TZ,x3,WK,XK,dL,YK,J3,YV,nC,jC,WB,$B,ZB,AT,ZU,EU,cE,cI,dI,xA,SD,FK,DA,yT,eK,
pH,nH,sH,D_,R_,FY,vX],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=Gc({imports:[cP,V2]});var T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=cf({type:T3});T3.\u0275inj=Gc({imports:[WU,cP,IU,R0,AV,OE,O_,E3,eL,S3,ZV,pC,yL,cK,NU,$U,pV,FU,AA,GK,MU,fK,S_,v0,wX,T_,S_]});var U3=function(){this.activeSession=p(Qu);this.appSearchState=p(xT);this.analytics=p(lQ);this.domSafe=p(sR);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(GS);this.dateFormatter=p(AS);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=ee("--");this.SloRuleDayType=idd;this.iconName="slo-status-no-data"};V3.prototype.getIconName=function(a){return XTd.has(a)?XTd.get(a):"slo-status-no-data"};
var YTd=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?Q8a(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:mn("unknown status type: "+b)}};
V3.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&HS(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=Q8a(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=Q8a(c*1E3);this.sloEndTimeDisplayText=mpd(this.dateFormatter,new Date(b*1E3));d=this.sloBounds;HS(d)&&
d.endTime&&d.endTime.seconds!==0&&d.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=mpd(this.dateFormatter,new Date(b*1E3)),YTd(this,"COMPLETED",a-b)):b<a?YTd(this,"OUT_OF_SLO",a-b):(d=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,YTd(this,a>259200?d?"SNOOZED_HEALTHY":"HEALTHY":d?"SNOOZED_NEAR":"NEAR",a))}else YTd(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
V3.\u0275fac=function(a){return new (a||V3)};
V3.\u0275cmp=C({type:V3,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},standalone:!1,features:[xx],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,OQb,4,2)(14,PQb,2,1,"div"),L()()());a&2&&(a=sg(5),zg(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),Ag(b.timeDisplayText),B(6),Ag(b.timeDisplayText),B(2),Bg(" ",b.cardActionText," ",U(12,11,b.sloEndTimeDisplayText)," "),B(2),G((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[Yy,WK,dL,ly],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 XTd=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(GS);this.includeNoSlo=!1};W3.prototype.ngOnInit=function(){ZTd(this);this.hasSlo=!!this.sloStatus&&spd(this.sloStatus)};W3.prototype.ngOnChanges=function(){ZTd(this)};var ZTd=function(a){a.sloStatus&&(a.assignmentSlo=$Td(gn(a.sloStatus.assignmentBounds)),a.responseSlo=$Td(gn(a.sloStatus.responseBounds)),a.closureSlo=$Td(gn(a.sloStatus.closureBounds)))};W3.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var $Td=function(a){if(HS(a))return a};W3.\u0275fac=function(a){return new (a||W3)};
W3.\u0275cmp=C({type:W3,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},standalone:!1,features:[xx],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,QQb,2,4,"div"),F(1,RQb,2,4,"div"),F(2,SQb,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(GS);this.analytics=p(lQ);this.sloApi=p(PQ)};X3.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&tpd(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=As.editSlo.makeHref(this.sloId),aUd(this)):this.editSloLink=null};X3.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var aUd=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=C({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&&(eg(),K(0,"span",1),fg(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),F(7,TQb,2,3,"div",5)(8,WQb,3,1,"div",6),F(9,ZQb,4,1,"span"),L()()()());a&2&&(a=sg(3),I("onedevHovercardTrigger",a),B(7),G(b.hasSlo?7:8),B(2),G(b.editSloLink?9:-1))},dependencies:[WK,dL,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 bUd=function(){var a=this;this.data=p(UB);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}};bUd.\u0275fac=function(a){return new (a||bUd)};
bUd.\u0275cmp=C({type:bUd,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:[WB,YB,$B,ZB,p3,nC,jC],encapsulation:2});var cUd=function(){};cUd.\u0275fac=function(a){return new (a||cUd)};cUd.\u0275mod=cf({type:cUd});cUd.\u0275inj=Gc({imports:[cK,cP,q3,pC]});var $Qb="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(" "),
dUd="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var pu=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)};pu.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var fRb={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 eUd=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};eUd.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var fUd=function(){this.bindings=[]};fUd.prototype.off=function(){for(var a=l(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var gUd=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new fUd;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};
gUd.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(){hUd(a,"dragstart",a.onDragTargetDragstart);hUd(a,"dragenter",a.onDragTargetDragenter);hUd(a,"dragend",a.onDragTargetDragend);hUd(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new eUd(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new eUd(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new eUd(a.mask,"drop",a.onMaskDrop))})};var hUd=function(a,b,c){a.eventBindings.bindings.push(new eUd(a.element,b,oq("th.drag-target",c)))};gUd.prototype.tearDown=function(){this.eventBindings.off()};var iUd=["table"],jUd=["defaultHeaderCellTemplate"],kUd=["defaultViewCellTemplate"],lUd=["dataRows"],iRb=function(a){return{column:a}},lRb=function(a,b,c){return{row:a,column:b,index:c}},nRb=function(a,b){return b.name},pRb=function(a,b){return b.id},Y3=function(){var a=this;this.activeSession=p(Qu);this.ngZone=p(Tg);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new hQ;this.rowClick=new hQ;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new hQ;this.focusedRowIndexChange=new hQ;this.afterViewInit=new hQ;this.enableDragDropHeader=!0;this.hoveredRowIndex=new hQ;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=oq("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!Ztd(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&&mUd(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var mUd=function(a){a.dragDropHeaderLogic=new gUd({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])&&(zab(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 nUd=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=C({type:Y3,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(jg(iUd,7),jg(jUd,7),jg(kUd,7),jg(lUd,5,Jd));if(a&2){var c;ng(c=og())&&(b.tableElement=c.first);ng(c=og())&&(b.defaultHeaderCellTemplate=c.first);ng(c=og())&&(b.defaultViewCellTemplate=c.first);ng(c=og())&&(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:[xx],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");Qf(3,gRb,1,3,"col",5,nRb);L();K(5,"thead")(6,"tr",6);Qf(7,jRb,1,4,"ng-container",null,nRb);L()();K(9,"tbody");F(10,qRb,2,0);L()();E(11,rRb,2,1,"ng-template",null,1,Og)(13,sRb,2,2,"ng-template",null,2,Og)}if(a&2){var d;B(3);Rf(b.columns);B(4);Rf(b.columns);B(3);G((d=nUd(b))?
10:-1,d)}},encapsulation:2});var oUd=function(){this.templateRef=p(gg);this.popGrid=p(Y3)};oUd.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};oUd.\u0275fac=function(a){return new (a||oUd)};oUd.\u0275dir=df({type:oUd,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"},standalone:!1});var pUd=function(){this.templateRef=p(gg);this.popGrid=p(Y3)};
pUd.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};pUd.\u0275fac=function(a){return new (a||pUd)};pUd.\u0275dir=df({type:pUd,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"},standalone:!1});var qUd=function(){this.templateRef=p(gg);this.popGrid=p(Y3)};qUd.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};qUd.\u0275fac=function(a){return new (a||qUd)};
qUd.\u0275dir=df({type:qUd,selectors:[["","forHeaderCellDefault",""]],standalone:!1});var Z3=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new hQ};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=C({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&&(yg("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=C({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,tRb,1,5,"b-sortable-header",1)(2,vRb,3,3,"div",2),L());a&2&&(B(),
G(b.column.sortable?1:2))},dependencies:[FK,DA,Z3],encapsulation:2});var rUd=function(){return{before:!1}},sUd=function(){return{before:!0}},CRb=function(a,b){return{columns:a,before:b}},b4=function(){Z.call(this);var a=this;this.matDialog=p(VB);this.userPreferencesManager=p(nR);this.butterBar=p(gO);this.analytics=p(lQ);this.hotkeys=p(tU);this.activeSession=p(Qu);this.selectedColumnsChange=new hQ;this.onAddTeamColumn=new hQ;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=VN.listViewPreferences;this.userPreferencesManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||VN.listViewPreferences})};Y(b4,Z);b4.\u0275dir=Z.\u0275dir;b4.prototype.ngOnChanges=function(a){a.selectedColumns&&tUd(this)};
var uUd=function(a){a.selectedColumnsChange.emit([].concat(q(a.selectedColumns)));tUd(a)},xRb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=yRb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||$r(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()||$r(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},FRb=function(a,b){a.hotkeys.pause();TB(a.matDialog.open(bUd,{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()}})},tUd=function(a){for(var b={},
c=l(a.selectedColumns),d=c.next();!d.done;d=c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!Fta(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 pu?f.fullLabel:
f.label,g instanceof pu?g.fullLabel:g.label)});a.isRemovable=vUd(a)};b4.prototype.isIssueGridColumn=function(a){return a instanceof pu};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,uUd(this),!0}return!1};
b4.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new pu({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);uUd(this);return!0};
var vUd=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};b4.\u0275fac=function(a){return new (a||b4)};
b4.\u0275cmp=C({type:b4,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&jg(sH,5);if(a&2){var c;ng(c=og())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},standalone:!1,features:[Gf,xx],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,wRb,2,5,"div",7);K(4,"mat-menu",8,0);Qf(6,zRb,4,3,"button",9,Pf);F(8,ARb,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,GRb,5,0,"ng-template",12);L();K(18,"mat-menu",
null,2);E(20,IRb,2,0,"ng-template",12);L()()}a&2&&(a=sg(16),B(2),I("column",b.column),B(),G(3),B(3),Rf(b.column.moreOptions),B(2),G(b.column.moreOptions.length?8:-1),B(),I("disabled",!b.isRemovable),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Jg(8,rUd)),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Jg(9,sUd)))},dependencies:[eK,pH,nH,oH,sH,rK,FK,DA,yT,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 yUd=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=oq("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=oq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){wUd(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=oq("tr",function(){b.draggedRow&&(wUd(b.draggedRow),wUd(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=oq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=oq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=oq(".row-dropzone",function(c){wUd(b.dragTargetRow);xUd(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=oq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=oq(".row-dropzone",function(c){xUd(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()})};
yUd.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");xUd(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)})};
yUd.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 wUd=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},xUd=function(a){a.dropzone.style.display="none"};var c4=function(){this.userPreferencesManager=p(nR);this.isParentRowActive=!1;this.onClick=new hQ;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=C({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&&yg("small",U(1,2,b.useSmallIcon$))},dependencies:[Yy,nC,lC,ly],encapsulation:2,changeDetection:0});var d4=function(){this.sloStatusHelpersService=p(GS);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};d4.prototype.ngOnInit=function(){zUd(this)};d4.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&zUd(this)};var zUd=function(a){var b=upd(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=C({type:d4,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},standalone:!1,features:[xx],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 AUd=function(){};AUd.\u0275fac=function(a){return new (a||AUd)};AUd.\u0275cmp=C({type:AUd,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:[Yy],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 BUd=function(){};BUd.\u0275fac=function(a){return new (a||BUd)};BUd.\u0275mod=cf({type:BUd});BUd.\u0275inj=Gc({imports:[cP]});var CUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CUd,W);CUd.prototype.getIssueId=function(){return En(this,1)};CUd.prototype.getIssueId_asString=function(){return In(this,1)};CUd.prototype.setIssueId=function(a){return Xo(this,1,a)};var DUd=function(a){return $m(a,2,2)};var EUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EUd,W);var FUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FUd.messageId)};Y(FUd,W);FUd.prototype.getIt=function(){return X(this,EUd,2,jb)};FUd.prototype.setIt=function(a){return Zi(this,EUd,2,a,jb)};FUd.messageId="b.ListStatusUpdateHistoryResponse";var e4=function(){this.executor=p(oO)};e4.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new GP).setIt(SYa(a));return c.call(b,{url:d,body:a,responseConstructor:GP}).pipe(A(z2a))};e4.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var GUd=function(a,b){var c=DUd((new CUd).setIssueId(Number(b)));return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:FUd}).pipe(A(function(d){d=d.getIt();return Ni(d,Lp,1,Oi()).map(RYa)}))};e4.\u0275fac=function(a){return new (a||e4)};e4.\u0275prov=Fc({token:e4,factory:e4.\u0275fac,providedIn:"root"});var HUd=function(a){return[a]},f4=function(){var a=this;this.matDialog=p(VB);this.router=p(oF);this.destroyRef=p(Ee);this.router.events.pipe(we(function(b){return b instanceof ak}),fj(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(TB(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(nR)},IUd=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(yY);this.data=p(UB);this.dialogService=p(f4);this.dialogRef=p(SB);this.bannedWordsChecker=p(aX);this.CHAR_LIMIT=2E3;this.FormattingMode=bo;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=Em(this.origStatusUpdate)};Y(g4,Z);g4.\u0275dir=Z.\u0275dir;var JUd=function(a){var b,c;return(c=e9a((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};h=g4.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(zY(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!Dm(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||rDd(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=C({type:g4,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&jg(wY,5);if(a&2){var c;ng(c=og())&&(b.commentDraft=c.first)}},standalone:!1,features:[Ig([aX]),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"),Eg("contentChange",function(c){Dg(b.newStatusUpdate.updateText,c)||(b.newStatusUpdate.updateText=c);return c}),N("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),
L(),F(11,JRb,2,1,"p",5),F(12,KRb,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,LRb,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),zg(JUd(b)),Cg("content",b.newStatusUpdate.updateText),I("textareaClass",Kg(24,HUd,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),yg("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN),I("initialValue",b.origStatusUpdate.formattingMode),B(),G(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",b.newStatusUpdate.updateText.length===0||b.newStatusUpdate.updateText.length>
2E3||!b.isModified())("color",U(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[WB,YB,$B,ZB,nC,jC,lU,wT,wY,ly],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 URb=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=URb(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(iS);this.contextSensitiveRegistry=p(cR);this.destroyRef=p(Ee);this.issueEnrichmentService=p(I1);this.issueEnrichmentFridge=p(XP);this.issuePermissionService=p(fR);this.butterBar=p(gO);this.window=p(rR);this.insightsActionsService=p(i4);this.enrichmentCategoryFridge=p(CP);this.enrichmentApi=p(GO);this.enrichmentCategory$=ee(void 0);this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new $K,{position:[g$c]});this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(hn),
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&&!dPd.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 KUd=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),$r(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);$r(a.butterBar,"Content copied to clipboard",2E3);a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,"EVENT_TYPE_COPY",a.enrichment.category);ce(e)})};
var SRb=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)})},TRb=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:Dh("You are about to delete insight '"+a+"' on issue "+c+". This action cannot be undone."),onConfirm:function(){igd(b.enrichmentApi,c,a).pipe(fj(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=C({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,MRb,11,5);T(1,"async");F(2,NRb,2,0,"button",1);K(3,"button",2);N("click",function(){u(c);return v(KUd(b,b.enrichment.category))});M(4,"mat-icon",3);L();F(5,VRb,6,4);T(6,"async");K(7,"a",4)(8,"button",5);M(9,"mat-icon",6);L()();bg(10);T(11,"async");F(12,WRb,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=cg(U(11,8,b.actionMenuItems$));B(2);G(a&&a.length>0?12:-1)}},dependencies:[UY,Yy,nC,lC,FK,DA,WK,dL,ly],styles:[".primary[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"],changeDetection:0});var LUd=["commentPresenter"],jSb=function(){return[]},iSb=function(a,b){return b.category},k4=function(){var a=this;this.activeSession=p(Qu);this.activatedRoute=p(Vj);this.analytics=p(lQ);this.cdr=p(iQ,{self:!0});this.destroyRef=p(Ee);this.router=p(oF);this.scrolledOnScreenService=p(BU);this.issueEnrichmentService=p(I1);this.contextSensitiveRegistry=p(cR);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(hn),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 Wj(null);this.initialExpandedTab$=this.enrichments$.pipe(A(function(b){if(a.initiallyCollapsed)return[];
var c=LWa("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=l(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=l(b);b=c.next().value;c=c.next().value;if(c.length!==0){var d=c[0];return b.find(function(e){return e.displayName===
d})}}),xf({bufferSize:1,refCount:!0}))};k4.prototype.ngAfterViewInit=function(){var a=this;this.tabKeys$.pipe(nf(1),fj(this.destroyRef)).subscribe(function(){ZRb(a)});this.destroyRef.onDestroy(function(){var b;(b=a.onScreenSubscription)==null||b.unsubscribe()})};var ZRb=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,m;y(function(r){if(r.nextAddress==1)return(b=a.onScreenSubscription)==null||b.unsubscribe(),a.onScreenSubscription=void 0,d=(c=a.commentPresenter)==null?void 0:c.nativeElement,d?(e=!a.shouldTruncate||a.shouldTruncate&&!a.isTruncated)?z(r,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();m=g.issueId;a.onScreenSubscription=Ytd(a.scrolledOnScreenService,d,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(nf(1),fj(a.destroyRef)).subscribe(function(){a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(m,"EVENT_TYPE_VIEW",k);a.loggedViewEnrichments.add(k)});ce(r)})};
var gSb=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";Ted("insights-lastExpanded")(e);ce(f)})};
k4.prototype.logImpressions=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.category;this.loggedImpressionEnrichments.has(c)||(this.loggedImpressionEnrichments.add(c),this.issueEnrichmentService.logIssueUserEventForIssueEnrichment(b.issueId,"EVENT_TYPE_IMPRESSION",c))}};
var hSb=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=[As.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=C({type:k4,selectors:[["b-insights-enrichments"]],viewQuery:function(a,b){a&1&&jg(LUd,5,Jd);if(a&2){var c;ng(c=og())&&(b.commentPresenter=c.first)}},inputs:{initiallyCollapsed:"initiallyCollapsed"},standalone:!1,features:[Ig([iQ])],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,lSb,2,3),T(3,"async"),L());if(a&2){var c;B(2);G((c=U(3,1,b.enrichments$))?2:-1,c)}},dependencies:[Yy,vT,iZ,fZ,gZ,jZ,nC,jC,j4,iU,ly],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 rx(this,1,a)};l4.prototype.addContexts=function(a){return Ac(this,1,Cb,a,void 0,Db)};l4.prototype.getContexts=function(a){return jx(this,1,a)};var MUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MUd,W);h=MUd.prototype;h.getIssueIdsList=function(){return ex(this,1,1)};h.getIssueIdsList_asString=function(){return jn(this,1)};h.setIssueIdsList=function(a){return Er(this,1,a)};h.addIssueIds=function(a){return ox(this,1,a)};h.setIssueIds=function(a){Ac(this,1,Hb,void 0,a,Nb,void 0,1)};var NUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NUd,W);NUd.prototype.getWorkspaceId=function(){return En(this,1)};NUd.prototype.getWorkspaceId_asString=function(){return In(this,1)};NUd.prototype.getType=function(){return Ii(this,2)};NUd.prototype.setType=function(a){return $m(this,2,a)};var OUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OUd,W);OUd.prototype.getTypedWorkspaceIdsList=function(){return Ni(this,NUd,1,Oi())};OUd.prototype.getIterationIdsList_asString=function(){return jn(this,2)};var PUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PUd,W);h=PUd.prototype;h.getIterationId_asString=function(){return In(this,1)};h.getWorkspaceId=function(){return En(this,2)};h.getWorkspaceId_asString=function(){return In(this,2)};h.getType=function(){return Ii(this,3)};h.setType=function(a){return $m(this,3,a)};h.getName=function(){return xi(this,4)};h.setName=function(a){return Ym(this,4,a)};h.getHotlistId=function(){return En(this,7)};
h.setHotlistId=function(a){return Xo(this,7,a)};h.getStatus=function(){return Ii(this,8)};h.setStatus=function(a){return $m(this,8,a)};h.getTagsList=function(a){return Ln(this,9,Oi(a))};h.getTags=function(a){return jx(this,9,a)};h.setVelocity=function(a){return Fp(this,11,a)};h.getStartTime=function(){return X(this,ej,12)};h.setStartTime=function(a){Zi(this,ej,12,a)};h.getEndTime=function(){return X(this,ej,13)};h.setEndTime=function(a){Zi(this,ej,13,a)};
h.hasEndTime=function(){return Ji(this,ej,13)};h.getEtag=function(){return xi(this,18)};h.setEtag=function(a){return Ym(this,18,a)};var QUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QUd,W);QUd.prototype.getEmail=function(){return xi(this,1)};QUd.prototype.setEmail=function(a){return Ym(this,1,a)};var RUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RUd,W);h=RUd.prototype;h.getWorkspaceId=function(){return En(this,1)};h.getWorkspaceId_asString=function(){return In(this,1)};h.getName=function(){return xi(this,2)};h.setName=function(a){return Ym(this,2,a)};h.getTimeZone=function(){return X(this,Ar,8)};h.setTimeZone=function(a){return Zi(this,Ar,8,a)};h.hasTimeZone=function(){return Ji(this,Ar,8)};h.getMembersList=function(){return Ni(this,QUd,9,Oi())};
h.setMembersList=function(a){return $i(this,9,a)};h.getUpdateTime=function(){return X(this,ej,12)};h.setUpdateTime=function(a){Zi(this,ej,12,a)};h.hasUpdateTime=function(){return Ji(this,ej,12)};h.getBookmarkGroupId_asString=function(){return In(this,14)};h.setBookmarkGroupId=function(a){return Xo(this,14,a)};h.getTeamId=function(){return xi(this,20)};h.setTeamId=function(a){return Ym(this,20,a)};var SUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SUd,W);SUd.prototype.getWorkspacesMap=function(){return xc(this,1,RUd,Ub)};SUd.prototype.getIterationsMap=function(){return xc(this,2,PUd,Ub)};var mSb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mSb,W);h=mSb.prototype;h.getContextsMap=function(){return xc(this,1,OUd,Vb)};h.getData=function(){return X(this,SUd,2)};h.setData=function(a){return Zi(this,SUd,2,a)};h.clearData=function(){return Zw(this,2)};h.hasData=function(){return Ji(this,SUd,2)};h.getFilter=function(){return X(this,l4,3)};h.setFilter=function(a){return Zi(this,l4,3,a)};var TUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TUd,W);var UUd=new SA("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",MUd,TUd,function(a){return a.serialize()},yi(TUd));var VUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VUd,W);h=VUd.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.setTeamIdsList=function(a){return Zm(this,2,a)};h.setPageSize=function(a){return pn(this,3,a)};h.setPageToken=function(a){return Ym(this,4,a)};var WUd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WUd,W);WUd.prototype.getNextPageToken=function(){return xi(this,2)};var XUd=new SA("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",VUd,WUd,function(a){return a.serialize()},yi(WUd));var YUd=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new fJc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};YUd.prototype.listWorkspaces=function(a){return HB(this.client_,this.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",a,{},XUd)};var ZUd={},$Ud;ZUd.Authorization=($Ud=Zrc([]))!=null?$Ud:"";ZUd["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";ZUd["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 MUd).addIssueIds(a);var e=(new l4).addContexts(1);d=Zi(d,l4,2,e);return HB(c.client_,c.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",d,ZUd||{},UUd)}).pipe(A(nSb(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 YUd(a)};m4.\u0275fac=function(a){return new (a||m4)};
m4.\u0275prov=Fc({token:m4,factory:m4.\u0275fac,providedIn:"root"});var aVd=["popOver"],pSb=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=Qg.apply(null,[!1].concat(q([])));this.valueChange=new gj;this.closedWithAction=new gj;this.editing=this.headerFocused=!1;this.editingValue=new wE("",{nonNullable:!0});this.editingValueSignal=pg.apply(null,[""].concat(q([])));this.isInvalid=ah.apply(null,[function(){return a.required()&&a.editingValueSignal()===
""}].concat(q([])));this.onChange=function(){};this.onTouched=function(){}};Y(o4,g_);h=o4.prototype;h.ngOnInit=function(){var a=this;this.required()&&Xwa(this.editingValue,[Gj]);this.editingValue.valueChanges.pipe(fj(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 uSb(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=uSb(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=uSb(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=C({type:o4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&jg(aVd,7);if(a&2){var c;ng(c=og())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",required:[1,"required"]},outputs:{valueChange:"valueChange",closedWithAction:"closedWithAction"},standalone:!1,features:[Ig([{provide:lE,
useExisting:Xc(function(){return o4}),multi:!0},{provide:g_,useExisting:Xc(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,qSb,2,4,"ng-container",5)(4,rSb,1,1,"ng-template",null,1,Og);L();E(6,sSb,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,tSb,1,3,"ng-template",null,3,Og)}if(a&2){a=sg(1);var d=sg(5),e=sg(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:[fy,ky,Ij,zE,qE,JE,h_,DE],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 ASb=function(){return[]},p4=function(){this.disabled=this.thinking=!1;this.effortChange=new hQ;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=bVd(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=cVd(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=cVd(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 cVd=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"&&bVd(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},bVd=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=C({type:p4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},standalone:!1,features:[xx],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,DSb,15,5,"onedev-edit-field"),E(1,GSb,2,1,"ng-template",null,0,Og));a&2&&G(b.effortSpec?0:-1)},dependencies:[Yy,n_,DId,o_,y_,o4,WK,dL],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 dVd=function(){this.staffingDialogService=p(N3);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
dVd.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 Eo(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"?ir[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 eVd=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)};dVd.\u0275fac=function(a){return new (a||dVd)};
dVd.\u0275cmp=C({type:dVd,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},standalone:!1,features:[xx],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(eVd(b))})("keyup.space",function(){u(c);return v(eVd(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(eVd(b))});K(8,"div",6);F(9,HSb,1,0)(10,ISb,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=sg(14),B(2),Kf("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),B(),I("onedevHovercardTrigger",a),B(3),I("matTooltip",Fg(b.tooltipText)),B(3),G(b.staffingUserSummary||b.staffingPlaceholderSummary?
10:9))},dependencies:[Yy,FK,DA,WK,dL],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(nR);this.sloStatusHelpersService=p(GS);this.paths=p(vW);this.sloFridge=p(QQ);this.userToDisplayString=Lm;this.onSloStartTimeChange=new hQ;this.onSloEndTimeChange=new hQ;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;fVd(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);fVd(this)};
var fVd=function(a){a.hasSlo=!!a.sloStatus&&spd(a.sloStatus);a.hasClosureSlo=a.hasSlo&&tpd(a.sloStatus,"CLOSURE");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=HS(gn(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=As.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=As.editComponent.makeHref(a.componentId):
a.componentSloLink=void 0},gVd=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;pmd(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Bf(a.destroyed$)).subscribe();or("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(){or("editSlo","open","fromIssueSloBox")};
q4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(q4)))(b||q4)}}();
q4.\u0275cmp=C({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,xx],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(gVd(b))});K(2,"label");Q(3,"SLO Status");L();F(4,JSb,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(gVd(b))});F(12,KSb,1,0,"mat-icon",11)(13,LSb,1,0,"mat-icon",12);L()();K(14,"div",13);F(15,PSb,9,3,"div",14);F(16,USb,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,VSb,1,3,"b-user-membership-chip",21)(28,
WSb,1,0);L()();F(29,YSb,4,3,"div",22);F(30,ZSb,3,1,"div",22);L()()()}a&2&&(a=sg(21),yg("internal-only",b.showInternalOnlyFieldBadge),B(4),G(b.showInternalOnlyFieldBadge?4:-1),B(3),I("hidden",b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),B(),I("hidden",!b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),B(),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:[Yy,FK,DA,nC,lC,WK,dL,d4,BV,W3,u3,kA,jA,qV,ly],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 hVd={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var r4=function(){Z.call(this);var a=this;this.data=p(UB);this.dialogRef=p(SB);this.teamsService=p(UQ);this.componentActions=p(eW);this.userPreferencesManager=p(nR);this.snackBar=p(uC);this.analytics=p(lQ);this.errorHandler=p(wO);this.componentFridge=p(YO);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=Bld(this.teamsService,this.teamSuggestionIds).pipe(A(function(b){for(var c=
[],d=l(a.teamSuggestionIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.get(e);f&&c.push(new iVd(e,f.collapsedPathNames))}return c}),zf([]));this.myTeams$=WQ(this.teamsService,"").pipe(A(function(b){return b.map(function(c){return new iVd(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new iVd(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=As.editComponent.makeHref(this.componentId);this.WarningType=hVd;le([this.suggestedTeams$,this.myTeams$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return[].concat(q(b),q(c))}),A(J0a(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):(jVd(a,"0",a.selectedTeam.teamId),g.jumpTo(0));b=Em;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()}),vmd(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;jVd(a,((f=e.team)==null?void 0:f.id)||"0",a.selectedTeam.teamId);ce(g)})};
var jVd=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=C({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,bTb,13,3,"div",3);F(3,dTb,6,2,"div",3);E(4,iTb,1,1,"ng-template",null,0,Og);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(),Ag(b.header),B(),G(b.warningType===b.WarningType.MISSING?2:-1),B(),G(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[ky,Yy,qE,xE,nC,jC,lC,WB,YB,$B,ZB,zT,AT,FK,DA,y_],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 iVd=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var s4=function(){Z.apply(this,arguments);this.matDialogService=p(VB);this.analytics=p(lQ);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new hQ};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");TB(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=C({type:s4,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},standalone:!1,features:[Gf,xx],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,jTb,3,1,"b-callout-actions"),L());
a&2&&(B(2),S(" ",b.warningMessage," "),B(),G(b.messageOnly?-1:3))},dependencies:[VU,JU,KU],encapsulation:2});var pTb=function(){return[]},mTb=function(a){return[a]},LTb=function(a){return{$implicit:a}},uUb=function(a){return{customFieldId:a}},t4=function(){var a=this;this.activeSession=p(Qu);this.editIssueService=p(NS);this.issueService=p(YP);this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.issueDetailsBrain=p(dR);this.constants=p(lS);this.refreshMonitor=p(aQ);this.userPreferencesManager=p(nR);this.documentationLinks=p(hS);this.workspaceService=p(n4);this.changelistApi=p(MO);this.issueMarkAsDuplicateDialogService=
p(DY);this.analytics=p(lQ);this.issueLimits=p(HY);this.jspbPrincipalTypes=p(KQ);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=fs;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=zV;this.ListFieldType=ewd;this.IssueFieldName=ded;this.codeChangesValidator=h3a;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($Sb));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 Bid(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=l(b);b=c.next().value;(c=c.next().value)&&c!=="UNSPECIFIED"||(c="NEW");return As.viewTriage.makeHref(b!=null?b:0,0,au[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:qab(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,
displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(Vdd).map(function(b){return{value:b,displayText:rt.get(b)}});this.teamHovercardInputs$=le([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{teamId:c?String(c):"0",componentId:b?b:"0"}}));this.isTeamWarningDismissed$=le([this.issue$,this.userPreferencesManager.preferences$]).pipe(A(function(b){b=l(b);var c=b.next().value;var d,
e;return(d=b.next().value.teamWarningPreferences)==null?void 0:(e=d.componentTeamWarnings)==null?void 0:e.some(function(f){return f.componentId===c.componentId})}));this.isPersonalComponent$=this.component$.pipe(A(function(b){var c,d;return b==null?void 0:(c=b.componentPathInfo)==null?void 0:(d=c.componentPathId)==null?void 0:d.includes("19299")}));this.shouldDisplayTeamSuggestions$=le([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$,this.isPersonalComponent$]).pipe(A(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&!d&&!c&&(e==="MISSING"||e==="DELETED")}));this.showTriagePhaseRow$=this.teamId$.pipe(A(function(b){return a.enableTriageView&&b!=="0"}));this.statusChoices$=this.canonicalIssueId$.pipe(A(function(b){return[].concat(q(oed.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:rab(c.value)})})}));
this.workspaces$=Eid(this.refreshMonitor,this.distinctIssueId$).pipe(Af(function(b){return a.workspaceService.listWorkspaces(b)}),xf({refCount:!0,bufferSize:1}));this.pendingChangelists$=Eid(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=iod(c);return{changes:[].concat(q(b.cls),q(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new $K,{position:[f$c]});this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new $K,{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,cld(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;
return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.emailsValidator=function(b){var c,d,e,f;return y(function(g){if(b==null)return g.return("This field is required");c=b.split(/[,\s]+/).map(function(k){return k.trim()}).filter(Boolean);d=l(c);for(e=d.next();!e.done;e=d.next()){f=e.value;if(f.match(Lpd))return g.return(f+" does not appear to be an email: zero-width characters detected");if(!fVa.test(f)&&!Jed.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=Ir(a.issue$))==null?void 0:c.assignee)!=null?d:""},reporter:function(b){var c,d;b.value=(d=(c=Ir(a.issue$))==null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=Ir(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=Ir(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,d;b.values=(d=(c=Ir(a.issue$))==
null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=Ir(a.issue$))==null?void 0:c.type)!=null?d:null}}};t4.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var FUb=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!eR(a.issuePermissionService,e)}):[].concat(q(c.cc),[a.activeSession.getUserEmail()]);return Wpd(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!eR(a.issuePermissionService,e)}):[].concat(q(c.collaborators),[this.activeSession.getUserEmail()]);return Xpd(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 AUb=function(a,b){return BUb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},wUb=function(a,b){return y(function(c){return c.return(xUb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},CUb=function(a,b){return y(function(c){return c.return(DUb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},GUb=function(a,b){return y(function(c){return c.return(Wpd(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},EUb=function(a,b){return y(function(c){return c.return(Xpd(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},yUb=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(Qpd(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},qu=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return Upd(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,HDd(b.issueMarkAsDuplicateDialogService,b.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();ejd(b.analytics,c);return d.return(Tpd(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 Jpd(c,a)}))};t4.prototype.getAccessLimitLevelDisplay=function(a){return $mb(a)};t4.\u0275fac=function(a){return new (a||t4)};
t4.\u0275cmp=C({type:t4,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},standalone:!1,features:[xx],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,HUb,113,172),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[OV,ky,Yy,A_,yV,p4,dVd,vU,WK,XK,dL,YK,YW,q4,YV,FK,DA,zU,s4,
$V,wL,p_,A0,ly],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 kVd=["descriptionArea"],lVd=["container"],u4=function(){Z.call(this);var a=this;this.cdr=p(iQ,{self:!0});this.issueFullFridge=p(nQ);this.eventsForIssueFridge=p(TP);this.editStatusUpdateDialogService=p(f4);this.statusUpdateFactory=p(h4);this.statusUpdateService=p(e4);this.issueCommentDialogsService=p(CY);this.contextSensitiveRegistry=p(cR);this.issuePermissionService=p(fR);this.clipboard=p(uR);this.snackBar=p(uC);this.analytics=p(lQ);this.activeSession=p(Qu);this.playbookService=p(jR);this.appSearchState=
p(xT);this.recommendationTriggerService=p(iR);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.closeSidebar=new hQ;this.navigateToNextIssue=new hQ;this.navigateToPreviousIssue=new hQ;this.issueId$=new wf(1);this.dedupeRecommendation$=this.issueId$.pipe(Af(function(b){return Rld(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.playbookRecommendation$=le([this.issueId$,this.appSearchState.queryState$]).pipe(Af(function(b){var c=l(b);b=c.next().value;c=
c.next().value;return c.query?hmd(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(hn),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&&AVa(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=bo;this.descriptionHasMore=!0;this.containerScrolled=this.showFullDescription=!1;this.destroyed$.subscribe(function(){MUb(a)});this.issueId$.pipe(Bf(this.destroyed$)).subscribe(function(){MUb(a);a.showFullDescription=!1});this.firstNote$.pipe(Bf(this.destroyed$)).subscribe(function(){mVd(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 mVd=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,m;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,IUd(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:m=r.yieldResult;if(!m)return r.return();a.statusUpdateService.update(m).subscribe(function(w){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",w.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(x){x.statusUpdate=w});a.issueFullFridge.poke(b)});ce(r)}})};
var bVb=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,lvb(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",AVa(c)),ce(d)}})},KUb=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)})},MUb=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 MUb(a),c.return();a.isSavingTitle=!0;ijd(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;MUb(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,mVd(this))}}});
u4.\u0275fac=function(a){return new (a||u4)};
u4.\u0275cmp=C({type:u4,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(jg(kVd,5),jg(lVd,5));if(a&2){var c;ng(c=og())&&(b.content=c.first);ng(c=og())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},standalone:!1,features:[Ig([iQ]),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,IUb,6,3);T(6,"async");L();K(7,"div",7);F(8,JUb,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,SUb,4,2,"div",15);T(17,"async");L();K(18,"div",16);F(19,vVb,39,34,"div",17);T(20,"async");Nf(21,xVb,1,1,"ng-container");L()();E(22,yVb,2,0,"ng-template",null,1,Og)}if(a&2){var d,e,f,g;B(2);yg("elevated",b.containerScrolled);B(3);G((d=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:[nC,jC,lC,FK,DA,Ij,qE,xE,SD,cE,fE,QE,iE,ky,Yy,k4,iU,t4,nU,JW,XW,m_,ly],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 nVd=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],oVd=function(){this.compactMode=this.labelOnlyMode=!1};oVd.prototype.ngOnInit=function(){};oVd.\u0275fac=function(a){return new (a||oVd)};
oVd.\u0275cmp=C({type:oVd,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&&(eg(nVd),K(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),fg(5),L()()(),K(6,"div",4)(7,"span",5),fg(8,1),L()()());if(a&2){a=sg(2);B(3);Kf("aria-label",b.hovercardAriaLabel);B(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);B();var c;zg((c=b.labelClass)!=null?c:"");yg("compact-chip",b.compactMode)}},dependencies:[WK,dL],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(hS);this.documentationLink=Lu()};v4.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=qo(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};v4.\u0275fac=function(a){return new (a||v4)};
v4.\u0275cmp=C({type:v4,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[xx],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&F(0,BVb,4,2);a&2&&G(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[BV],encapsulation:2});var w4=function(){this.dateFormatter=p(AS);this.compactMode=!1;this.text=""};w4.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=fsb(qo(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};w4.\u0275fac=function(a){return new (a||w4)};
w4.\u0275cmp=C({type:w4,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},standalone:!1,features:[xx],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&Ag(b.text)},encapsulation:2});var x4=function(){this.documentationLinks=p(hS);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=DVb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};x4.\u0275fac=function(a){return new (a||x4)};
x4.\u0275cmp=C({type:x4,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[xx],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,CVb,5,7,"b-base-chip",0);a&2&&G(b.showRetentionInfo?0:-1)},dependencies:[oVd,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 pVd=["issueSidenavContainer"],yYb=function(){return[]},$Wb=function(a){return{id:a}},y4=function(){var a=this;this.activeSession=p(Qu);this.cdr=p(iQ,{self:!0});this.elementRef=p(Jd);this.teamsService=p(UQ);this.ngZone=p(Tg);this.userPreferencesManager=p(nR);this.hotlistFridge=p(rP);this.issueFullFridge=p(nQ);this.bLocation=p(hU);this.issuePagination=p(l2);this.paths=p(vW);this.errorHandler=p(wO);this.$log=p(uO);this.domSafe=p(sR);this.trackerHelpers=p(pS);this.anayltics=p(lQ);this.playbookService=
p(jR);this.appSearchState=p(xT);this.ISSUE_STATUS_JS_ICON_NAME=med;this.STATUS_JS_FULL_TEXT=Sm;this.STATUS_JS_TERSE=hed;this.lastCheckedIndex=null;this.focusedRowIndexChange=new hQ;this.columns=[];this.columnsChange=new hQ;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new hQ;this.rowClick=new hQ;this.init=new hQ;this.onRowDragDrop=new hQ;this.onNextPage=new hQ;this.onPrevPage=new hQ;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=$mb;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.searchQuery$.pipe(Af(function(c){return c?amd(a.playbookService,c).pipe(A(function(d){return!!d})):ee(!1)}));this.issueIds$=new Wj([]);this.distinctIssueIds$=
this.issueIds$.pipe(pf());this.issueRecommendations$=this.distinctIssueIds$.pipe(Af(function(c){return a.isPlaybookEnabled&&c.length!==0?Xld(a.playbookService.recommendationTriggerService,c).pipe(jf(function(){return ee([])})):ee([])}),A(function(c){var d=new Map;if(c.length===0)return d;c=Iq(c,function(g){return g.resource});c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=gs(e.resource);f&&!d.has(f)&&d.set(f,e)}return d}));this.starInProgress={};this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");
var b=Ma($Qb);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(aRb);this.dragDropLogic=new yUd({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(c){return qVd(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=eSa(((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=l(this.columns),b=d.next();!b.done;b=d.next())b.value.label==="TEAM"&&rVd(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}))||[]);zSa(a,e)||ru(this)}};y4.prototype.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};var mWb=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=l(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}ru(this)};var sVd=function(a){if(a.searchResults){for(var b=l(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}ru(a)};y4.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var PVb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},tVd=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},OVb=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=l(a.searchResults.issues);for(var d=a.next();!d.done;d=a.next())d.value.selected?c=!0:b=!1;return b?"checked":c?"indeterminate":"unchecked"};
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 vVd=function(a){if(uVd(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),ru(a))}},NVb=function(a){if(a.searchResults){for(var b=!tVd(a),c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();ru(a)}},EVb=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()&&ZPd(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},FVb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&ZPd(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
wVd=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(Cs(c.issueId)):a.bLocation.setUrl(Cs(c.issueId)))};y4.prototype.getFocusedIssue=function(){return uVd(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var xVd=function(a,b){a.selectionCallbacks.push(b);b()},ru=function(a){a=l(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},yVd=function(a){uVd(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},zVd=function(a,b){b=b===void 0?!0:b;var c=a.getSelectedIssues();if(c.length!==0){for(var d=l(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();oQ(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var g=l(c),k=g.next();!k.done;k=g.next()){var m=void 0;k.value.lastViewedTime=(m=f)!=null?m:null}}).catch(function(){for(var f=l(c),g=f.next();!g.done;g=f.next())g=g.value,g.isRead=!!g.lastViewedTime&&g.lastViewedTime>=g.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
y4.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,gjd(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 uVd=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},qVd=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},rVd=function(a){if(a.searchResults){for(var b=new Set,c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),d!=="0"&&b.add(d);b.size>0?(a.isLoadingTeams=!0,Bld(a.teamsService,[].concat(q(b))).pipe(Bf(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
l(a.searchResults.issues),g=f.next();!g.done;g=f.next()){g=g.value;var k=String(g.teamId);k!=="0"&&(k=e.get(k))&&(g.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};y4.prototype.isIssueGridColumn=function(){return!0};y4.prototype.getComponentPath=function(a){return Fm(a)?a.join(" > "):(a=Du(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=C({type:y4,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(jg(Y3,7),jg(pVd,5));if(a&2){var c;ng(c=og())&&(b.grid=c.first);ng(c=og())&&(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:[Ig([iQ]),xx],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"],[3,"isParentRowActive"],[1,"bv2-hotlist-chips"],[1,"flex-kids-x","align-items-center","right-aligned-container"],[3,"onClick","isParentRowActive"],[3,"id","removable"],[3,"recommendation","isParentRowActive"],[3,"onClick","recommendation","isParentRowActive"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"low","high","p0"],[1,"bv2-priority"],[1,"severity-cell","clickable"],
["data-stable-cell","status",1,"clickable"],[3,"title"],[1,"icon-s",3,"svgIcon"],[3,"class"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],[3,"email"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloStartTime"],[3,"sloStatus","sloStartTime"],[3,"sloId","sloStatus","sloStartTime","onlyShowMetric"],[3,"sloBounds"],["mode",
"date",3,"timestamp"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(K(0,"div"),F(1,IVb,6,6,"mat-sidenav-container",5)(2,KVb,1,1,"ng-container"),L(),E(3,zYb,57,65,"ng-template",null,0,Og)(5,BYb,5,2,"ng-template",null,1,Og));a&2&&(B(),G(b.isIssueSidebarEnabled?1:2))},dependencies:[AUd,
ky,Yy,wA,KM,LM,JM,Y3,a4,oUd,pUd,qUd,V3,X3,BV,d4,mT,UZ,x4,iW,JY,WK,XK,dL,YK,YW,u4,MV,FW,WW,b4,TU,c4,ly,tud,lV,wud,nV],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 AVd=new pu({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),BVd=new pu({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),CVd=new pu({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),DVd=new pu({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),EVd=new pu({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(uC);this.issuePicker=p(fY);this.issueApi=p(SP);this.issueAddedToHotlist=new hQ;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});FVd(a,a.id,b)}};this.handleSuccessCall=function(b){b.errors&&b.errors.length?(b="Failed to add issue(s) to hotlist. "+
kWa(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 FVd=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=C({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:[nC,
jC,FK,DA],encapsulation:2});var A4=function(){Z.call(this);var a=this;this.fridge=p(rP);this.snackBar=p(uC);this.dialog=p(iS);this.events=p(aP);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(dq(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 HVd=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Dh("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){GVd(a,b)}}):GVd(a,b)}},GVd=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=C({type:A4,selectors:[["hotlist-archive-btn"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,xx],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 HVd(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:[nC,jC,FK,DA,ly],encapsulation:2});var B4=function(){C3.apply(this,arguments);this.estadoService=p(U3);this.refreshMonitor=p(aQ);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.init=new hQ;this.onRefresh=new hQ;this.isHotlistAdmin=!1;this.onExportCsv=new hQ;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!Bs(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&&xVd(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 DYb=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 IVd=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};B4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(B4)))(b||B4)}}();
B4.\u0275cmp=C({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:[Ig([iQ]),Gf,xx],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,CYb,2,4,"b-app-bar-bulk-edit-menus",3);F(3,EYb,1,1,"playbook-controls",4);F(4,FYb,1,2,"b-copy-issue-id-button",5);F(5,GYb,
2,2,"div",6);F(6,JYb,2,2);F(7,LYb,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(fTd(b))});L();K(9,"b-state-modal",9);N("save",function(){u(c);return v(dTd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();E(10,OYb,11,6,"ng-template",null,0,Og)}a&2&&(B(2),G(b.hasSelectedIssues()?2:-1),B(),G(b.isPlaybookEnabled?3:-1),B(),G(b.hasSelectedIssues()?4:-1),B(),G(b.enableBulkEditUi&&
b.hasSelectedIssues()?5:-1),B(),G(b.showHotlistButtons&&!b.hasSelectedIssues()?6:-1),B(),G(b.enableEstadoInAppBar?7:-1),B(),I("showExportCsv",b.isNonPublicSession||Xed(b.activeSession))("showFlagIssuesAsSpam",IVd(b)),B(),I("externalWarnings",b.externalWarnings))},dependencies:[GPd,b2,VU,q0,PRd,A4,z4,x3,yT,nC,jC,WB,YB,$B,ZB,A3,xY,y3,jU,ly],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var JVd=function(a){return{displayText:"Admins",values:a}},KVd=function(a){return[a]},LVd=function(a){return{displayText:"Appenders",values:a}},MVd=Dh("You are about to change the administrator privileges for this hotlist.\nMake sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits.\nDo you want to proceed?"),C4=function(){var a=p(yY);Z.call(this);var b=this;this.hotlistAccessPolicyFridge=p(WP);this.links=p(hS);this.snackBar=
p(uC);this.events=p(aP);this.dialog=p(iS);this.permissions=p(JQ);this.userApi=p(qP);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=kod(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:MVd,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){if(b.hotlistId!=null){var c=b.isRevokingAdmin(),d={id:b.hotlistId,admins:ss(b.admins),appenders:ss(b.appenders),editors:null,readers:ss(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(dq(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(!Dm((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!Dm((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return Dm((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:rs((d=b.latestPolicy)==null?void 0:d.admins),appenders:rs((e=b.latestPolicy)==null?
void 0:e.appenders),readers:rs((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(zY(a,this.isChanged,!1))};Y(C4,Z);C4.\u0275dir=Z.\u0275dir;var NVd=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=NVd(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(N0a(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=C({type:C4,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Gf,xx],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=NVd(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=NVd(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,PYb,5,4,"div",6));a&2&&(B(5),yg("disabled",b.isReadOnly),I("users",b.admins),B(5),yg("disabled",b.isReadOnly),I("users",b.appenders)("includeAliases",!0)("containerChips",Kg(18,KVd,Kg(16,JVd,b.admins))),B(5),yg("disabled",b.isReadOnly),I("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(22,KVd,Kg(20,LVd,b.allAppenders))),B(3),I("href",b.accessControlLink,
Pe),B(3),G(b.isReadOnly?-1:21))},dependencies:[yE,rE,vE,nC,jC,FK,DA,TW],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 OVd=["hotlistName"],D4=function(){Z.call(this);var a=this;this.fridge=p(rP);this.snackBar=p(uC);this.events=p(aP);this.checkBeforeExit=p(yY);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(dq(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!Dm(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(zY(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=Em(a))!=null?b:{}};D4.\u0275fac=function(a){return new (a||D4)};
D4.\u0275cmp=C({type:D4,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&jg(OVd,5);if(a&2){var c;ng(c=og())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Gf,xx],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);Eg("ngModelChange",function(d){u(c);
Dg(b.localEdits.name,d)||(b.localEdits.name=d);return v(d)});L();K(5,"label",4);Q(6,"Description");L();K(7,"textarea",5);Eg("ngModelChange",function(d){u(c);Dg(b.localEdits.description,d)||(b.localEdits.description=d);return v(d)});Q(8,"  ");L();F(9,QYb,7,7,"div",6);L()}a&2&&(B(3),I("disabled",b.isReadOnly||b.isArchived),Cg("ngModel",b.localEdits.name),B(4),I("disabled",b.isReadOnly||b.isArchived),Cg("ngModel",b.localEdits.description),B(2),G(b.isReadOnly?-1:9))},dependencies:[yE,Ij,qE,rE,JE,xE,vE,
nC,jC,FK,DA,A4,ly],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(rP);this.acls=p(WP);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=C({type:E4,selectors:[["b-edit-hotlist-header"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,xx],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,RYb,1,1),T(5,"async"),L(),F(6,SYb,2,0,"strong",2),T(7,"async"),F(8,TYb,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:[iU,ly],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var F4=function(){Z.apply(this,arguments);this.activeSession=p(Qu);this.ROUTES=As;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=C({type:F4,selectors:[["b-edit-hotlist-toolbar"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,xx],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,UYb,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:[nC,jC,FK,DA,VU,yT,z4,ly],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var PVd=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),QVd=function(){this.routeParams=p(BS);this.pageTitle=p(m2);this.permissions=p(JQ);this.hotlists=p(rP);this.window=p(rR);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=PVd.get(a))!=null?b:"unknown error"}),zf(void 0));this.tabIndex=0};QVd.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};QVd.\u0275fac=function(a){return new (a||QVd)};
QVd.\u0275cmp=C({type:QVd,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,WYb,12,14),T(1,"async"),F(2,XYb,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:[OL,JL,KL,Vtd,C4,
D4,E4,F4,ly],encapsulation:2});var G4=function(){};G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275cmp=C({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,YYb,3,1,"b-callout",0);a&2&&G(b.error?0:-1)},dependencies:[JU,KU],encapsulation:2});var H4=function(){};H4.\u0275fac=function(a){return new (a||H4)};H4.\u0275mod=cf({type:H4});H4.\u0275inj=Gc({imports:[cP,LU]});var I4=function(){};I4.\u0275fac=function(a){return new (a||I4)};I4.\u0275mod=cf({type:I4});I4.\u0275inj=Gc({imports:[cP,OE,pC,GK,WU,HU,QL,MU,kU,H4,GX,DU]});var J4=function(){};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275mod=cf({type:J4});J4.\u0275inj=Gc({imports:[d2,WU,u0,cP,yX,h3,I4,E3,MU,pC,cK,GK,kU,F3,y0,z3,ztd]});var K4=function(){Z.call(this);this.element=p(Jd);this.bLocation=p(hU);this.hotkeys=p(tU);this.cdr=p(iQ,{self:!0});this.focusedIndex=0;this.convertUserToString=Om;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=uU(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(As.editHotlist.makeHref(a.hotlistId))};
K4.\u0275fac=function(a){return new (a||K4)};
K4.\u0275cmp=C({type:K4,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Ig([iQ]),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"),Qf(25,aZb,12,8,"tr",6,Pf),L()());a&2&&(B(25),Rf(b.hotlists))},encapsulation:2});var L4=function(){};L4.\u0275fac=function(a){return new (a||L4)};L4.\u0275mod=cf({type:L4});L4.\u0275inj=Gc({imports:[cP]});var M4=function(){this.bLocation=p(hU);this.butterBar=p(gO)},RVd=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=RVd(this,"c");return a?Gm(a):null};var SVd=function(a){return(a=RVd(a,"p"))?Gm(a):null};M4.prototype.getQuery=function(){return RVd(this,"q")};
M4.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(gu).filter(hn):null};M4.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(XKb).filter(hn):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 TVd(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return TVd(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)},TVd=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(nR);this.customFieldFridge=p(BP)};O4.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:xs({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 UVd(b)}:function(){return VVd(c)},e=b?function(){return WVd(b)}:function(){return XVd(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return P4(k)}).then(null,d).then(function(k){return P4(k)}).then(null,CIc(a.displayColumns)).then(function(k){return YVd(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,
CIc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return P4(k)}).then(null,function(){return ZVd(c)}).then(function(k){return P4(k)}).then(null,CIc(a.resultsPerPage)),g=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return P4(k)}).then(null,function(){return $Vd(b,function(k){return k.query})}).then(null,CIc(a.query));a=SVd(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},UVd=function(a){return $Vd(a,function(b){return b.displayColumn}).then(function(b){return aWd(b)})},WVd=function(a){return $Vd(a,function(b){return b.sortOrder}).then(function(b){return bWd(b)})},XVd=function(a){return ie(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return P4(b)}).then(function(b){return bWd(b)})},VVd=function(a){return ie(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return P4(b)}).then(function(b){return aWd(b)})},
ZVd=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)})},$Vd=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},aWd=function(a){if(!a||!a.length)return null;a=Iq(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new fu({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},bWd=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new iu(new fu(b.column),b.order):new iu(new fu(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},YVd=function(a,b){function c(){for(var k=l(b),m=k.next();!m.done;m=k.next())if(m=m.value,m.isCustomField()&&!m.customFieldName){var r=d[m.customFieldId];m.customFieldName=r?r:"Custom field "+m.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=l(b),g=f.next();!g.done;g=f.next())g=g.value,g.customFieldId&&g.isCustomField()&&(g.customFieldName?d[g.customFieldId]=g.customFieldName:e.push(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(iQ);this.bLocation=p(hU);this.$log=p(uO);this.butterBar=p(gO);this.analytics=p(lQ);this.issuePagination=p(l2);this.gridPreferencesFetcher=p(O4);this.paths=p(vW);this.errorHandler=p(wO);this.domSafe=p(sR);this.timeout=p(vO);this.hotkeys=p(tU);this.appSearchState=p(xT);this.componentFridge=p(YO);this.issueFullFridge=p(nQ);this.activeSession=p(Qu);this.window=p(rR);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 hQ;this.resultsLoaded=new hQ;this.selectionChange=new hQ;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||EVb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||FVb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||vVd(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||yVd(b)}},{keys:[ds("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||zVd(b,!0)}},{keys:[ds("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||zVd(b,!1)}},{keys:[es("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[es("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||sVd(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||wVd(d)}else{var e;(e=a.issuesGrid)==null||wVd(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();cWd(this)};var cWd=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=uU(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},uZb=function(a,b){a.issuesGrid=b;xVd(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=gu(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new iu(d,b=="ASC"?"ASCENDING":"DESCENDING");xba(this.sortPreferences,function(f){return Dm(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):tSa(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};Dm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(q(b),q(dRb(a)));this.initialIssueColumns=Em(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=Cs(a),c&&pq(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.page=a;this.getIssues()};h.refreshResults=function(){YPd(this.issuePagination);this.getIssues()};h.exportCsv=function(){Amd(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 VPd(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return xs({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=Em(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=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(we(hn),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();QPd(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=eRb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):Q4.DEFAULT_META_COLUMNS).length)).map(function(c){return new fu(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;$r(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Em(a.issueColumns);a.initialSortPreferences=Em(a.sortPreferences);
a.cdr.detectChanges()})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(q(this.initialIssueColumns||[]));this.initialSortPreferences&&!Dm(this.initialSortPreferences,this.sortPreferences)&&(vba(this.sortPreferences),Ws(Aba,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
h.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Dm(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Dm(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=Em(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){Dm(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&&cWd(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});Q4.DEFAULT_META_COLUMNS=[AVd,CVd,DVd];Q4.DEFAULT_COLUMNS=dUd.map(gu).filter(hn);Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275cmp=C({type:Q4,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&jg(y4,5);if(a&2){var c;ng(c=og())&&(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(iS);this.appEvents=p(aP);this.last=this.first=!1};R4.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Dh("Are you sure you want to remove this item? It will be removed from the bookmark group permanently."),onConfirm:function(){a.appEvents.dashboardPanels.remove.next(a.panelId)}})};R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=C({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,fZb,6,4,"ng-template",3),L()());a&2&&(a=sg(4),B(),I("matMenuTriggerFor",a))},dependencies:[Yy,eK,pH,nH,oH,sH,nC,lC],encapsulation:2});var S4=function(){};S4.\u0275fac=function(a){return new (a||S4)};S4.\u0275mod=cf({type:S4});S4.\u0275inj=Gc({imports:[cP,fK,pC]});var T4=function(){};T4.\u0275fac=function(a){return new (a||T4)};T4.\u0275mod=cf({type:T4});T4.\u0275inj=Gc({imports:[cP,eL]});var U4=function(){};U4.\u0275fac=function(a){return new (a||U4)};U4.\u0275mod=cf({type:U4});U4.\u0275inj=Gc({imports:[cP,T4]});var V4=function(){};V4.\u0275fac=function(a){return new (a||V4)};V4.\u0275mod=cf({type:V4});V4.\u0275inj=Gc({imports:[cP,eL,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 Dm(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
W4.\u0275fac=function(a){return new (a||W4)};W4.\u0275cmp=C({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,gZb,2,2,"span"),F(1,hZb,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=Gc({imports:[cP,GK,s3]});Toa(Y3,[ky,a4,W4],[]);var dWd=function(){};dWd.\u0275fac=function(a){return new (a||dWd)};dWd.\u0275mod=cf({type:dWd});dWd.\u0275inj=Gc({imports:[cP,fK,sK,GK,pC,MU,X4]});var eWd=function(){};eWd.\u0275fac=function(a){return new (a||eWd)};eWd.\u0275mod=cf({type:eWd});eWd.\u0275inj=Gc({imports:[cP,pC,$y]});var Y4=function(){};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275mod=cf({type:Y4});Y4.\u0275inj=Gc({imports:[cP,T4]});var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=cf({type:Z4});Z4.\u0275inj=Gc({imports:[JZ,cP,pC,GK,eL,$y]});var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=cf({type:a5});a5.\u0275inj=Gc({imports:[cP,IU,E0,pC,Z4,$y,kU,a1]});var b5=function(){};b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275mod=cf({type:b5});b5.\u0275inj=Gc({imports:[ty,OE,P_,PE]});var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=cf({type:c5});c5.\u0275inj=Gc({imports:[cP,GK,B0,X2,b5,eL]});var d5=function(){};d5.\u0275fac=function(a){return new (a||d5)};d5.\u0275mod=cf({type:d5});d5.\u0275inj=Gc({imports:[cP,GK,B0,eL]});var e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=cf({type:e5});e5.\u0275inj=Gc({imports:[cP,I_,xV,PE,FU]});var f5=function(){};f5.\u0275fac=function(a){return new (a||f5)};f5.\u0275mod=cf({type:f5});f5.\u0275inj=Gc({imports:[cP,GK,pC,eL,Y4,GV,U4,e5,lA,rV]});var g5=function(){};g5.\u0275fac=function(a){return new (a||g5)};g5.\u0275mod=cf({type:g5});g5.\u0275inj=Gc({imports:[WU,LU,cP,OE,pC,cK,NU,HU,GK,X2]});var fWd={},gWd=(fWd.COMFORTABLE=330,fWd.COZY=300,fWd.COMPACT=270,fWd),h5=function(){Z.call(this);var a=this;this.userPreferencesManager=p(nR);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=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return c!=null?c:d!=null?d:gWd[b!=null?b:"COMFORTABLE"]}));le([this.rightSidebarWidthChanged$.pipe(pf()),this.sidebarWidthPreference$]).pipe(we(function(b){var c=l(b);b=c.next().value;return c.next().value!==b}),Af(function(b){var c=l(b);b=c.next().value;c.next();return pmd(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=C({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,iZb,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:[AU,t4,ly],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=Gc({imports:[pV,PV,cP,B_,AV,c5,d5,B0,wU,eL,JX,f5,ZV,GK,DU,g5,Q_,xX,RV,F0,w0,D0,C0]});var hWd=function(){};hWd.\u0275fac=function(a){return new (a||hWd)};hWd.\u0275mod=cf({type:hWd});hWd.\u0275inj=Gc({imports:[pC,GK,OE,eE,SE,jE,QV,RV,cP,a5,KX,rV,pV,kU,i5,IU,KW,IX,b1]});var j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=cf({type:j5});j5.\u0275inj=Gc({imports:[cP,eL]});var k5=function(){};k5.\u0275fac=function(a){return new (a||k5)};k5.\u0275mod=cf({type:k5});k5.\u0275inj=Gc({imports:[cP,j5,GV]});var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=cf({type:l5});l5.\u0275inj=Gc({imports:[BUd,cP,fK,sK,GK,pC,cK,zA,MM,MU,X4,T4,V4,GV,Y4,pV,oU,O_,k5,SX,yX,X1,q3,eL,JX,hWd,NV,RX,HX,cUd,dWd,gud,eWd]});var m5=function(){this.hotlistsApi=p(mP);this.butterBar=p(gO);this.appEvents=p(aP)};
m5.prototype.repositionIssue=function(a,b,c,d,e,f){var g=this,k=b[0].position,m=k>b[1].position,r=b[c],w=b[d].position;Kba(b,c,d);f==null||f();$r(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,r.issueId,w).then(function(){for(var x=k,D=l(b),H=D.next();!H.done;H=D.next())H.value.position=x,x+=m?-1:1;f==null||f();$r(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 hQ;this.resultsPerPageChange=new hQ;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=C({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,jZb,1,1,"b-actions-menu",1),F(2,kZb,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:[Yy,nC,lC,UY,IY],encapsulation:2});var o5=function(){};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275mod=cf({type:o5});o5.\u0275inj=Gc({imports:[cP,pC,JZ,W1]});var p5=function(){Q4.apply(this,arguments);this.hotlists=p(m5);this.hotlistApi=p(mP);this.appEvents=p(aP);this.ROUTES=As;this.resource=this.resultsPerPage=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"});$r(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"?iWd:jWd};h.getSearchParams=function(a){a=Q4.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;this.resultsPerPage&&(a.resultsPerPage=this.resultsPerPage);return a};
h.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};p5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(p5)))(b||p5)}}();
p5.\u0275cmp=C({type:p5,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId",resultsPerPage:"resultsPerPage"},standalone:!1,features:[Ig([iQ]),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,lZb,2,0,"div"),F(4,mZb,2,0,"div"),F(5,pZb,8,6,"div"),L(),F(6,qZb,5,0,"div",3),K(7,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(8,wZb,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,nC,jC,FK,DA,n5,R4,iU],encapsulation:2});var jWd=[AVd,CVd,DVd,EVd],iWd=[AVd,BVd,CVd,DVd,EVd],q5=function(){};q5.\u0275fac=function(a){return new (a||q5)};q5.\u0275mod=cf({type:q5});q5.\u0275inj=Gc({imports:[cP,l5,pC,GK,o5,S4,kU]});var r5=function(){Q4.apply(this,arguments);this.savedSearchApi=p(uP);this.resource=this.resultsPerPage=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.prototype.getSearchParams=function(a){a=Q4.prototype.getSearchParams.call(this,a);this.resultsPerPage&&(a.resultsPerPage=this.resultsPerPage);return a};r5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(r5)))(b||r5)}}();
r5.\u0275cmp=C({type:r5,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId",resultsPerPage:"resultsPerPage"},standalone:!1,features:[Ig([iQ]),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,xZb,2,0,"div"),F(4,yZb,2,0,"div"),F(5,BZb,8,6,"div",3),L(),K(6,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(7,
GZb,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,FK,DA,n5,R4,iU],encapsulation:2});var s5=function(){};s5.\u0275fac=function(a){return new (a||s5)};s5.\u0275mod=cf({type:s5});s5.\u0275inj=Gc({imports:[cP,l5,GK,o5,S4,kU]});var t5=function(){this.label="Team"};t5.prototype.ngOnInit=function(){};t5.\u0275fac=function(a){return new (a||t5)};
t5.\u0275cmp=C({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),Qf(2,HZb,3,4,"span",2,Pf),L()());a&2&&(Kf("aria-label",b.label),B(2),Rf(b.teamPath))},dependencies:[qF],encapsulation:2});var u5=function(){};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275mod=cf({type:u5});u5.\u0275inj=Gc({imports:[cP,LV]});var kWd=["form"],lWd=["numberInput"],mWd=/^\d+\.?\d*$/,nWd={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},v5=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new hQ;this.displayUnits=0;this.TimeUnit=nWd};
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=C({type:v5,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(jg(kWd,7),jg(lWd,7));if(a&2){var c;ng(c=og())&&(b.form=c.first);ng(c=og())&&(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");mWd.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:[yE,Ij,zE,qE,rE,IE,xE,vE,fE,QE,cE,VD,SD,EU,cI,xA],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 oWd=function(){};oWd.\u0275fac=function(a){return new (a||oWd)};oWd.\u0275mod=cf({type:oWd});oWd.\u0275inj=Gc({imports:[cP,OE,SE,eE,FU,KW]});var w5=function(){};w5.\u0275fac=function(a){return new (a||w5)};w5.\u0275mod=cf({type:w5});w5.\u0275inj=Gc({imports:[cP,pC,cK,sK,fK,MU,WU]});var pWd=function(){this.dialogRef=p(SB);this.data=p(UB);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};pWd.prototype.close=function(){this.dialogRef.close(!1)};pWd.\u0275fac=function(a){return new (a||pWd)};
pWd.\u0275cmp=C({type:pWd,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",Gg("/issues/",b.issueId),Pe),B(2),S("b/",b.issueId),B(3),Ag(b.issueTitle))},
dependencies:[nC,jC,YB,$B,ZB],encapsulation:2});var x5=function(){this.activeSession=p(Qu);this.matDialogService=p(VB);this.issueFullFridge=p(nQ);this.analytics=p(lQ);this.routeParams=p(BS);this.iconOnly=!1;this.subscriptionChange=new hQ;this.showNotificationSettings=new hQ;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=Bdd;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(){qWd(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 qWd=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(TB(a.matDialogService.open(pWd,{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=C({type:x5,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},standalone:!1,features:[xx],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,IZb,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=sg(29);
return v(f.toggle(!0))})("blur",function(){u(c);var f=sg(29);return v(f.toggle(!1))});K(28,"xap-bubble",21,1);M(30,"mat-icon",22);E(31,JZb,13,0,"ng-template",null,2,Og);L()()();K(33,"div",17)(34,"button",23);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});K(35,"div",19);M(36,"b-icon",11);K(37,"div",12);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=sg(43);return v(f.toggle(!0))})("blur",function(){u(c);var f=sg(43);return v(f.toggle(!1))});K(42,"xap-bubble",21,3);M(44,"mat-icon",22);E(45,KZb,17,0,"ng-template",null,4,Og);L()()();K(47,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});K(48,"div",17)(49,"div",19);M(50,"b-icon",11);K(51,"div",12);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=sg(6);var d=sg(32),e=sg(46);B();yg("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);yg("black",b.menuIcon==="notifications-off");I("name",b.menuIcon);B();G(b.iconOnly?-1:4);B(5);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);I("vertical",!0);B(5);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(7);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);yg("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);yg("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Yy,nC,jC,rK,eK,pH,nH,sH,yT,$V,FK,DA],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=Gc({imports:[cP,pC,sK,fK,MU,WU,xX,GK]});var z5=function(){this.sloApi=p(PQ);this.cdr=p(iQ,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new hQ;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},rWd=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=C({type:z5,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},standalone:!1,features:[Ig([iQ])],decls:7,vars:5,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"ngModelChange","click","input","placeholder","ngModel","disabled","matAutocomplete"],
["panelWidth","574px",3,"optionSelected","displayWith"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"input",3,0);Eg("ngModelChange",function(d){u(c);Dg(b.selectedSlo,d)||(b.selectedSlo=d);return v(d)});N("click",function(){u(c);var d=sg(2);return v(rWd(b,d.value))})("input",function(){u(c);var d=sg(2);return v(rWd(b,d.value))});L();K(3,"mat-autocomplete",4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Qf(5,LZb,2,2,"mat-option",
5,Pf);L()()}a&2&&(a=sg(4),B(),I("placeholder",b.placeholder),Cg("ngModel",b.selectedSlo),I("disabled",b.isDisabled)("matAutocomplete",a),B(2),I("displayWith",b.displayFn),B(2),Rf(b.dropdownChoices))},dependencies:[bY,ZX,xA,$X,Ij,qE,xE],encapsulation:2});var A5=function(){};A5.\u0275fac=function(a){return new (a||A5)};A5.\u0275mod=cf({type:A5});A5.\u0275inj=Gc({imports:[cP,dY,OE]});var B5=function(){this.documentationLinks=p(hS);this.activeSession=p(Qu);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new hQ;this.validChange=new hQ;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=Ldd};
B5.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};su(this)};B5.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);su(this)};
var su=function(a){var b;if(b=VZb(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!sWd(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||tWd(a));a.validChange.emit(b)},uWd=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},VZb=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)},NZb=function(a){return a?lVa(a):"[unset period]"},tWd=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},SZb=function(a){if(!VZb(a)||tWd(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 "+NZb(e):"Restricted+ retention must not exceed Restricted retention."},sWd=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},WZb=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=C({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,MZb,2,0,"span",3),F(9,OZb,4,3,"div",4),F(10,PZb,13,0,"div",5),L(),K(11,"mat-radio-button",6),Q(12),F(13,QZb,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);su(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,RZb,2,0,"span",3),L(),K(24,"mat-radio-button",10),Q(25," Custom retention period "),F(26,TZb,2,1,"span",3),F(27,XZb,16,7,"div",4),L(),K(28,"mat-radio-button",6),Q(29," Match Issue Retention "),F(30,YZb,3,0,"div",
11),L()());a&2&&(yg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),I("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),I("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:
8),B(),G(b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD?9:-1),B(),G(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),B(),I("disabled",!uWd(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),B(),S(" Indefinite retention period ",uWd(b)?"":"(Internal components only)"," "),B(),G(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),B(),yg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),
I("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(2),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&sWd(b)?23:-1),B(),Jf("aria-label","Custom Retention Period,"+SZb(b)),I("disabled",!VZb(b))("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.piiRetentionSelection!==
b.RetentionSelection.CUSTOM_PERIOD||tWd(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&&WZb(b)?30:-1))},dependencies:[qE,xE,zT,AT,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=Gc({imports:[cP,OE,NU,oWd]});var vWd=function(){this.type="component";this.includeChildren=!1},wWd=function(){this.type="tracker"},xWd=function(){this.type="team";this.includeChildren=!1},yWd=function(){this.type="hotlist"},zWd=function(){this.type="savedsearch"},AWd=function(){this.type="customfield"};var BWd=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},CWd="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),DWd=CWd.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(" ")),
EWd="attachmentanalysis cl deleted deletionreason deletiontime escalationowner insight nearestslo postmortem staffingplaceholder staffingplaceholdercount staffinguser staffingusercount teamid".split(" "),FWd="(?:\\s|^)(-?)(customfield\\d+|"+DWd.join("|")+")(:|>|<|>=|<=|=)";var D5=function(){Z.call(this);var a=this;this.appSearchState=p(xT);this.trackerFridge=p(aR);this.trackerHelpers=p(pS);this.customFieldsApi=p(AP);this.hotlistApi=p(mP);this.savedSearchApi=p(uP);this.componentActions=p(eW);this.teamsService=p(UQ);this.activeSession=p(Qu);this.currentUserBookmarksFridge=p(wP);this.query="";this.requestIndex=0;this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(e){return GWd(a,e)}},{updateHeader:function(e){return HWd(a,e)}},{updateHeader:function(e){return IWd(a,
e)}},{updateHeader:function(e){return JWd(a,e)}},{updateHeader:function(e){return KWd(a,e)}},{updateHeader:function(e){return LWd(a,e)}},{updateHeader:function(e){return MWd(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){NWd(a,e.currentRequestIndex,e.currentSearchContext)});this.sessionIsInternal=this.activeSession.isInternalSession();var b=new Set(DWd);
if(!this.sessionIsInternal)for(var c=l(EWd),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!Bs(this.activeSession)};
var NWd=function(a,b,c){for(var d=!1,e=!1,f=[],g=l(a.producers),k=g.next();!k.done;k=g.next())k=k.value,k.match&&f.push(k.match(c).then(function(m){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,q(m))}).catch(function(m){return m})),k.updateHeader&&f.push(k.updateHeader(c).then(function(m){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=m)}).catch(function(m){return m}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},GWd=
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 OWd(a,b);if(b.label){if(b.label.customFieldId)return PWd(a,b);switch(b.label.val){case "archived":return Promise.resolve(vu(QWd,b.value,!0));case "componentid":case "c":return RWd(a,b);case "deleted":return SWd(b);case "deletionreason":return Promise.resolve(vu(TWd,
b.value,!0));case "hotlistid":case "h":return UWd(a,b);case "savedsearchid":return VWd(a,b);case "status":case "is":return Promise.resolve(vu(WWd,b.value,!0));case "trackerid":return XWd(a,b);case "teamid":return YWd(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(vu(ZWd,b.value,!0));case "severity":case "s":return Promise.resolve(vu($Wd,b.value,!0));case "inprod":case "star":case "mute":return SWd(b);case "accesslevel":return Promise.resolve(vu(aXd,
b.value,!0));case "staffingplaceholder":return Promise.resolve(vu(bXd,b.value,!0));default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=a_b(b.value.val);e=l(a.atoms);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&f.startsWith(d.token)){var g=b.value.idx+(d.negated?1:0);g={type:"atom",startIdx:g,endIdx:g+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:g})}c.sort(function(k,
m){return wa(k.name,m.name)});return Promise.resolve(c)},OWd=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=Ksd(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=Ood(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return cXd(a,b,f)})},cXd=function(a,b,c){var d=c.customFields.map(function(g){return g.componentId}).filter(hn);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=l(c.customFields);for(var e=
c.next(),f={};!e.done;f={customField$jscomp$30:void 0},e=c.next())f.customField$jscomp$30=e.value,e=a.getComponentPathNames(f.customField$jscomp$30).then(function(g){return function(k){var m=g.customField$jscomp$30,r=b.value.val,w=m.customFieldId,x=b.value.idx;return{id:w,componentPathNames:k,name:m.name,trackId:"customField:"+w,completionCfg:{type:"customField",startIdx:x,endIdx:x+r.length,completionValue:"customfield"+w+":",matchingString:r}}}}(f)),d.push(e);return Promise.all(d)};
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 PWd=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 vu(d,b.value,!1,!1)}):Promise.reject(null)};
D5.prototype.matchType=function(a){return Promise.resolve(vu(dXd,a.value,!0))};
var SWd=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(vu([{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))},RWd=function(a,b){var c=b.value.val;return!c||uu(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=l(b);for(var e=b.next(),f={};!e.done;f={paths$jscomp$19:void 0,startIdx$jscomp$4:void 0,endIdx$jscomp$4:void 0},e=b.next()){e=e.value;var g=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$19=Du(this.trackerHelpers,e.componentPathInfo);f={id:g,name:e.name,description:e.description,trackId:"component:"+g,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",startIdx:f.startIdx$jscomp$4,
endIdx:f.endIdx$jscomp$4,completionValue:g,matchingString:c},componentPath:f.paths$jscomp$19.componentPathId.map(function(k){return function(m,r){return{trackId:"subcomponent:"+m,id:m,name:k.paths$jscomp$19.componentPathName[r],completionCfg:{type:"component",completionValue:m,startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var YWd=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||uu(c,!0))return Promise.reject(null);var d=Ho();WQ(a.teamsService,c).pipe(Bf(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=l(e);for(var m=e.next(),r={};!m.done;r={pathNames$jscomp$5:void 0},m=e.next())m=m.value,r.pathNames$jscomp$5=m.pathNames,r={trackId:"team:"+m.teamId,name:m.name,id:m.teamId,label:"Team "+m.teamId,pathIds:m.pathIds,pathNames:m.pathNames,description:m.description,completionCfg:{type:"team",
startIdx:f,endIdx:g,completionValue:String(m.teamId),matchingString:c},teamPath:m.pathIds.map(function(w){return function(x,D){return{trackId:"team:"+x,id:x,name:w.pathNames$jscomp$5[D],completionCfg:{type:"team",completionValue:String(x),startIdx:f,endIdx:g}}}}(r))},k.push(r);d.resolve(k)},function(){d.reject()});return d.promise},HWd=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new vWd;b=b.value.val;return uu(b,!0)?(va(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(b).then(function(d){var e;Bs(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},KWd=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new wWd,d=Ho();b=b.value.val;uu(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},
MWd=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new xWd,d=Ho(),e=b.value.val;uu(e,!0)?(va(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),WQ(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},IWd=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new yWd;b=b.value.val;return uu(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},JWd=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new zWd;b=b.value.val;return uu(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
LWd=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]),or("search-usage","customfield");else return Promise.reject(null);var d=new AWd;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},XWd=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||uu(c,!0))return Promise.reject(null);var d=Ho();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=l(e.results);for(var m=e.next();!m.done;m=e.next())m=m.value,k.push({trackId:"trackerid:"+m.trackerId,name:m.name,id:m.trackerId,label:"Tracker "+m.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:g,completionValue:m.trackerId,matchingString:c}});d.resolve(k)});return d.promise},UWd=function(a,b){return uu(b.value.val)?Promise.reject(null):ie(xP(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 vu(c,b.value,!1,!0)})},VWd=function(a,b){return uu(b.value.val)?Promise.reject(null):ie(nhd(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 vu(c,b.value,!1,!0)})};
D5.\u0275fac=function(a){return new (a||D5)};D5.\u0275prov=Fc({token:D5,factory:D5.\u0275fac,providedIn:"root"});
var WWd="accepted assigned closed duplicate fixed inactive infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return wu({name:a,label:"Status",type:"status"})}),dXd="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return wu({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),ZWd=["p0","p1","p2","p3","p4"].map(function(a){return wu({name:a,
label:"Priority",type:"priority"})}),$Wd=["s0","s1","s2","s3","s4"].map(function(a){return wu({name:a,label:"Severity",type:"severity"})}),QWd=["all","true","false"].map(function(a){return wu({name:a,label:"Archived",type:"archived"})}),TWd=["abuse","pii","user_request","retention"].map(function(a){return wu({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),aXd=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return wu({name:b,label:"Issue access level",type:"accesslevel",id:a})}),bXd=[["swe",UN.SWE],["sre",UN.SRE],["pm",UN.PM],["tpgm",UN.TPGM],["ux",UN.UX],["uxd",UN.UXD],["uxr",UN.UXR],["datasci",UN.DATASCI],["ld",UN.LD],["devrel",UN.DEVREL],["tw",UN.TW],["gtm",UN.GTM],["ce",UN.CE],["other",UN.OTHER]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return wu({name:b,label:"Staffing - Placeholder",
type:"staffingplaceholder",id:a})});var E5=function(){this.cdr=p(iQ,{self:!0});this.optionsChange=new hQ};E5.prototype.ngOnInit=function(){eXd(this)};E5.prototype.onSelectionChanged=function(){eXd(this);fXd(this);this.optionsChange.emit(this.options)};
var eXd=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},fXd=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},gXd=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);fXd(a)},hXd=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=C({type:E5,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},standalone:!1,features:[Ig([iQ])],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(gXd(b,d))});K(10,"mat-checkbox",6);N("change",function(d){u(c);b.selectAllValue=d.checked;return v(gXd(b))});Q(11);L()();M(12,"mat-divider");Qf(13,b_b,4,3,"div",7,Pf);T(15,"keyvalue");L();F(16,c_b,2,1,"div",8);L()}a&2&&(a=sg(8),B(),yg("ng-invalid",!!b.errorString),I("matMenuTriggerFor",a),B(3),S(" ",hXd(b)," "),B(5),Kf("aria-checked",b.selectAllValue),B(),I("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),B(),S(" ",b.selectAllText," "),
B(2),Rf(U(15,9,b.options.propertyValues)),B(3),G(b.errorString?16:-1))},dependencies:[Yy,xL,rI,eK,pH,nH,sH,rK,nC,jC,qy],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 iXd=function(a,b){this.displayString=a;this.value=b},jXd=function(a){this.propertyValues=a},kXd=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},Z_b=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};jXd.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=Gc({imports:[cP,yL,fK,sK,pC]});var lXd=function(a,b){this.name=a;this.secondsPerUnit=b},o_b=new lXd("minute",60),p_b=new lXd("hour",3600),q_b=new lXd("day",86400),G5=function(){this.errorString=null;this.objectiveDurationChange=new hQ;this.objectiveBusinessDaysChange=new hQ;this.intervalUnit=q_b};G5.prototype.ngOnInit=function(){mXd(this)};G5.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&mXd(this)};
var f_b=function(a,b){b=b.name;Gm(a.intervalString)!==1&&(b+="s");return b},n_b=function(a){return a.dayType==="BUSINESS"},mXd=function(a){!n_b(a)&&nXd(a,q_b)||nXd(a,p_b)||nXd(a,o_b);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},nXd=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):(n_b(a)?[o_b,p_b]:[o_b,p_b,q_b]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},i_b=function(a){a.validator&&(a.errorString=a.validator(a.intervalString,a.businessDayString));l_b(a);m_b(a)},l_b=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(Gm(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},m_b=function(a){a.objectiveBusinessDays=Gm(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};G5.\u0275fac=function(a){return new (a||G5)};
G5.\u0275cmp=C({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:[xx],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,h_b,3,2,"span",0)(1,r_b,7,5,"span",1);a&2&&G(b.isDisabled?0:1)},dependencies:[Ij,qE,xE,EU,cI,xA],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 oXd=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"]])},sXd=function(a,b){var c=new pXd,d=qXd(b,"type",function(f){var g=f.toUpperCase(),k=new rXd;a.typeStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(var e=d.next();!e.done;e=d.next())c.types.push(a.typeStringToEnum.get(e.value));d=qXd(b,"priority",function(f){var g=
f.toUpperCase(),k=new rXd;a.priorityStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(e=d.next();!e.done;e=d.next())c.priorities.push(a.priorityStringToEnum.get(e.value));b=qXd(b,"postmortem",function(f){var g=f.toUpperCase(),k=new rXd;a.postmortemValuesToCanonical.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=l(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},qXd=function(a,b,c){var d=new tXd;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};oXd.\u0275fac=function(a){return new (a||oXd)};oXd.\u0275prov=Fc({token:oXd,factory:oXd.\u0275fac,providedIn:"root"});
var pXd=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},tXd=function(){this.values=[];this.error=""},rXd=function(){this.error=this.value=""};var H5=function(){};H5.prototype.validate=function(a){for(var b={},c=l(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};H5.\u0275fac=function(a){return new (a||H5)};H5.\u0275dir=df({type:H5,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},standalone:!1,features:[Ig([{provide:mE,useExisting:H5,multi:!0}])]});var I5=function(){this.constants=p(lS);this.sloParseService=p(oXd);this.confirmationDialogService=p(iS);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new hQ;this.onValidation=new hQ;this.metricChoices=["METRIC_UNSPECIFIED"].concat(eld);this.dayTypes=["CALENDAR","BUSINESS"];eld.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 b0b=function(a,b,c){$_b(a);a=l(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},e0b=function(a,b,c){c=h0b(a,b,c);var d=c.newOffset;c.valid&&($_b(a),La(a.collection,b),La(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),uXd(a))},h0b=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},$_b=function(a){a=l(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},vXd=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()},P_b=function(a){return a==="METRIC_UNSPECIFIED"?" - ":fld.get(a)},B_b=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},H_b=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "};I5.prototype.removeElement=function(a){$_b(this);La(this.collection,a);La(this.boundCollection,a.sloElement);uXd(this)};
var u_b=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Dh("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];uXd(a)},onDismiss:function(){}});b.stopPropagation()},s_b=function(a,b){var c=new J5({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",objective:{seconds:0,nanos:0},businessDays:0},a,!0);b0b(a,c);a.collection.splice(b,
0,c);a.boundCollection.splice(b,0,c.sloElement);uXd(a)};I5.prototype.onDrop=function(a){e0b(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var uXd=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
da.Object.defineProperties(I5.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){vXd(this,a)}},canPerformActions:{configurable:!0,enumerable:!0,set:function(a){this.canPerformActionsInternal=a;this.onValidation.emit(a)},get:function(){return this.canPerformActionsInternal}},isDisabled:{configurable:!0,enumerable:!0,set:function(a){this.isDisabledInternal=a;if(this.collection)for(var b=l(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});I5.\u0275fac=function(a){return new (a||I5)};
I5.\u0275cmp=C({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,v_b,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,k0b,3,2,"tbody",16),L(),K(27,"div"),F(28,l0b,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,WV,VV,qE,JE,xE,yT,SD,cE,eK,pH,nH,sH,EU,cI,xA,FK,DA,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=kXd(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=kXd(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=kXd(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=wXd(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return xXd(d,e)}};yXd(this);this.typePickerValues=zXd(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return B_b(d.controllerReference,e)});this.priorityPickerValues=zXd(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return H_b(d.controllerReference,e)});this.postmortemPickerValues=zXd(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();xXd(this,this.selectedMetric)},wXd=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 xXd=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,AXd(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,yXd(this))};
var AXd=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=BXd(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=BXd(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=BXd(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 BXd=function(a,b){if(a.length===0)return"";if(a.length===1)return b(a[0]);var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
J5.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,yXd(this))};var yXd=function(a){a.parseResult=sXd(a.controllerReference.sloParseService,a.matcherText)},zXd=function(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),g=c(e);d[""+e]=new iXd(g,f)}return new jXd(d)};var K5=function(){};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275mod=cf({type:K5});K5.\u0275inj=Gc({imports:[cP,OE,FU]});var L5=function(){};L5.\u0275fac=function(a){return new (a||L5)};L5.\u0275mod=cf({type:L5});L5.\u0275inj=Gc({imports:[cP]});var M5=function(){};M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275mod=cf({type:M5});M5.\u0275inj=Gc({imports:[cP,L5,XV,OE,MU,eE,fK,FU,GK,F5,K5]});var N5=function(){Z.apply(this,arguments);this.element=p(Jd);this.cdr=p(iQ,{self:!0});this.location=p(hU);this.hotkeys=p(tU);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=uU(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(As.editSlo.makeHref(a.sloId))};
N5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(N5)))(b||N5)}}();
N5.\u0275cmp=C({type:N5,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},standalone:!1,features:[Ig([iQ]),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"),Qf(15,m0b,7,7,"tr",6,Pf),L()());a&2&&(B(15),Rf(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=Gc({imports:[cP]});var CXd=function(){this.log=p(uO);this.dateFormatter=p(AS)},EXd=function(a,b){var c=gNb(b.addMask.paths),d=gNb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var g=l(new Set([].concat(q(c),q(d)))),k=g.next();!k.done;k=g.next()){var m=k.value;k=gld.get(m);if(m==="name"){var r=ku(d,m,b.name);m=ku(c,m,f.name);e.diffs.push(lu(k,r,m))}else if(m==="description")r=ku(d,m,b.description),m=ku(c,m,f.description),e.diffs.push(lu(k,r,m));else if(m===
"parentId")r=ku(d,m,String(b.parentId)),m=ku(c,m,String(f.parentId)),e.diffs.push(lu(k,r,m));else if(m==="elements"){var w=f.elements;r=hNb(d,m,b.elements.map(function(x){return DXd(x)}));m=hNb(c,m,w.map(function(x){return DXd(x)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:r,added:m}})}else a.log.error("Unsupported diff field.")}return e},DXd=function(a){var b=a.matcher,c=fld.get(a.metric),d=V_b.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>
1?"s":""));a.objective.seconds>0&&e.push(Q8a(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};CXd.\u0275fac=function(a){return new (a||CXd)};CXd.\u0275prov=Fc({token:CXd,factory:CXd.\u0275fac,providedIn:"root"});var FXd=function(){};FXd.\u0275fac=function(a){return new (a||FXd)};FXd.\u0275mod=cf({type:FXd});FXd.\u0275inj=Gc({imports:[cP,pC,cK]});var IXd=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=l(GXd);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a[c]){var d=a[c],e=void 0;Array.isArray(d)?e=d.map(function(f){return typeof f==="string"?Aa(f):""}):e=typeof d==="string"?Aa(d):"";this.templateAttributes[c]=e}b=l(HXd);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]&&(this.templateAttributes[c]=a[c]);if(a=a.customFields)for(a=Array.isArray(a)?a:[a],a=l(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),ya(c)||(this.templateCustomFields[b[0]]=c)},KXd=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||JXd.some(function(b){return a.templateAttributes[b]!=null})},PXd=function(a,b,c){c!=null&&(LXd(a,c),MXd(a,b,c),NXd(b,c));c=l(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;OXd[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},MXd=function(a,b,c){b.customField==null&&(b.customField=
[]);for(var d={},e=l(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=l(Object.entries(a.templateCustomFields));var g=e.next();for(f={};!g.done;f={customFieldId$jscomp$29:void 0},g=e.next()){var k=l(g.value);g=k.next().value;k=k.next().value;f.customFieldId$jscomp$29=Gm(g);k={customFieldId:f.customFieldId$jscomp$29,value:k};g=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$29]!=null?(f=b.customField.findIndex(function(m){return function(r){return r.customFieldId===
m.customFieldId$jscomp$29}}(f)),b.customField[f]=g):(b.customField.push(g),d[k.customFieldId]=g)}};
IXd.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=CSa(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=DSa(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 CSa(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 DSa(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};IXd.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var LXd=function(a,b){a.templateCustomFields=Bi(a.templateCustomFields,function(c,d){return!!b[d]})},NXd=function(a,b){if(a.customField!=null){a=l(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues:void 0},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=c.repeatedEnumValue.values.filter(function(g){return function(k){return g.allowedValues.includes(k)}}(d)),
!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},GXd="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),HXd=["inProd"],JXd="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),P5={},OXd=(P5.cc=function(a,b){a.ccUsers=
q0b(b,a.ccUsers||[])},P5.collaborators=function(a,b){a.collaboratorsUsers=q0b(b,a.collaboratorsUsers||[])},P5.title=function(a,b){typeof b==="string"&&(a.title=b)},P5.assignee=function(a,b){p0b(b,function(c){a.assigneeUser=c})},P5.reporter=function(a,b){p0b(b,function(c){a.reporterUser=c})},P5.verifier=function(a,b){p0b(b,function(c){a.verifierUser=c})},P5.hotlistIds=function(a,b){if(b=n0b(b)){a.hotlistId||(a.hotlistId=[]);b=l(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},P5.blockingIssueIds=
function(a,b){if(b=n0b(b))a.blockingIssueId=b.map(String)},P5.blockedByIssueIds=function(a,b){if(b=n0b(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=o0b(yod,b))a.priority=HSa(b)},P5.severity=function(a,b){if(b=o0b(Dod,b))a.severity=JSa(b)},P5.type=function(a,b){if(b=o0b(Aod,
b))a.type=ISa(b)},P5);var Q5=function(){this.issueRelationshipApi=p(rQ);this.issueApi=p(SP)};
Q5.prototype.bulkEdit=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){switch(O.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("sg");g={};k=[];m=[];r=R0a(e);w=l(r.reverse());x=w.next();case 2:if(x.done){O.jumpTo(4);break}D=x.value;Yd(O,5);return f==="ADD"?(H=D.map(function(R){return{targetIssueId:R,afterIssueId:void 0}}),z(O,ie(Fjd(b.issueRelationshipApi,d,H)),8)):z(O,ie(Gjd(b.issueRelationshipApi,d,D)),
8);case 8:return z(O,b.issueApi.batchGetIssuesFull(D).then(function(R){return R.map(function(V){return g[V.issueId]=V})}),11);case 11:Zj(O,3);break;case 5:J=be(O);if(!cq(J))throw J;m.push(J);k.push.apply(k,q(D));case 3:x=w.next();O.jumpTo(2);break;case 4:return O.return({finishedIssues:g,notFinishedIssueIds:k,errors:m})}})};Q5.\u0275fac=function(a){return new (a||Q5)};Q5.\u0275prov=Fc({token:Q5,factory:Q5.\u0275fac,providedIn:"root"});var QXd=function(){this.issueApi=p(SP);this.templatesApi=p($O);this.errorHandler=p(wO);this.userAccess=p(JP);this.activeSession=p(Qu)},SXd=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ia(c.snapshot),g,k=(g=c.description)==null?void 0:g.unlinkifiedComment,m;g=(m=c.description)==null?void 0:m.formattedComment;f.comment=k?k.trim():g?eVa(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 RXd(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},RXd=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return KP(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})};QXd.\u0275fac=function(a){return new (a||QXd)};QXd.\u0275prov=Fc({token:QXd,factory:QXd.\u0275fac,providedIn:"root"});var R5=function(){this.bLocation=p(hU);this.routeParams=p(BS);this.domSafe=p(sR)},TXd=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&va(d,"id=")||va(d,"bugId="))d+=c;Amd(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 UXd={provide:Ygd,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},VXd={provide:Ygd,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 WXd={provide:CDc,useExisting:S5,multi:!0};var T5=function(){this.http=p(Qy)};Y(T5,oO);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=Xda(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(A(r0b(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,pO);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 XXd=function(){};XXd.\u0275fac=function(a){return new (a||XXd)};XXd.\u0275mod=cf({type:XXd});XXd.\u0275inj=Gc({providers:[{provide:oO,useExisting:T5},{provide:pO,useExisting:U5}],imports:[cP]});var V5=function(){var a=this;this.fridge=p(YO);this.userAccess=p(JP);this.currentComponentId="";this.providedComponentId$=new wf(1);this.accessCheckIsThinking$=new Wj(!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 KP(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=l(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=C({type:V5,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},standalone:!1,features:[xx],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,s0b,3,4,"a",1),T(3,"async"),Nf(4,t0b,2,1,"output"),L());a&2&&(I("isReady",U(1,2,b.isReady$)),B(2),G(U(3,4,b.userIsComponentReader$)?2:4))},dependencies:[AW,ly],encapsulation:2});var YXd=function(){this.documentationLinks=p(hS);this.activeSession=p(Qu);this.loginRedirector=p(W5);this.isAnonymous=this.activeSession.isAnonymous();this.signInProgressing=this.showIssueMetadataContainer=!1};
da.Object.defineProperties(YXd.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=qo(a.modifiedTime);a.teamId&&(this.issueTeamId=a.teamId);if(a=a.issueState){this.issueType=Qm(a.type);var b;this.issueStatus=(b=Sm.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=led[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=$mb(a.accessLimitLevel)}this.showIssueMetadataContainer=!0}else this.showIssueMetadataContainer=
!1}}});YXd.\u0275fac=function(a){return new (a||YXd)};
YXd.\u0275cmp=C({type:YXd,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,v0b,1,1,"ng-container"),F(4,x0b,1,1,"ng-container"),L(),E(5,A0b,40,13,"ng-template",null,0,Og)(7,D0b,5,1,"ng-template",null,1,Og));a&2&&(B(3),G(b.showIssueMetadataContainer?3:-1),B(),G(b.isAnonymous?4:-1))},dependencies:[ky,V5,HW,MV,nC,jC,iU,oy],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(hU)};W5.prototype.redirect=function(){var a=Bh("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl())),b=window.location;a=Ch(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 ZXd=function(){};ZXd.\u0275fac=function(a){return new (a||ZXd)};ZXd.\u0275mod=cf({type:ZXd});ZXd.\u0275inj=Gc({imports:[cP,TX]});var X5=function(){};X5.\u0275fac=function(a){return new (a||X5)};X5.\u0275mod=cf({type:X5});X5.\u0275inj=Gc({imports:[cP,ZXd,KX,NV,pC,kU]});var $Xd=Symbol("ug"),aYd=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 bYd(a,a6(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new cYd(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[$Xd](a);return b};
var m2b=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 dYd=["OR","AND","NAND"],eYd=["OR","NAND"],fYd="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),gYd=["AND","OR","NAND"],hYd=["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[$Xd]=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 iYd=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=iYd(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=jYd(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var jYd=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:tSa(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 dYd};var kYd=[],e6=function(a,b){d6.call(this,a,b);this.enumValues={}};Y(e6,d6);h=e6.prototype;h.getLegalTypes=function(){return eYd};h.getWidgetType=function(){return"enum"};
h.initValues=function(a){this.enumValues={};for(var b=l(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=l(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[E0b(b.value.simpleValues[0].value)]=!0};h.valuesToStrings=function(){return Object.keys(Bi(this.enumValues,function(a){return a}))};h.getOptions=function(){return kYd};var lYd=Jba().map(function(a){return{id:"p"+a,label:"P"+a}}),mYd=function(a,b){e6.call(this,a,b)};Y(mYd,e6);
mYd.prototype.getOptions=function(){return lYd};var nYd=Jba().map(function(a){return{id:"s"+a,label:"S"+a}}),oYd=function(a,b){e6.call(this,a,b)};Y(oYd,e6);oYd.prototype.getOptions=function(){return nYd};
var pYd=[{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"}],qYd=function(a,b){e6.call(this,a,b)};Y(qYd,e6);qYd.prototype.getOptions=function(){return pYd};
var rYd=[{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"}],sYd=function(a,b){e6.call(this,a,b)};Y(sYd,e6);sYd.prototype.getOptions=function(){return rYd};
var tYd=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],uYd=function(a,b){e6.call(this,a,b)};Y(uYd,e6);uYd.prototype.getOptions=function(){return tYd};var vYd=[{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"}],wYd=function(a,b){e6.call(this,a,b)};Y(wYd,e6);wYd.prototype.getOptions=function(){return vYd};
var xYd=[{id:"swe",label:ir.SWE,tooltip:UN.SWE},{id:"sre",label:ir.SRE,tooltip:UN.SRE},{id:"pm",label:ir.PM,tooltip:UN.PM},{id:"tpgm",label:ir.TPGM,tooltip:UN.TPGM},{id:"ux",label:ir.UX,tooltip:UN.UX},{id:"uxd",label:ir.UXD,tooltip:UN.UXD},{id:"uxr",label:ir.UXR,tooltip:UN.UXR},{id:"datasci",label:ir.DATASCI,tooltip:UN.DATASCI},{id:"ld",label:ir.LD,tooltip:UN.LD},{id:"devrel",label:ir.DEVREL,tooltip:UN.DEVREL},{id:"tw",label:ir.TW,tooltip:UN.TW},{id:"gtm",label:ir.GTM,tooltip:UN.GTM},{id:"ce",label:ir.CE,
tooltip:UN.CE},{id:"other",label:ir.OTHER}],yYd=function(){e6.apply(this,arguments)};Y(yYd,e6);yYd.prototype.getOptions=function(){return xYd};var bYd=function(a,b){e6.call(this,a,b);this.allowedValues=[]};Y(bYd,e6);bYd.prototype[$Xd]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:E0b(b)}});e6.prototype[$Xd].call(this,a)};bYd.prototype.valuesToStrings=function(){return Object.keys(Bi(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};
bYd.prototype.getOptions=function(){return this.allowedValues};var cYd=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(cYd,d6);cYd.prototype.getWidgetType=function(){return"repeated-enum"};cYd.prototype.getOptions=function(){return this.allowedValues};var Cu=function(a,b){d6.call(this,a,b);this.csv=""};Y(Cu,d6);Cu.prototype.getWidgetType=function(){return"csv"};
Cu.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};Cu.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var f6=function(a,b){Cu.call(this,a,b)};Y(f6,Cu);f6.prototype.getWidgetType=function(){return"id"};
f6.prototype.valuesToStrings=function(){return Cu.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(Gm(a))})};var zYd=function(a,b){Cu.call(this,a,b)};Y(zYd,f6);zYd.prototype.getLegalTypes=function(){return eYd};var g6=function(a,b){Cu.call(this,a,b)};Y(g6,Cu);g6.prototype.getWidgetType=function(){return"user"};var h6=function(a,b){Cu.call(this,a,b)};Y(h6,g6);h6.prototype.getLegalTypes=function(){return eYd};
var $5=function(a,b){d6.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Y($5,d6);var S1b=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=AYd(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=AYd(a.values[0].simpleValues[1].value)}};
$5.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=Gm(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&BYd(this.dateFrom)||(new Am).toIsoString(!0);var b=this.dateTo&&BYd(this.dateTo)||(new Am).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&BYd(this.dateFrom)||(new Am).toIsoString(!0)]};
var CYd=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},AYd=function(a){if(aYd.test(a))return a;var b=new Cm(2E3);a=Aa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(SVc);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 gG("d",g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new gG("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(UVc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var m=0;else m=Number(a[2])*60+Number(a[3]),m*=a[1]=="-"?1:-1;if(g=c.match(TVc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(g[1]);e=Number(g[2])||0;f=Number(g[3])||0;var r=g[4]?Number(g[4])*1E3:0;(g=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,r);g&&(a-=126227808E5);b.setTime(a+m*6E4)}else b.setHours(Number(g[1])),
b.setMinutes(Number(g[2])||0),b.setSeconds(Number(g[3])||0),b.setMilliseconds(g[4]?Number(g[4])*1E3:0);c=!0}else c=!1}return CYd(c?b:null)},BYd=function(a){if(aYd.test(a))return a;a=a.split("/").map(Number);return(new Am(a[2],a[0]-1,a[1])).toIsoString(!0)};$5.prototype.getLegalTypes=function(){return fYd};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 jYd(this)+":"+(this.type==="OR")};i6.prototype.getLegalTypes=function(){return eYd};var DYd=function(a,b){d6.call(this,a,b)};Y(DYd,d6);DYd.prototype.getWidgetType=function(){return"boolwithall"};
DYd.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")};DYd.prototype.toString=function(){var a=jYd(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
DYd.prototype.getLegalTypes=function(){return gYd};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 EYd=function(a,b){d6.call(this,a,b)};Y(EYd,d6);EYd.prototype.getWidgetType=function(){return"component"};EYd.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}))};EYd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var FYd=function(a,b){d6.call(this,a,b)};Y(FYd,d6);FYd.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}))};FYd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var GYd=function(a,b){d6.call(this,a,b)};Y(GYd,d6);GYd.prototype.getWidgetType=function(){return"tracker"};
var HYd=function(a,b){d6.call(this,a,b)};Y(HYd,FYd);HYd.prototype.getWidgetType=function(){return"team"};var IYd=function(a,b){d6.call(this,a,b)};Y(IYd,d6);IYd.prototype.getWidgetType=function(){return"hotlist"};var JYd=function(a,b){d6.call(this,a,b)};Y(JYd,d6);JYd.prototype.getWidgetType=function(){return"savedsearch"};var b6=function(a,b){Cu.call(this,a,b)};Y(b6,Cu);b6.prototype.getWidgetType=function(){return"number"};b6.prototype.getLegalTypes=function(){return hYd};
var KYd=function(a,b){$5.call(this,a,b)};Y(KYd,$5);KYd.prototype.initType=function(a){$5.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var j6={},LYd=(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:EYd,name:"Component"},j6.TRACKER_ID={ruleCtor:GYd,name:"Tracker"},j6.TYPE={ruleCtor:qYd},j6.STATUS={ruleCtor:sYd},j6.PRIORITY={ruleCtor:mYd},j6.SEVERITY={ruleCtor:oYd},j6.BLOCKED_BY_ID={ruleCtor:f6},j6.BLOCKING_ID=
{ruleCtor:f6},j6.PARENT_ID={ruleCtor:f6},j6.CANONICAL_ID={ruleCtor:zYd},j6.ID={ruleCtor:zYd},j6.FOUND_IN={ruleCtor:Cu},j6.TARGETED_TO={ruleCtor:Cu},j6.VERIFIED_IN={ruleCtor:Cu},j6.CL={ruleCtor:Cu,name:"Changelists"},j6.MODIFIED={ruleCtor:$5},j6.RESOLVED={ruleCtor:KYd},j6.CREATED={ruleCtor:$5},j6.VERIFIED={ruleCtor:KYd},j6.DELETION_TIME={ruleCtor:$5,name:"Deletion time"},j6.SAVED_SEARCH_ID={ruleCtor:JYd,name:"Saved search"},j6.HOTLIST_ID={ruleCtor:IYd,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:DYd},j6.IS_DELETED={ruleCtor:i6,name:"Deleted",queryLabel:"deleted"},j6.DELETION_REASON={ruleCtor:uYd,name:"Deletion reason"},j6.ACCESS_LEVEL={ruleCtor:wYd,name:"Issue access level"},j6._TEXT_={ruleCtor:c6,queryLabel:"",name:"All fields"},j6),MYd=Object.assign({},LYd,{EFFORT_LABEL:{ruleCtor:Cu},MENTION:{ruleCtor:g6},MIN_SLO_TARGET:{ruleCtor:$5,name:"Nearest SLO",queryLabel:"nearestslo"},
POSTMORTEM:{ruleCtor:Cu,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:HYd,name:"Team"},INSIGHT:{ruleCtor:c6},ATTACHMENT_ANALYSIS:{ruleCtor:c6}}),NYd={ESCALATION_OWNER:{ruleCtor:h6}},Y5=function(){this.activeSession=p(Qu)},a6=
function(a){var b={STAFFING_PLACEHOLDER:{ruleCtor:yYd,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}};return a.activeSession.isExternalSession()?LYd:Object.assign({},b,MYd,NYd)};Y5.\u0275fac=function(a){return new (a||Y5)};Y5.\u0275prov=Fc({token:Y5,factory:Y5.\u0275fac,providedIn:"root"});var OYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OYd,W);h=OYd.prototype;h.getField=function(){return Ii(this,1)};h.getCustomFieldId=function(){return En(this,2)};h.getCustomFieldId_asString=function(){return Cn(this,2)};h.setCustomFieldId=function(a){return Yn(this,2,a)};h.hasCustomFieldId=function(){return Pb(tm(this,2))!=null};var K0b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K0b,W);h=K0b.prototype;h.getType=function(){return Ii(this,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getValue=function(){return xi(this,2)};h.setValue=function(a){return yj(this,2,a)};h.hasValue=function(){return wm(this,2)};var PYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(PYd,W);h=PYd.prototype;h.getType=function(){return Ii(this,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getValuesList=function(a){return Ni(this,PYd,2,Oi(a))};h.setValuesList=function(a){return $i(this,2,a)};h.setValues=function(a,b){Yw(this,2,PYd,a,b)};var S0b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S0b,W);h=S0b.prototype;h.getType=function(){return Ii(this,1)};h.setType=function(a){return Vn(this,1,a)};h.hasType=function(){return xm(this,1)};h.getValuesList=function(a){return Ni(this,PYd,2,Oi(a))};h.setValuesList=function(a){return $i(this,2,a)};h.setValues=function(a,b){Yw(this,2,PYd,a,b)};h.getLabel=function(){return X(this,OYd,4)};h.setLabel=function(a){return Zi(this,OYd,4,a)};
h.hasLabel=function(){return Ji(this,OYd,4)};var xu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xu.messageId)};Y(xu,W);xu.prototype.getType=function(){return Ii(this,1,void 0,jb)};xu.prototype.setType=function(a){return Vn(this,1,a,jb)};xu.prototype.hasType=function(){return xm(this,1,jb)};xu.messageId="b.QueryBuilderResponse";var P0b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,P0b.messageId)};Y(P0b,W);P0b.messageId="b.SyntaxErrorResponse";var QYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,QYd.messageId)};Y(QYd,W);QYd.prototype.getKindCase=function(){return Mo(this,Q0b,jb)};var Q0b=[1,2];QYd.messageId="b.QueryBuilderResponseOrError";var RYd=function(){this.executor=p(pO)},SYd=function(a,b){b=fq(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:QYd}).then(T0b).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(F0b)});return c})};RYd.\u0275fac=function(a){return new (a||RYd)};RYd.\u0275prov=Fc({token:RYd,factory:RYd.\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 hQ;this.onApplyChanges=new hQ;this.onCancelChanges=new hQ;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(){Jta(this.selectedValuesMap);for(var a=l(this.allowedValues),b=a.next();!b.done;b=a.next())b=b.value,this.selectedValuesMap[b]=this.selectedValues.includes(b);this.oldSelectedValuesMap=Object.assign({},this.selectedValuesMap);this.hasPendingChanges=!1};h.ngAfterViewInit=function(){};h.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
h.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};h.search=function(a){this.searchQuery$.next(a)};h.handleSelectionChange=function(){this.hasPendingChanges=!Dm(this.oldSelectedValuesMap,this.selectedValuesMap)};h.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var X0b=function(a,b){a.allowMultiSelect?(b=Object.keys(Bi(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=C({type:k6,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&jg($X,7);if(a&2){var c;ng(c=og())&&(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=sg(1);return v(b.search(e.value))})("input",function(){u(c);var e=sg(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(X0b(b,e))});Qf(4,W0b,3,2,"mat-option",4,Pf);T(6,"async");L();F(7,Y0b,5,5,"div",5)}if(a&2){a=sg(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;Rf((d=U(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);B(3);G(b.allowMultiSelect?7:-1)}},dependencies:[Yy,
bY,ZX,xA,$X,Ij,qE,xE,nC,jC,xL,rI,ly],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(aR);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new hQ;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=C({type:l6,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&jg($X,7);if(a&2){var c;ng(c=og())&&(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=sg(1);return v(b.search(d.value))})("input",function(){u(c);var d=sg(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))});Qf(4,Z0b,3,2,"mat-option",4,Pf);T(6,"async");L()}a&2&&(a=sg(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),Rf(U(6,6,b.trackerSuggestions$)))},dependencies:[bY,ZX,xA,$X,Ij,qE,xE,ly],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(lQ);this.customFieldsApi=p(AP);this.savedSearchApi=p(uP);this.hotlistApi=p(mP);this.trackerFridge=p(aR);this.issueSearchResources=p(RYd);this.activeSession=p(Qu);this.elementRef=p(Jd);this.errorHandler=p(wO);this.componentActions=p(eW);this.teamsService=p(UQ);this.searchRuleConfigService=p(Y5);this.searchRuleFactory=p(Z5);this.cdr=p(iQ,{self:!0});this.trackerHelpers=p(pS);this.currentUserBookmarksFridge=p(wP);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 TYd=function(a){var b=[];Ai(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,Ebb(d)]))},a);b.sort(function(c,d){return Dba(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=TYd(this))};
var VYd=function(a,b){a.reset();b?UYd(a,b):(a.expressions=m6.DEFAULT_FIELDS.map(function(c){return m2b(a.searchRuleFactory,c)}),a.state="SUCCESS");ie(nhd(a.currentUserBookmarksFridge)).then(function(c){a.userSavedSearches=c;c=l(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});ie(xP(a.currentUserBookmarksFridge)).then(function(c){a.userHotlists=c;c=l(a.userHotlists);for(var d=c.next();!d.done;d=c.next())d=d.value,a.hotlists[d.hotlistId]=
d;a.cdr.detectChanges()});a.cdr.detectChanges()},UYd=function(a,b){SYd(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 WYd(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=l(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state=
"NOT_REPRESENTABLE",a.analytics.trackEvent("adv-search","adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},WYd=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?XYd(a,b.label.customFieldId).then(function(c){b.customField=
c;return YYd(a,b)}):Promise.resolve(YYd(a,b))},XYd=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},YYd=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;ZYd(a,b);return b},ZYd=function(a,b){switch(b.label.field){case "COMPONENT_ID":b=l(b.values);for(var c=b.next();!c.done;c=b.next())c=c.value.value,a.components[c]||a.fetchComponent(c);break;case "TRACKER_ID":if(a.isTrackerSearchEnabled)for(b=
l(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.trackers[c]||$Yd(a,c);break;case "TEAM_ID":if(a.sessionIsInternal)for(b=l(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.teams[c]||aZd(a,c);break;case "SAVED_SEARCH_ID":b=l(b.values);for(c=b.next();!c.done;c=b.next())c=c.value,a.savedSearches[c.value]||a.savedSearchApi.get(c.value).then(function(d){a.savedSearches[d.searchId]=d});break;case "HOTLIST_ID":for(b=l(b.values),c=b.next();!c.done;c=b.next())c=c.value,a.hotlists[c.value]||
a.hotlistApi.get(c.value).then(function(d){a.hotlists[d.hotlistId]=d})}};m6.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;Bs(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var $Yd=function(a,b){a.trackerFridge.watch(b).pipe(Bf(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},aZd=function(a,b){WQ(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:""}})},bZd=function(a){var b=a.expressionType==="AND"?" ":" | ";return fzc(a.expressions.map(function(c){return c.label?
c.toString():""}),DIc).join(b)};m6.prototype.getState=function(){return this.state};m6.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var p2b=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=m2b(a.searchRuleFactory,d.field),n2b(a,a.expressions[b]));a.cdr.detectChanges()},n2b=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?Au(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=CYd(new Am)),b.dateTo||(b.dateTo=CYd(new Am)))};
m6.prototype.addExpression=function(a){this.expressions.push({label:{field:a}});p2b(this,this.expressions.length-1)};m6.prototype.removeExpression=function(a){La(this.expressions,a);this.cdr.detectChanges()};
var Au=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?v1b(a,c):b.label.field==="TRACKER_ID"?C1b(a,c):b.label.field==="TEAM_ID"?J1b(a,c):b.label.field==="CUSTOM_FIELD"?e1b(a,c):Bu(a,c);a.cdr.detectChanges()},zu=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(aYd);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 Bu=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},v1b=function(a,b){Bu(a,b);a.componentUnderEdit=b.value?Em(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},e1b=function(a,b){Bu(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},C1b=function(a,b){Bu(a,b);a.trackerUnderEdit=b.value?Em(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
J1b=function(a,b){Bu(a,b);a.teamUnderEdit=b.value?Em(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},yu=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},L1b=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;yu(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=Du(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=C({type:m6,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},standalone:!1,features:[Ig([iQ]),Gf,xx],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,s2b,14,3,"div",1);a&2&&G(b.getState()==="SUCCESS"?0:-1)},
dependencies:[Yy,p3,k6,Ij,qE,KE,xE,nC,jC,xL,rI,SD,cE,eK,pH,nH,sH,EU,cI,xA,FK,DA,J3,D_,rW,Y1,l6,uud,qy],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 cZd=function(){};cZd.\u0275fac=function(a){return new (a||cZd)};cZd.\u0275mod=cf({type:cZd});cZd.\u0275inj=Gc({imports:[cP,dY,OE,pC,yL]});var dZd=function(){};dZd.\u0275fac=function(a){return new (a||dZd)};dZd.\u0275mod=cf({type:dZd});dZd.\u0275inj=Gc({imports:[cP,dY,yL,GK,OE]});var n6=function(){};n6.\u0275fac=function(a){return new (a||n6)};n6.\u0275mod=cf({type:n6});n6.\u0275inj=Gc({imports:[pV,cP,q3,cZd,OE,pC,yL,eE,SE,fK,FU,GK,S3,S_,WX,a2,dZd]});var eZd=function(){this.domSafe=p(sR);this.buttonLabel="";this.alertMode=this.menuMode=!1},t2b=function(a){Mr(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};eZd.\u0275fac=function(a){return new (a||eZd)};
eZd.\u0275cmp=C({type:eZd,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,u2b,2,1,"button",0)(1,v2b,3,3,"button",1);a&2&&G(b.menuMode?0:1)},dependencies:[Yy,nC,lC,nH,FK,DA],styles:["[_nghost-%COMP%] { display: flex; }"]});var o6=function(){Z.apply(this,arguments);this.session=p(Qu);this.appsEvents=p(aP);this.prefsManager=p(nR);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.ThemePreferencesDensity=kdd;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=C({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,w2b,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,x2b,2,1);L()}a&2&&(a=sg(3),I("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),B(6),yg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),
Kf("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),B(4),yg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),Kf("aria-checked",b.density===b.ThemePreferencesDensity.COZY),B(4),yg("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:[Yy,eK,pH,nH,sH,nC,lC,rK,FK,DA,eZd,$Y],encapsulation:2,changeDetection:0});var fZd=function(){this.theme=p(PW);this.isDark=!1;this.iconName="dark-mode-filled"};fZd.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();gZd(this)};var gZd=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};fZd.\u0275fac=function(a){return new (a||fZd)};
fZd.\u0275cmp=C({type:fZd,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&&R$c(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());Ayd(c,!c.clientDarkmodeSubject.getValue());
gZd(b)}),M(1,"mat-icon",1),L());a&2&&(B(),I("svgIcon",b.iconName))},dependencies:[Yy,nC,lC,FK,DA],encapsulation:2});var hZd=function(){this.session=p(Qu);this.userFeedback=p(TY);this.domSafe=p(sR);this.docLinks=p(hS);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.majorReleaseNotesUpdated=this.session.getFlag("majorReleaseNotesUpdated")};hZd.\u0275fac=function(a){return new (a||hZd)};
hZd.\u0275cmp=C({type:hZd,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,y2b,1,1,"b-whats-new-button",0),E(2,z2b,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:[Yy,nC,lC,FK,DA,
eZd,$Y,fZd,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 B2b=function(a){return[a]},C2b=function(){return[]},iZd=function(){this.activeSession=p(Qu);this.clickMenu=new hQ;this.showMenu=!1;this.clickLogo=new hQ;this.chips=[]};iZd.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};iZd.\u0275fac=function(a){return new (a||iZd)};
iZd.\u0275cmp=C({type:iZd,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&&(eg(),F(0,A2b,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()(),fg(6),Qf(7,D2b,2,6,"output",4,Pf));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),Ag(b.name),B(2),Rf(b.chips))},dependencies:[Yy,nC,lC],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(aP);this.imageUrls=p(gW);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=C({type:p6,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},standalone:!1,features:[xx],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:[iZd],
encapsulation:2,changeDetection:0});var q6=function(){this.isActive=!1;this.optionClicked=new hQ};q6.prototype.ngOnInit=function(){};q6.prototype.onClick=function(){this.optionClicked.emit(this.index)};q6.\u0275fac=function(a){return new (a||q6)};
q6.\u0275cmp=C({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&&yg("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&&(eg(),K(0,"div",0),fg(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(iQ,{self:!0});this.hostElement=p(Jd);this.trackerHelpers=p(pS);this.items=[];this.header=null;this.itemSelected=new hQ;this.activeItemChanged=new hQ;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 d3b=function(a){var b=P(3);o3b(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(),jZd(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(),jZd(this))};var kZd=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 lZd=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}},jZd=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&prc(b.nativeElement,a.hostElement.nativeElement)},o3b=function(a){or("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=C({type:r6,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&jg(q6,5,Jd);if(a&2){var c;ng(c=og())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},standalone:!1,features:[Ig([iQ]),xx],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,Y2b,7,6,"div",0),K(1,"div",1),Qf(2,p3b,10,13,"b-app-search-auto-complete-option",2,Pf),L());a&2&&(G(b.header&&b.header.type?0:-1),B(2),Rf(b.items))},dependencies:[aW,iW,q6,my],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 mZd=["box"],nZd=["initialFocus"],oZd=["finalFocus"],s6=function(){this.documentationLinks=p(hS);this.appSearchState=p(xT);this.activeSession=p(Qu);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new hQ;this.onAdvancedSearchClose=new hQ;this.onAdvancedSearchSubmit=new hQ;this.onSaveSearch=new hQ;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=l(b);b=c.next().value;c=c.next().value;b=b.completionCfg;a.appSearchState.queryState$.next({query:c.slice(0,b.startIdx)+b.completionValue+c.slice(b.endIdx),cursorPosition:b.cursorIdx!=null?b.cursorIdx:b.startIdx==null?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
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,q3b(c)&&(c.selectionStart=b,c.selectionEnd=b))})};s6.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var pZd=function(a){a.appSearchState.searchTriggered$.next("keyboard")},qZd=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();var c=r3b(a.inputBox.nativeElement,!0)[0];c=c===r3b(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;rZd(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)){qZd(this,this.inputBox.nativeElement.value);return}kZd(this.acList);break;case "ArrowLeft":qZd(this,this.inputBox.nativeElement.value);return;case "Enter":t6(this)?this.acList.activeItemIndex!=null?kZd(this.acList):
pZd(this):pZd(this);break;default:return}a.preventDefault();a.stopPropagation()};s6.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();sZd(this)};
var rZd=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},sZd=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},t6=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},tZd=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},uZd=function(a){return a.dropdownStatus==="advanced_search"};
s6.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",sZd(this))};var vZd=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},s3b=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};s6.\u0275fac=function(a){return new (a||s6)};
s6.\u0275cmp=C({type:s6,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(jg(r6,7),jg(mZd,5),jg(nZd,7,Jd),jg(oZd,7));if(a&2){var c;ng(c=og())&&(b.acList=c.first);ng(c=og())&&(b.inputBox=c.first);ng(c=og())&&(b.advancedSearchInitialFocus=c.first);ng(c=og())&&(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();eg();K(0,"div",3);N("clickOutside",function(){u(c);rZd(b);return v()});K(1,"div",4)(2,"button",5);N("click",function(){u(c);return v(pZd(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=sg(5);return v(qZd(b,d.value))})("click",
function(){u(c);var d=sg(5);return v(qZd(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(vZd(b,d))})("click",
function(){u(c);return v(sZd(b))});M(14,"mat-icon",15);L()();K(15,"div",16);fg(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,t3b,5,2,"div",21);L()()()()}a&2&&(yg("dropdown-opened",t6(b)||tZd(b)||uZd(b)),B(),yg("hidden",uZd(b)),B(3),I("placeholder",b.placeholder),Kf("aria-activedescendant",lZd(b.acList))("aria-expanded",t6(b)||tZd(b)),B(4),yg("advanced-search-open",
uZd(b)),B(),yg("hidden",!(t6(b)||tZd(b))),I("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(),yg("hidden",!uZd(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:[Yy,Lz,nC,jC,lC,FK,DA,Ij,qE,xE,H_,iE,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 wZd=function(){this.activeSession=p(Qu);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new hQ;this.searchBoxOnAdvancedSearchClose=new hQ;this.searchBoxOnAdvancedSearchSubmit=new hQ;this.searchBoxOnSaveSearch=new hQ;this.currentTracker=this.activeSession.getTracker()},xZd=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()})};wZd.\u0275fac=function(a){return new (a||wZd)};
wZd.\u0275cmp=C({type:wZd,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&&(eg(),M(0,"b-app-logo",0),K(1,"div",1)(2,"button",2),N("click",function(){return xZd()})("keydown.enter",function(){return xZd()}),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)}),
fg(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:[nC,jC,p6,hZd,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 yZd=function(){};yZd.\u0275fac=function(a){return new (a||yZd)};yZd.\u0275mod=cf({type:yZd});yZd.\u0275inj=Gc({imports:[cP,cK,pC,BK]});var zZd=function(){};zZd.\u0275fac=function(a){return new (a||zZd)};zZd.\u0275mod=cf({type:zZd});zZd.\u0275inj=Gc({imports:[cP,pC,fK,GK]});var AZd=function(){};AZd.\u0275fac=function(a){return new (a||AZd)};AZd.\u0275mod=cf({type:AZd});AZd.\u0275inj=Gc({imports:[cP,pC,GK]});var BZd=function(){};BZd.\u0275fac=function(a){return new (a||BZd)};BZd.\u0275mod=cf({type:BZd});BZd.\u0275inj=Gc({imports:[cP]});var CZd=function(){};CZd.\u0275fac=function(a){return new (a||CZd)};CZd.\u0275mod=cf({type:CZd});CZd.\u0275inj=Gc({providers:[PW]});var DZd=function(){};DZd.\u0275fac=function(a){return new (a||DZd)};DZd.\u0275mod=cf({type:DZd});DZd.\u0275inj=Gc({imports:[cP,pC,GK,CZd]});var u6=function(){};u6.\u0275fac=function(a){return new (a||u6)};u6.\u0275mod=cf({type:u6});u6.\u0275inj=Gc({imports:[cP,fK,pC,sK,GK,Sz,OE,I_,zZd,U2,AZd,yX,jE,BZd,DZd,yZd,SX]});var EZd=function(){};EZd.\u0275fac=function(a){return new (a||EZd)};EZd.\u0275mod=cf({type:EZd});EZd.\u0275inj=Gc({imports:[cP,pC,cK]});var FZd=function(){};FZd.\u0275fac=function(a){return new (a||FZd)};FZd.\u0275mod=cf({type:FZd});FZd.\u0275inj=Gc({imports:[cP,OE,pC,SE,eE,cK,WX]});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 hQ;this.selectedChange=new hQ;this.cardTitleChange=new hQ;this.onSaveButtonClicked=new hQ;this.onCancelButtonClicked=
new hQ;this.isInheritedChange=new hQ;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=C({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&&(eg(),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,u3b,2,3,"span",3)(4,z3b,3,7),K(5,"button",4),N("click",function(){b.isExpanded?b.collapse():b.expand()}),F(6,A3b,1,0,"mat-icon",5)(7,B3b,1,0,"mat-icon",
6),L()(),F(8,C3b,2,0,"div",7),F(9,H3b,9,6,"div",8),L());a&2&&(Kf("aria-expanded",b.isExpanded),B(2),yg("expanded-checkbox",b.isExpanded),I("disabled",b.disabled)("checked",b.selected),Jf("aria-label",b.cardTitle),B(),G(b.isExpanded?4:3),B(2),zg(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:[Yy,Ij,qE,JE,KE,xE,xL,rI,nC,jC,lC,XU,BT,EU,cE,VD,cI,dI,
xA,SD,rK,fE,QE,FK,DA],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=Gc({imports:[cP,OE,yL,pC,YU,FU,sK,SE,GK]});var GZd=function(){this.dialogRef=p(SB);this.data=p(UB);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};GZd.\u0275fac=function(a){return new (a||GZd)};
GZd.\u0275cmp=C({type:GZd,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,J3b,4,1,"mat-form-field")(4,K3b,1,0),F(5,L3b,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:[nC,jC,EU,cE,cI,xA,SD,YB,$B,ZB],encapsulation:2});var x6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x6,W);x6.prototype.getComponentId=function(){return En(this,1)};x6.prototype.getComponentId_asString=function(){return In(this,1)};x6.prototype.setComponentId=function(a){return Xo(this,1,a)};x6.prototype.setFieldId=function(a){return Yw(this,2,fp,a)};var HZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HZd,W);h=HZd.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getFieldConfigsV2List=function(){return Ni(this,tq,2,Oi())};h.setFieldConfigsV2List=function(a){return $i(this,2,a)};var IZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,IZd.messageId)};Y(IZd,W);IZd.prototype.getIt=function(){return X(this,x6,2,jb)};IZd.prototype.setIt=function(a){return Zi(this,x6,2,a,jb)};IZd.messageId="b.ReorderFieldsRequest";var JZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,JZd.messageId)};Y(JZd,W);JZd.prototype.getIt=function(){return X(this,HZd,1,jb)};JZd.prototype.setIt=function(a){return Zi(this,HZd,1,a,jb)};JZd.messageId="b.UpdateFieldConfigsV2Request";var KZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KZd,W);KZd.prototype.getFieldConfigsV2List=function(){return Ni(this,tq,1,Oi())};KZd.prototype.setFieldConfigsV2List=function(a){return $i(this,1,a)};var LZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,LZd.messageId)};Y(LZd,W);LZd.prototype.getIt=function(){return X(this,KZd,1,jb)};LZd.prototype.setIt=function(a){return Zi(this,KZd,1,a,jb)};LZd.messageId="b.UpdateFieldConfigsV2Response";var y6=function(){this.executor=p(oO)};y6.prototype.reorder=function(a,b){var c=new IZd,d=c.setIt;var e=(new x6).setComponentId(a);b=b.map(SXa);e=$i(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};var MZd=function(a,b,c){c=(new JZd).setIt((new HZd).setComponentId(b).setFieldConfigsV2List(c.map(U_a)));return a.executor.put({url:"action/components/"+b+"/update_field_configs_v2",body:c,responseConstructor:LZd}).pipe(A(function(d){return d.getIt().getFieldConfigsV2List().map(P_a)}))};
y6.\u0275fac=function(a){return new (a||y6)};y6.\u0275prov=Fc({token:y6,factory:y6.\u0275fac,providedIn:"root"});var NZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NZd,W);h=NZd.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getCustomFieldId=function(){return En(this,2)};h.getCustomFieldId_asString=function(){return In(this,2)};h.setCustomFieldId=function(a){return Xo(this,2,a)};var OZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OZd,W);h=OZd.prototype;h.getComponentId=function(){return En(this,1)};h.getComponentId_asString=function(){return In(this,1)};h.setComponentId=function(a){return Xo(this,1,a)};h.getCustomFieldId=function(){return En(this,2)};h.getCustomFieldId_asString=function(){return In(this,2)};h.setCustomFieldId=function(a){return Xo(this,2,a)};var PZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,PZd.messageId)};Y(PZd,W);PZd.prototype.getIt=function(){return X(this,NZd,1,jb)};PZd.prototype.setIt=function(a){return Zi(this,NZd,1,a,jb)};PZd.messageId="b.AddSharedCustomFieldToComponentRequest";var QZd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,QZd.messageId)};Y(QZd,W);QZd.prototype.getIt=function(){return X(this,OZd,1,jb)};QZd.prototype.setIt=function(a){return Zi(this,OZd,1,a,jb)};QZd.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var z6=function(){this.executor=p(pO)};z6.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new PZd).setIt((new NZd).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 QZd).setIt((new OZd).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 RZd=["fieldStateMenu"],P3b=function(a){return{type:a}},SZd=["SILENT","MINOR","MAJOR"],A6=function(){Z.apply(this,arguments);this.customFieldsApi=p(AP);this.checkBeforeExit=p(yY);this.butterBar=p(gO);this.analytics=p(lQ);this.routeParams=p(BS);this.componentActions=p(eW);this.fieldConfigService=p(y6);this.sharedCustomFieldApi=p(z6);this.documentationLinks=p(hS);this.paths=p(vW);this.confirmationDialog=p(iS);this.appEvents=p(aP);this.dialog=p(VB);this.activeSession=p(Qu);this.customFieldHelper=
p(ES);this.sharedFieldCandidates=T8a({isInternal:this.activeSession.isInternalSession(),isProd:Hs(this.activeSession)});this.ROUTES=As;this.FieldType=zV;this.ListFieldType=ewd;this.getSingleEditFieldType=cdb;this.getListFieldType=Keb;this.isRepeated=NXa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=SZd;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(zY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
A6.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=FS(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()||tDd(this.checkBeforeExit))this.editableField=Em(this.customFields[a]),this.originalEditableFieldValue=Em(this.editableField),this.serverError=null,this.setType(this.editableField.type),T3b(this,this.editableField.allowedValue)};
var e4b=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Dh("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. However, data will remain in the system and may be visible through other means (ex: extracts or direct API calls). If you have sensitive data concerns, please file a support request to have the data deleted from affected issues. Are you sure you want to delete this field definition?"),onConfirm:function(){a.doDelete(c)}})};
A6.prototype.doDelete=function(a){var b=this;$r(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");$r(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=dq(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 W3b=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&qSa(b)?b:void 0,e=c==="DATE"&&b&&bSa(b)?b:void 0,f=c==="ENUM"&&qSa(b)?b:void 0,g=c==="NUMERIC"&&pSa(b)?b:void 0,k=c==="REPEATED_TEXT"&&Fm(b)?{values:b}:void 0,m=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(bSa)?{values:b}:void 0,r=c==="REPEATED_ENUM"&&Fm(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&rSa(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:g,repeatedTextValue:k,repeatedDateValue:m,repeatedEnumValue:r,repeatedNumericValue:b}};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 T3b=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&&!Dm(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=FS(a.customFieldHelper,c),e=[];a.componentIdsToNames={};var f,g=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<g.length;f++)e.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=e.join(" > ");a.editableField=null;a.originalEditableFieldValue=null;b||
(a.isLoading=!1);c=function(m,r){return wa(m.name,r.name)};a.customFields=d.filter(function(m){return a.componentId===m.componentId}).sort(c);a.inheritedCustomFields=d.filter(function(m){return a.componentId!==m.componentId&&!m.shared}).sort(c);var k=new Map(d.filter(function(m){return a.componentId!==m.componentId&&m.shared}).map(function(m){return[m.customFieldId,m]}));a.sharedFields=a.sharedFieldCandidates.map(function(m){return k.get(m.customFieldId)}).filter(hn);a.appEvents.customFieldsModified.next(d)})};
A6.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var X3b=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?Im(a):null};A6.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?Im(b):null)==null?void 0:c.values)!=null?d:null};A6.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var s4b=function(a){var b={sharedFields:t4b(a)};TB(a.dialog.open(GZd,{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()})})},n4b=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Dh("Deactivating a shared custom field will hide this shared field when there is no value set on the issue. However, data will remain in the system. Are you sure you want to deactivate this shared field?"),
onConfirm:function(){a.sharedCustomFieldApi.remove(a.componentId,b).then(function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields()})}})},t4b=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=C({type:A6,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&jg(RZd,5);if(a&2){var c;ng(c=og())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},standalone:!1,features:[Gf,xx],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,b4b,70,29,"div",8),F(2,c4b,2,1,"div",9)(3,v4b,29,8,"div"),L());a&2&&(B(),G(b.editableField&&!b.isLoading?1:-1),B(),G(b.isLoading?2:3))},dependencies:[qF,yE,Ij,qE,rE,JE,xE,vE,YV,yV,yT,WK,XK,dL,YK,bW,FK,DA,eK,pH,nH,oH,sH,nC,jC,JW,r3,iU,tud,lV,nV],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=Gc({imports:[cP,OE,ZV,AV,MU,w5,eL,R0,GK,fK,pC,FU,KW,s3,pV,kU,cK]});var C6=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new hQ;this.addRow=new hQ;this.optionsChange=new hQ};C6.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};C6.prototype.drop=function(a){ls(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};C6.\u0275fac=function(a){return new (a||C6)};
C6.\u0275cmp=C({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)}),Qf(9,x4b,12,13,"div",9,Pf),L(),F(11,y4b,2,0,"button",10));a&2&&(B(2),yg("muted",b.disabled),B(3),yg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(2),Rf(b.options),B(2),G(b.disabled?-1:11))},dependencies:[Yy,fE,QE,cE,SD,nC,jC,lC,FK,DA,WV,VV,TV],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 TZd=function(){this.disabled=!1;this.valueChange=new hQ};TZd.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};TZd.\u0275fac=function(a){return new (a||TZd)};
TZd.\u0275cmp=C({type:TZd,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),yg("muted",b.disabled),B(6),yg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(),I("appearance","outline"),B(),I("disabled",b.disabled)("value",b.value))},dependencies:[Yy,fE,QE,cE,SD,FK,DA],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 hQ;this.configurationOptions=[UZd,VZd,WZd];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=eed;this.selectedAggregationRule=this.aggregationRules.SUM};D6.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=WZd)};
D6.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=Em(this.effortSpec),this.setValues(this.effortSpec))};
D6.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=WZd;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 XZd=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===UZd.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===VZd.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===WZd.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=l(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||b.value===null){a=!1;break a}a=!0}a=!a}return a};var YZd=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=C({type:D6,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},standalone:!1,features:[xx],decls:8,vars:11,consts:[["enumConfig",""],["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked",
"isInheritedChange","cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited","inheritedDisabled"],[1,"content"],[3,"disabled","value"],[1,"margin-top"],[4,"ngTemplateOutlet"],[3,"valueChange","disabled","value"],["id","aggregation-rule-label",1,"aggregation-rule-label","config-label","heading-xs","margined"],"mat-icon-button;;matTooltip;Learn more about the aggregation rules;href;http://go/wtdm-home#aggregation;target;_blank".split(";"),
["svgIcon","help-outline",1,"icon-s","gfx-muted"],["appearance","outline",1,"static-label","margined"],["aria-labelledby","aggregation-rule-label","panelClass","multi-line-select",3,"valueChange","value","disabled"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"optionsChange","addRow","removeAtIndex","options","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"b-collapsible-card",1);Eg("cardTitleChange",function(e){u(c);Dg(b.name,e)||(b.name=e);return v(e)});N("dropdownSelectionChanged",
function(e){u(c);b.selectedEffortConfig=e;e.displayText===UZd.displayText?(b.enumSpecOptions=[].concat(q(ZZd)),b.name="Story points"):e.displayText===VZd.displayText?(b.enumSpecOptions=[].concat(q($Zd)),b.name="T-shirt sizes"):e.displayText===WZd.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)===WZd.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var g=l(b.enumSpecOptions),k=g.next();!k.done;k=g.next())k=k.value,k.label&&k.value!==null&&f.push({label:k.label,value:k.value});e.enumSpec={options:f}}b.updateEffortSpec.emit(e)}else b.updateEffortSpec.emit({name:"",
inherit:!1});return v()})("selectedChange",function(e){u(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||YZd(b);return v()})("onCancelButtonClicked",function(){u(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,YZd(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||YZd(b)):b.effortSpec&&(b.setValues({}),YZd(b));b.inherit=e;return v()});K(1,"div",2);F(2,A4b,1,1,"ng-container")(3,B4b,1,2,"b-numeric-config",3)(4,C4b,0,0);L();F(5,D4b,23,13,"div",4);L();E(6,E4b,1,2,"ng-template",null,0,Og)}if(a&2){var d;Cg("cardTitle",b.name);I("dropdownOptions",b.configurationOptions)("selectedOption",b.selectedEffortConfig)("disabled",b.disabled||b.inherit)("selected",b.estimatedEffortFieldEnabled)("isSaveButtonDisabled",b.isSaveButtonDisabled())("showInheritedToggle",
!0)("isInherited",b.inherit)("inheritedDisabled",b.disabled);B(2);G((d=XZd(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);B(3);G(b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[ky,Yy,cE,SD,nC,lC,v6,FK,DA,EU,cI,dI,xA,C6,TZd,a_d]},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 ZZd=[{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}],$Zd=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],UZd={displayText:"Story points",icon:"story-point-24px"},VZd={displayText:"T-shirt sizes",icon:"t-shirt-24px"},WZd={displayText:"Time",icon:"time-24px"},a_d=function(){};
a_d.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};a_d.\u0275fac=function(a){return new (a||a_d)};a_d.\u0275pipe=ef({name:"aggregationRuleText",type:a_d,pure:!0,standalone:!1});var b_d=function(){this.disabled=!1;this.updateComponent=new hQ};b_d.\u0275fac=function(a){return new (a||b_d)};
b_d.\u0275cmp=C({type:b_d,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=Gc({imports:[cP,SE,pC,yL,w6,GK,FU,XV]});var F6=function(){};F6.\u0275fac=function(a){return new (a||F6)};F6.\u0275mod=cf({type:F6});F6.\u0275inj=Gc({imports:[cP,w6,E6]});var G6=function(){var a=this;this.teamsService=p(UQ);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new hQ;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 iKb([b],
[""],"")):VQ(a.teamsService,b).pipe(A(function(c){return new iKb([],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){or("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);c_d(this)};var c_d=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};G6.prototype.ngOnInit=function(){Object.assign({},this.model);c_d(this)};var I4b=function(a){return a.model.id&&a.model.id!=="0"};
G6.prototype.getMomaTeamLink=function(){return I4b(this)?"https://moma.corp.google.com/team/"+this.model.id:null};G6.\u0275fac=function(a){return new (a||G6)};
G6.\u0275cmp=C({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,G4b,1,1),T(2,"async"),F(3,H4b,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);c_d(b)}),L(),F(10,K4b,1,1)(11,M4b,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:[Yy,qF,xL,rI,FK,DA,Y1,s4,nC,lC,ly],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=Gc({imports:[cP,dY,yL,GK,a2,g5,OE,pC]});var I6=function(){};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275mod=cf({type:I6});I6.\u0275inj=Gc({imports:[cP,XV,pC,sI,$y]});var d_d=function(){};d_d.\u0275fac=function(a){return new (a||d_d)};d_d.\u0275mod=cf({type:d_d});d_d.\u0275inj=Gc({imports:[I6,pC,cK]});var e_d=function(){};e_d.\u0275fac=function(a){return new (a||e_d)};e_d.\u0275mod=cf({type:e_d});e_d.\u0275inj=Gc({imports:[cP,xV,cK,e5]});var f_d=function(){};f_d.\u0275fac=function(a){return new (a||f_d)};f_d.\u0275mod=cf({type:f_d});f_d.\u0275inj=Gc({imports:[cP,OE,pC,cK,SE,eE,X2]});var g_d=function(){};g_d.\u0275fac=function(a){return new (a||g_d)};g_d.\u0275mod=cf({type:g_d});g_d.\u0275inj=Gc({imports:[cP,OE,pC,SE,eE,cK]});var h_d=function(){this.dialogData=p(UB);this.dialogRef=p(SB);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};h_d.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};h_d.\u0275fac=function(a){return new (a||h_d)};
h_d.\u0275cmp=C({type:h_d,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=sg(8);return v(IHd(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:[Yy,nC,jC,lC,YB,$B,ZB,FK,DA,ZZ],encapsulation:2});var i_d=function(){this.matDialog=p(VB);this.confirmationDialog=p(iS);this.fieldConfigService=p(y6);this.analytics=p(lQ);this.butterBar=p(gO);this.fields=[];this.isAdmin=!1;this.onReload=new hQ;this.displayedColumn=["index","name","type","required","customFieldId"]},$4b=function(a){return TB(a.matDialog.open(h_d,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&j_d(a,b)})},a5b=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Dh("Resetting the ordering of the custom fields will return them to the position defined by its parent component. This action may also reset the ordering of fields in all other sub-components."),onConfirm:function(){a.reset()}})},j_d=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?($r(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){$r(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.")};
i_d.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?($r(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){$r(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.")};
i_d.\u0275fac=function(a){return new (a||i_d)};
i_d.\u0275cmp=C({type:i_d,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),Wf(3,3),E(4,N4b,2,0,"th",4)(5,O4b,2,1,"td",5),Xf(),Wf(6,6),E(7,P4b,2,0,"th",4)(8,Q4b,2,1,"td",5),Xf(),Wf(9,7),E(10,R4b,2,0,"th",4)(11,S4b,3,
3,"td",5),Xf(),Wf(12,8),E(13,T4b,2,0,"th",4)(14,U4b,2,1,"td",5),Xf(),Wf(15,9),E(16,V4b,2,0,"th",4)(17,W4b,2,1,"td",5),Xf(),E(18,X4b,1,0,"tr",10)(19,Y4b,1,0,"tr",11),L(),F(20,Z4b,2,0,"div",12),L(),F(21,b5b,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:[nC,jC,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,Izd],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=Gc({imports:[cP,pC,cK]});var K6=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275mod=cf({type:K6});K6.\u0275inj=Gc({imports:[cP,pC,cK,XX,GK,J6,wX,I6]});var k_d=function(){this.analytics=p(lQ);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},d5b=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="+l_d+a.issueId+m_d;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
k_d.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};k_d.\u0275fac=function(a){return new (a||k_d)};
k_d.\u0275cmp=C({type:k_d,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,c5b,2,1,"span")(4,f5b,6,0,"span"),L());a&2&&(B(),I("href",d5b(b,b.lineNumbers),Pe),B(),S(" ",b.filename," "),B(),G(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var l_d=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),m_d=encodeURIComponent("(\\b|$)");var L6=function(){};L6.\u0275fac=function(a){return new (a||L6)};L6.\u0275mod=cf({type:L6});L6.\u0275inj=Gc({imports:[cP]});var o5b=function(a,b){return b.category},n_d=function(){var a=this;this.bLocation=p(hU);this.destroyRef=p(Ee);this.dynamicScrollIntoView=p(PZ);this.elementRef=p(Jd);this.contextSensitiveRegistry=p(cR);this.imageUrls=p(gW);this.scrolledOnScreenService=p(BU);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=dPd;this.LOGO_PURPLE=
this.imageUrls.LOGO_PURPLE;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(hn),pf());this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Cf(function(b){a.logImpressions(b)}));this.scrollToInsight=vB(function(){var b=a.bLocation.hash();b&&ZGd(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"insights-accordion",scrollPadding:60}).pipe(fj(a.destroyRef)).subscribe()},200)};h=n_d.prototype;
h.ngOnInit=function(){var a=this;this.scrollToInsight();this.destroyRef.onDestroy(function(){for(var b=l(a.onScreenSubscriptions.values()),c=b.next();!c.done;c=b.next())c.value.unsubscribe();a.onScreenSubscriptions.clear()})};h.onExpand=function(a,b){var c=this;this.logIssueUserEventForIssueEnrichment("EVENT_TYPE_OPEN",a.category);setTimeout(function(){c.maybeSetupOnScreenDetection(a.category,b._body.nativeElement)},0)};
h.logImpressions=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,ie(b.issueId$),2);c=k.yieldResult;d=l(a);for(e=d.next();!e.done;e=d.next())f=e.value,g=f.category,b.loggedImpressionEnrichments.has(g)||(b.loggedImpressionEnrichments.add(g),b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_IMPRESSION",g));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=Ytd(c.scrolledOnScreenService,b,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(fj(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)})};n_d.\u0275fac=function(a){return new (a||n_d)};
n_d.\u0275cmp=C({type:n_d,selectors:[["b-insights"]],viewQuery:function(a,b){a&1&&jg(YL,5);if(a&2){var c;ng(c=og())&&(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&&(bg(0),T(1,"async"),F(2,g5b,7,1,"section",2)(3,p5b,7,0)(4,q5b,2,0,"div",3));a&2&&(a=cg(U(1,1,b.enrichments$)),
B(2),G(a&&a.length===0?2:a&&a.length>0?3:4))},dependencies:[vT,BV,nC,jC,j4,YL,VL,Yad,WL,XL,iU,ly],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 o_d=function(){};o_d.\u0275fac=function(a){return new (a||o_d)};o_d.\u0275mod=cf({type:o_d});o_d.\u0275inj=Gc({imports:[cP,IU,GV,pC,Z4,mC,ZL,$y,kU,a1]});var p_d=function(){return{width:400}},q_d=function(){return[]},r_d=function(){var a=this;this.bLocation=p(hU);this.analytics=p(lQ);this.activeSession=p(Qu);this.componentActions=p(eW);this.cdr=p(iQ,{self:!0});this.routeParams=p(BS);this.includeArchived$=new Wj(!1);this.createComponentPath=As.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=l(b);b=c.next().value;c=c.next().value;var d;return a.componentActions.getChildren((d=b==null?void 0:b.parentComponentId)!=null?d:"0",c)}));this.routeParams.componentId&&t5b(this,String(this.routeParams.componentId),ie(this.topLevelComponents$))},t5b=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=zba(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},g=l(e),k=g.next();!k.done;k=g.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return xs(f).then(function(m){for(var r=m[0],w=null,x=l(e),D=x.next(),H={};!D.done;H={parentId$jscomp$28:void 0},D=x.next()){H.parentId$jscomp$28=D.value;D=void 0;var J=(D=r.find(function(O){return function(R){return R.componentId===O.parentId$jscomp$28}}(H)))!=null?D:null;J&&(J.children=m[H.parentId$jscomp$28],J.showChildren=!0,r=J.children,w=J.componentId)}w&&d.archived&&!a.includeArchived&&
(b=w);a.cdr.detectChanges();setTimeout(function(){var O=a.componentTree,R=b,V=cSd(R);V&&V.click();n3(O,R)})})})};da.Object.defineProperties(r_d.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});r_d.\u0275fac=function(a){return new (a||r_d)};
r_d.\u0275cmp=C({type:r_d,selectors:[["b-list-components-page"]],standalone:!1,features:[Ig([iQ])],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,r5b,2,1,"a",4);K(5,"button",5);Q(6," Search Components ");L();E(7,s5b,4,6,"ng-template",null,0,Og);
F(9,u5b,3,4,"div",6);L()();K(10,"div",7);F(11,v5b,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=sg(8);B(4);G(b.isInternalSession?4:-1);B();I("xapInlineDialogClick",a)("overlaySize",Jg(13,p_d));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:Jg(14,q_d))("includeArchived",(f=
U(15,11,b.includeArchived$))!=null?f:!1)}},dependencies:[iU,eC,bC,hC,ZU,nC,jC,m3,rW,ly],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var s_d=function(){};s_d.\u0275fac=function(a){return new (a||s_d)};s_d.\u0275mod=cf({type:s_d});s_d.\u0275inj=Gc({imports:[cP,kU,X1,QV,RV,dY,$U,pC,o3,WX]});var t_d=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};t_d.\u0275fac=function(a){return new (a||t_d)};
t_d.\u0275cmp=C({type:t_d,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,w5b,2,1,"p",1),K(2,"ul"),Qf(3,x5b,2,5,"li",null,Pf),L()());a&2&&(B(),G(b.displayPackageName?1:-1),B(2),
Rf(b.packageMentionSet.fileMentionSet))},dependencies:[k_d],encapsulation:2});var M6=function(){};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275mod=cf({type:M6});M6.\u0275inj=Gc({imports:[cP,L6]});var u_d=function(){};u_d.\u0275fac=function(a){return new (a||u_d)};u_d.\u0275mod=cf({type:u_d});u_d.\u0275inj=Gc({imports:[cP,OE,pC,cK,SE,eE,S_]});var v_d=function(){this.activeSession=p(Qu)};v_d.prototype.ngOnInit=function(){};var w_d=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};v_d.\u0275fac=function(a){return new (a||v_d)};
v_d.\u0275cmp=C({type:v_d,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,y5b,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=sg(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(w_d(b)),Pe),B(3),I("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(w_d(b)),Pe))},dependencies:[eK,pH,nH,sH],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=l((b=this.availableTrackers)!=null?b:[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.currentTrackerId===b.trackerId?this.trackerCheckboxValues[b.trackerId]=!0:this.trackerCheckboxValues[b.trackerId]=!1}};var x_d=function(a){return Object.keys(Bi(a.trackerCheckboxValues,function(b){return b}))};
N6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(N6)))(b||N6)}}();
N6.\u0275cmp=C({type:N6,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},standalone:!1,features:[Gf,xx],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,z5b,2,0,"span",3),L(),K(6,"div",4),Qf(7,A5b,3,2,"div",5,Pf),L()()());a&2&&(yg("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),B(5),G(x_d(b).length!==0?-1:5),B(2),Rf(b.availableTrackers))},dependencies:[xL,rI],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(aP),b=p(vW);Z.call(this);var c=this;this.analytics=p(lQ);this.location=p(hU);this.prefsManager=p(nR);this.domSafe=p(sR);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;y_d(c,As.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(Bf(this.destroyed$)).subscribe(function(d){d=d.newTab;y_d(c,As.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(Bf(this.destroyed$)).subscribe(function(d){d=
d.newTab;y_d(c,As.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;y_d(c,b.settings(d.settingsTabName),e)})};Y(O6,Z);O6.\u0275dir=Z.\u0275dir;var y_d=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 z_d=function(){this.hideAppChromeHelper=p(O2);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome};z_d.\u0275fac=function(a){return new (a||z_d)};z_d.\u0275cmp=C({type:z_d,selectors:[["b-top-bar-outlet"]],standalone:!1,decls:1,vars:1,template:function(a,b){a&1&&F(0,B5b,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(uP);this.butterBar=p(gO);this.bLocation=p(hU);this.paths=p(vW);this.analytics=p(lQ);this.appEvents=p(aP);this.appSearchState=p(xT);this.trackerFridge=p(aR);this.errorHandler=p(wO);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 A_d=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("rg");e=new BWd(f,g);if(f){var k=f.slice(0,g);for(var m=!1,r=-1,w=-1;(r=k.indexOf('"',r+1))>-1;)m=!m,w=r;k=m?w:-1;if(k>-1)e.value={val:f.slice(k,g),idx:k};else if(k=f.slice(g),m=k.search("\\s"),
(k=$Zb(f.slice(0,g)+(m>-1?k.slice(0,m):k),FWd))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},k.val.startsWith("customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){m=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(m);r=Math.max(g-m,0);w=k;if(f.charAt(0)==="("){b:{w=[];for(var x=/[()]/g,D;(D=x.exec(f))!=null;){var H=w[w.length-1];if(H&&H!==D[0]){if(w.pop(),
!w.length){w=D.index>=r;break b}}else w.push(D[0])}w=!0}w=w?2:0}else w=CWd.includes(w.val)&&f.search("^\\d")===-1?1:0;switch(w){case 2:g=CWd.includes(k.val)?tu(f,r,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):tu(f,r,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(g.val)&&(g.val="",g.idx=r);e.value=g;break;case 1:e.value=tu(f,r,"[()|]","[()|,\\s]");break;case 0:e.value=tu(f,r,"[\\s()|]");f.slice(0,r).search("[\\s()|]")>-1&&(k=null,r=$Zb(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=ZZb(f,
r.index-r[1].length,g));break;default:wb(w,"unknown ValueType.")}e.value.idx+=m;e.label=k}else k=$Zb(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?ZZb(f,k.index-k[1].length,g):tu(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=l(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=d===void 0?"":d;var f=A$a(c),g=f.filters,k=f.text,m=f.complexSyntax,r=f.resourceIds;f=[g,k,r].reduce(wVa);g=[g?"filters":void 0,k?"text":void 0,r?"ids":void 0].filter(Boolean).join("-");m?e.track(d,"complex"):g?e.track(d,g,f):e.track(d,"UNHANDLED");d=Ia(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
P6.prototype.ngAfterViewInit=function(){VYd(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var B_d=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:bZd(a.advancedSearchCtrl).trim()};h=P6.prototype;h.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(B_d(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&VYd(this.advancedSearchCtrl,this.currentQuery)};
h.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:x_d(a))!=null?b:[]);this.advancedSearchCtrl&&(a=B_d(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:x_d(a))!=null?b:[]);this.advancedSearchCtrl&&(a=B_d(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=B_d(this);c!==void 0&&($r(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;$r(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(dq(d))}))}};
h.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&x_d(this.trackerSearchCtrl).length===0};P6.\u0275fac=function(a){return new (a||P6)};
P6.\u0275cmp=C({type:P6,selectors:[["b-top-bar-outlet-body"]],viewQuery:function(a,b){a&1&&(jg(m6,5),jg(N6,5));if(a&2){var c;ng(c=og())&&(b.advancedSearchCtrl=c.first);ng(c=og())&&(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,C5b,2,4,"b-tracker-search",1),M(2,"b-advanced-search",2),F(3,D5b,4,0,"div",3),F(4,G5b,3,2,"div",4),F(5,H5b,2,0,"div",4),L(),F(6,I5b,1,2,"b-tracker-account-menu-hack",5));a&2&&(I("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",A_d(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:[Yy,m6,N6,wZd,iU,v_d,ly],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 C_d=function(){};C_d.\u0275fac=function(a){return new (a||C_d)};C_d.\u0275mod=cf({type:C_d});C_d.\u0275inj=Gc({imports:[cP,yL]});var D_d=function(){};D_d.\u0275fac=function(a){return new (a||D_d)};D_d.\u0275mod=cf({type:D_d});D_d.\u0275inj=Gc({imports:[cP,n6,C_d,u6,kU,fK]});var Q6=function(){this.dialogRef=p(SB);this.data=p(UB);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=Lm;this.DiffType=ced};Q6.prototype.close=function(){this.dialogRef.close()};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275cmp=C({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),Qf(2,S5b,11,3,"li",2,Pf),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.close()}),Q(6," Close "),L()());a&2&&(B(2),Rf(b.updateDiffs))},dependencies:[nC,jC,$B,ZB,kV,hV,BV],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 E_d=function(){};E_d.\u0275fac=function(a){return new (a||E_d)};E_d.\u0275mod=cf({type:E_d});E_d.\u0275inj=Gc({imports:[cP,pC,cK,rV,GV]});var R6=function(){this.paths=p(vW);this.bLocation=p(hU)};R6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=Cs(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 F_d={provide:RR,useExisting:R6};var G_d=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}}();Qw(Eu,Fi);Eu.prototype.wrap=function(a){return H_d(this,a)};var I_d=function(a,b){return(b?"__wrapper_":"__protected_")+Bba(a)+"__"},H_d=function(a,b){var c=I_d(a,!0);b[c]||((b[c]=J_d(a,b))[I_d(a,!1)]=b);return b[c]},J_d=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[I_d(a,!1)]=b;return c};
Eu.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 K_d(a);};
var L_d=function(a,b){var c=ra.window||ra.globalThis,d=c[b];if(!d)throw Error("vg`"+b);c[b]=function(e,f){typeof e==="string"&&(e=Ws(zyc,e));e&&(arguments[0]=e=H_d(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][I_d(a,!1)]=d};
Eu.prototype.disposeInternal=function(){var a=ra.window||ra.globalThis;var b=a.setTimeout;b=b[I_d(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[I_d(this,!1)]||b;a.setInterval=b;Eu.superClass_.disposeInternal.call(this)};var K_d=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)};Qw(K_d,pa);var N_d=function(a,b,c){sj.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=M_d;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new Eu(vj(this.handleException,this));L_d(this.errorHandler_,"setTimeout");L_d(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&&L_d(a,
e)}a=this.errorHandler_;IHc=!0;b=vj(a.wrap,a);for(c=0;c<GHc.length;c++)GHc[c](b);HHc.push(a)}};Qw(N_d,sj);var O_d=function(a,b){Ss.call(this,"r");this.error=a;this.context=b};Qw(O_d,Ss);var M_d=function(a,b,c,d){if(d instanceof Map){var e={};d=l(d);for(var f=d.next();!f.done;f=d.next()){var g=l(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;ypb(a,null,b,c,e)};
N_d.prototype.handleException=function(a,b){a=a.error||a;b=b?Ci(b):{};a instanceof Error&&Ota(b,a.__closure__error__context__984382||{});var c=WFc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof pa&&!a.reportErrorToServer||P_d(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new O_d(c,b))}catch(e){}};
var P_d=function(a,b,c,d,e,f){try{var g=Xta(a.handlerUrl_,"script",c,"error",b,"line",d);Ita(a.additionalArguments_)||(g=Yta(g,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var m=Wta(b);a.xhrSender_(g,"POST",m,a.extraHeaders_)}catch(r){}};N_d.prototype.disposeInternal=function(){zi(this.errorHandler_);N_d.superClass_.disposeInternal.call(this)};var S6=function(){this.jsBuild="834421871";this.buildLabel="buganizer.frontend_20251119.11_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 G_d!==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 N_d("/jserror",function(c,d){d.js_build=b.jsBuild;d.buildLabel=b.buildLabel;d["build-label"]=b.buildLabel;c=l(a.reportingExtensions);for(var e=c.next();!e.done;e=c.next())e.value.enhanceContext(d)},!0)},Q_d=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(T5b(c),P_d(a.jsDebugErrorReporter,
b,c.fileName,c.lineNumber,c.stack,a.context),a=l(a.reportingExtensions),b=a.next();!b.done;b=a.next())b.value.onReportedError()}};U6.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){T5b(a);this.jsDebugErrorReporter.handleException(a);a=l(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(cq(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)kn("omitting eye3 reporting of",a);else if(typeof a==="string")Q_d(this.reporter,a);else if(a instanceof Error||!cq(a)){b=WFc(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 Q_d(this.reporter,
dq(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 R_d={provide:Hx,useExisting:V6},S_d={provide:T6,useExisting:W6},T_d={provide:S6,useValue:{jsBuild:"834421871",buildLabel:"buganizer.frontend_20251119.11_p0"}};var X6=function(){};X6.\u0275fac=function(a){return new (a||X6)};X6.\u0275cmp=C({type:X6,selectors:[["b-empty"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var U_d=function(){};U_d.\u0275fac=function(a){return new (a||U_d)};U_d.\u0275mod=cf({type:U_d});U_d.\u0275inj=Gc({});var Y6=function(){};Y(Y6,kF);Y6.prototype.store=function(){};Y6.prototype.retrieve=function(){return null};Y6.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Dm(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(oF)};Z6.prototype.canActivate=function(a,b){return b.url.includes("#ISSUE_HistoryHeader")?(b=l(b.url.split("#ISSUE_HistoryHeader")),a=b.next().value,b=b.next().value,pF(this.router,[a],{fragment:b&&!isNaN(Number(b))?"comment"+b:void 0})):b.url==="/attention"?pF(this.router,["home"]):!0};Z6.\u0275fac=function(a){return new (a||Z6)};Z6.\u0275prov=Fc({token:Z6,factory:Z6.\u0275fac,providedIn:"root"});var V_d=/^(\d+)$/,$6=function(){this.butterBar=p(gO);this.paramNamesToCheck=new Set(Object.values(tgd))};$6.prototype.validate=function(a){for(var b=l(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=Km(d);if(!V_d.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(oF)};b7.prototype.canActivate=function(){return this.activeSession.isAnonymous()?pF(this.router,["issues"]):!0};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275prov=Fc({token:b7,factory:b7.\u0275fac,providedIn:"root"});var W_d=function(){this.userPreferences=p(nR)},X_d=function(a){a=Jr(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"}};
W_d.\u0275fac=function(a){return new (a||W_d)};W_d.\u0275prov=Fc({token:W_d,factory:W_d.\u0275fac,providedIn:"root"});var c7=function(){this.router=p(oF);this.homepageRedirection=p(W_d)};c7.prototype.canActivate=function(){return pF(this.router,[X_d(this.homepageRedirection)])};c7.\u0275fac=function(a){return new (a||c7)};c7.\u0275prov=Fc({token:c7,factory:c7.\u0275fac,providedIn:"root"});var Y_d={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var Oxc={default:"1363614",apps:"1456886",blink:"1456407",devtools:"1457055",enterprise:"1456152",extensions:"1456110",installer:"1456937",media:"1456190",network:"1456527",sync:"1457192",ui:"1457123",webstore:"1457238"},Nxc={default:"402888",apps:"422083",blink:"421442",devtools:"422123",enterprise:"421726",extensions:"422130",installer:"421863",media:"421886",network:"421924",sync:"422168",ui:"422198",webstore:"422443"},Z_d=["media-bugs@chromium.org"],$_d=["chrome-sync-monorail@google.com"];var a0d={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},b0d={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},c0d=new ed("CustomQuestionsConfig"),d0d=new ed("ComponentIds"),e0d=new ed("CustomFieldIds"),f0d=new ed("HotlistIds");var g0d=function(){this.componentIds=p(d0d);this.persona="USER";this.categoryChange=new hQ;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:Z_d},{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:$_d},{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)};
g0d.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)})};g0d.\u0275fac=function(a){return new (a||g0d)};
g0d.\u0275cmp=C({type:g0d,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},standalone:!1,features:[xx],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(),Qf(4,V5b,5,3,"mat-option",2,Pf),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();Rf(b.options[b.persona])}},dependencies:[cE,SD,EU,cI,dI,xA],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 W5b=function(a){return{question:a}},h0d=function(){this.config=p(c0d);this.CustomQuestionType=b0d;this.responses=new hQ;this.model=Object.assign({},this.config)};h0d.prototype.ngOnInit=function(){};var b6b=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};h0d.\u0275fac=function(a){return new (a||h0d)};
h0d.\u0275cmp=C({type:h0d,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&&(Qf(0,X5b,1,4,"ng-container",
4,Pf),E(2,a6b,3,1,"ng-template",null,0,Og)(4,c6b,3,3,"ng-template",null,1,Og)(6,d6b,4,3,"ng-template",null,2,Og)(8,h6b,6,4,"ng-template",null,3,Og));a&2&&Rf(b.model[b.category])},dependencies:[ky,Ij,qE,xE,fE,QE,cE,SD,EU,cI,xA],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 i0d=function(){this.Persona=a0d;this.persona="USER";this.personaChange=new hQ};i0d.\u0275fac=function(a){return new (a||i0d)};
i0d.\u0275cmp=C({type:i0d,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:[qE,xE,zT,AT],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 j0d=new ed("GM2_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var k0d=function(a){this.options=a;if(a.disableGmatStyle)throw Error("wb");};k0d.\u0275fac=function(a){return new (a||k0d)(Ye(j0d))};k0d.\u0275dir=df({type:k0d,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(gg)};e7.\u0275fac=function(a){return new (a||e7)};e7.\u0275dir=df({type:e7,selectors:[["","cdkStepLabel",""]]});var l0d=new ed("STEPPER_GLOBAL_OPTIONS"),g7=function(){var a=this;this._stepper=p(f7);this._interacted=pg.apply(null,[!1].concat(q([])));this.interactedStream=new gj;this._state=pg.apply(null,[void 0].concat(q([])));this._editable=pg.apply(null,[!0].concat(q([])));this.optional=!1;this._completedOverride=pg.apply(null,[null].concat(q([])));this.index=pg.apply(null,[-1].concat(q([])));this.isSelected=ah.apply(null,[function(){return a._stepper.selectedIndex===a.index()}].concat(q([])));this.indicatorType=
ah.apply(null,[function(){var c=a.isSelected(),d=a.completed,e,f=(e=a._state())!=null?e:"number";e=a._editable();return a._showError()&&a.hasError&&!c?"error":a._displayDefaultIndicatorType?!d||c?"number":e?"edit":"done":d&&!c?"done":d&&c?f:e&&c?"edit":f}].concat(q([])));this.isNavigable=ah.apply(null,[function(){var c=a.isSelected();return a.completed||c||!a._stepper.linear}].concat(q([])));this._customError=pg.apply(null,[null].concat(q([])));var b=p(l0d,{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=C({type:g7,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(kg(c,e7,5),kg(c,pE,5));if(a&2){var d;ng(d=og())&&(b.stepLabel=d.first);ng(d=og())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&jg(gg,7);if(a&2){var c;ng(c=og())&&(b.content=c.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",bh],optional:[2,
"optional","optional",bh],completed:[2,"completed","completed",bh],hasError:[2,"hasError","hasError",bh]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(eg(),If(0,i6b,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var f7=function(){this._dir=p(ei,{optional:!0});this._changeDetectorRef=p(Px);this._elementRef=p(Jd);this._destroyed=new sf;this.steps=new ig;this._sortedHeaders=new ig;this.linear=!1;this._selectedIndex=pg.apply(null,[0].concat(q([])));this.selectionChange=new gj;this.selectedIndexChange=new gj;this._groupId=p(di).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)});mg(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}));mg(a._sortedHeaders)});this._keyManager=Cz(Ez(Bz(new Hz(this._sortedHeaders))),this._orientation==="vertical");Fz(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:Dz(e,d)});Fz(this._keyManager,this.selectedIndex);this.steps.changes.subscribe(function(){a.selected||a._selectedIndex.set(Math.max(a.selectedIndex-1,0))});this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0);if(this.linear&&this.selectedIndex>0){var b=this.steps.toArray().slice(0,this._selectedIndex());b=l(b);for(var c=b.next();!c.done;c=b.next())c.value._markAsInteracted()}};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};h.next=function(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)};h.previous=function(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)};h.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
h._getStepLabelId=function(a){return this._groupId+"-label-"+a};h._getStepContentId=function(a){return this._groupId+"-content-"+a};h._stateChanged=function(){this._changeDetectorRef.markForCheck()};h._getAnimationDirection=function(a){a-=this._selectedIndex();return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};h._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()};
h._updateSelectedItemIndex=function(a){var b=this.steps.toArray(),c=this._selectedIndex();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:c,selectedStep:b[a],previouslySelectedStep:b[c]});this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(a):Fz(this._keyManager,a));this._selectedIndex.set(a);this.selectedIndexChange.emit(a);this._stateChanged()};
h._onKeydown=function(a){var b=Jh(a),c=a.keyCode,d=this._keyManager;(d==null?void 0:d.activeItemIndex)==null||b||c!==32&&c!==13?d==null||FEc(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=Lh();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&&Cz(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&&(kg(c,g7,5),kg(c,d7,5));if(a&2){var d;ng(d=og())&&(b._steps=d);ng(d=og())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var m0d=function(){this._stepper=p(f7);this.type="submit"};m0d.\u0275fac=function(a){return new (a||m0d)};m0d.\u0275dir=df({type:m0d,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.next()});a&2&&Sf("type",b.type)},inputs:{type:"type"}});var n0d=function(){this._stepper=p(f7);this.type="button"};n0d.\u0275fac=function(a){return new (a||n0d)};
n0d.\u0275dir=df({type:n0d,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.previous()});a&2&&Sf("type",b.type)},inputs:{type:"type"}});var o0d=function(){};o0d.\u0275fac=function(a){return new (a||o0d)};o0d.\u0275mod=cf({type:o0d});o0d.\u0275inj=Gc({imports:[Zy]});var h7=function(){m0d.apply(this,arguments)};Y(h7,m0d);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&&Sf("type",b.type)},features:[Gf]});var i7=function(){n0d.apply(this,arguments)};Y(i7,n0d);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&&Sf("type",b.type)},features:[Gf]});var p0d=function(){this.templateRef=p(gg)};p0d.\u0275fac=function(a){return new (a||p0d)};p0d.\u0275dir=df({type:p0d,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var q0d=function(){this._template=p(gg)};q0d.\u0275fac=function(a){return new (a||q0d)};q0d.\u0275dir=df({type:q0d,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 r0d=function(){this.changes=new sf;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};r0d.\u0275fac=function(a){return new (a||r0d)};r0d.\u0275prov=Fc({token:r0d,factory:r0d.\u0275fac,providedIn:"root"});var j6b=function(a,b,c){return{index:a,active:b,optional:c}},k7=function(){this._elementRef=p(Jd);this._intl=p(r0d);this._focusMonitor=p(bz);var a=p(bi);a.load(sA);a.load(fz);var b=p(Px);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?cz(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=C({type:k7,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(a,b){a&2&&(zg("mat-"+(b.color||"primary")),yg("mat-step-header-empty-label",b._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[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,k6b,1,6,"ng-container",2)(4,p6b,2,1),L()(),K(5,"div",3),F(6,q6b,2,1,"div",4)(7,r6b,2,1,"div",4),F(8,s6b,2,1,"div",5),
F(9,t6b,2,1,"div",6),L());if(a&2){var c;I("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple);B();zg(Gg("mat-step-icon-state-",b.state," mat-step-icon"));yg("mat-step-icon-selected",b.selected);B(2);G(b.iconOverrides&&b.iconOverrides[b.state]?3:4);B(2);yg("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");B();G((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);B(2);G(b._hasOptionalLabel()?8:-1);B();G(b._hasErrorLabel()?
9:-1)}},dependencies:[vA,ky,Yy],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 s0d=["*"],t0d=["animatedContainer"],x6b=function(a){return{steps:a}},D6b=function(a){return{step:a}},l7=function(){g7.apply(this,arguments);this._errorStateMatcher=p(rA,{skipSelf:!0});this._viewContainerRef=p(hg);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 dA(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=C({type:l7,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(kg(c,j7,5),kg(c,q0d,5));if(a&2){var d;ng(d=og())&&(b.stepLabel=d.first);ng(d=og())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[Ig([{provide:rA,useExisting:l7},{provide:g7,useExisting:l7}]),Gf],ngContentSelectors:s0d,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(eg(),E(0,v6b,2,1,"ng-template"))},dependencies:[gA],encapsulation:2,
changeDetection:0});
var m7=function(){f7.call(this);var a=this;this._ngZone=p(Tg);this._renderer=p(fi);this._animationsDisabled=pi();this._isAnimating=pg.apply(null,[!1].concat(q([])));this._steps=this._stepHeader=void 0;this.steps=new ig;this.animationDone=new gj;this.labelPosition="end";this.headerPosition="top";this.headerPrefix=Qg.apply(null,[null].concat(q([])));this._iconOverrides={};this._animationDuration="";this._isServer=!p(Yh).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=C({type:m7,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(kg(c,l7,5),kg(c,p0d,5));if(a&2){var d;ng(d=og())&&(b._steps=d);ng(d=og())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(jg(k7,5),jg(t0d,5));if(a&2){var c;ng(c=og())&&(b._stepHeader=c);ng(c=og())&&(b._animatedContainers=c)}},hostVars:14,hostBindings:function(a,b){a&2&&(xg("--mat-stepper-animation-duration",b._getAnimationDuration()),yg("mat-stepper-horizontal",
b.orientation==="horizontal")("mat-stepper-vertical",b.orientation==="vertical")("mat-stepper-label-position-end",b.orientation==="horizontal"&&b.labelPosition=="end")("mat-stepper-label-position-bottom",b.orientation==="horizontal"&&b.labelPosition=="bottom")("mat-stepper-header-position-bottom",b.headerPosition==="bottom")("mat-stepper-animating",b._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",headerPrefix:[1,
"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Ig([{provide:f7,useExisting:m7}]),Gf],ngContentSelectors:s0d,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&&(eg(),F(0,w6b,1,0),F(1,B6b,6,1,"div",3)(2,F6b,4,1,"div",4),E(3,G6b,1,27,"ng-template",null,0,Og)(5,J6b,3,0,"ng-template",null,1,Og));if(a&2){var c;G(b._isServer?0:-1);B();G((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[ky,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 u0d=["summary"],v0d=["reproSteps"],w0d=["description"],x0d=function(a){return{nonEmptyValidator:a}},y0d=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},N6b=function(){return{noWizard:"true"}},z0d=[Pm("security@chromium.org")],A0d=function(){this.activeSession=p(Qu);this.analytics=p(lQ);this.butterBar=p(gO);this.currentUser=p(M2);this.componentIds=p(d0d);this.customFieldIds=p(e0d);this.hotlistIds=p(f0d);this.issueApi=p(SP);this.paths=p(vW);this.redirectUrl=p(R5);this.userAccess=
p(JP);this.Persona=a0d;this.PlatformOs=Y_d;var a=U5b(),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},L6b=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=A0d.prototype;
h.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};h.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.enableSubmit=function(){this.isSubmitEnabled=!0};h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.uploads.push(a)};h.removeUpload=function(a){La(this.uploads,a)};
h.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(Em(c.blobRef));return a};
h.submit=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:var k="BUG",m=null,r=null,w="P2",x="S2",D=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&D.push(a.hotlistIds.chromiumRegression);var H,J,O,R=(O=(H=a.model.category)==null?void 0:(J=H.ccEmails)==null?void 0:J.map(Pm).filter(hn))!=null?O:[],V;((V=a.model.category)==null?void 0:V.value)==="SECURITY"&&(k="VULNERABILITY",w="P4",x="S4",m="LIMIT_VIEW",r=z0d);var ba;H=((ba=a.model.category)==null?void 0:ba.componentId)||
a.componentIds.default;ba=a.model.summary;J=X6b(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 ta;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"+Z6b(O.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((ta=O.category)==null?void 0:ta.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:ba,customField:J,comment:oa.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,issueAccessLimitLevel:m,
collaboratorsUsers:r,staffing:null,ccUsers:[a.currentUser.user].concat(q(R)),hotlistId:D,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,incidents:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};$r(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("wg");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return z(g,KP(a.userAccess,"reader","issues/"+d),5);case 5:(e=g.yieldResult)?TXd(a.redirectUrl,Cs(d),String(d)):($r(a.butterBar,"New issue created: "+d+" (view access not granted)",0),TXd(a.redirectUrl,a.paths.listIssues()));Zj(g,0);break;case 2:f=be(g),$r(a.butterBar,
"Failed to create issue: "+f),ce(g)}})};A0d.\u0275fac=function(a){return new (a||A0d)};
A0d.\u0275cmp=C({type:A0d,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(jg(u0d,5),jg(v0d,5),jg(w0d,5),jg(j0,5));if(a&2){var c;ng(c=og())&&(b.summaryControl=c.first);ng(c=og())&&(b.reproStepsControl=c.first);ng(c=og())&&(b.descriptionControl=c.first);ng(c=og())&&(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,M6b,20,6)(11,O6b,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);Eg("ngModelChange",function(f){u(c);Dg(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);Eg("ngModelChange",function(f){u(c);Dg(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);Eg("ngModelChange",function(f){u(c);Dg(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);Eg("ngModelChange",function(f){u(c);Dg(b.model.summary,f)||(b.model.summary=f);return v(f)});Q(59,"      ");L();F(60,P6b,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);Eg("ngModelChange",function(f){u(c);Dg(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);Eg("ngModelChange",function(f){u(c);Dg(b.model.reproSteps,f)||(b.model.reproSteps=f);return v(f)});Q(91,"      ");L();F(92,Q6b,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);Eg("ngModelChange",function(f){u(c);Dg(b.model.description,f)||(b.model.description=f);return v(f)});Q(98,"      ");L();F(99,R6b,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);Eg("ngModelChange",function(f){u(c);Dg(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,S6b,1,1,"wizard-custom-questions",42);K(121,"h4");Q(122,"Additional comments");L();K(123,"mat-form-field",22)(124,"textarea",43);Eg("ngModelChange",function(f){u(c);Dg(b.model.comments,f)||(b.model.comments=f);return v(f)});L()();K(125,"h4");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,T6b,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,U6b,0,0,"ng-template",49)(139,V6b,0,0,"ng-template",50)(140,W6b,0,0,"ng-template",51);
L()}if(a&2){a=sg(58);var d=sg(90),e=sg(97);yg("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);I("disableRipple",!0);B();I("completed",L6b(b,0));B(8);I("persona",b.model.persona);B();G(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);B(2);Jf("aria-label",Gg("Details for problems with ",b.model.category==null?null:b.model.category.title));I("completed",L6b(b,1));B(2);S("Details for problems with ",b.model.category==null?null:b.model.category.title);B(6);Cg("ngModel",b.model.os);
B();I("value",b.PlatformOs.ANDROID);B(2);I("value",b.PlatformOs.CHROME);B(2);I("value",b.PlatformOs.IOS);B(2);I("value",b.PlatformOs.LINUX);B(2);I("value",b.PlatformOs.MAC);B(2);I("value",b.PlatformOs.WINDOWS);B(2);I("value",b.PlatformOs.UNKNOWN);B(5);Cg("ngModel",b.model.channel);B(15);Cg("ngModel",b.model.version);B(4);Cg("ngModel",b.model.summary);I("customValidators",Kg(40,x0d,b.nonEmptyValidator));B(3);G(a.invalid&&(a.dirty||a.touched)?60:-1);B(15);Cg("ngModel",b.model.chromeFeedback);B(14);
Cg("ngModel",b.model.reproSteps);I("customValidators",Lg(42,y0d,b.reproStepsValidator,b.nonEmptyValidator));B(3);G(d.invalid&&(d.dirty||d.touched)?92:-1);B(4);Cg("ngModel",b.model.description);I("customValidators",Kg(45,x0d,b.nonEmptyValidator));B(3);G(e.invalid&&(e.dirty||e.touched)?99:-1);B(4);Cg("ngModel",b.model.regression);B(11);I("disabled",!L6b(b,1));B(6);G(b.model.category?120:-1);B(4);Cg("ngModel",b.model.comments);B(3);I("uploads",b.uploads);B(2);I("includeTextLabel",!0);B(2);G(b.enableRecaptcha?
131:-1);B(5);I("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[aKd,j0,Yy,H5,Ij,qE,JE,KE,xE,nC,jC,k0d,pHd,qHd,sHd,xL,rI,fE,QE,cE,TD,SD,EU,cI,xA,l7,m7,h7,i7,p0d,xY,g0d,h0d,i0d],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(BS);this.router=p(oF);this.userAccess=p(JP);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?Nxc.default:Oxc.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,KP(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(pF(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(qP);this.history=p(I2);this.router=p(oF);this.activeSession=p(Qu);this.viewIssues=Hr;this.createIssue=I6a;this.componentSettings=J6a;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=C({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,$6b,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&&$t(b.router,J6a(d.componentId).path)}),L(),K(14,"h3",12),Q(15,"Recent Components"),L(),K(16,"div",13),F(17,d7b,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:[nC,jC,lC,FK,DA,Yy,qF,bP,rW,dW,WK,XK,dL,YK,ZU,aW,iW,ly],encapsulation:2});var B0d=["bookmarkGroupName"],p7=function(){var a=p(yY);Z.call(this);var b=this;this.location=p(hU);this.appHistory=p(I2);this.snackBar=p(uC);this.bookmarkGroupsApi=p(JO);this.paths=p(vW);this.analytics=p(lQ);this.errorHandler=p(wO);this.appEvents=p(aP);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new uE({name:new wE("",Gj),description:new wE("")});this.subscriptions.add(zY(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=C({type:p7,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&jg(B0d,5);if(a&2){var c;ng(c=og())&&(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(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Yy,nC,jC,lC,
FK,DA,yE,Ij,qE,rE,JE,FE,EE,G4],encapsulation:2});var C0d=["form"],q7=function(){Z.call(this);this.butterBar=p(gO);this.paths=p(vW);this.routeParams=p(BS);this.analytics=p(lQ);this.appHistory=p(I2);this.bLocation=p(hU);this.activeSession=p(Qu);this.documentationLinks=p(hS);this.componentActions=p(eW);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()&&($r(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){$r(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(As.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(dq(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;D0d(this)};h.accessCheckComplete=function(a){this.componentIsValid=a;D0d(this)};
var D0d=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;D0d(this)}}});q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275cmp=C({type:q7,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&jg(C0d,5);if(a&2){var c;ng(c=og())&&(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);Eg("ngModelChange",function(d){u(c);Dg(b.component.name,d)||(b.component.name=d);return v(d)});L()();K(16,"div",10)(17,"label",14)(18,"span",12);Q(19,"Description");L()();K(20,"textarea",15);Eg("ngModelChange",function(d){u(c);Dg(b.component.description,d)||(b.component.description=d);return v(d)});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,f7b,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),yg("show-errors",b.error),B(2),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(4),I("bFocus",!0),Cg("ngModel",b.component.name),I("disabled",b.isSaving)("required",!0),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(4),Cg("ngModel",b.component.description),I("disabled",
b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(4),I("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(2),I("checked",b.commentEditsEnabled),B(6),G(b.sessionIsExternal?-1:35),B(9),I("href",Lu(),Pe),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(),I("issueRetentionDisabled",b.isSaving)("isExternal",Ct(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:[VU,G4,JW,yE,Ij,qE,rE,JE,xE,vE,yT,xL,rI,B5,rW],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var E0d=["hotlistName"],r7=function(){var a=p(yY);Z.call(this);var b=this;this.location=p(hU);this.appHistory=p(I2);this.snackBar=p(uC);this.hotlistApi=p(mP);this.analytics=p(lQ);this.errorHandler=p(wO);this.appEvents=p(aP);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new uE({name:new wE("",Gj),description:new wE("")});this.subscriptions.add(zY(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(As.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=C({type:r7,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&jg(E0d,5);if(a&2){var c;ng(c=og())&&(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(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Yy,nC,jC,lC,FK,DA,yE,Ij,qE,rE,JE,FE,EE,G4],encapsulation:2});var s7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,s7.messageId)};Y(s7,W);s7.prototype.getContent=function(){return xi(this,1,void 0,jb)};s7.prototype.setContent=function(a){return yj(this,1,a,jb)};s7.prototype.hasContent=function(){return wm(this,1,jb)};s7.messageId="b.LlmGenericRequest";var F0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,F0d.messageId)};Y(F0d,W);F0d.messageId="b.LlmGenericResponse";var t7=function(){this.executor=p(pO)};t7.prototype.suggestIssueTitle=function(a){a=(new s7).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:F0d}).then(function(b){var c;return(c=xi(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 Wj(!1);this.generatedTitle=new Wj(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(gO);this.analytics=p(lQ);this.llmSuggestTitleService=p(u7);this.llmApi=p(t7);this.suggestedTitle=new hQ;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);$r(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=C({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:[Yy,nC,jC,FK,DA],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 G0d=[[["","mainSegment",""]],[["","dropdownSegment",""]]],H0d=function(){this.mainSegment=!0};H0d.\u0275fac=function(a){return new (a||H0d)};H0d.\u0275dir=df({type:H0d,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&yg("main-segment",b.mainSegment)},standalone:!1});var w7=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new hQ;this.dialogOpened=new hQ};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=C({type:w7,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&kg(c,H0d,5);if(a&2){var d;ng(d=og())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&jg(EW,5);if(a&2){var c;ng(c=og())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&yg("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
standalone:!1,features:[xx],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();eg(G0d);fg(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);fg(7,1);L()()}a&2&&(a=sg(5),B(),zg(Gg("dropdown-button ",b.size)),I("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),Kf("aria-label",b.dropdownAriaLabel))},dependencies:[Yy,nC,lC,FK,DA,DW,EW],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 I0d=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),x7=function(){Z.apply(this,arguments);this.butterBar=p(gO);this.analytics=p(lQ);this.llmSuggestTitleService=p(u7);this.suggestionAccepted=new hQ;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=l(a);a=b.next().value;b=b.next().value;return a||b}));this.suggestedTitleRejectionReasons=["TOTALLY_INCORRECT","MISSING_IMPORTANT_INFO","OTHER"];this.REJECT_REASON_TO_DISPLAY=I0d};Y(x7,Z);x7.\u0275dir=Z.\u0275dir;
var j7b=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=C({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,k7b,27,13,"div",1),T(1,"async"));a&2&&G(U(1,1,b.isVisible$)?0:-1)},dependencies:[Yy,nC,jC,lC,FK,DA,iU,w7,H0d,nH,ly],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(yW);this.analytics=p(lQ);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=l(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return Dxd(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),jf(function(b){mn("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 o7b(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 Jr(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=C({type:y7,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},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,l7b,2,0,"a",3),F(5,m7b,1,0,"b-spinner"),L(),F(6,n7b,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:[Yy,iU,d_,FK,DA,nC,lC,ly],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 J0d=["popOver"],q7b=function(a){return{$implicit:a}},y7b=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=Qg.apply(null,[!1].concat(q([])));this.valueChange=new gj;this.editorOpen=new gj;this.editing=this.headerFocused=!1;this.editingValue=new wE("",{nonNullable:!0});
this.onChange=function(){};this.onTouched=function(){}};Y(z7,g_);h=z7.prototype;h.ngOnInit=function(){var a=this.injector.get(oE,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator);this.required()&&(a=this.editingValue,b=Mwa(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=C({type:z7,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&jg(J0d,7);if(a&2){var c;ng(c=og())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport",
openPopOverOnInit:"openPopOverOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},standalone:!1,features:[Ig([{provide:lE,useExisting:Xc(function(){return z7}),multi:!0},{provide:g_,useExisting:Xc(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,r7b,2,4,"ng-container",6)(4,s7b,1,1,"ng-template",null,1,Og);L();E(6,t7b,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,A7b,2,2,"ng-template",null,3,Og)}if(a&2){a=sg(1);var d=sg(5),e=sg(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:[fy,ky,Ij,qE,JE,iE,h_,DE],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 K0d=["descriptionConfirmDialog"],o8b=function(){return[]},R8b=function(){return{standalone:!1}},L0d=new ed("titleBannedWordsChecker"),M0d=new ed("descriptionBannedWordsChecker"),N0d={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(BS);this.hotkeys=p(tU);this.checkBeforeExit=p(yY);this.constants=p(lS);this.ngZone=p(Tg);this.$log=p(uO);this.reloadService=p(r2);this.paths=p(vW);this.redirectUrl=p(R5);this.userAccess=p(JP);this.accessPolicy=p(RO);this.bLocation=p(hU);this.appHistory=p(I2);this.issueTemplate=
p(QXd);this.issueTypeDialog=p(jS);this.componentActions=p(eW);this.activeSession=p(Qu);this.draftStore=p(gS);this.analytics=p(lQ);this.issueApi=p(SP);this.hotlistApi=p(mP);this.butterBar=p(gO);this.errorHandler=p(wO);this.matDialogService=p(VB);this.appEvents=p(aP);this.userPreferencesManager=p(nR);this.cdr=p(iQ,{self:!0});this.issueRelationshipsFridge=p(tQ);this.issueFullFridge=p(nQ);this.componentFridge=p(YO);this.clearcut=p(eQ);this.jspbPrincipalTypes=p(KQ);this.trackerFridge=p(aR);this.customFieldHelper=
p(ES);this.titleBannedWordsChecker=p(L0d);this.descriptionBannedWordsChecker=p(M0d);this.confirmIssueAccessLimitSettingsService=p(P3);this.componentTemplateApi=p($O);this.dismissalService=p(wW);this.hostElement=p(Jd);this.currentUserBookmarksFridge=p(wP);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=Hr;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.parseStringArray=Gu;this.joinStringArray=Fu;this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new IXd(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";this.availablePredefinedTemplates=
[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=p(QW);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=Em(V8b);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=KXd(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=HSa;this.toIssueSeverity=JSa;this.FieldType=zV;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 Wj(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){J_a(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues",
"click"))};this.getSingleEditFieldType=cdb;this.getListFieldType=Keb;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()||iO(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;T8b(this.issue,this);this.routeParams.description?this.comment=new zS(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(Tr("0"))||"",this.comment=new zS(b));this.comment.formattingMode=O0d(this);b=P0d(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(uU(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,Q0d(this,this.componentRequestedInUrl)):this.componentAutocomplete?R0d(this,this.componentAutocomplete):(PXd(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,S0d(this));this.originalIssueCopy=Em(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(zY(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 T0d=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=i9a(a.comment.value,a.templateComment);return i9a(a.issue.title,a.templateTitle)&&b},N8b=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||U0d(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 U0d=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,V0d(a),a.audience=Ct(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):(Kta(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;W0d(a);a.selectedComponentProcessedPromise=Promise.all([X0d(a),Y0d(a)]).then(function(){});return a.selectedComponentProcessedPromise};A7.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var Z0d=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},F7b=function(a){return Atb(a.selectedComponent)?"External Google partners may be able to see this issue.":Dt(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=Mm(a.collaboratorGroups),this.separateCollaboratorGroups())};
A7.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=l(Gu(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=Fu(a);if(this.collaboratorGroupsText.length>0&&!Dt(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var S0d=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new $0d(b,"issue","Issue "+b,!1,"",!1),a.selectedTemplate=a.availableExistingIssueTemplate)},X0d=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!a1d(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(hu(f))&&(f=e.default?"(default template)":"(unnamed template)");return new $0d(e.templateId,"predefined",f,e.default,e.componentId,e.inheritable)});if(a.preferredTemplateId&&!a.selectedTemplate){var c=a.preferredTemplateId;if(b=a.availablePredefinedTemplates.find(function(e){return e.id===c}))a.selectedTemplate=b,a.preferredTemplateId=null}if(!a.selectedTemplate){b=l(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=
d;break}}a.availablePredefinedTemplates.length>0&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);B7(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},a1d=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},Y0d=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=KP(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;B7(a)}),e=KP(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;B7(a)});c=KP(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(){b1d(a);B7(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},c1d=function(a,b){var c;Dt(a.selectedComponent)&&(c=a.selectedComponent)!=null&&c.trackerId&&
!Bs(a.activeSession)&&a.canEditIssuesInComponent?(b=b.issueAccessLimitLevel||"LIMIT_NONE",b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",$r(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"},f1d=function(a){a.selectedTemplate&&(a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,a.selectedTemplate.id).then(d1d(a,a.selectedComponent)).then(function(b){e1d(a,b)}).then(function(){B7(a)}).catch(function(b){a.butterBar.showWarning(b.message)}):a.selectedTemplate.type==="issue"&&(SXd(a.issueTemplate,String(a.selectedTemplate.id)).then(function(b){var c;if(Bs(a.activeSession)&&((c=a.activeSession.getTracker())==
null?void 0:c.trackerId)!==b.trackerId)throw Error("xg");c=Promise.resolve();!a.selectedComponent&&b.snapshot.componentId&&(c=Q0d(a,b.snapshot.componentId));return c.then(function(){e1d(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"),W0d(a))},e1d=function(a,b){b=Object.assign(Em(V8b),b.snapshot);a.selectedComponent&&(b.componentId=a.selectedComponent.componentId);var c=Em(b);Z0d(a);U8b(a,a.issue);var d=Em(a.issue);if(a.appliedTemplate)for(var e=l(Object.keys(a.appliedTemplate)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.appliedTemplate[f];if(Array.isArray(g)&&Array.isArray(d[f])){g=l(g);for(var k=g.next();!k.done;k=g.next())lSa(d[f],k.value)}else Dm(g,d[f])&&delete d[f]}a.appliedTemplate=c;W8b(b,d);d=c.comment||
"";a.comment.value!==a.templateComment&&(jpd(a.comment)||d===""||a.comment.value===d||(a.templateComment=d,g1d(a,a.comment.value)),b.comment=a.comment.value,b.formattingMode=c.formattingMode);a.templateComment=d;var m;a.templateCommentFormattingMode=(m=c.formattingMode)!=null?m:void 0;a.templateTitle=c.title||"";b.reporterUser=Pm(a.userEmail);c1d(a,b);a.issue=b;T8b(a.issue,a);b1d(a);Z0d(a);U8b(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&a.issue.formattingMode&&(a.comment.formattingMode=
a.issue.formattingMode);PXd(a.urlTemplate,a.issue,a.customFieldMap);T8b(a.issue,a);a.originalIssueCopy=Em(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Em(a.issue.hotlistId);B7(a)});h1d(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();i1d(a)};
A7.prototype.isValid=function(){return!(H7b(this).length!==0||I7b(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!O7b(this.comment)&&!0};
var H7b=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})},I7b=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&Jm(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},j1d=function(a){var b=Gu(a.collaboratorsText);return b.length!==0&&a.canEditIssuesInComponent?
cld(a.jspbPrincipalTypes,b,!1).then(function(c){a.invalidCollaboratorsInput=Object.entries(c).filter(function(d){d=l(d);d.next();d=d.next().value;return(d==null?void 0:d.principalType)!=="USER"}).map(function(d){return l(d).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(c){a.butterBar.showWarning(c.message);return!1}):Promise.resolve(!0)},t8b=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)},h1d=function(a){if(Dta(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 Im(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=Im(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(Tr("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};h.discard=function(){this.draftStore.$window.sessionStorage.removeItem(Tr("0"));rQd(this.reloadService)};
h.handleHotlistPickerSave=function(a){var b=[];a=l(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent("createIssue","changeHotlists")};h.removeHotlist=function(a){var b;La((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
h.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var X7b=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:HSa(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:ISa(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0);i1d(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)});Eba(this.selectedHotlists,function(b,c){return wa(b.name,c.name)})};
var k1d=function(a,b){var c,d,e,f,g,k,m,r,w,x,D;return y(function(H){switch(H.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){H.jumpTo(2);break}e=[];return d.length===1?z(H,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):z(H,Pjd(a.issueRelationshipsFridge,c,d),5);case 5:g=H.yieldResult;e=g.notAdded;f=g.errors;H.jumpTo(4);break;case 6:k=H.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:m=a.childrenIssueIds;if((r=m)==null||!r.length){H.jumpTo(7);break}return z(H,a.issueRelationshipsFridge.assignParentToIssues(c,m.map(function(J){return{issueId:J}})),8);case 8:w=H.yieldResult,x=w.notAdded,D=w.errors,x.length&&a.butterBar.showWarning("Unable to add "+x+" as children. "+D);case 7:return H.return(b)}})},M8b=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,oa,ta,ka,Ca,ja,ua;return y(function(xa){switch(xa.nextAddress){case 1:return a.sessionIsExternal&&
T0d(a)?(l1d(a),xa.return()):z(xa,j1d(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=Bi(f.snapshot,function(Ra){return typeof Ra!=="string"||!ya(Ra)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Ra){return!Jm(Ra)}));U8b(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=Z8a(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=[]);m=l(k);for(r=m.next();!r.done;r=
m.next())w=r.value,f.snapshot.collaboratorsUsers.push(w);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=NSa(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");x=function(){a.isSaving=!0;a.newIssueStarted=!1;$r(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Ra){return k1d(a,Ra)}).then(function(Ra){a.draftStore.$window.sessionStorage.removeItem(Tr("0"));
a.originalIssueCopy=Em(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");m1d(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+Ra.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:"+Ra.issueId);c?(a.analytics.trackEvent("createIssue",
"fileAndRedirect","component",d.componentId?Number(d.componentId):void 0),a.butterBar.dismiss(),a.isNavigatingAway=!0,a.isSaving=!1,KP(a.userAccess,"reader","issues/"+Ra.issueId).then(function(Yb){Yb?TXd(a.redirectUrl,Cs(Ra.issueId),String(Ra.issueId)):($r(a.butterBar,"New issue created: "+Ra.issueId+" (view access not granted)",0),TXd(a.redirectUrl,a.paths.listIssues()));B7(a)}).catch(function(Yb){a.errorHandler.errorHandler(null,Yb);a.isNavigatingAway=!1})):(a.analytics.trackEvent("createIssue",
"fileAndNew","component",d.componentId?Number(d.componentId):void 0),$a={},Med(a.butterBar,Fh(["New issue created: ",Hh("a",($a.href=Cs(Ra.issueId),$a),String(Ra.issueId))]),0),d.title=a.templateTitle,a.comment=new zS(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=Em(a.issue));B7(a)}).catch(function(Ra){Ra.status===403&&cq(Ra)?xO(a.errorHandler,dq(Ra)):a.errorHandler.errorHandler(null,Ra);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return z(xa,n1d(a),3);case 3:return(D=xa.yieldResult)?z(xa,o1d(a),4):xa.return();case 4:return(H=xa.yieldResult)?z(xa,zTd(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(Ra){return Ra.emailAddress}).filter(hn),collaboratorsUsers:(V=f.snapshot.collaboratorsUsers)==null?void 0:V.map(function(Ra){return Ra==null?void 0:Ra.emailAddress}).filter(hn),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:a.canEditIssuesInComponent,
confirmationDialogText:N0d}),5):xa.return();case 5:return(ba=xa.yieldResult)?z(xa,a.titleBannedWordsChecker.check((oa=a.issue.title)!=null?oa:"",p1d(a),f.snapshot.componentId),6):xa.return();case 6:return ta=xa.yieldResult,z(xa,a.descriptionBannedWordsChecker.check((ka=a.issue.comment)!=null?ka:"",p1d(a),f.snapshot.componentId),7);case 7:Ca=xa.yieldResult;if(!ta||!Ca)return(ja=b)==null||ja.preventDefault(),(ua=b)==null||ua.stopPropagation(),xa.return();x();ce(xa)}})},l1d=function(a){a.isSaving=!0;
$r(a.butterBar,"Creating...",0);setTimeout(function(){$r(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;TXd(a.redirectUrl,a.paths.listIssues())},500)},p1d=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},n1d=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return b="create-issue",z(e,a.dismissalService.isDismissed(Ghb(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(TB(a.matDialogService.open(xW,{width:"500px",data:{action:b,content:Dh("Submitting this bug report means your email address will be shared with the team that works on this product.")}}))),4);d=e.yieldResult;return e.return(d)})},o1d=function(a){var b=Ho();!a.canEditIssuesInComponent||a.issue.type!=="VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?
b.resolve(!0):tod(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},R0d=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(U0d(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})},Q0d=function(a,b){a.isLoadingComponent=!0;return a.componentActions.getUncached(b).then(function(c){var d;
if(Bs(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("yg");U0d(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=X8b(this.issue),b=X8b(this.originalIssueCopy);return!Dm(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var g1d=function(a,b){TB(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="")})},W0d=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)))},D7b=function(a){return a.sessionIsExternal?!1:Atb(a.selectedComponent)},E7b=function(a){return jO(a.activeSession)?
!1:Dt(a.selectedComponent)},V0d=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){var b=FS(a.customFieldHelper,a.selectedComponent);a.customFieldMap=Y8b(b);a.customFieldAllowedValuesMap=Z8b(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:[]});i1d(a)}},i1d=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(g){return a.customFieldMap[g.customFieldId]});for(var b=new Set(a.issue.customField.map(function(g){return g.customFieldId})),c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,b.has(d.customFieldId)||a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});var e=a.issue.type,f=e&&a.fieldConfigsV2.find(function(g){return g.issueTypes.has(e)})||
a.fieldConfigsV2.find(function(g){return!g.issueTypes.size});a.issue.customField=a.issue.customField.filter(function(g){var k,m;return(m=f==null?void 0:(k=f.customFieldConfigs)==null?void 0:k.get(g.customFieldId))!=null?m:!0});a.originalIssueCopy.customField=a.issue.customField}},b1d=function(a){!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||Gu(a.ccsText).includes(a.userEmail)||(a.ccsText=a.userEmail+", "+a.ccsText)};h=A7.prototype;
h.fetchUserHotlists=function(){var a=this;ie(xP(this.currentUserBookmarksFridge)).then(function(b){b=l(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");$r(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){$r(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];Kta(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 P0d=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},O0d=function(a){var b;return((b=oR(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 TB(this.matDialogService.open(hY,{panelClass:"no-jitter",width:"500px",data:a}))};
var m1d=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);djd("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);fQ(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date},d1d=function(a,b){return function(c){var d=to(c.snapshot.customField,function(m){return m.customFieldId}),e=[],f=FS(a.customFieldHelper,b);f=l(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=g.customFieldId;d.has(k)?
e.push(d.get(k)):g.typedDefaultValue?e.push(g.typedDefaultValue):e.push({customFieldId:k})}return Object.assign({},c,{snapshot:Object.assign({},c.snapshot,{customField:e})})}};da.Object.defineProperties(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(){f1d(b)})}}}});
A7.\u0275fac=function(a){return new (a||A7)};
A7.\u0275cmp=C({type:A7,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(jg(x3,5),jg(q0,5),jg(K0d,5),jg(VL,5));if(a&2){var c;ng(c=og())&&(b.hotlistPicker=c.first);ng(c=og())&&(b.commentBox=c.first);ng(c=og())&&(b.descriptionConfirmDialog=c.first);ng(c=og())&&(b.advancedFieldsZippy=c.first)}},standalone:!1,features:[Ig([iQ,{provide:L0d,useClass:aX},{provide:M0d,useClass:aX}]),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,B7b,1,2,"b-hotlist-picker",12);F(9,C7b,2,1,"a",13);L()();K(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);F(14,G7b,6,8,"div",17);F(15,P7b,4,3,"div",18);F(16,R7b,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(U0d(b,e!=null?e:null))});L()()();F(24,U7b,12,4,"div",26);L();F(25,V7b,3,0,"div",27);F(26,O8b,54,63,"div");L()()()();E(27,P8b,11,2,"ng-template",null,0,Og)(29,S8b,6,4,"ng-template",null,1,Og)}if(a&2){var d;B(8);G(b.canEditIssuesInComponent?8:-1);B();G((d=b.issue.componentId)?9:-1,d);B(4);yg("submitted",b.submitRequested);
B();G(D7b(b)||E7b(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:[VU,q0,lU,y_,o4,SD,cE,TD,JW,yE,Ij,qE,rE,JE,LE,xE,vE,TZ,x3,yT,J3,YV,nC,jC,lC,EU,Lz,cI,dI,xA,WB,YB,$B,ZB,VL,WL,XL,eK,pH,nH,sH,XU,BT,FK,DA,z7,rW,ky,Yy,bP,xY,FY,v7,x7,y7,D_,R_,rK,lV,vX,ly],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 V8b={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},$0d=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 q1d=["form"],r1d=function(){this.bLocation=p(hU);this.sloApi=p(PQ);this.errorHandler=p(wO);this.analytics=p(lQ);this.butterBar=p(gO);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=r1d.prototype;h.ngAfterViewInit=function(){};
h.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("zg"));$r(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){$r(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(As.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};r1d.\u0275fac=function(a){return new (a||r1d)};
r1d.\u0275cmp=C({type:r1d,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&jg(q1d,5);if(a&2){var c;ng(c=og())&&(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),yg("show-errors",b.error),B(2),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),B(3),I("isDisabled",!1)("collection",b.sloUnderEdit.elements),B(4),I("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),B(2),I("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[VU,G4,JW,yE,Ij,qE,rE,JE,xE,vE,yT,I5],encapsulation:2});var s1d=function(){this.nextPanelId=1};s1d.\u0275fac=function(a){return new (a||s1d)};s1d.\u0275prov=Fc({token:s1d,factory:s1d.\u0275fac,providedIn:"root"});var C7=function(){Z.apply(this,arguments);this.cdr=p(iQ);this.paths=p(vW);this.bLocation=p(hU);this.$log=p(uO);this.analytics=p(lQ);this.issueApi=p(SP);this.userApi=p(qP);this.bookmarkGroupsApi=p(JO);this.hotlistApi=p(mP);this.butterBar=p(gO);this.pageTitle=p(m2);this.dashboards=p(s1d);this.routeParams=p(BS);this.appSearchState=p(xT);this.userAccess=p(JP);this.errorHandler=p(wO);this.statusMessages=p(oS);this.urlPreferences=p(M4);this.appEvents=p(aP);this.hotlistFridge=p(rP);this.activeSession=p(Qu);
this.issueFullFridge=p(nQ);this.currentUserBookmarksFridge=p(wP);this.ANALYTICS_CATEGORY="dashboard";this.userEmail=this.activeSession.getUserEmail();this.groupId=this.routeParams.groupId||null;this.panels=[];this.hotlistChoices=[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.resultsPerPage=null;this.Number=Number;this.String=String};Y(C7,Z);C7.\u0275dir=Z.\u0275dir;
C7.prototype.ngOnInit=function(){var a=this;this.resultsPerPage=this.urlPreferences.getCount();this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){t1d(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){u1d(a,b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){u1d(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){u1d(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){u1d(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 d9b=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=v1d(a,c))a.selectedIssues=b!=null?b:[]},c9b=function(a,b,c){b.focusedRowIndex=c;if(c!=null)for(a=l(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},v1d=function(a,b){return a.panels.find(function(c){return c.panelId===b})},w1d=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(xP(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Dm(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");$r(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);$r(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;$r(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.loadHotlists=function(a){var b=this,c=new Set;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=l(d.value.hotlistId||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,this.hotlistMap[e]||c.has(e)||c.add(e)}c=l(c);for(a=c.next();!a.done;a=c.next())this.hotlistApi.get(a.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
h.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=l(this.panels);for(var e=b.next();!e.done;e=b.next()){e=l(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();$r(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return oQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){$r(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var m=l(c.panels),r=m.next();!r.done;r=m.next()){r=l(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next()){var x=void 0;w.value.lastViewedTime=(x=k)!=null?x:null}}}).catch(function(k){for(var m=l(c.panels),r=m.next();!r.done;r=m.next()){r=l(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next())w=w.value,w.isRead=!!w.lastViewedTime&&w.lastViewedTime>=w.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
E8a(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var g={bulkEditOps:a};$r(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(g,b).then(function(k){for(var m=l([].concat(q(c.searchPanels),q(c.hotlistPanels))),r=m.next();!r.done;r=m.next()){r=r.value;var w=k;if(r.searchResults){r.searchResults=r.searchResults.clone();for(var x=0,D=l(r.searchResults.issues),H=D.next();!H.done;H=D.next()){H=H.value;if(w.affectedIssues[H.issueId]){var J=
w.affectedIssues[H.issueId];J=yCb(J,w.componentMap[Number(Ia(J.snapshot).componentId)]);J.selected=H.selected;r.searchResults.issues[x]=J;r.resultsLoaded.emit([r.searchResults.issues[x]])}x++}}}k.errors&&k.errors.length?(m=kWa(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+m+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=Lod(c.statusMessages,g))?$r(c.butterBar,k):$r(c.butterBar,"Saved "+F8a(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);yO(a.errorHandler,c);throw c;})};var t1d=function(a,b){a.panels=(b.item||[]).map(function(c,d){return x1d(a,c,d===0?0:void 0)}).filter(hn)};
C7.prototype.removePanel=function(a){var b=this,c=v1d(this,a);c!=null&&($r(this.butterBar,"Saving changes...",0),a=Em(this.bookmarkGroup),a.item=a.item.filter(function(d){return!y1d(b,c,d)}),z1d(this,a))};
var u1d=function(a,b,c){b=w1d(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=Em(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(g){return y1d(a,d,g)});f!==void 0&&(Kba(b.item,f,c),z1d(a,b))}}},z1d=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;A1d(a,a.bookmarkGroup.item);$r(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},y1d=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}},B1d=function(a,b){return a.panels.find(function(c){return y1d(a,c,b)})},x1d=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:[]}},A1d=function(a,b){a.panels=b.map(function(c){var d;return(d=B1d(a,c))!=null?d:x1d(a,c)}).filter(hn)};
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=C({type:C7,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(jg(r5,5),jg(p5,5));if(a&2){var c;ng(c=og())&&(b.searchPanels=c);ng(c=og())&&(b.hotlistPanels=c)}},standalone:!1,features:[Ig([iQ]),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","resultsPerPage"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last",
"resultsPerPage"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last","resultsPerPage"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","resultsPerPage"]],template:function(a,b){a&1&&(K(0,"h2",0),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,b9b,8,2,"div"),Qf(8,g9b,3,1,"div",null,Pf),L());a&2&&(B(5),I("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(),I("bFocus",!0),B(),G(b.bookmarkGroup?7:-1),B(),Rf(b.panels))},dependencies:[G3,JY,r5,p5,JW,FK,DA],encapsulation:2});var C1d=function(){};C1d.\u0275fac=function(a){return new (a||C1d)};C1d.\u0275mod=cf({type:C1d});
C1d.\u0275inj=Gc({imports:[H3,X1,s5,q5,cP,KW,GK]});var D1d=["editBookmarkGroupItemsContainer"],E1d=["bookmarkGroupName"],H9b=function(a){return{displayText:"Admins",values:a}},G9b=function(a){return[a]},D7=function(){Z.call(this);var a=this;this.routeParams=p(BS);this.location=p(hU);this.activeSession=p(Qu);this.butterBar=p(gO);this.accessPolicyApi=p(RO);this.bookmarkGroupsApi=p(JO);this.hotlistApi=p(mP);this.paths=p(vW);this.appHistory=p(I2);this.pageTitle=p(m2);this.userAccess=p(JP);this.errorHandler=p(wO);this.appEvents=p(aP);this.snackBar=p(uC);
this.confirmationDialog=p(iS);this.checkBeforeExit=p(yY);this.cdr=p(iQ,{self:!0});this.documentationLinks=p(hS);this.currentUserBookmarksFridge=p(wP);this.selectedTabIndex=0;this.accessPolicyUnderEdit=ts();this.flattenedAccessPolicy=ts();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);F1d(this);G1d(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(zY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){F1d(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(){G1d(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!Dm(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};h.hasUnsavedAccessPolicyChanges=function(){return!Dm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Em(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[H1d(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];I1d(this)};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Em(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Dh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Dh("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){J1d(a,"archive")}})};
h.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Dh("Do you want to unarchive this bookmark group?"),onConfirm:function(){J1d(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});K1d(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=vs(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=us(c);a.accessPolicyUnderEdit=Em(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var J1d=function(a,b){var c=Em(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});K1d(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){K1d(b,c);b.selectedHotlistIds=[H1d(b.bookmarkGroup.item)];I1d(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var K1d=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=Em(a.bookmarkGroup)};
D7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=us(c);b.accessPolicyUnderEdit=Em(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};D7.prototype.loadUserAccess=function(a){var b=this;return KP(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var F1d=function(a){ie(xP(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},G1d=function(a){a.userSavedSearches=null;ie(nhd(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;I1d(a);a.cdr.detectChanges()})},I1d=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=L1d(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
k9b=function(a,b){var c=Number(b);xba(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});M1d(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},m9b=function(a,b){xba(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});I1d(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},z9b=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return As.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:wb(b.resourceType)}},u9b=function(a,b){for(var c=l(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$655:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$655=Gm(d);f&&!b.oldSelectionMap[e.id$jscomp$655]?(x9b(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&&(M1d(a,e.id$jscomp$655),xba(a.bookmarkGroupUnderEdit.item,function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)))}},x9b=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},M1d=function(a,b){La(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},q9b=function(a,b){L1d(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){I1d(a)})},L1d=function(a){return a?xSa(a,"savedSearchId"):[]},H1d=function(a){return xSa(a,"hotlistId")},v9b=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)},w9b=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=C({type:D7,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(jg(D1d,5),jg(E1d,5),jg(JL,5,Jd));if(a&2){var c;ng(c=og())&&(b.editBookmarkGroupItemsContainer=c.first);ng(c=og())&&(b.bookmarkGroupNameInput=c.first);ng(c=og())&&(b.tabs=c)}},standalone:!1,features:[Ig([iQ]),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,h9b,2,1,"button",8),F(6,i9b,2,1,"button",8),L()()(),K(7,"div",9),F(8,I9b,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:[Yy,FK,DA,nC,jC,lC,OL,JL,KL,G4,UZ,x3,w2,Ij,qE,
JE,xE,eK,pH,nH,oH,sH,TW],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 N1d=["savedSearchNameInput"],O9b=function(a){return{displayText:"Admins",values:a}},N9b=function(a){return[a]},E7=function(){Z.call(this);var a=this;this.routeParams=p(BS);this.location=p(hU);this.accessPolicyApi=p(RO);this.savedSearchApi=p(uP);this.paths=p(vW);this.appHistory=p(I2);this.butterBar=p(gO);this.pageTitle=p(m2);this.documentationLinks=p(hS);this.userAccess=p(JP);this.errorHandler=p(wO);this.snackBar=p(uC);this.confirmationDialog=p(iS);this.cdr=p(iQ,{self:!0});this.appEvents=p(aP);
this.activeSession=p(Qu);this.checkBeforeExit=p(yY);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=ts();this.flattenedAccessPolicy=ts();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(zY(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=Em(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=us(c);b.accessPolicyUnderEdit=Em(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.loadUserAccess=function(a){var b=this;return KP(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=Em(this.savedSearch);this.error=""};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Em(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.hasUnsavedMetadataChanges=function(){return!Dm(this.savedSearch,this.savedSearchUnderEdit)};
h.hasUnsavedAccessPolicyChanges=function(){return!Dm(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=Em(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};h.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Dh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=vs(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=us(c);a.accessPolicyUnderEdit=Em(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(dq(c),0)}).finally(function(){a.isUpdating=!1})};h.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Dh("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
h.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});wtd(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=C({type:E7,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(jg(N1d,5),jg(JL,5,Jd));if(a&2){var c;ng(c=og())&&(b.savedSearchName=c.first);ng(c=og())&&(b.tabs=c)}},standalone:!1,features:[Ig([iQ]),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,J9b,2,1,"button",6),L()()(),K(6,"div",7),F(7,K9b,3,0,"div",
8),F(8,P9b,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:[Yy,FK,DA,nC,jC,lC,OL,JL,KL,G4,Ij,qE,JE,xE,TW],encapsulation:2});var O1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O1d,W);O1d.prototype.getSloId_asLegacyNumberOrString=function(){return Rp(this,1)};O1d.prototype.getSloId_asString=function(){return In(this,1)};O1d.prototype.setSloId=function(a){return Xo(this,1,a)};var P1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(P1d,W);h=P1d.prototype;h.getAuthor=function(){return X(this,Xm,1)};h.setAuthor=function(a){Zi(this,Xm,1,a)};h.hasAuthor=function(){return Ji(this,Xm,1)};h.getTimestamp=function(){return X(this,ej,2)};h.setTimestamp=function(a){return Zi(this,ej,2,a)};h.hasTimestamp=function(){return Ji(this,ej,2)};h.getAdd=function(){return X(this,Gr,3)};h.setAdd=function(a){return Zi(this,Gr,3,a)};
h.getRemove=function(){return X(this,Gr,4)};h.setRemove=function(a){return Zi(this,Gr,4,a)};h.getAddMask=function(){return X(this,Rq,5)};h.getMutableAddMask=function(){return Ui(this,Rq,5)};h.setAddMask=function(a){return Zi(this,Rq,5,a)};h.getRemoveMask=function(){return X(this,Rq,6)};h.getMutableRemoveMask=function(){return Ui(this,Rq,6)};h.setRemoveMask=function(a){return Zi(this,Rq,6,a)};h.getFieldUpdatesList=function(){return Ni(this,whd,7,Oi())};var Q1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q1d,W);var R1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,R1d.messageId)};Y(R1d,W);R1d.prototype.getIt=function(){return X(this,Q1d,1,jb)};R1d.prototype.setIt=function(a){return Zi(this,Q1d,1,a,jb)};R1d.messageId="b.ListSloUpdatesResponse";var F7=function(){this.executor=p(pO);this.bCacheFactory=p(gP);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),S1d(this,a))};
var S1d=function(a,b){var c=(new O1d).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:R1d}).then(function(d){d=d.getIt();return{updates:Ni(d,P1d,1,Oi()).map(BYa)}})};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 Z9b=function(a){return{displayText:"Admins",values:a}},Y9b=function(a){return[a]},G7=function(){var a=p(Qu),b=p(yY);Z.call(this);var c=this;this.routeParams=p(BS);this.bLocation=p(hU);this.appHistory=p(I2);this.butterBar=p(gO);this.pageTitle=p(m2);this.documentationLinks=p(hS);this.userAccess=p(JP);this.accessPolicyApi=p(RO);this.sloApi=p(PQ);this.sloUpdatesApi=p(F7);this.sloUpdatesService=p(CXd);this.errorHandler=p(wO);this.matDialogService=p(VB);this.analytics=p(lQ);this.confirmationDialogService=
p(iS);this.appEvents=p(aP);this.editableAccessPolicy=ts();this.flattenedAccessPolicy=ts();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(zY(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=rq("SLO",
Gm(b));if(this.sloEnabled=a.isInternalSession())T1d(this,b),this.loadUserAccess(b),this.loadAccessPolicy(b),U1d(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 T1d=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Em(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=us(c);b.editableAccessPolicy=Em(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var V1d=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return EXd(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h=G7.prototype;
h.loadUserAccess=function(a){var b=this;KP(this.userAccess,"admin",rq("SLO",Gm(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!Dm(this.slo,this.editableCopy)};h.hasUnsavedAccessPolicyChanges=function(){return!Dm(this.flattenedAccessPolicy,this.editableAccessPolicy)};
h.saveMetadata=function(){var a=this;W1d(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Fh([Dh("Any changes to the rules will need to be propagated to all impacted issues. Depending on the number of affected issues, this may take a few hours to fully fan-out and reindex."),Hh("br"),Hh("br"),Dh("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:uB})};
var T9b=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Dh("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:uB}):c()}},W1d=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;$r(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.';W1d(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");$r(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Em(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:Dh("You are about to change the administrator privileges for this SLO. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){a.doSaveAccessPolicy()},onDismiss:uB}):this.doSaveAccessPolicy()};
G7.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=vs(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;$r(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){$r(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=us(c);a.editableAccessPolicy=Em(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(dq(c),0)}).finally(function(){a.isUpdating=!1})};G7.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var U1d=function(a,b){V1d(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&Om(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&Om(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};h=G7.prototype;
h.isRevokingDirectAdmin=function(){if(Dm(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;W1d(this.slo.elements,this.editableCopy.elements)?this.editableCopy=Em(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Fh([Dh("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=Em(a.slo)},onDismiss:uB})};h.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Em(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;V1d(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=C({type:G7,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&jg(JL,5,Jd);if(a&2){var c;ng(c=og())&&(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,Q9b,2,0,"div",6),F(6,$9b,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:[VU,yE,Ij,qE,rE,JE,xE,vE,yT,OL,JL,KL,TW,xL,rI,I5,iU],encapsulation:2});var H7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(cR);this.issueFullFridge=p(nQ);this.issuePicker=p(fY);this.snackBar=p(uC);this.imageUrls=p(gW);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(yo)}));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 JVa(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(){X1d(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(dq(b)||"Error with network request","close",{panelClass:"error"})}};Y(H7,Z);H7.\u0275dir=Z.\u0275dir;var a$b=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},X1d=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=C({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,o$b,2,1),T(2,"async"),L(),F(3,p$b,
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:[qF,nC,jC,lC,FK,DA,iU,d_,ly],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 Y1d=function(){};Y1d.\u0275fac=function(a){return new (a||Y1d)};Y1d.\u0275mod=cf({type:Y1d});Y1d.\u0275inj=Gc({imports:[cP,Wy,EI,OE,PE,pC,QL,GK,JX,eL,DU,kU,Z0]});var I7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,I7.messageId)};Y(I7,W);I7.prototype.getIssueId=function(){return En(this,1,void 0,jb)};I7.prototype.getIssueId_asString=function(){return Cn(this,1,void 0,jb)};I7.prototype.setIssueId=function(a){return Yn(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,vm,1,jb)};J7.prototype.setUrl=function(a){return Zi(this,vm,1,a,jb)};J7.prototype.hasUrl=function(){return Ji(this,vm,1,jb)};J7.messageId="b.MonorailIssueRedirectResponse";var Z1d=function(){this.executor=p(oO)},$1d=function(a,b){b=(new I7).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:J7}).pipe(A(function(c){return KFa(c.getUrl())}),jf(function(){return ee(null)}))};Z1d.\u0275fac=function(a){return new (a||Z1d)};Z1d.\u0275prov=Fc({token:Z1d,factory:Z1d.\u0275fac,providedIn:"root"});var y$b=function(a,b){return b.issueId},a2d={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},K7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(nQ);this.router=p(oF);this.STATUS_JS_TERSE=hed;this.ListIssuesHovercardMode=a2d;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new wf(1);this.init=new wf(1);this.issues$=this.issueIds$.pipe(we(hn),Af(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return a.mode==="parent"?b.filter(MVa):b.filter(yo)}))};
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 v$b=function(a){var b;(b=a.hovercardInstance)==null||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=c!=null?c:[];for(var d="id:(",e=l(c.entries()),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;d+=g;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([As.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=C({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,z$b,8,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issues$))?0:-1,c)}},dependencies:[Yy,qF,nC,jC,ly],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(nQ);this.paths=p(vW);this.cdr=p(Px);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=a2d;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};L7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&b2d(this).then(function(c){b.issueIdToTitle=c;b.cdr.markForCheck()})};L7.prototype.getIssueLink=function(a){return Cs(a)};
var b2d=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=Jq(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(hn)}),A(function(f){var g=new Map;f=l(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,g.set(k.issueId,k.snapshot[0].title);return g}))))})};L7.\u0275fac=function(a){return new (a||L7)};
L7.\u0275cmp=C({type:L7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},standalone:!1,features:[xx],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,C$b,6,5),Qf(2,D$b,3,5,null,null,Pf));a&2&&(B(),G(b.multiParentIssueIds.length>1?1:-1),B(),Rf(b.reorderedAncestors))},dependencies:[Yy,SR,WK,XK,dL,YK,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(nQ);this.hotlistFridge=p(rP);this.hotlistPicker=p(MY);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=fs};M7.prototype.onClick=function(){WDd(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=C({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:[vU,
nC,jC,ly],encapsulation:2});var c2d=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()}}}},d2d=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},e2d=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)}}},f2d=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()}}},g2d=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()}}},h2d=function(a,b){if(b.isInternal&&b.isDuckieChatEnabled)return{type:"action",label:"Ask Buganizer Agent (Teamfood)",title:"Ask Buganizer Agent (Teamfood)",icon:"chat_spark_24px",action:function(){a.openDuckieChat()}}};var i2d=function(a){return{isDupe:a}},N7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(nQ);this.permissionsFridge=p(JQ);this.issuePicker=p(fY);this.snackBar=p(uC);this.eventsForIssueFridge=p(TP);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(qq(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])&&kjd(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(dq(b)||"Error with network request","close",{panelClass:"error"})}};
Y(N7,Z);N7.\u0275dir=Z.\u0275dir;
var E$b=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?j2d(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)}})},j2d=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=C({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,F$b,3,5,"button",0),T(1,"async"));if(a&2){var c;G((c=Kg(3,i2d,U(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[nC,jC,ly],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=C({type:O7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&jg(dL,5);if(a&2){var c;ng(c=og())&&(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,H$b,1,1,"ng-container"),L()()(),M(5,"mat-icon",3));a&2&&(a=sg(1),B(2),Kf("aria-label",b.label),B(2),G(b.content?4:-1),B(),I("onedevHovercardTrigger",a))},dependencies:[ky,Yy,WK,dL],encapsulation:2});var k2d=function(){};k2d.\u0275fac=function(a){return new (a||k2d)};k2d.\u0275mod=cf({type:k2d});k2d.\u0275inj=Gc({imports:[cP,eL]});var M$b=function(a,b){return b.label},P7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.activeSession=p(Qu);this.appEvents=p(aP);this.issueArchiveService=p(t1);this.domSafe=p(sR);this.editIssueService=p(NS);this.matDialogService=p(VB);this.analytics=p(lQ);this.llmChatService=p(BZ);this.issueId$=new wf(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=fs;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,m;return{modifiedTimeMilliseconds:(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.modifiedTimeMicros)!=null?b.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:(k=b==null?void 0:(d=b.userData)==null?void 0:d.voted)!=null?k:!1,voteCount:(m=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?m:0,notificationSubscription:gn(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$=l2d(this);this.state$=le([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return Object.assign({},{issueId:b},d,{menuItems:c})}))};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,ys(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(TB(b.matDialogService.open(rxd,{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(TB(b.matDialogService.open(nxd,{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(TB(b.matDialogService.open(qxd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,Zpd(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var l2d=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=Hs(a.activeSession)?"http://irm/?create-from-bug="+c:"http://irm-dev/?create-from-bug="+c;f.call(e,g);ce(d)})},requestIssueDeletion:function(){a.domSafe.openInNewTab(Fhb(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()})},openDuckieChat:function(){a.appEvents.openIssueDetailsPageSidebar.next()}};return le([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$,a.llmChatService.isDuckieChatEnabled$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;var g;f={permissions:f,accessLevel:j7a(c),
isArchived:(g=c==null?void 0:c.isArchived)!=null?g:!1,isDeleted:h7a(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:m7a(c),retentionState:p7a(c),enableIrmIntegrationMenu:a.activeSession.getFlag("enableIrmIntegrationMenu"),isDuckieChatEnabled:d};return[g2d(b,f),e2d(b,f),f2d(b,f),d2d(b,f),c2d(b,f),h2d(b,f)].filter(hn)}))};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=C({type:P7,selectors:[["issue-header-actions"]],viewQuery:function(a,b){a&1&&jg(O7,5);if(a&2){var c;ng(c=og())&&(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,N$b,14,11),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[XW,Yy,O7,vU,nC,lC,eK,pH,nH,sH,FK,DA,x5,w4,v4,N7,M7,ly],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(dR);this.issuePagination=p(l2);this.issueInteractionsTracking=p(JS);this.bLocation=p(hU);this.paths=p(vW);this.refreshMonitor=p(aQ);this.butterBar=p(gO);this.internalSearchResults$=new Wj(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=l(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:PPd(b,c)))!=null?d:-1}));this.hasPreviousIssue$=le([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=PPd(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=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=PPd(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(){m2d(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;m2d(a)}))};Y(Q7,Z);
Q7.\u0275dir=Z.\u0275dir;
var n2d=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)},R$b=function(a){var b=Jr(a.hasNextIssue$),c=Jr(a.issueIndex$);b&&c&&o2d(a,c+1)},Q$b=function(a){var b=Jr(a.hasPreviousIssue$),c=Jr(a.issueIndex$);b&&c&&o2d(a,c-1)},m2d=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return z(e,XPd(a.issuePagination).catch(O$b),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=PPd(b,a.issueId);return d===-1?e.jumpTo(0):z(e,ZPd(a.issuePagination,d).catch(O$b),0)})},o2d=function(a,b){ZPd(a.issuePagination,b).then(function(c){a.bLocation.setUrl(Cs(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 p2d=function(){this.currentSearchResults=p(Q7);this.HOTKEYS=fs};p2d.\u0275fac=function(a){return new (a||p2d)};
p2d.\u0275cmp=C({type:p2d,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,
S$b,8,13),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[Yy,vU,nC,lC,FK,DA,ly],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 q2d=function(){var a=this;this.brain=p(dR);this.accessIndicatorService=p(VW);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(we(hn));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(hn));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),we(hn));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 jzd(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=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=l(c.next().value);c=k.next().value;k=k.next().value;return{retentionState:b,isAccessLimited:d==="LIMIT_VIEW"||d==="LIMIT_APPEND"||d==="LIMIT_VIEW_TRUSTED",isShowingRetention:(b==null?void 0:b.scheduledDeletionTime)==null?!1:DVb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:g,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};q2d.\u0275fac=function(a){return new (a||q2d)};q2d.\u0275cmp=C({type:q2d,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,X$b,1,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[r0,x4,WW,ly],encapsulation:2});var r2d=function(){this.teamsService=p(UQ);this.onTeamLoaded=new wf(1);this.teamName$=new Wj("");this.isTeamLoaded=!1};r2d.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId?VQ(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)))};r2d.\u0275fac=function(a){return new (a||r2d)};
r2d.\u0275cmp=C({type:r2d,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},standalone:!1,features:[xx],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,Y$b,4,4,"div",2),T(2,"async"),L(),K(3,"onedev-hovercard",null,0),Wf(5),
M(6,"b-team-card",3),Xf(),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:[Yy,AW,WK,dL,KV,ly],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(nQ);this.issuePermissionService=p(fR);this.router=p(oF);this.refreshMonitor=p(aQ);this.currentSearchResults=p(Q7);this.trackerHelpers=p(pS);this.eventsForIssueFridge=p(TP);this.cdr=p(Px);this.starToggleDisabled=!1;this.issueId$=new wf(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=a2d;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=fs;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 gn(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(A(function(b){return gn(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 gn(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(yo)}),A(function(b){return b.length}));this.blockedByids$.pipe(A(hac));
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(hn),A(function(b){var c;return(c=Sm.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(A(function(b){return!!jed[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;gjd(a.issueFullFridge,a.issueId,!b).pipe(rf(),Bf(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});ce(c)})};this.toggleStarDebounced=vB(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=C({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,$$b,1,1,"ng-container");T(10,"async");Nf(11,bac,4,7);E(12,eac,4,7,"ng-template",null,0,Og);L();K(14,"div",7);M(15,"b-pagination-one-issue");L()();K(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);T(20,"async");T(21,"async");N("onHotkey",function(){u(c);return v(n2d(b.currentSearchResults))})("click",
function(){u(c);return v(n2d(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,fac,3,2,"div",17);T(34,"async");K(35,"onedev-hovercard",null,1);E(37,gac,4,7,"ng-container",18);L();M(38,"issue-header-actions",19);L()()()}if(a&2){var d;zg(U(1,23,b.statusCssClass$));yg("overline",U(2,25,b.statusIsFeatured$))("color-field",U(3,27,b.statusIsFeatured$));B(4);I("title",Hg("[",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,ky,Yy,EY,vU,WK,XK,dL,YK,FW,YZ,K7,nC,lC,FK,DA,JY,r2d,p2d,P7,q2d,ly],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(UB)};Y(S7,Z);S7.\u0275dir=Z.\u0275dir;S7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(S7)))(b||S7)}}();
S7.\u0275cmp=C({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()(),Qf(9,qac,5,3,"div",6,Pf),L()(),K(11,"mat-dialog-actions",7)(12,"button",8),Q(13,"Close"),L()());a&2&&(B(8),S(" ",b.data.prompt," "),B(),Rf(b.data.steps))},dependencies:[nC,jC,WB,
YB,$B,ZB,qy],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(lR);this.llmSuggestedBugFixService=p(HZ);this.analytics=p(lQ);this.domSafe=p(sR);this.dialog=p(VB);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,s2d(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,s2d(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,s2d(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$})},s2d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){f=a.formatter.format({comment:f,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"bug2code"}).pipe(A(function(g){var k,m;return(m=g==null?void 0:(k=g.markdownFormat)==null?void 0:k.content)!=null?m:null}));return ie(f)}),z(e,Promise.all(c),2);d=e.yieldResult;return e.return(d.filter(hn))})};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=C({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,Bac,4,4),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.vm$))?1:-1,c)}},dependencies:[Yy,nC,jC,DA,ly],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 t2d=["container"],U7=function(){this.appEvents=p(aP);this.analytics=p(lQ);this.contextSensitiveRegistry=p(cR);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=C({type:U7,selectors:[["tailwind-sidebar"]],viewQuery:function(a,b){a&1&&jg(t2d,5);if(a&2){var c;ng(c=og())&&(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,Cac,1,1,"b-bug2code-sidebar",9);T(11,
"async");F(12,Dac,2,0,"div",10);T(13,"async");L()}if(a&2){var d;B(2);yg("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,Yy,nC,lC,DA,ly],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 u2d=function(){var a=this;this.trackerHelpers=p(pS);this.trackerFridge=p(aR);this.activeSession=p(Qu);this.issueTrackerId$=new Wj(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 vt(a.trackerHelpers,
String(a.issueId),c)}))};da.Object.defineProperties(u2d.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});u2d.\u0275fac=function(a){return new (a||u2d)};
u2d.\u0275cmp=C({type:u2d,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,Eac,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:[nC,jC,ly],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(pS);this.trackerFridge=p(aR);this.activeSession=p(Qu);this.imageUrls=p(gW);this.activatedRoute=p(Vj);this.trackerId$=new Wj(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=l(b);b=c.next().value;var d=c.next().value;c="";a.issue&&(c=String(a.issueId));a.component&&(c="components/"+a.componentId);d=d?"#"+encodeURIComponent(d):"";return b?vt(a.trackerHelpers,c,b)+d:Pod(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 Qm((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=Sm.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=C({type:V7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},standalone:!1,features:[xx],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,
Gac,15,13,"div",0);a&2&&G(b.showResourceContainer?0:-1)},dependencies:[Yy,nC,jC,FK,DA,ly],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(PZ);this.paths=p(vW);this.routeParams=p(BS);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):(ZGd(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,"",Cs(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 v2d=function(){Z.call(this);var a=this;this.el=p(Jd);this.router=p(oF);this.router.events.pipe(we(N4a),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(M4a),Bf(this.destroyed$)).subscribe(function(b){Hac(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Y(v2d,Z);v2d.\u0275fac=function(a){return new (a||v2d)};v2d.\u0275dir=df({type:v2d,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},standalone:!1,features:[Gf]});var w2d=function(){};w2d.\u0275fac=function(a){return new (a||w2d)};w2d.\u0275mod=cf({type:w2d});w2d.\u0275inj=Gc({imports:[cP]});var Lac=function(a){return{monorailRedirectUrl:a}},kbc=function(){return{exact:!0}},X7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(cR);this.issueFullFridge=p(nQ);this.activeSession=p(Qu);this.permissions=p(fR);this.editIssueService=p(NS);this.counts=p(J1);this.appEvents=p(aP);this.issueInteractionsTracking=p(JS);this.checkBeforeExit=p(yY);this.butterBar=p(gO);this.routerEvents=p(kQ);this.refreshMonitor=p(aQ);this.eventsForIssueFridge=p(TP);this.currentUserBookmarksFridge=
p(wP);this.permissionsFridge=p(JQ);this.issueRelationshipsFridge=p(tQ);this.issueService=p(YP);this.errorHandler=p(wO);this.monorailIssueRedirectApi=p(Z1d);this.domSafe=p(sR);this.llmSuggestedBugFixService=p(HZ);this.llmChatService=p(BZ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(we(hn));this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=qia(this.issue$.pipe(A(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(Ef(this.id$),
we(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),A(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(Ef(this.id$),we(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),Af(function(b){b=l(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return ee({status:c.status});case 404:return $1d(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(hn),
A(function(b){var c;return(c=Sm.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(hn),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$}]:[]),q(this.activeSession.isInternalSession()?[{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);wpd(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,ys(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return Amd(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);ce(e)})}));
a.subscriptions.add(zY(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(hn),nf(1)).subscribe(function(d){oQ(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(qq(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();oQ(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;xpd(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=C({type:X7,selectors:[["issue-details-wrapper"]],viewQuery:function(a,b){a&1&&jg(KM,5);if(a&2){var c;ng(c=og())&&(b.matSideNav=c.first)}},standalone:!1,features:[Ig([iQ,PS,{provide:RR,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,Iac,2,1,"h2",7),T(1,"async"),K(2,"mat-sidenav-container",8)(3,"mat-sidenav-content",9),Yf(4,10),L(),K(5,"mat-sidenav",11),Yf(6,10),L()(),E(7,Qac,2,3,"ng-template",
null,0,Og)(9,Vac,2,3,"ng-template",null,1,Og)(11,qbc,3,3,"ng-template",null,2,Og)(13,rbc,4,2,"ng-template",null,3,Og)(15,ubc,3,1,"ng-template",null,4,Og));if(a&2){var c;a=sg(8);var d=sg(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:[YXd,ky,aF,qF,rF,JU,KU,Lz,U7,R7,h5,ZMd,nC,jC,KM,LM,JM,PL,LL,Qad,ML,FK,DA,v2d,u2d,V7,ly],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(nQ);this.butterBar=p(gO);this.duplicateIssueIds$=new Wj([]);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 Zj(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=C({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,vbc,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:[d_,ly],encapsulation:2,changeDetection:0});var Z7=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(bR);this.issueFullFridge=p(nQ);this.issuePicker=p(fY);this.snackBar=p(uC);this.counts=p(J1);this.imageUrls=p(gW);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(hn),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,kjd(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(dq(b)||"Error with network request","close",{panelClass:"error"})}};Y(Z7,Z);Z7.\u0275dir=Z.\u0275dir;Z7.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var wbc=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=C({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,Bbc,3,3),T(2,"async"),L(),F(3,Cbc,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:[qF,nC,jC,FK,
DA,iU,Y7,ly],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 x2d=function(){};x2d.\u0275fac=function(a){return new (a||x2d)};x2d.\u0275mod=cf({type:x2d});x2d.\u0275inj=Gc({imports:[cP,Wy,EI,OE,PE,pC,QL,GK,eL,JX,DU,kU,Z0]});var $7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(nQ);this.issueTypeToDisplay=Qm;this.STATUS_JS_FULL_TEXT=Sm;this.STATUS_JS_TERSE=hed;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 jed[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=C({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,Ebc,6,10,"div"),T(3,"async"),F(4,Fbc,2,4,"span",4),T(5,"async"),M(6,"b-issue-priority-display",5),T(7,"async"),L(),F(8,Gbc,1,1,"b-issue-hotlists",6),T(9,"async"),L(),K(10,"onedev-hovercard",null,0),E(12,Hbc,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:[qF,WK,XK,dL,
YK,YW,XZ,HW,ly],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 y2d=function(){this.message=p(qC);this.snackbarRef=p(rC);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};y2d.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};y2d.\u0275fac=function(a){return new (a||y2d)};
y2d.\u0275cmp=C({type:y2d,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:[Yy,nC,lC],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 z2d=function(){this.snackbar=p(uC)},A2d=function(a){var b=fs.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(y2d,c);return a.currentSnackBar};z2d.\u0275fac=function(a){return new (a||z2d)};z2d.\u0275prov=Fc({token:z2d,factory:z2d.\u0275fac,providedIn:"root"});var a8=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(TP);this.issueFullFridge=p(nQ);this.preferences=p(nR);this.commentHistoryDialogService=p(XY);this.issueDetailsBrain=p(dR);this.errorHandler=p(wO);this.refreshDataNotification=p(z2d);this.eventsForIssueWatcher=p(rY);this.analytics=p(lQ);this.appEvents=p(aP);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=Jr(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(gDd(this.eventsForIssueWatcher,Jr(this.id$)).subscribe(function(){B2d(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 B2d=function(a){a.analytics.trackEvent("pushUpdate","display","comment");A2d(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(Jr(a.id$)),a.eventsForIssue.poke(Jr(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=C({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:[QZ,ly],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var Jbc=function(a){return{data:a}},C2d=function(){this.dialogRef=p(SB);this.data=p(UB);this.userInstructions=""};C2d.\u0275fac=function(a){return new (a||C2d)};
C2d.\u0275cmp=C({type:C2d,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);Eg("ngModelChange",function(d){u(c);Dg(b.userInstructions,d)||(b.userInstructions=d);return v(d)});L()();F(16,Kbc,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,Ubc,8,1,"ng-template",11,0,Og)}a&2&&(B(15),Cg("ngModel",b.userInstructions),B(),G(b.data.trajectory?16:-1),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",b.userInstructions)("disabled",!b.userInstructions))},dependencies:[ky,Ij,qE,xE,nC,jC,WB,YB,$B,ZB,SD,cE,VD,fE,QE,iE,VL,WL,XL,UL,qy],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(){},D2d=function(a){var b=Ko("buganizer-homepage-tailwind-runs")();b||(b=[]);b.includes(a)||b.push(a);Lo("buganizer-homepage-tailwind-runs")(b)},E2d=function(){var a=Ko("buganizer-homepage-tailwind-runs")()||[];return Array.isArray(a)?[].concat(q(a)):[]},F2d=function(a){var b=E2d();b.includes(a)&&(b.splice(b.indexOf(a),1),Lo("buganizer-homepage-tailwind-runs")(b))};b8.\u0275fac=function(a){return new (a||b8)};b8.\u0275prov=Fc({token:b8,factory:b8.\u0275fac,providedIn:"root"});var Hu=function(a){return{status:a}},c8=function(){this.destroyRef=p(Ee);this.errorHandler=p(wO);this.llmSuggestedBugFixService=p(HZ);this.refreshMonitor=p(aQ);this.activeSession=p(Qu);this.analytics=p(lQ);this.appEvents=p(aP);this.domSafe=p(sR);p(b8);this.tasksService=p(GQ);this.dialog=p(VB);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.status$=new Wj(7);this.ignored$=new Wj(!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 GGd[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatus=FGd;this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl")};h=c8.prototype;
h.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(zf(null)).pipe(Af(function(){return a.llmSuggestedBugFixService.getInitialStatus(a.issueId)}),fj(this.destroyRef)).subscribe(function(b){a.status$.next(b)});this.showLlmSuggestion$.pipe(we(Boolean),nf(1),fj(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
h.startTailwindRun=function(){var a=this;this.analytics.trackEvent("tailwind","generate",this.issueId);this.status$.next(1);this.enableTailwindMissionControl&&(D2d(this.issueId),this.createSnoozedTask(this.issueId));this.llmSuggestedBugFixService.createRun(this.issueId).pipe(fj(this.destroyRef),Af(function(b){return b.runId?a.llmSuggestedBugFixService.startPollingForSuggestion(b.runId):(a.status$.next(4),ee(4))})).subscribe(function(b){a.status$.next(b)})};
h.handleViewSummary=function(){this.openSidebar();this.analytics.trackEvent("tailwind","display",this.issueId);F2d(this.issueId)};h.handleViewInCritique=function(){var a,b,c,d=(c=(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.oclNumber)!=null?c:"";d&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+d),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId),F2d(this.issueId))};h.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};
h.ignore=function(){this.llmSuggestedBugFixService.ignoreSuggestion(this.issueId);this.ignored$.next(!0)};h.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(S7,Object.assign({},{data:(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig));F2d(this.issueId)};
h.hasTrajectoryData=function(){var a,b,c=(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory;return c!==void 0&&c.prompt!==""&&c.steps.length>0};
h.handleRetry=function(){var a=this,b,c=(b=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:b.metadata,d,e;TB(this.dialog.open(C2d,Object.assign({},{data:this.hasTrajectoryData()?{trajectory:(d=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(e=d.results)==null?void 0:e.trajectory}:{}},this.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(fj(a.destroyRef),
Af(function(k){return k.runId?a.llmSuggestedBugFixService.startPollingForSuggestion(k.runId):(a.status$.next(4),ee(4))})).subscribe(function(k){a.status$.next(k)})}})};h.createSnoozedTask=function(a){var b=this;a="b/"+a;var c=new Cm;c.setSeconds(c.getSeconds()+6);Mkd(this.tasksService,[a],{seconds:c.getTime()/1E3,nanos:0}).pipe(fj(this.destroyRef),of(3E3)).subscribe(function(){},function(d){return void b.errorHandler.errorHandler(null,d)})};c8.prototype.ignore=c8.prototype.ignore;
c8.\u0275fac=function(a){return new (a||c8)};
c8.\u0275cmp=C({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&&(bg(0),T(1,"async"),F(2,icc,21,6,"div",6),T(3,"async"),E(4,jcc,4,0,"ng-template",null,0,Og)(6,kcc,0,0,"ng-template",null,1,Og)(8,mcc,5,4,"ng-template",null,2,Og)(10,pcc,2,5,"ng-template",null,3,Og)(12,rcc,1,1,"ng-template",null,4,Og));a&2&&(a=cg(U(1,1,b.status$)),B(2),G(b.isInternalSession&&
U(3,4,b.showLlmSuggestion$)&&a!==b.LlmSuggestionStatus.HIDDEN?2:-1))},dependencies:[ky,Yy,nC,jC,DA,$V,wL,ly],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(RR);this.userToLossyEmail=Om};d8.prototype.ngOnInit=function(){};d8.prototype.getCommentNumberLink=function(a){return H6a(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=C({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&&Qf(0,wcc,5,3,"span",1,Pf);a&2&&Rf(b.comments)},dependencies:[bP,WK,dL,nT,uX],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(Tg)};Y(e8,Z);e8.\u0275dir=Z.\u0275dir;var G2d=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 H2d=["imagesSummaryWidget"],f8=function(){var a=this;this.resizeService=p(e8);this.router=p(oF);this.route=p(Vj);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 G2d(a.resizeService,b)}));this.issueId$=new wf(1);this.lastRenderedImageIndex$=new Wj(0);this.allImages$=this.imageLinks$.pipe(A(function(b){b=b.map(function(c){if(c.comment){var d=d$a(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(hn);return Ecc(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=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.paginate?d.slice(0,c||
b):d.slice(0,b)}),A(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=d$a(c.src,!0))!=null?d:""})})}),pf())},ycc=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 Jr(this.imageLinks$)}}});f8.\u0275fac=function(a){return new (a||f8)};
f8.\u0275cmp=C({type:f8,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&jg(H2d,7);if(a&2){var c;ng(c=og())&&(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,Dcc,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,nC,jC,qT,ly,I2d]},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 I2d=function(){};I2d.prototype.transform=function(a){return a.split(".png")[0]};I2d.\u0275fac=function(a){return new (a||I2d)};I2d.\u0275pipe=ef({name:"removePngExtension",type:I2d,pure:!0,standalone:!1});var J2d={ANY_ISSUE_EDIT:"SW-any-issue-edit",DUPES:"SW-dupes",IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links",SIMILAR_ISSUES:"SW-similar-issues",ASSIGN_TO_REPORTER:"SW-assign-to-reporter",COMPONENT_ROUTING:"SW-component-routing"},Ndc=[].concat(q(Object.values(J2d)));var K2d=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=FWa(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=FWa(function(){c.analytics.trackEvent("editIssue","view","SW")})},ddc=function(a,b,c){a.recordInteractionOnce(c);Iu(a.issueInteractionsTracking,b,c+"-content-interacted");Iu(a.issueInteractionsTracking,b,"SW-content-interacted")};var g8=function(){this.activeSession=p(Qu);this.trackerHelpers=p(pS);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=Lcc(b.markdownFormat.content);break a}if(b.literalFormat){a=Lcc(b.literalFormat.content);break a}if(b.plainFormat){a=document.createElement("div");b=l(b.plainFormat.plainSection);for(var c=b.next();!c.done;c=b.next())(c=c.value.content)&&a.appendChild(Lcc(c));break a}}a=void 0}if(a=a&&L2d(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(M2d.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(M2d.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="",Zr(this.relatedLink)?c=b=this.relatedLink.href:e$a(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?BSa(vt(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 L2d=function(a,b){if(a.relatedLink){if(e$a(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(q(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(Zr(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 vt(this.trackerHelpers,a)};g8.\u0275fac=function(a){return new (a||g8)};
g8.\u0275cmp=C({type:g8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},standalone:!1,features:[xx],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,Fcc,3,1,"span",1),F(3,Gcc,2,3,"b-external-hyperlink-widget",2)(4,Jcc,2,1),F(5,Kcc,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:[QR,SR],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 M2d=new Set(["BR"]);var h8=function(){var a=this;this.activeSession=p(Qu);this.issueFullFridge=p(nQ);this.router=p(oF);this.route=p(Vj);this.issueReferenceResolver=p(RR);this.issueReferences$=new wf(1);this.currentIssueId$=new wf(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new Wj(10);this.issuesMap$=this.issueReferences$.pipe(we(hn),Af(function(b){var c=Jq(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(hn),A(function(b){var c=new Map;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.issueId.toString();c.has(e)?c.get(e).push(d):c.set(e,[d])}return c}));this.allMentionedIssues$=le([this.issueReferencesMap$,this.issuesMap$]).pipe(A(function(b){b=l(b);var c=b.next().value;b=b.next().value;return[].concat(q(b)).filter(function(d){return l(d).next().value!==
a.issueId}).map(function(d){var e=l(d);d=e.next().value;e=e.next().value;var f=c.get(d),g=f==null?void 0:f.map(function(k){var m,r,w=(m=k.comment)==null?void 0:(r=m.userPerformingActionUser)==null?void 0:r.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(w==null?void 0:w.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:BSa(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=l(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 H6a(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=C({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,Scc,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[HW,nC,jC,FK,DA,g8,d8,ly,N2d]},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 N2d=function(){};N2d.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(hn)};N2d.\u0275fac=function(a){return new (a||N2d)};N2d.\u0275pipe=ef({name:"toComments",type:N2d,pure:!0,standalone:!1});var Xcc=function(a,b){return b[0].href},i8=function(){var a=this;this.router=p(oF);this.route=p(Vj);this.allLinks$=new wf(1);this.issueId$=new wf(1);this.lastRenderedRelatedLinkIndex$=new Wj(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(A(function(b){return Q0a(b,function(c){return c.href})}));this.linkGroupsToRender$=le([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.paginate?adc(b,c):b.length===6?adc(b,
6):adc(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("Ag");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Jr(this.issueId$)}}});i8.\u0275fac=function(a){return new (a||i8)};
i8.\u0275cmp=C({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,Zcc,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[d8,nC,jC,g8,ly,O2d]},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 $cc=wn(function(a){return Math.min.apply(Math,q(a.map(function(b){return b.sourceCommentNumber})))},xn),O2d=function(){};O2d.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(hn)};O2d.\u0275fac=function(a){return new (a||O2d)};O2d.\u0275pipe=ef({name:"toComments",type:O2d,pure:!0,standalone:!1});var edc=function(){return[]},j8=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(Qu);this.userPreferencesManager=p(nR);this.issueInteractionsTracking=p(JS);this.issueFullFridge=p(nQ);this.analytics=p(lQ);this.eventsForIssueFridge=p(TP);this.similarIssuesApi=p(yW);this.issueEnrichmentFridge=p(XP);this.issuePermissionService=p(fR);this.issueRecommendationFridge=p(pQ);this.recommendationTriggerService=p(iR);this.TabKeys=J2d;this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");
this.issueId$=new wf(1);this.alwaysStartCollapsed=!1;this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}),we(hn),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=l(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}),xf({bufferSize:1,refCount:!0}));this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(a$a)}),xf({bufferSize:1,refCount:!0}));this.distinctImageLinksCount$=this.imageLinks$.pipe(A(function(b){return Iq(b,function(c){return d$a(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()&&P2d(a,b)}),xf({bufferSize:1,refCount:!0}));this.issues$=this.relatedLinks$.pipe(A(function(b){return b.filter(e$a)}));this.distinctIssuesCount$=this.issues$.pipe(A(function(b){return b.filter(function(c){return c.issueId!==a.issueId})}),A(function(b){return Iq(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(f$a)}),xf({bufferSize:1,refCount:!0}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(A(function(b){return Iq(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(hn),Af(function(b){return Exd(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=l(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 Rld(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(Af(function(b){return Sld(a.recommendationTriggerService,
b)}),xf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=le([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),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 Tld(a.recommendationTriggerService,
b)}));this.shouldShowAssignToReporterSuggestion$=this.assignToReporterRecommendation$.pipe(A(Boolean));this.componentRoutingRecommendation$=this.issueId$.pipe(Af(function(b){return Uld(a.recommendationTriggerService,b)}));this.shouldShowComponentRoutingSuggestion$=this.componentRoutingRecommendation$.pipe(A(Boolean));this.anyIssueEditRecommendation$=this.issueId$.pipe(Af(function(b){return Vld(a.recommendationTriggerService,b)}));this.shouldShowAnyIssueEditSuggestion$=ee(this.activeSession.getFlag("enablePlaybook")).pipe(Af(function(b){return b?
a.anyIssueEditRecommendation$:ee(void 0)}),A(function(b){var c,d,e,f=(b==null?void 0:(c=b.content)==null?void 0:(d=c.issueModification)==null?void 0:(e=d.addState)==null?void 0:e.status)==="DUPLICATE";return!!b&&!f}));this.tabKeys$=le([this.shouldShowAnyIssueEditSuggestion$.pipe(A(function(b){return{show:b,key:"SW-any-issue-edit"}})),this.shouldShowAssignToReporterSuggestion$.pipe(A(function(b){return{show:b,key:"SW-assign-to-reporter"}})),this.shouldShowComponentRoutingSuggestion$.pipe(A(function(b){return{show:b,
key:"SW-component-routing"}})),this.shouldShowDupeSuggestions$.pipe(A(function(b){return{show:b,key:"SW-dupes"}})),this.shouldShowSimilarIssues$.pipe(A(function(b){return{show:b,key:"SW-similar-issues"}})),this.shouldShowImages$.pipe(A(function(b){return{show:b,key:"SW-images"}})),this.shouldShowIssues$.pipe(A(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(A(function(b){return{show:b,key:"SW-links"}}))]).pipe(A(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));
this.shouldShowSummaryCard$=this.tabKeys$.pipe(A(function(b){return!!b.length}),of(0,Lr));this.initiallyExpandedTabs=Ndc.map(function(b){return tmd(a.userPreferencesManager,b)?void 0:b}).filter(hn);this.onTabExpanded$=new hQ;this.issueSummaryTracking=new K2d(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 smd(a.userPreferencesManager,Object.fromEntries(c.map(function(e){return[e,!d.has(e)]})))})).subscribe());this.subscriptions.add(this.tabKeys$.subscribe(function(b){var c=a.issueSummaryTracking,d=a.issueId;b=new Set(b);for(var e=l(b),f=e.next();!f.done;f=e.next())Iu(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&Iu(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 P2d=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 oR(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 Jr(this.issueId$)}}});j8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(j8)))(b||j8)}}();
j8.\u0275cmp=C({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"],["ariaLabel","Toggle any issue edit suggestion",3,"key"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks"],[3,"click","issueId","imageLinks"],
["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId"],[3,"click","issueReferences","currentIssueId"],["svgIcon","link",1,"icon-s"],[3,"click","links","issueId"],["svgIcon","spark_24px","color","primary",1,"icon-s"],[3,"issueId","similarIssueIds","similarIssuesEnrichments"],[3,"click","issueId","similarIssueIds","similarIssuesEnrichments"],["svgIcon","tab_close_24px","color","primary",1,"icon-s"],[1,"rounded",3,"recommendation"],["svgIcon","keyboard_return_24px","color","primary",
1,"icon-s"],["svgIcon","route_24px","color","primary",1,"icon-s"],[1,"rounded",3,"showTitle","recommendation"]],template:function(a,b){a&1&&(K(0,"h3",0),Q(1,"Issue summary"),L(),F(2,Odc,23,14,"expandable-tabs",1),T(3,"async"));if(a&2){var c;B(2);G((c=U(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[Yy,iZ,fZ,gZ,hZ,jZ,f8,h8,i8,e_,m_,ly],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(VB)};k8.prototype.show=function(a){this.dialog=this.matDialog.open(l8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return ie(TB(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(UB);this.dialogService=p(k8);this.dialogRef=p(SB);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=C({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),Qf(4,Pdc,19,12,"li",3,Pf),L()(),K(6,"footer",4)(7,"button",5),Q(8," Close "),L()());a&2&&(B(4),Rf(b.statusUpdates),B(3),I("mat-dialog-close",void 0))},dependencies:[BV,nC,jC,WB,YB,$B,ZB,mT,kV,iV,MS,eV],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 Q2d=["noteContainer"],bec=function(a){return[a]},R2d={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(lQ);this.confirmationDialogService=p(iS);this.currentUser=p(M2);this.editStatusUpdateDialogService=p(f4);this.statusUpdateFactory=p(h4);this.errorHandler=p(wO);this.issueFullFridge=p(nQ);this.issuePermissionService=p(fR);this.statusUpdateService=p(e4);this.statusUpdateHistoryDialogService=p(k8);this.userPreferencesManager=
p(nR);this.log=p(uO);this.Freshness=R2d;this.UiState=S2d;this.FormattingMode=bo;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(hn),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(A(function(b){var c;return(c=e9a(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=l(b);b=c.next().value;c=c.next().value;if(b)return 2;var d;b=(c==null?void 0:(d=c.updateTime)==null?void 0:d.seconds)||0;return Date.now()/1E3-b<86400?0:1}));this.uiState$=this.statusIsEmpty$.pipe(A(function(b){return b?1:2}),zf(0));this.formattingModeOverride$=new Wj(void 0);this.formattingMode$=le([this.statusUpdate$,this.formattingModeOverride$]).pipe(A(function(b){var c=l(b);b=c.next().value;return(c=
c.next().value)?c:(b==null?void 0:b.formattingMode)||"PLAIN"}));this.menuItems$=le([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(A(function(b){var c=l(b);var d=c.next().value;var e=c.next().value;b=c.next().value;var f=c.next().value;c=c.next().value;var g=e!=null;e=e&&(e==null?void 0:e.updateText)!=="";var k=[];e&&k.push({type:"submenu",label:"View as",className:"view-as-format",items:[{type:"select",
label:"Classic",action:function(){a.formattingModeOverride$.next("PLAIN")},selected:c==="PLAIN"},{type:"select",label:"Markdown",action:function(){a.formattingModeOverride$.next("MARKDOWN")},selected:c==="MARKDOWN"},{type:"select",label:"Source",action:function(){a.formattingModeOverride$.next("LITERAL")},selected:c==="LITERAL"}]});b&&k.push({type:"action",label:"Edit Status Update",action:function(){a.editStatusUpdate()}});g&&k.push({type:"action",label:"Show editing history",action:function(){T2d(a,
d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Dh("\n                    Deleting a Status Update will remove it from the history. It\n                    will be purged after 30 days. This cannot be undone."),confirmButtonText:"Delete",onConfirm:function(){a.doDelete()}})}});k.push(U2d);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=dec(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,m,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,IUd(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:m=x.yieldResult;if(m==null)return x.return();Yd(x,9);return z(x,ie(a.statusUpdateService.update(m)),11);case 11:r=x.yieldResult;a.didSave(b,r);Zj(x,0);break;case 9:w=be(x),cq(w)?a.errorHandler.errorHandler(null,w):a.log.warn(w),ce(x)}})};
var Sdc=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 T2d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,ie(GUd(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=C({type:m8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&jg(Q2d,5);if(a&2){var c;ng(c=og())&&(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,cec,5,13,"div",2),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.uiState$))?0:-1,c)}},dependencies:[UY,nU,Yy,BV,WK,dL,nT,nC,jC,FK,DA,ly,uX],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 S2d={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},U2d={type:"action",label:"Using the Status Update field...",action:function(){qi(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(dR);this.preferences=p(nR);this.scrollTiming=p(S2);this.analytics=p(lQ);this.element=p(Jd);this.editIssueService=p(NS);this.appEvents=p(aP);this.routePerformance=p(M1);this.clearcut=p(eQ);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(hn),Af(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));
this.finishedRendering$=le([this.brain.eventsJs$.pipe(of(0)),I_a("#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(hn),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){V2d(a)});I_a("#comment1 .critical-feature",this.element.nativeElement).pipe(Bf(this.destroyed$)).subscribe(function(){var b=function(){lPd(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.brain.eventsJs$.pipe(rf()).subscribe(function(b){W2d(a,
b)}));this.subscriptions.add(this.finishedRendering$.pipe(Ef(this.comment$)).subscribe(function(b){b=l(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var W2d=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")},V2d=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);fQ(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=C({type:n8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("unload",function(){V2d(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,fec,8,8),T(2,"async"),F(3,gec,3,5,"issue-summary-card",3),T(4,"async"),F(5,jec,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:[RZ,
JW,k4,$7,KZ,a8,j8,s0,m8,c8,ly],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var X2d=function(){};X2d.\u0275fac=function(a){return new (a||X2d)};X2d.\u0275mod=cf({type:X2d});X2d.\u0275inj=Gc({imports:[cP,sK,cK,yL,pC,zK,HU,OE,PE,X1,GK,Sz]});var o8=function(){Z.apply(this,arguments);this.prefs=p(nR)};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=C({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&&(eg(),K(0,"mat-slide-toggle",0),T(1,"async"),N("change",function(c){return b.onChange(c)}),fg(2),L());a&2&&I("checked",U(1,1,b.prefs.codeFont$))},dependencies:[XU,BT,FK,DA,ly],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=Gc({imports:[cP,pC,yL,cK,YU,HU,GK,kU]});var Y2d=function(){};Y2d.\u0275fac=function(a){return new (a||Y2d)};Y2d.\u0275mod=cf({type:Y2d});Y2d.\u0275inj=Gc({providers:[MY],imports:[cP,yX,pC,GK,X2d,M_,eL,JX,V0,RX,KX,W0,p8,X1]});var Z2d=function(){};Z2d.\u0275fac=function(a){return new (a||Z2d)};Z2d.\u0275mod=cf({type:Z2d});Z2d.\u0275inj=Gc({imports:[cP,pC,HU]});var $2d=function(){};$2d.\u0275fac=function(a){return new (a||$2d)};$2d.\u0275mod=cf({type:$2d});$2d.\u0275inj=Gc({imports:[IU,cP,T0,Q0,RX,W0,pC,GK,kU,X1,Z2d,rV,HU]});var q8=function(){};q8.\u0275fac=function(a){return new (a||q8)};q8.\u0275mod=cf({type:q8});q8.\u0275inj=Gc({imports:[cP,OE,pC,cK,eE,SE,ZL,EA,xX,RV]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=cf({type:r8});r8.\u0275inj=Gc({imports:[cP,eL,pU,wX]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=cf({type:s8});s8.\u0275inj=Gc({imports:[r8,cP,eL,pU,pC,wX,DU]});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=cf({type:t8});t8.\u0275inj=Gc({imports:[IU,cP,pV]});var u8=function(){};u8.\u0275fac=function(a){return new (a||u8)};u8.\u0275mod=cf({type:u8});u8.\u0275inj=Gc({imports:[cP,KX,pC,GK,t8,oU,r8]});var v8=function(){};v8.\u0275fac=function(a){return new (a||v8)};v8.\u0275mod=cf({type:v8});v8.\u0275inj=Gc({imports:[r8,cP,pC,t8]});var a3d=function(){};a3d.\u0275fac=function(a){return new (a||a3d)};a3d.\u0275mod=cf({type:a3d});a3d.\u0275inj=Gc({imports:[cP,E0,s8,u8,v8,a1,b1]});var b3d=function(){};b3d.\u0275fac=function(a){return new (a||b3d)};b3d.\u0275mod=cf({type:b3d});b3d.\u0275inj=Gc({imports:[cK,yL,cP,lA,pC,IU,J_]});var w8=function(){};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275mod=cf({type:w8});w8.\u0275inj=Gc({imports:[IU,cP]});var c3d=function(){};c3d.\u0275fac=function(a){return new (a||c3d)};c3d.\u0275mod=cf({type:c3d});c3d.\u0275inj=Gc({imports:[cP,GV,pC,cK,lA,oU,wX,w8,rV]});var d3d=function(){};d3d.\u0275fac=function(a){return new (a||d3d)};d3d.\u0275mod=cf({type:d3d});d3d.\u0275inj=Gc({imports:[JZ,IU,cP,GV,b3d,eL,pU,pC,GK,wX,c3d,w8]});var e3d=function(){};e3d.\u0275fac=function(a){return new (a||e3d)};e3d.\u0275mod=cf({type:e3d});e3d.\u0275inj=Gc({imports:[cP,EI,Wy,OE,pC,cK,QL,PE,U0,KW,a5,Y2d,Q0,$2d,a3d,u8,z0,DU,d3d,rV,kU,q8]});var f3d=function(){var a=this;this.activeSession=p(Qu);this.issueFullFridge=p(nQ);this.issueDetailsBrain=p(dR);this.eventsForIssueFridge=p(TP);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(Af(function(b){return b?a.issueFullFridge.watch(b):ee(void 0)}),we(hn));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=l(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(A(function(b){return b.filter(e$a)}));
this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(a$a)}));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(f$a)}))};f3d.\u0275fac=function(a){return new (a||f3d)};
f3d.\u0275cmp=C({type:f3d,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,rec,6,9),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.issue$))?1:-1,c)}},dependencies:[Yy,
h8,f8,i8,ly],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var g3d=function(){};g3d.\u0275fac=function(a){return new (a||g3d)};g3d.\u0275mod=cf({type:g3d});g3d.\u0275inj=Gc({imports:[cP,u8,s8,v8]});var x8=function(){var a=this;this.brain=p(dR);this.codeMentions=p(A1);this.imageUrls=p(gW);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(we(hn));this.codeMentionsState$=this.id$.pipe(Af(function(b){return SOd(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=C({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,wec,2,3),T(2,"async"),L());if(a&2){var c;
B();G((c=U(2,1,b.id$))?1:-1,c)}},dependencies:[t_d,ly],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(iQ,{self:!0});this.errorHandler=p(wO);this.currentUserBookmarksFridge=p(wP);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=As.createHotlist.makeHref()};y8.prototype.ngOnInit=function(){this.fetchUserHotlists()};y8.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;ie(xP(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=C({type:y8,selectors:[["list-hotlists-page"]],standalone:!1,features:[Ig([iQ])],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,xec,1,1,"b-spinner",4)(7,yec,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,iU,nC,jC],encapsulation:2});var h3d=new Set(["issueId","modifiedTime","createdTime"]),z8=function(){Z.call(this);var a=this;this.cdr=p(iQ);this.routerEvents=p(kQ);this.window=p(rR);this.bLocation=p(hU);this.$log=p(uO);this.issueApi=p(SP);this.hotlistApi=p(mP);this.activeSession=p(Qu);this.butterBar=p(gO);this.analytics=p(lQ);this.appSearchState=p(xT);this.issuePagination=p(l2);this.userPreferencesManager=p(nR);this.urlPreferences=p(M4);this.gridPreferencesFetcher=p(O4);this.paths=p(vW);this.timeout=p(vO);this.errorHandler=p(wO);
this.statusMessages=p(oS);this.domSafe=p(sR);this.appEvents=p(aP);this.hotlistFridge=p(rP);this.issueFullFridge=p(nQ);this.batchIssueRelationshipsService=p(Q5);this.componentFridge=p(YO);this.currentUserBookmarksFridge=p(wP);this.implicitTriageService=p(ZR);this.clearcut=p(eQ);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||EVb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var b;(b=a.resultsGrid)==null||FVb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||vVd(b)}},{keys:["s"],
displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||yVd(b)}},{keys:[ds("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var b;(b=a.resultsGrid)==null||zVd(b,!0)}},{keys:[ds("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.resultsGrid)==null||zVd(b,!1)}},{keys:[es("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||
b.selectAll()}},{keys:[es("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||sVd(b)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var b;(b=a.gridControls)==null||VSd(b,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var b;(b=a.gridControls)==null||VSd(b,TSa,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||$Sd(b)}},{keys:["u",ds("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[es("p","0"),es("p","1"),es("p","2"),es("p","3"),es("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:[lab("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||wVd(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=Fpa(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||wVd(f)}else if(b===2){var g;(g=a.resultsGrid)==null||wVd(g,{openInNewTab:!0})}else if(d){var k;(k=a.resultsGrid)==null||wVd(k)}}},{keys:[ds("o"),ds("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?Mr(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;i3d(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(){i3d(a)})};var j3d=function(a){var b=[].concat(q(dUd));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(gu).filter(hn)};
z8.prototype.fetchUserHotlists=function(){var a=this;ie(xP(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.hotlistMap[c.hotlistId];Dm(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 i3d=function(a){return k3d(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),l3d(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=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(we(hn),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();QPd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),ce(g)}})}))};
var m3d=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},k3d=function(a){var b=Ho();m3d(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},l3d=function(a,b,c){var d=Ho();m3d(a)||n3d(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},o3d=function(a,b){if(b.maySkipResults){b=Fh(["Too many matching results. Some issues may be omitted.",Hh("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=Hh("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Fh([Hh("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Eh([b,c]):b;Med(a.butterBar,b)}};h=z8.prototype;
h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=gu(a);if(d){var e=new iu(d,b==="ASC"?"ASCENDING":"DESCENDING");xba(this.sortPreferences,function(f){return Dm(f.fieldId,e.fieldId)});!c||h3d.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):tSa(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};Dm(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(dRb(d)));c.cdr.detectChanges()})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return gu(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=Cs(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Mr(this.domSafe,a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.bLocation.search("p",a)};var Ju=function(a,b,c){b!==void 0&&a.goToPage(b+c)};z8.prototype.refreshResults=function(){YPd(this.issuePagination);return i3d(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=l(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;(f=this.searchResults)==null||RPd(f,e,d)}this.cdr.detectChanges();$r(this.butterBar,"Saving changes...",0);return oQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(m){for(var r=l(a[0].issueIds),
w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0,D=void 0;(x=c.searchResults)==null||RPd(x,w,void 0,(D=m)!=null?D:null)}$r(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(m){for(var r=l(a[0].issueIds),w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0;(x=c.searchResults)==null||RPd(x,w)}c.errorHandler.errorHandler(null,m)}).finally(function(){c.cdr.detectChanges()})}e=E8a(a).map(function(m){return m.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"bulkEdit",e.join(","));var g={bulkEditOps:a};$r(this.butterBar,"Saving changes...",0);if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="parentId")return this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(m){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=l(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=l(w.value);w=x.next().value;x=x.next().value;m.finishedIssues[x.issueId]&&(w=c.searchResults.issues[w],xCb(w,m.finishedIssues[x.issueId],
null),c.loadHotlists(w),Object.assign(c.customFieldMap,w.customFieldMap))}c.cdr.detectChanges()}x=a[0];r=m.notFinishedIssueIds;w=String(x.actions[0].value);x=x.actions[0].actionType;if(x!=="ADD"&&x!=="REMOVE")throw Error("sg");r.length?(c.butterBar.showWarning("Failed to update issue(s) "+r.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+r.length)):$r(c.butterBar,(x==="ADD"?"Added child issue(s) to parent ["+w+"]":"Removed child issue(s) from parent ["+w+"]")+" on "+
String(Object.keys(m.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(m){c.errorHandler.errorHandler(null,m)});var k=new Date;return this.issueApi.issueBulkEdit(g,b).then(function(m){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=l(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=l(w.value);w=x.next().value;x=x.next().value;if(m.affectedIssues[x.issueId]){x=m.affectedIssues[x.issueId];var D=Ia(x.snapshot).componentId;w=c.searchResults.issues[w];
xCb(w,x,D?m.componentMap[D]:void 0);c.loadHotlists(w);Object.assign(c.customFieldMap,w.customFieldMap)}}c.cdr.detectChanges()}p3d(c,g,m,k);r=new Map;w=l(g.bulkEditOps);for(x=w.next();!x.done;x=w.next()){x=x.value;D=l(x.issueIds);for(var H=D.next();!H.done;H=D.next()){H=H.value;var J=void 0,O=(J=r.get(H))!=null?J:[];O.push.apply(O,q(x.actions));r.set(H,O)}}var R;m=l((R=m.errors)!=null?R:[]);for(R=m.next();!R.done;R=m.next())r.delete(R.value.issueId);R=l(r.entries());for(m=R.next();!m.done;m=R.next())r=
l(m.value),m=r.next().value,r=r.next().value,Gnd(c.implicitTriageService,m,r);c.cdr.detectChanges()}).catch(function(m){c.errorHandler.errorHandler(null,m)})};
var p3d=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&&fQ(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-hotlistEditTime");c.errors&&c.errors.length?(b="Failed to update issue(s) "+(kWa(c.errors)+"."),a.butterBar.showWarning(b),a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"bulkEditError",""+c.errors.length)):(c=Lod(a.statusMessages,b,a.customFieldMap))?(d&&
fQ(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-fromIssueListPage"),$r(a.butterBar,c)):$r(a.butterBar,"Saved "+F8a(b.bulkEditOps).length+" issue(s).")};h=z8.prototype;
h.loadHotlists=function(a){var b=this;a=l(a?[a]:this.searchResults?this.searchResults.issues:[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.hotlistId)break;c=l(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)}).catch(function(){})}};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");$r(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);$r(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;$r(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");Amd(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){kn(c)})};
var n3d=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{$Pd(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})};z8.prototype.onColumnsChange=function(){q3d()};var q3d=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){Dm(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",P4a(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=[AVd,CVd,DVd];
z8.\u0275fac=function(a){return new (a||z8)};z8.\u0275dir=df({type:z8,features:[Gf]});var Cec=function(){return{q:"status:open"}},A8=function(){z8.apply(this,arguments);this.hotkeys=p(tU);this.pageTitle=p(m2);this.routePerformance=p(M1);this.element=p(Jd);this.imageUrls=p(gW);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(uU(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="",Esd(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);Esd(this.appSearchState,
this.query);b=Isd(this.appSearchState);if(b>0)return wtd(this.bLocation,As.viewHotlist.makeHref(b)),N4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);if(b=Jsd(this.appSearchState))return wtd(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(vla()),I_a("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){lPd(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 r3d);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:j3d(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=Em(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return VPd(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 r3d||o3d(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 xs({searchResultsPage:c,displayColumns:b}).then(function(f){var g=f.searchResultsPage;if(g instanceof r3d)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 gu(b.name)});umd(this.userPreferencesManager,eRb(a)).pipe(Bf(this.destroyed$)).subscribe()};
h.setPageTitle=function(){this.appSearchState.currentQuery===Fsd(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===Hsd(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});q3d();var e=b.bLocation.search();Dm(c,e)&&b.refreshResults()})};h.getCsvUrl=function(){return Ahb(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=C({type:A8,selectors:[["list-issues-page"]],standalone:!1,features:[Ig([iQ]),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,zec,4,1,"div",
6),F(8,Fec,6,4,"div",7),F(9,Gec,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,qF,iU,JW],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});
var r3d=function(){},s3d=function(){};s3d.\u0275fac=function(a){return new (a||s3d)};s3d.\u0275mod=cf({type:s3d});s3d.\u0275inj=Gc({imports:[J4,o5,l5,LU,cP,kU,KW,OE,yU,U1,k1]});var t3d=function(){this.cdr=p(iQ,{self:!0});this.sloApi=p(PQ);this.errorHandler=p(wO);this.activeSession=p(Qu);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=As.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};t3d.prototype.ngOnInit=function(){this.sloEnabled&&u3d(this)};
var u3d=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)})};t3d.\u0275fac=function(a){return new (a||t3d)};
t3d.\u0275cmp=C({type:t3d,selectors:[["list-slos-page"]],standalone:!1,features:[Ig([iQ])],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,Hec,5,0,"div",3),F(5,Iec,1,1,"b-spinner",4)(6,Oec,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:[Yy,nC,jC,N5,iU],encapsulation:2});var l0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l0a,W);h=l0a.prototype;h.getAuthor=function(){return X(this,Xm,1)};h.setAuthor=function(a){Zi(this,Xm,1,a)};h.hasAuthor=function(){return Ji(this,Xm,1)};h.getTimestamp=function(){return X(this,ej,2)};h.setTimestamp=function(a){return Zi(this,ej,2,a)};h.hasTimestamp=function(){return Ji(this,ej,2)};h.getAdd=function(){return X(this,Aq,3)};h.setAdd=function(a){return Zi(this,Aq,3,a)};
h.getRemove=function(){return X(this,Aq,4)};h.setRemove=function(a){return Zi(this,Aq,4,a)};h.getAddMask=function(){return X(this,Rq,5)};h.getMutableAddMask=function(){return Ui(this,Rq,5)};h.setAddMask=function(a){return Zi(this,Rq,5,a)};h.getRemoveMask=function(){return X(this,Rq,6)};h.getMutableRemoveMask=function(){return Ui(this,Rq,6)};h.setRemoveMask=function(a){return Zi(this,Rq,6,a)};var v3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v3d,W);var w3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,w3d.messageId)};Y(w3d,W);w3d.prototype.getIt=function(){return X(this,v3d,2,jb)};w3d.prototype.setIt=function(a){return Zi(this,v3d,2,a,jb)};w3d.messageId="b.ComponentHistory";var B8=function(){this.executor=p(pO);this.bCacheFactory=p(gP);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:w3d}).then(m0a))};
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 x3d=["nameInput"],y3d=function(){return["delimiter"]},Tec=function(a,b){return b.key},z3d={type:"delimiter",text:"Fields inherited from parent components"},A3d={type:"delimiter",text:"Shared Custom fields"},C8=function(){this.constants=p(lS);this.fb=(new NE).nonNullable;this.issueTypeToDisplay=Qm;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 hQ;this.onCancel=new hQ;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:"",[Gj]);this.issueTypesForms=B3d(this);
C3d(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 Wj(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=l(f);f=g.next().value;return g.next().value.value&&a.existingConfiguredIssueTypes.has(f)}).map(function(f){f=l(f).next().value;return Qm(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 D3d=function(a){return{name:a.nameForm.value,issueTypes:new Set([].concat(q(a.issueTypesForms.entries())).filter(function(b){b=l(b);b.next();return b.next().value.value}).map(function(b){return l(b).next().value})),customFieldConfigs:new Map(a.customFieldRows.map(function(b){return[b.customField.customFieldId,b.formControl.value]}))}},C3d=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?[z3d]:[]),q(e),q(b.length>0?[A3d]:[]),q(b))},B3d=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(D3d(this))};C8.\u0275fac=function(a){return new (a||C8)};
C8.\u0275cmp=C({type:C8,selectors:[["b-field-configuration-editor"]],viewQuery:function(a,b){a&1&&jg(x3d,5);if(a&2){var c;ng(c=og())&&(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,Pec,2,1,"button",5);L();F(10,Uec,10,5);bg(11);T(12,"async");K(13,"div",6)(14,"table",7);Wf(15,8);E(16,Vec,3,2,"td",9);Xf();Wf(17,10);E(18,Wec,3,3,"th",11)(19,Xec,2,1,"td",9);Xf();Wf(20,12);E(21,Yec,2,0,"th",11)(22,Zec,2,1,"td",9);Xf();Wf(23,13);E(24,$ec,2,0,"th",11)(25,afc,3,1,"td",9);Xf();Wf(26,14);E(27,bfc,
2,0,"th",11)(28,cfc,3,3,"td",9);Xf();Wf(29,15);E(30,dfc,2,0,"th",11)(31,efc,2,1,"td",9);Xf();Wf(32,16);E(33,ffc,2,0,"th",11)(34,gfc,3,3,"td",9);Xf();Wf(35,17);E(36,hfc,2,0,"th",11)(37,ifc,2,1,"td",9);Xf();E(38,jfc,1,0,"tr",18)(39,kfc,1,2,"tr",19)(40,lfc,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(),cg(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",Jg(14,y3d))("matRowDefWhen",b.isDelimiterRow))},dependencies:[Yy,JU,KU,r3,Ij,qE,JE,nC,jC,xL,rI,fE,QE,cE,VD,SD,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,DE,lV,nV,ly,qy],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 E3d=function(){this.dialogData=p(UB);this.dialogRef=p(SB);this.originalItems=this.dialogData.configs.map(function(a){return{name:a.name,data:a}});this.items=[].concat(q(this.originalItems));this.hasChanges=!1};E3d.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};E3d.\u0275fac=function(a){return new (a||E3d)};
E3d.\u0275cmp=C({type:E3d,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:[nC,
jC,YB,$B,ZB,ZZ],encapsulation:2,changeDetection:0});var $fc=function(){return["section-title"]},Bfc=function(a){return{row:a}},F3d={text:"Typed configurations inherited by this component",rowType:"sectionTitle"},G3d={text:"Default configurations inherited by this component",rowType:"sectionTitle"},H3d={text:"Default configuration owned by this component",rowType:"sectionTitle"},I3d=function(){this.matDialog=p(VB);this.confirmationDialog=p(iS);this.fieldConfigService=p(y6);this.butterBar=p(gO);this.appEvents=p(aP);this.constants=p(lS);this.documentationLinks=
p(hS);this.activeSession=p(Qu);this.isInternalSession=this.activeSession.isInternalSession();this.ROUTES=As;this.issueTypeToDisplay=Qm;this.componentIds=[];this.componentIdsToPaths={};this.currentComponentConfigs=[];this.ownDefaultFieldConfig=void 0;this.ownTypedFieldConfigs=[];this.customFields=[];this.allTableRows$=new Wj([]);this.state$=new Wj({view:"list"});this.displayedColumns=["name","types","inherited-from","actions"];this.isSectionTitleRow=function(a,b){return b.rowType==="sectionTitle"}};
I3d.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:[];J3d(this,a)};
var J3d=function(a,b){a.currentComponentConfigs=b;a.ownDefaultFieldConfig=void 0;var c=[];b=[];for(var d=[],e=l(a.componentIds),f=e.next();!f.done;f=e.next()){f=f.value;var g=f===a.currentComponentId?a.currentComponentConfigs:a.componentPathInfo.fieldConfigsV2Map.get(f);if(g)if(f===a.currentComponentId)for(f=l(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?b.push(g):a.ownDefaultFieldConfig=g;else for(f=l(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?d.push(g):c.push(g)}e=
[];b.length>0&&e.push.apply(e,q(K3d(a,b)));d.length>0&&(e.push(F3d),e.push.apply(e,q(K3d(a,d))));a.ownDefaultFieldConfig&&(e.push(H3d),e.push.apply(e,q(K3d(a,[a.ownDefaultFieldConfig]))));c.length>0&&(e.push(G3d),e.push.apply(e,q(K3d(a,c))));c=new Set;d=e.filter(function(m){return m.rowType==="fieldConfig"});d=l(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,f.issueTypes&&f.effectiveIssueTypes){g=l(f.issueTypes);for(var k=g.next();!k.done;k=g.next())k=k.value,c.has(k)&&f.effectiveIssueTypes.delete(k),
c.add(k)}a.ownTypedFieldConfigs=b;a.allTableRows$.next(e)},ofc=function(a,b){return new Set(a.ownTypedFieldConfigs.filter(function(c){return c!==b}).flatMap(function(c){return[].concat(q(c.issueTypes))}))},mfc=function(a,b,c){var d=Array.from(a.currentComponentConfigs,function(e){return e===b?c:e});L3d(a,d)},Yfc=function(a,b,c){a.state$.next({view:"create",config:b,disallowIssueTypes:!!c})},sfc=function(a,b){b.componentId=a.currentComponentId;L3d(a,[].concat(q(a.currentComponentConfigs),[b]))},nfc=
function(a){a.state$.next({view:"list"})},Qfc=function(a,b){a.confirmationDialog.open({title:"Delete field configuration?",content:Dh("Are you sure you want to delete the "+b.name+"? This cannot be undone."),onConfirm:function(){L3d(a,a.currentComponentConfigs.filter(function(c){return c!==b}))}})},Zfc=function(a){return TB(a.matDialog.open(E3d,{width:"500PX",autoFocus:!1,data:{configs:a.ownTypedFieldConfigs}})).subscribe(function(b){b&&(a.ownDefaultFieldConfig&&b.push(a.ownDefaultFieldConfig),L3d(a,
b))})},L3d=function(a,b){a.state$.next({view:"list"});if(a.currentComponentId){var c=a.currentComponentId;MZd(a.fieldConfigService,c,b).subscribe(function(d){a.appEvents.componentModified.next(c);J3d(a,d);$r(a.butterBar,"Field configurations saved",3E3)},function(){a.butterBar.showWarning("Saving field configurations failed, please refresh the page.",5E3)})}},qfc=function(a,b){return a.customFields.filter(function(c){return b.customFieldConfigs.has(c.customFieldId)})},K3d=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}})};I3d.\u0275fac=function(a){return new (a||I3d)};
I3d.\u0275cmp=C({type:I3d,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&&(bg(0),T(1,"async"),F(2,bgc,4,1));a&2&&(a=cg(U(1,1,b.state$)),B(2),G(a?2:-1))},
dependencies:[ky,Yy,bW,nC,jC,WB,$B,ZB,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,rK,WK,XK,dL,YK,C8,ly],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 M3d=function(){};M3d.prototype.ngOnInit=function(){};M3d.\u0275fac=function(a){return new (a||M3d)};M3d.\u0275cmp=C({type:M3d,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,cgc,3,1),F(1,dgc,3,1));a&2&&(G(b.teamPath?0:-1),B(),G(b.componentPath?1:-1))},dependencies:[cW,t5],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var N3d={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",FIELD_VISIBILITY:"fieldVisibility",TEMPLATES:"templates",ACCESS:"access"},O3d={},P3d=(O3d[0]="access",O3d[1]="access_permissions",O3d),D8=function(){Z.call(this);var a=this;this.bLocation=p(hU);this.route=p(Vj);this.TAB_LIST="basic customFields fieldOrdering fieldVisibility templates access".split(" ");this.Tab=N3d;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),kic(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=P3d[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 kic=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 igc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(igc,W);var Q3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Q3d.messageId)};Y(Q3d,W);Q3d.messageId="b.BatchGroupMetadataResult";var F8=function(){var a=this;this.groupMetadataResources=p(E8);this.bulkGetter=p(HP).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=egc(c);return gzc(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(pO)};E8.prototype.bulkGet=function(a){a=[].concat(q(new Set(a)));a=fq(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:Q3d}).then(jgc)};E8.\u0275fac=function(a){return new (a||E8)};E8.\u0275prov=Fc({token:E8,factory:E8.\u0275fac,providedIn:"root"});var kgc=[{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(iS);this.documentationLinks=p(hS);this.groupMetadata=p(F8);this.componentReaders=[];this.enableRostersChecks=this.activeSession.getFlag("enableRostersChecks");this.enableComponentAutomationCheck=this.activeSession.getFlag("enableComponentAutomationCheck");this.isPublic=function(){return Dt(a.component)};this.hasUnsavedAccessLimitChanges=function(){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==
a.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=function(){return new Promise(function(b){a.hasUnsavedAccessLimitChanges()&&a.component.accessLimit.accessLevel==="INTERNAL"?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Dh("You are about to change the component visibility to Google internal for this component. Make sure your changes are correct -- if this component has any issues, you will not be able to undo this action. Do you want to proceed?"),
onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performDeletedAccountsCheck=function(){return new Promise(function(b){a.componentReaders.includes("GROUP:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Dh('"nobody@google.com" was detected, this is usually the result of an account being deleted that was already part of the access policy. It can be found in the following fields: '+[a.componentAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?
'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("GROUP:nobody@google.com")?'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("GROUP:nobody@google.com")?
'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("GROUP:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("GROUP:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+". Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(b){ugc(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Dh("You are about to change the administrator privileges for this component. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performRestrictedPlusGroupRemovalCheck=
function(){return new Promise(function(b){tgc(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Dh("You are about to remove Restricted+ reader permission for a group. You will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.retrieveGroupMetadata=function(b){b=Leb(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=Jq([].concat(q(Hm(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),q(Hm(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),q(Hm(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),q(Hm(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),q(Hm(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),q(Hm(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),q(Hm(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=ogc(b);b=sgc(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=pgc(c.size,b.size);c=qgc(c);b=rgc(b);var e=Fh([c,c===Cj?Cj:Hh("br"),b]);c={};e=Fh([e,Hh("p",{},Fh(["Please review the ",Hh("a",(c.href=ood(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()&&ngc(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Fh([Hh("p",{},"You are about to give a broad category of users permissions on a public component."),Hh("p",{},Fh(["Please review the ",Hh("a",(c.href=nod(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=Hh("a",(b.href=ws(a.documentationLinks)+"#expanded-access",b),"Learn more.");return new Promise(function(d){a.implicitAccess.getValue()===a.implicitAccess.getSavedValue()?d(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+
"?",content:Eh(["When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Eh(["Some users may lose the ability to edit or comment on issues in this component. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}})})};this.getAddedAutomationInPolicyChange=
function(){var b=[].concat(q(lgc(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),q(lgc(a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit))),c=new Set;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=l(d.value.addedPrincipals);for(var e=d.next();!e.done;e=d.next())e=Leb(e.value),(KSa(e)?jVa(e.user.emailAddress):e.group!==void 0&&jVa(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=Hh("a",(d.href=lod(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Fh([Dh("You are adding automation accounts to the ACL for this component. All Googlers are entrusted with power and responsibility as stewards of Google's data. Please see the"),Hh("wbr"),d,Dh("."),Hh.apply(null,["ol",{}].concat(q(b.map(function(e){if(KSa(e)){var f;
return Hh("li",{},Dh((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var g;return Hh("li",{},Dh((g=e.group.emailAddress)!=null?g:""))}throw Error("Bg`"+JSON.stringify(e));})))),Hh("br",{}),Dh("Are you sure you wish to allow automation to access data in this component?")]),onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}})}else c(!0)})};this.runValidation=function(b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=l(b),d=c.next();case 2:if(d.done){f.jumpTo(4);break}e=
d.value;return z(f,e(),5);case 5:if(!f.yieldResult)return f.return(!1);d=c.next();f.jumpTo(2);break;case 4:return f.return(!0)}})}},R3d=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var g=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var m=b.issueDefaultFlattenedAccessPolicy;var r,w;return y(function(x){if(x.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=g,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=m,r=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],z(x,a.runValidation(r),2);w=x.yieldResult;return x.return(w)})};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(LQ);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))),m=new Set([].concat(q(k),q(b.restrictedReaders)));b=new Set([].concat(q(m),q(g),q(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(q(d)).map(Ku)},{permission:"Create Issues",principals:[].concat(q(a)).map(Ku)},{permission:"Admin Issues",principals:[].concat(q(e)).map(Ku)},{permission:"Edit Issues",principals:[].concat(q(f)).map(Ku)},{permission:"Comment on Issues",principals:[].concat(q(g)).map(Ku)},{permission:"View Issues",principals:[].concat(q(b)).map(Ku)},{permission:"View Components",principals:[].concat(q(c)).map(Ku)},{permission:"View Restricted",principals:[].concat(q(m)).map(Ku)},
{permission:"View Restricted+",principals:[].concat(q(k)).map(Ku)}];S3d(this,this.templates)};
var S3d=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=l(c.value.principals);for(var d=c.next(),e={};!d.done;e={principal$jscomp$15:void 0},d=c.next())e.principal$jscomp$15=d.value,e.principal$jscomp$15.principalType==="ALIAS"?e.principal$jscomp$15.detailedUserType="NO_DETAILED_TYPE":dld(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=C({type:H8,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},standalone:!1,features:[Gf,xx],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()(),Qf(6,wgc,6,1,"tr",2,Pf),L());a&2&&(B(6),Rf(b.templates))},dependencies:[CX],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 T3d=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={},U3d=(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),Hgc=rVa(T3d,function(a){return U3d[a]}),Fgc=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={},V3d=(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),Egc=rVa(Fgc,function(a){return V3d[a]}),W3d=Igc(),Dgc=rVa(Fgc,function(a){a=[].concat(q(Egc.get(a))).flatMap(function(b){return[].concat(q(W3d.get(b)))});return new Set(a)}),
Ggc=rVa(Fgc,function(a){return new Set(Fgc.filter(function(b){return b!==a&&hSa(Dgc.get(b),Dgc.get(a))}))});var Lgc={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},X3d={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var K8=function(){var a=this;this.accessPolicyApi=p(RO);this.errorHandler=p(wO);this.butterBar=p(gO);this.userAccess=p(JP);this.componentActions=p(eW);this.componentValidator=p(G8);this.analytics=p(lQ);this.isAdmin=!1;this.rolesMap=Lgc;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?a.componentAccessPolicyUnderEdit.implicitAccess===
"ALLOW":!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?a.componentFlattenedAccessPolicy.implicitAccess==="ALLOW":!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))},isUpdated:function(){var b;return a.componentAccessPolicyUnderEdit.implicitAccess!==((b=a.componentFlattenedAccessPolicy)==null?void 0:b.implicitAccess)}};this.restrictedPlusReadersValidators=
{noRestrictedPlusGroups:function(b){a:{var c=a.issueDefaultFlattenedAccessPolicy;if(b&&c){c=c.restrictedPlusReaders;b=l(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.startsWith("GROUP:")&&!c.includes(d)){c=!1;break a}}c=!0}return c}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=this.componentFlattenedAccessPolicy=X3d;this.componentAccessPolicyUnderEdit=ts();this.issueDefaultAccessPolicyUnderEdit=ts()};
K8.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var Y3d=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;$r(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";cq(b)&&(c+=dq(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};K8.prototype.updateComponentAndOriginalComponent=function(a){this.component=Em(a);this.originalComponent=Em(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=us(c);b.componentAccessPolicyUnderEdit=Em(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
us(c);b.issueDefaultAccessPolicyUnderEdit=Em(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var Z3d=function(a){a.rolesMap=Mgc({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},$3d=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&Ogc(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},a4d=function(a){var b=Ngc(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!Ogc(a,c));return b||c},b4d=function(a,b){return Ngc(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=us(c);if(Ngc(d,a.componentAccessPolicyUnderEdit)){if(Ngc(d,a.componentFlattenedAccessPolicy))return Promise.reject(new ifd("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 KP(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):KP(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=vs(this.componentAccessPolicyUnderEdit);var c=vs(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(a4d(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,$r(this.butterBar,"Saving access settings...",0),$3d(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 b4d(a,b).catch(function(e){var f;return y(function(g){if(g.nextAddress==1)return f=vs(a.issueDefaultFlattenedAccessPolicy),z(g,$3d(a,f),2);throw e;})})}).then(function(){return Y3d(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;Z3d(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=Pgc({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=Pgc(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")}$r(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(dq(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)})});Z3d(this);return Y3d(this)};
var c4d=function(a,b){b=Jgc(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},ahc=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(c4d(a,b),R3d(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();$r(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){Dm(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Kgc({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Dm(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=Kgc({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(hS);this.rolesEditor=p(K8);this.AccessLevelStrings=ddd};L8.prototype.getRecentIssuesLink=function(){return Hr(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};L8.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!Atb(this.rolesEditor.parentComponent))};
L8.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!Dt(this.rolesEditor.parentComponent))};L8.\u0275fac=function(a){return new (a||L8)};
L8.\u0275cmp=C({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,Ugc,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=Ct(b.rolesEditor.parentComponent)||Ct(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}G(a?0:-1);B(4);I("href",Gg("",ws(b.documentationLinks),
"#recommended-role-based-permissions-configurations"),Pe)}},dependencies:[Ij,AE,qE,xE],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(hS);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=C({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&&(yg("bv2-edit-resource-readonly",b.isAccessEditDisabled()),
B(2),I("checked",b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),B(6),I("href",Gg("",ws(b.documentationLinks),"#expanded-access"),Pe))},dependencies:[xL,rI],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 Vgc=function(){return{}},Xgc=function(a,b){return{displayText:a,values:b}},Wgc=function(a){return[a]},Ygc=function(){return[]},N8=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new hQ;this.formIsValid=new hQ;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=C({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"),Qf(30,Zgc,25,31,"tr",null,Pf),L()());a&2&&(B(30),Rf(b.rolesTableData))},dependencies:[Yy,TW,yT,nC,lC,FK,DA],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 d4d=function(){this.rolesMap=Lgc;this.isSaving=!1;this.saveRolesMap=new hQ;this.rolesUnderEdit=Lgc;this.formIsValid=!0;this.standardRolesTableData=[];this.advancedRolesTableData=[]},e4d=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},f4d=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},g4d=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};h=d4d.prototype;h.ngOnInit=function(){g4d(this);e4d(this)};
h.ngOnChanges=function(a){a.rolesMap&&g4d(this);e4d(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()&&(!Dm(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};d4d.\u0275fac=function(a){return new (a||d4d)};
d4d.\u0275cmp=C({type:d4d,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},standalone:!1,features:[xx],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(){g4d(b);e4d(b)}),Q(11," Revert Changes\n"),L());a&2&&(B(),I("rolesTableData",b.standardRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(),I("expanded",f4d(b)),B(4),I("rolesTableData",b.advancedRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),
I("disabled",!b.canSave()),B(2),I("disabled",!!Dm(b.rolesMap,b.rolesUnderEdit)))},dependencies:[VL,WL,XL,nC,jC,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(Vj);this.tabIndex=0;this.onTabChange=new hQ;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(hn),Af(function(b){return a.rolesEditor.initialize(b)}),Bf(this.destroyed$)).subscribe(function(){Z3d(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=C({type:O8,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&jg(JL,5,Jd);if(a&2){var c;ng(c=og())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},standalone:!1,features:[Ig([K8,G8]),Gf,xx],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,$gc,2,0,"div",0),F(1,bhc,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:[OL,JL,KL,iU,H8,d4d],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var h4d=["archiveDialog"],i4d=["archiveButton"],j4d=["metadataForm"],P8=function(){Z.apply(this,arguments);var a=this;this.cdr=p(iQ,{self:!0});this.routeParams=p(BS);this.bLocation=p(hU);this.templatesApi=p($O);this.paths=p(vW);this.appHistory=p(I2);this.butterBar=p(gO);this.pageTitle=p(m2);this.activeSession=p(Qu);this.documentationLinks=p(hS);this.matDialogService=p(VB);this.analytics=p(lQ);this.checkBeforeExit=p(yY);this.userAccess=p(JP);this.componentActions=p(eW);this.errorHandler=p(wO);this.componentUpdates=
p(HRd);this.componentUpdatesApi=p(B8);this.confirmationDialogService=p(iS);this.appEvents=p(aP);this.teamsService=p(UQ);this.sloApi=p(OQ);this.sloService=p(PQ);this.trackerHelpers=p(pS);this.tabsService=p(D8);this.customFieldHelper=p(ES);this.componentId$=new wf(1);this.componentListRoute=K6a;this.showSloInheritancePath=!1;this.component$=new Wj(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 Wj(null);this.componentTeam$=new Wj(null);this.team$=this.componentTeam$.pipe(Af(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?VQ(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"?VQ(a.teamsService,b):ee(null)}));this.inheritedSloMetadata$=le([this.component$,this.parentComponent$,
this.team$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if((b==null?0:b.team)&&!b.team.inherit&&b.team.id!=="0"){var e,f=(e=c==null?void 0:c.slo)!=null?e:null;if(f)return{containerType:"TEAM",content:f}}else if(e=(f=d==null?void 0:d.slo)!=null?f:null)return{containerType:"COMPONENT",content:e};return null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(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=vic(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=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;if(!b||!b.componentPathInfo||!c)return null;var f=vic(c);c=f.sourceComponentId;d=xic(d,f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:wic(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:jld}).pipe(A(t6a))}));this.getSloManagementLink=L6a};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(zY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);k4d(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();l4d(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.orderedCustomFields=
yic(b)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var l4d=function(a){a=[m4d(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 Dt(this.component)};h.isExternal=function(){return Ct(this.component)};
h.isParentPublic=function(){return!(!this.parentComponent||!Dt(this.parentComponent))};h.isParentPartner=function(){return!(!this.parentComponent||!Atb(this.parentComponent))};var Mhc=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!(Dm(this.component,this.originalComponent)&&Dm(this.parentComponent,this.originalParentComponent))};
P8.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var n4d=function(a){var b=Ho();a.component.slo.id===a.originalComponent.slo.id&&a.component.slo.source===a.originalComponent.slo.source?b.resolve(!0):a.confirmationDialogService.open({title:"SLO changes may not appear immediately",content:Dh("SLO changes will be applied to all issues in this component (and potentially child components). Depending on the total number of affected issues, this may take several hours to fully fan-out and reindex."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});
return b.promise},o4d=function(a){var b=Ho();a.sessionIsInternal&&a.parentComponent&&a.parentComponent.componentId!==a.component.parentComponentId?a.confirmationDialogService.open({title:"Changing the parent component may change which SLO is applied",content:Fh([Dh('Depending on the specific SLO inheritance and/or source settings in this and any child components, changes to the parent component may cause a different "Auto" or inherited SLO to be applied.'),Hh("br",{}),Hh("br",{}),Dh('Changes to the SLO may also take some time to become visible. Updates to the "Auto" SLOs are applied daily, and any changes then need to be fanned out to the affected issues and re-indexed.'),
Hh("br",{}),Hh("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 p4d(this)?o4d(this).then(function(b){return b?n4d(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return l4d(a)})}):Promise.resolve()};
P8.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;$r(this.butterBar,"Saving changes ...",0);return q4d(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return r4d(a)}).then(function(){return s4d(a)}).then(function(){return t4d(a)}).then(function(){$r(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var q4d=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)},r4d=function(a){return a.component.slo&&!Dm(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)},s4d=function(a){return a.component.team&&!Dm(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)},t4d=function(a){return u4d(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)},u4d=function(a){var b=Em(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Dm(a.originalComponent,b)},p4d=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 m4d=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=Em(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};var bic=function(a){a.componentActions.getUncached(a.componentId).then(function(b){b=FS(a.customFieldHelper,b);a.orderedCustomFields=yic(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=FS(b.customFieldHelper,c);b.orderedCustomFields=yic(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=rq("COMPONENT",a);KP(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:KP(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var k4d=function(a){KP(a.userAccess,"writer",rq("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},ohc=function(a){var b,c=Du(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return Bs(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},Xhc=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=Em(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.getRecentIssuesLink=function(){var a=this.isArchived();return Hr(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(As.createComponent.makeHref(this.component.componentId))};h.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var chc=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,$r(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;TB(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 lVa(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:wb(b,"unexpected value "+b+"!")}};
P8.prototype.archive=function(){var a=this;this.isArchiving=!0;$r(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);$r(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;$r(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(cq(b)?dq(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 v4d=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=gNb(d.addMask.paths),g=gNb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},m=d.add;d=d.remove;for(var r=l(new Set([].concat(q(f),q(g)))),w=r.next();!w.done;w=r.next()){var x=w.value;if(w=FRd.get(x))if(x==="name"){var D=ku(g,x,d.name);x=ku(f,x,m.name);k.diffs.push(lu(w,D,x))}else if(x==="description")D=
ku(g,x,d.description),x=ku(f,x,m.description),k.diffs.push(lu(w,D,x));else if(x==="parentComponentId")D=ku(g,x,String(d.parentComponentId)),x=ku(f,x,String(m.parentComponentId)),k.diffs.push(lu(w,D,x));else if(x==="isArchived")D=ku(g,x,String(d.archived)),x=ku(f,x,String(m.archived)),k.diffs.push(lu(w,D,x));else if(x==="commentEditState"){var H=GRd.get(d.commentEditState);D=GRd.get(m.commentEditState);H&&D&&(H=ku(g,x,H),x=ku(f,x,D),k.diffs.push(lu(w,H,x)))}else x==="defaultTemplateId"?(D=ku(g,x,String(d.defaultTemplateId)),
x=ku(f,x,String(m.defaultTemplateId)),k.diffs.push(lu(w,D,x))):x==="slo"?e.sessionIsInternal&&(D=ku(g,x,mNb(d.slo)),x=ku(f,x,mNb(m.slo)),k.diffs.push(lu(w,D,x))):x==="team"?e.sessionIsInternal&&(D=ku(g,x,nNb(d.team)),x=ku(f,x,nNb(m.team)),k.diffs.push(lu(w,D,x))):x==="retentionSettings"?(D=ku(g,x,kNb(d.retentionSettings)),x=ku(f,x,kNb(m.retentionSettings)),k.diffs.push(lu(w,D,x))):e.$log.error("Unsupported diff field "+x)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};P8.prototype.showUpdateHistoryModal=function(){var a=this;v4d(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&&w4d(this)};
var Ihc=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return a.isComponentSloEditor&&(c||b)},Ohc=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return a.isComponentSloEditor&&(!a.component.slo.inherit||c&&b)},shc=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;w4d(a)}))),0):(d=x4d(a),e=d.id,a.component.slo.id=e,w4d(a),f.jumpTo(0))})},Nhc=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},x4d=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}},Zhc=function(a,b){$r(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;$r(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else $r(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
P8.prototype.updateComponentAndOriginalComponent=function(a){this.component=Em(a);this.component$.next(this.component);this.originalComponent=Em(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);w4d(this)};P8.prototype.back=function(){J2(this.appHistory)};var w4d=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=C({type:P8,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(jg(h4d,5),jg(i4d,5),jg(j4d,5));if(a&2){var c;ng(c=og())&&(b.confirmArchiveDialog=c.first);ng(c=og())&&(b.archiveButton=c.first);ng(c=og())&&(b.metadataForm=c.first)}},standalone:!1,features:[Ig([iQ]),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,tic,11,3),T(1,"async"),Nf(2,uic,2,1,"div",9));a&2&&G(U(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[VU,ky,Yy,bP,aW,cW,MRd,A6,b_d,G6,Q3,G4,i_d,I3d,yE,Ij,qE,rE,JE,xE,vE,yT,nC,jC,lC,xL,rI,WB,YB,$B,ZB,Lz,XU,BT,OL,JL,KL,FK,DA,B5,O8,M3d,z5,iU,rW,iW,V7,
ly,ny],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 y4d=["deleteTriageDialog"],yjc=function(a){return{value:a}},Xic=function(a){return[a]},Yic=function(){return[]},z4d={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(RO);this.appHistory=p(I2);this.butterBar=p(gO);this.checkBeforeExit=p(yY);this.componentActions=p(eW);this.errorHandler=p(wO);this.location=p(hU);this.matDialogService=p(VB);this.pageTitle=p(m2);this.routeParams=
p(BS);this.teamsService=p(UQ);this.userAccess=p(JP);this.starredTeamsService=p(aS);this.sloApi=p(OQ);this.sloService=p(PQ);this.triageViewConfigDialogService=p(c1);this.destroyRef=p(Ee);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new Wj("");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 Wj("");this.escalationOwner$=new Wj("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};
this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.teamAdmins$=Xd(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(A(function(b){return b.admins.filter(KSa).map(os)}));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=l(b);b=c.next().value;c=
c.next().value;var d=new Set(b);c=c.filter(function(e){return!d.has(e)});return[].concat(q(b),q(c))}));this.originalSloDelegates$=new Wj([]);this.sloDelegates$=pe(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(A(function(b){return b.admins.map(os)}));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=l(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:L6a(c),slo:d}}):ee({id:"0"})}));this.sloPolicySource$=le([this.parentTeam$,this.teamPath$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=b==null?void 0:b.slo.sourceTeamId;b=c.find(function(e){return e.id===d});return d&&b?{name:b.name,link:{path:"/teams/"+d+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:kld}).pipe(A(s6a));
this.Tab=z4d;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 Wj(!0);this.isOwnerInheritEnabled$=new Wj(!0);this.sloId$=new Wj("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new Wj(!1);this.hasSloReadAccess$=this.sloId$.pipe(Af(function(b){return KP(a.userAccess,
"reader","slos/"+b)}),zf(!1));this.sloPickerLink$=le([this.sloId$,this.hasSloReadAccess$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&Number(b)>0&&c?L6a(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=l(b);var d=c.next().value;b=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=
c.next().value;c=c.next().value;var m=d.slo,r,w;d=(r=d.extra)==null?void 0:(w=r.escalationOwnerOverride)==null?void 0:w.emailAddress;var x;return m.inherit!==e||m.sloId!==b||g!==a.originalSloLock||m.comment!==k||d!==((x=f?void 0:{emailAddress:c})==null?void 0:x.emailAddress)}));this.hasUnsavedChanges=!1;this.teamExperiments={id:this.teamId,triage:[{id:0}],playbooks:[]};this.hasTeamEditAccess=this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(fj(this.destroyRef)).subscribe(function(b){a.pageTitle.setTitle("Team: "+
b.name)});KP(this.userAccess,"writer","teams/"+this.teamId+"/slo").then(function(b){a.hasSloEditAccess=b});KP(this.userAccess,"writer","teams/"+this.teamId).then(function(b){a.hasTeamEditAccess=b});this.hasUnsavedChanges$.pipe(fj(this.destroyRef)).subscribe(function(b){a.hasUnsavedChanges=b});this.subscriptions.add(zY(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;Zj(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),ajc(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(Cld(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 $ic=function(a,b){var c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:if(!a.validate())return r.return();$r(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 D=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(w=b.extra)==null?void 0:(x=w.defaultEscalationOwner)==
null?void 0:x.emailAddress},escalationOwnerOverride:a.isOwnerInheritEnabled?void 0:{emailAddress:a.escalationOwnerEmail}}}));return z(r,ie(D),5);case 5:e=r.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){r.jumpTo(6);break}D=a.sloApi;w=a.teamId;x=a.sloLocked;var H=new hld;x=$m(H,2,x?1:2).setTeamId(Number(w));D=D.executor.post({url:"action/teams/"+w+"/slo_edit_policy",responseConstructor:nld,body:x}).pipe(A(s6a));return z(r,ie(D),7);case 7:f=r.yieldResult,a.originalSloLock=f;
case 6:g=b.slo;if(g.inherit===a.isSloInheritEnabled&&g.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&g.comment===a.sloJustification){r.jumpTo(8);break}x={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};D=a.teamsService;w=a.teamId;x=(new Ald).setIt($_a(x));D=D.executor.post({url:"/action/teams/"+w+"/update_slo",body:x,responseConstructor:RQ}).pipe(A(A6a));return z(r,ie(D),9);case 9:k=r.yieldResult,a.team$.next(k);case 8:$r(a.butterBar,
"Save complete.");Zj(r,0);break;case 2:m=be(r),yO(a.errorHandler,m),ce(r)}})},A4d=function(a){var b,c;y(function(d){if(d.nextAddress==1)return $r(a.butterBar,"Saving changes...",0),z(d,ie(Dld(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;$r(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}],playbooks:[]};ce(d)})},vjc=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1){try{b=vs(ts()),b.admins=ss(a.sloDelegates)}catch(f){return c="An unknown problem occurred",
f instanceof Error&&(c=f.message),a.butterBar.showWarning(c),e.return()}$r(a.butterBar,"Saving changes...",0);Yd(e,2);return z(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){$r(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return Zj(e,0);d=be(e);a.butterBar.showWarning(dq(d));return e.return()})},wjc=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 Vic=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)})},B4d=function(a){var b,c,d,e,f,g,k,m,r,w,x,D;y(function(H){if(H.nextAddress==1)return z(H,ie(a.team$),2);b=H.yieldResult;c=b.extra;f=(d=c)==null?void 0:(e=d.escalationOwner)==null?void 0:e.emailAddress;m=(g=c)==null?void 0:(k=g.escalationOwnerOverride)==null?void 0:k.emailAddress;w=(r=m)!=null?r:f;a.escalationOwner=w?"USER:"+w:"";a.isOwnerInheritEnabled=
((x=c)==null?void 0:x.escalationOwnerOverride)===void 0;a.isOwnerInheritEnabled||m===""||f===m||(a.escalationOwnerInvalidErrorMessage="Selected owner is invalid, falling back to default owner: "+((D=f)!=null?D:""));ce(H)})};
Q8.prototype.getDefaultEscalationOwner=function(){var a=this,b,c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return z(w,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:(m=k.escalationOwner)==null?void 0:m.emailAddress)!=null?r:"")})};
var C4d=function(a){ie(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},D4d=function(a){ie(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},ajc=function(a){a.error="";B4d(a);C4d(a);a.enableSloLockingUi&&D4d(a)};Q8.prototype.back=function(){J2(this.appHistory)};Q8.prototype.getTriageLink=function(a,b){return As.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,Ind(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;ce(e)})};
var ojc=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(m){return m.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return z(k,ie(ee(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?z(k,ie(Cld(a.teamsService,a.teamId)),3):k.return();if(g=k.yieldResult)a.teamExperiments=g;ce(k)})},sjc=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(Cld(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;ce(f)})},E4d=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),A4d(a))},mjc=function(a,b){TB(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(fj(a.destroyRef)).subscribe(function(c){c&&
E4d(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=C({type:Q8,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(jg(y4d,5),jg(JL,5,Jd));if(a&2){var c;ng(c=og())&&(b.deleteTriageDialog=c.first);ng(c=og())&&(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,zjc,111,50);T(7,"async");L();E(8,Ajc,7,3,"ng-template",null,0,Og)}if(a&2){var d;B(6);G((d=U(7,1,b.team$))?6:-1,d)}},dependencies:[Yy,qF,bP,G4,Ij,qE,JE,xE,nC,jC,lC,xL,rI,WB,$B,ZB,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,OL,JL,KL,
FK,DA,Lz,XU,BT,TW,z5,JY,t5,ly],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 F4d=["content"],G4d=["task_input"],Hjc=function(a,b){return b.id},H4d=new RegExp(/b-qa\/(\d+)|b-qa.corp.google.com\/issues\/(\d+)/,"i"),I4d=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"),J4d=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"),K4d=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),L4d=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,"i"),M4d=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(rR);this.activeSession=p(Qu);this.errorHandler=p(wO);this.butterBar=p(gO);this.focusEscapeNotifierFactory=
p(sV);this.tasksService=p(GQ);this.analytics=p(lQ);this.isInternalSession=this.activeSession.isInternalSession();this.cancelClicked=new hQ;this.saveClicked=new hQ;this.focusEscaped=new hQ;this.addTasksForm=new wE("",[Gj,function(b){var c;(c=b.value==="")||(b=b.value,c=(Hs(a.activeSession)?I4d:H4d).test(b)||J4d.test(b)||K4d.test(b)||L4d.test(b)||M4d.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?Rkd(this.tasksService).pipe(fj(this.destroyRef),jf(function(b){console.error("Error fetching task list:",b);return ee([])})):ee([]);this.saving=!1;this.validationErrorMessage="";this.fb=p(NE);this.gTaskForm=this.fb.group({title:["",Gj],details:[""],date:[null],taskListId:["",Gj]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(hs(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||oEc(c)}else{var d;(d=a.focusEscapeNotifier)==null||gz(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=N4d(this,this.addTasksForm.value)?3E3:0;Lkd(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 N4d=function(a,b){return a.activeSession.isInternalSession()&&(Hs(a.activeSession)?I4d:H4d).test(b)||a.dynamicBuganizerUrlPattern.test(b)?!0:!1};
R8.prototype.parseUrl=function(a){if(this.activeSession.isInternalSession()){var b=Hs(this.activeSession)?I4d:H4d;if(b.test(a))return"b/"+a.match(b).slice(1).find(function(c){return!!c})}if(J4d.test(a))return"cl/"+a.match(J4d).slice(1).find(function(c){return!!c});if(K4d.test(a))return"drive/"+a.match(K4d).slice(1).find(function(c){return!!c});if(L4d.test(a))return a=a.match(L4d),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if(M4d.test(a))return"irm/"+a.match(M4d).slice(1).find(function(c){return!!c});
if(N4d(this,a)&&(a=a.match(this.dynamicBuganizerUrlPattern),a!=null))return"b/"+a.slice(1).find(function(c){return!!c});throw Error("Cg");};
R8.prototype.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(fj(this.destroyRef),Af(function(c){return Lkd(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=C({type:R8,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(jg(F4d,7),jg(G4d,5));if(a&2){var c;ng(c=og())&&(b.content=c.first);ng(c=og())&&(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,Djc,14,5,"ng-template",null,1,Og)(4,Ijc,
30,10,"ng-template",null,2,Og),F(6,Ljc,5,2,"mat-tab-group",7)(7,Njc,1,1,"ng-container"),L());a&2&&(B(6),G(b.isInternalSession?6:7))},dependencies:[ky,Yy,nC,jC,OR,MR,NR,yE,Ij,qE,rE,JE,KE,DE,FE,EE,cE,UD,TD,WD,EU,cI,xA,SD,QE,OL,JL,KL,ly],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 O4d=[{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(iA);this.element=p(Jd);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new hQ;this.onClose=new hQ;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&&(gz(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};h.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(oEc(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 cA(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 Uz(Vz(Wz($z(this.overlay.position(),this.element)),8),O4d)};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 P4d=function(){};P4d.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+Q4d.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+Q4d.format(new Date(b.seconds*1E3))};P4d.\u0275fac=function(a){return new (a||P4d)};P4d.\u0275pipe=ef({name:"futureAvailability",type:P4d,pure:!0,standalone:!1});var Q4d=new wl(mG.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=C({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,Ojc,13,7,"div",0);
a&2&&G(b.iteration?0:-1)},dependencies:[Yy,BV],encapsulation:2});var U8=function(){this.analytics=p(lQ);this.domSafe=p(sR);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=C({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,Qjc,5,1);a&2&&G(b.iteration?0:-1)},dependencies:[T8,WK,XK,dL,YK],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 Nu=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"]]),Mkc=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"]]),R4d=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 Mu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mu,W);h=Mu.prototype;h.getId=function(){return En(this,1)};h.getId_asLegacyNumberOrString=function(){return Rp(this,1)};h.getId_asString=function(){return In(this,1)};h.setId=function(a){return Xo(this,1,a)};h.getFrequency=function(){return Ii(this,2)};h.setFrequency=function(a){return $m(this,2,a)};h.getOrdinal=function(){return Um(this,3)};h.setOrdinal=function(a){return pn(this,3,a)};
h.getTimeZone=function(){return X(this,Ar,4)};h.setTimeZone=function(a){return Zi(this,Ar,4,a)};h.hasTimeZone=function(){return Ji(this,Ar,4)};h.getTimeOfDay=function(){return X(this,Br,5)};h.setTimeOfDay=function(a){return Zi(this,Br,5,a)};h.getDisplayName=function(){return xi(this,6)};h.setDisplayName=function(a){return Ym(this,6,a)};h.getQuery=function(){return xi(this,7)};h.setQuery=function(a){return Ym(this,7,a)};h.clearQuery=function(){Zw(this,7)};
h.getLastUpdatedTimestamp=function(){return X(this,ej,12)};var V8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,V8.messageId)};Y(V8,W);V8.prototype.getSubscription=function(){return X(this,Mu,1,jb)};V8.prototype.setSubscription=function(a){return Zi(this,Mu,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,Mu,1,jb)};W8.prototype.setSubscription=function(a){return Zi(this,Mu,1,a,jb)};W8.messageId="b.ConfigurableAlertSubscriptionResponse";var S4d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,S4d.messageId)};Y(S4d,W);S4d.prototype.getSubscriptionsList=function(){return Ni(this,Mu,1,Oi(),jb)};S4d.messageId="b.ListConfigurableAlertSubscriptionsResponse";var X8=function(){this.executor=p(oO)};h=X8.prototype;h.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new V8).setSubscription(bkc(a)),responseConstructor:W8}).pipe(A(function(b){if(b=b.getSubscription())return akc(b);throw Error("Eg");}))};h.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:S4d}).pipe(A(function(a){return a.getSubscriptionsList().map(akc)}))};
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 akc(b);throw Error("Fg");}))};h.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new V8).setSubscription(bkc(a)),responseConstructor:W8}).pipe(A(function(b){if(b=b.getSubscription())return akc(b);throw Error("Eg");}))};
h.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:DO}).pipe(A(function(){}))};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275prov=Fc({token:X8,factory:X8.\u0275fac,providedIn:"root"});var Y8=function(){BO.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=Dm;var b=p(aQ),c=p(Ee);b.getObservable().pipe(fj(c)).subscribe(function(){a.invalidate()})};Y(Y8,BO);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 dkc=function(a){return{subscriptionId:a}},ckc=function(a){return{path:"/settings/configurable-alerts",queryParams:a}},fkc=function(a){return{q:a,s:"modified_time:desc"}},ekc=function(a){return{path:"/issues",queryParams:a}},T4d=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(hn));this.contentReady$=this.data$.pipe(A(function(){}))};
da.Object.defineProperties(T4d.prototype,{subscriptionId:{configurable:!0,enumerable:!0,set:function(a){this.subscriptionId$.next(a)}}});T4d.\u0275fac=function(a){return new (a||T4d)};
T4d.\u0275cmp=C({type:T4d,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,gkc,11,12,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.data$))?0:-1,c)}},dependencies:[bP,nC,jC,
ly],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(GQ);this.analytics=p(lQ);this.fileId$=new wf(1);this.commentId$=new wf(1);this.mentionedDriveComment$=le([this.fileId$,this.commentId$]).pipe(Af(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=a.tasksApi;var e=new ekd;b=Ym(e,1,b).setCommentId(d);return c.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:zQ,body:b}).pipe(A(a6a))}),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=C({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,jkc,11,4,"div",0),
T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[BV,iV,ly],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 okc=function(a,b){return b.commentNumber},$8=function(){var a=this;this.issueCommentsBatchApi=p(UP);this.analytics=p(lQ);this.issueId$=new Wj("");this.commentNumbers$=new Wj([]);this.mentionedComments$=le([this.issueId$,this.commentNumbers$]).pipe(Af(function(b){var c=l(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 H6a(a,{comment:b})};$8.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",U4d(this))};$8.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",U4d(this))};
var U4d=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=C({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,pkc,5,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[Yy,bP,iV,BV,nU,ly],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 rkc=function(a){return{signal:a}},Ckc=function(){return[]},ukc=function(a,b){return b.type},V4d=function(){this.activeSession=p(Qu);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=Nu;this.SIGNAL_TO_ACTION_TEXT=R4d;this.getSignalUrgency=Zjc;this.getHighestPrioritySignal=$jc;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl")},xkc=function(a,b){return a.filter(function(c){return c!==
b}).map(function(c){return Nu.get(c.type)}).join("; ")},Jkc=function(a,b){return(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},Kkc=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null},Lkc=function(a){return!(a.type!=="CONFIGURABLE_ALERT"||!a.configurableAlertSubscriptionId)};V4d.\u0275fac=function(a){return new (a||V4d)};
V4d.\u0275cmp=C({type:V4d,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,vkc,3,0,"div",4)(1,zkc,1,1),E(2,Nkc,10,12,"ng-template",null,0,Og));a&2&&G(b.signals.length<3?0:1)},dependencies:[ky,FK,DA,WK,XK,dL,YK,$8,Z8,T4d],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 W4d=function(){this.tasksService=p(GQ);this.okrIds=[];this.hovercardReady$=new wf(1);this.teamObjectives$=ee([])};W4d.prototype.ngOnInit=function(){this.teamObjectives$=Qkd(this.tasksService,X4d(this.okrIds));this.hovercardReady$.next()};
var X4d=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(q(new Set(a)))},Rkc=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},Skc=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=Rkc(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},Okc=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};W4d.\u0275fac=function(a){return new (a||W4d)};
W4d.\u0275cmp=C({type:W4d,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,Ukc,4,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[ly],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 Y4d=function(){this.analytics=p(lQ);this.okrIds=[]};Y4d.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};Y4d.\u0275fac=function(a){return new (a||Y4d)};
Y4d.\u0275cmp=C({type:Y4d,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,Wkc,5,1);a&2&&G(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[W4d,WK,XK,dL,YK],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 Z4d=function(){this.hovercardReady$=new wf(1)};Z4d.prototype.ngOnInit=function(){this.hovercardReady$.next()};Z4d.\u0275fac=function(a){return new (a||Z4d)};
Z4d.\u0275cmp=C({type:Z4d,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,Xkc,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 $4d=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[e$c,g$c],triggerKey:[]}};$4d.\u0275fac=function(a){return new (a||$4d)};
$4d.\u0275cmp=C({type:$4d,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&&(Wf(0),K(1,"div",
2),M(2,"mat-icon",3),Q(3),L(),K(4,"onedev-hovercard",null,0),E(6,Ykc,2,2,"stale-task-card",4),L(),Xf());a&2&&(a=sg(5),B(),I("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),B(2),b=b.lastAlertTimestamp?(b=js(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",S(" ",b," "))},dependencies:[Yy,WK,XK,dL,YK,Z4d],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 a5d=["menuTrigger"],a9=function(){this.SIGNAL_TO_DISPLAY_TEXT=Nu;this.DEFINITIONS=Wkd;this.analytics=p(lQ);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new hQ;this.chipSelectionStateChanged=new hQ};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);b5d(this,new Set(this.selectedSignals),new Set(a))};var c5d=function(a){return[].concat(q(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=Nu.get(b))!=null?d:"").localeCompare((e=Nu.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 b5d=function(a,b,c){a.signalFilterKeys.forEach(function(d){b.has(d)!==c.has(d)&&a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+Nu.get(d)+"-"+(c.has(d)?"checked":"unchecked"))})};
a9.\u0275fac=function(a){return new (a||a9)};
a9.\u0275cmp=C({type:a9,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&jg(a5d,5);if(a&2){var c;ng(c=og())&&(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");Qf(9,Zkc,3,2,"button",7,Pf);L()}a&2&&(a=sg(4),I("matTooltip","Filter "+Wkd[b.source].displayName+" alerts")("matMenuTriggerFor",a),Kf("aria-label",Wkd[b.source].displayName+" dropdown"),B(6),I("indeterminate",b.currentSelectedSignals.size>0&&!b9(b))("checked",b9(b)),B(3),Rf(c5d(b)))},dependencies:[Yy,FK,DA,eK,pH,nH,sH,xL,rI,nC,lC,rK],encapsulation:2});var d5d=["menuTrigger"],c9=function(){this.filteredSignalsSource=p(p1);this.activeSession=p(Qu);this.DEFINITIONS=Wkd;this.SIGNAL_TO_DISPLAY_TEXT=Nu;this.FILTERED_SIGNALS=Em(this.filteredSignalsSource.activeSession.isInternalSession()?Xkd:Ykd);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 hQ;this.changeSourceFilter=new hQ;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=l(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 blc=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},alc=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=C({type:c9,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&jg(d5d,5);if(a&2){var c;ng(c=og())&&(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),Qf(1,dlc,1,1,null,null,Pf),L());a&2&&(B(),Rf(b.sourceFilterKeys))},dependencies:[Yy,FK,DA,nC,jC,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 e5d=["menuTrigger"],f5d={label:"Last 1 day",numberOfDays:1},g5d={label:"Last 7 days",numberOfDays:7},h5d={label:"Last 30 days",numberOfDays:30},i5d={label:"Last 90 days",numberOfDays:90},j5d=[f5d,g5d,h5d,i5d],k5d={1:f5d,7:g5d,30:h5d,90:i5d},d9=function(){this.timeBoundaries=j5d;this.change=new hQ};d9.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=k5d[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=C({type:d9,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&jg(e5d,5);if(a&2){var c;ng(c=og())&&(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);Qf(7,elc,2,2,"button",6,Pf);L()}a&2&&(a=sg(6),I("selectable",!1),B(),I("matMenuTriggerFor",a),B(2),S(" ",b.getLabel(b.selectedTimeBoundary)," "),B(4),Rf(b.timeBoundaries))},dependencies:[Yy,fL,nL,mL,lL,eK,pH,nH,sH],encapsulation:2});var l5d=function(){return{originX:"start",originY:"bottom",overlayX:"end",overlayY:"top"}},m5d=function(a){return[a]},e9=function(){this.isSnoozed=!0;this.snooze=new hQ;this.unsnooze=new hQ;this.isOpen=new hQ;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};e9.prototype.stopPropagation=function(a){a.stopPropagation()};e9.prototype.onOpen=function(a){this.isOpen.emit(a)};var n5d=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 Cm}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new gG("h",3)):n5d(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new gG("d",1));n5d(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=
this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);n5d(a,8);return a}},nextMonth:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new gG("d",30));n5d(a,8);return a}}});e9.\u0275fac=function(a){return new (a||e9)};
e9.\u0275cmp=C({type:e9,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&jg(pH,7);if(a&2){var c;ng(c=og())&&(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,flc,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,glc,2,5,"ng-template",11)}a&2&&(B(7),I("date",b.laterToday),B(4),I("date",b.tomorrow),B(4),I("date",b.nextWeek),
B(4),I("date",b.nextMonth),B(2),G(b.isSnoozed?21:-1),B(5),I("cdkConnectedOverlayOrigin",b.datePickerOrigin)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",Kg(9,m5d,Jg(8,l5d))))},dependencies:[Yy,tV,BV,pH,nH,kA,jA,H_],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var o5d=[5433823,5418819,5421028,5122552,5422257];var p5d=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 gj},q5d=function(a){return o5d.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};p5d.\u0275fac=function(a){return new (a||p5d)};
p5d.\u0275cmp=C({type:p5d,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,hlc,5,1,"ng-container",0);a&2&&I("ngIf",q5d(b))},dependencies:[fy,OX],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(wO);this.tasksService=p(GQ);this.missionControlPrefs=p(q1);this.domSafe=p(sR);this.router=p(oF);this.appEvents=p(aP);this.analytics=p(lQ);this.clipboard=p(uR);this.activeSession=p(Qu);this.needsAttentionTaskFridge=p(IQ);this.butterBar=p(gO);p(b8);this.tailwindApi=p(FZ);this.OPTIONAL_SOURCE_FILTERS=["GERRIT","GOOGLE_TASKS","IRM"];this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=[].concat(q(Tkd),q(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=
Ukd;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=Xkd;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl");this.refreshTable=new sf;this.SIGNAL_TO_DISPLAY_TEXT=Nu;this.SIGNAL_TO_ACTION_TEXT=R4d;this.TaskResourceType=Udd;this.SignalStatus=mid;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 Wj(0);this.allNeedsAttention$=new Wj([]);this.tasksQuery$=le([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(Bf(this.destroyed$),pf(function(b,c){return Dm(b,c)}),Af(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;d=d.map(function(f){return zr(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([]):Pkd(a.tasksService,nmc(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=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=lmc(d);d=mmc(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 Xjc(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(E2d());if(!c.size)return ee(b);var d=b.filter(function(f){return omc(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=AGd(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=l(f);f=g.next().value;g=g.next().value;var k=new Map(f.map(function(m){return[m.issueId,m]}));return g.map(function(m){var r=m.issueId?k.get(m.issueId):void 0;return r&&r.action?Object.assign({},m,{action:r.action,tailwindRunStatus:r.status}):m})}),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 Mz(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=
10;this.getSignalUrgency=Zjc;this.getHighestPrioritySignal=$jc;le([this.liteTasksWithTailwindInfo$]).pipe(A(function(b){b=l(b).next().value;b.sort(function(c,d){return qo(d.lastAlertTimestamp)-qo(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 Dm(b,c)}),Af(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d.map(function(e){return zr(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,m;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 zr(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 m=(k=r.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,z(r,Pfd(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:g,filterSignals:m}),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){tlc(this,[a.id]);if(this.enableTailwindMissionControl&&a.issueId){var b=a.tailwindRunStatus;a.issueId&&(b!=="RUN_STATUS_SUCCESS"&&b!=="RUN_STATUS_FAILURE"||F2d(a.issueId))}};
var wlc=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(Mkd(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)}),r5d(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")},Ylc=function(a){if(a=Kbb(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=Et(b.id),b=As.viewIssue.makeHref(b),pq(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Mr(this.domSafe,b):$t(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=l(kmc(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);s5d(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 zlc=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},tlc=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return z(e,ie(a.signalStatusFilter$),
2);c=e.yieldResult;Kkd(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return z(e,r5d(a,d),0)})},ylc=function(a){var b=a.selection.selected,c=zlc(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);Lkd(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=Et(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=Et(a))!=null?b:""};var Ilc=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 r5d=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)})},s5d=function(a,b,c){t5d(a,b,c);u5d(a,b,c)},t5d=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)},u5d=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=C({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)}),Qf(1,jlc,2,0,"mat-tab",null,Pf),L(),K(3,"div",5)(4,"span",6),Q(5,"Sources"),L(),F(6,llc,2,3),T(7,"async"),F(8,mlc,1,1,"time-boundary-filter",
7),T(9,"async"),F(10,nlc,4,0,"div",8),L(),F(11,imc,2,3),T(12,"async"),T(13,"async"),Nf(14,jmc,2,1,"div",9));if(a&2){var c,d;I("selectedIndex",0);B();Rf(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:[Yy,BV,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,dU,OL,IL,JL,KL,xL,rI,FK,DA,nC,jC,lC,c9,e9,d9,iU,HW,p5d,WW,V4d,
$4d,sH,Y4d,U8,S8,ly,ry,P4d],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(aP);this.analytics=p(lQ);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new sf;this.numNeedsAttentionTasks$.pipe(we(hn),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(Tkd));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=C({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,pmc,3,1,"div",6),T(8,"async"),L(),F(9,qmc,2,1,"div",7),L());if(a&2){var c;yg("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:[Yy,nC,lC,f9,FK,DA,ly],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 v5d=function(){this.DEFINITIONS=Wkd;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new hQ};v5d.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};v5d.\u0275fac=function(a){return new (a||v5d)};
v5d.\u0275cmp=C({type:v5d,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)}),Qf(1,smc,1,1,null,null,Pf),L());a&2&&(B(),Rf(b.sourceFilterKeys))},
dependencies:[fL,nL,mL,FK,DA],encapsulation:2});var hnc=function(){return[]},inc=function(){return["moreRows"]},h9=function(){Z.call(this);var a=this;this.prefsService=p(q1);this.issueFridge=p(dQ);this.router=p(oF);this.domSafe=p(sR);this.analytics=p(lQ);this.errorHandler=p(wO);this.activeSession=p(Qu);this.clipboard=p(uR);this.myTasksFridge=p(HQ);this.tasksService=p(GQ);this.isInternalSession=this.activeSession.isInternalSession();this.OPTIONAL_SOURCE_FILTERS=["GERRIT","IRM"];this.MY_TASK_DEFAULT_FILTERS=[].concat(q(Vkd),q(this.OPTIONAL_SOURCE_FILTERS));
this.ONLY_OWNED_TASK_FILTERS=[].concat(q(this.MY_TASK_DEFAULT_FILTERS),["GOOGLE_TASKS"]);this.TaskResourceType=Udd;this.taskResourceTypeToIcon=d4a;this.extractLastDigits=Et;this.tableColumns=[].concat(q(DHd));this.tableOptions=Object.assign({},GHd,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new sf;this.manualSignalTriggered=new hQ;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=JNd(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 Wj([]),loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new Wj([]),loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",
liteTasks:new Wj([]),loading:!0},tmc(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(hn);this.myTasks$=le([this.timeBoundary$,this.sources$]).pipe(Bf(this.destroyed$),pf(function(e,f){return e[0]===f[0]&&Dm(e[1],f[1])}),Af(function(e){var f=l(e);e=f.next().value;f=f.next().value;var g=new Set(f.map(function(k){return zr(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,sources:Array.from(g),issueFilter:umc(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(pnc);var g=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="COLLABORATOR"}).length>0}).sort(pnc);f=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="FOLLOWING"}).length>
0}).sort(pnc);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var m;(m=a.tabData[1].liteTasks)==null||m.next(g);var r;(r=a.tabData[2].liteTasks)==null||r.next(f);a.tabData[0].loading=!1;a.tabData[1].loading=!1;a.tabData[2].loading=!1});var d;this.analytics.trackEvent("missionControl","display","my-tasks-"+((d=this.tabData[this.INITIAL_TAB_INDEX])==null?void 0:d.label));this.myTasksFridge.error$.pipe(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 zr(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:umc(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){sJb(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=Et(b.taskId),b=As.viewIssue.makeHref(b),pq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Mr(this.domSafe,b):$t(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
h.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=Et(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var Xmc=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;Lkd(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 Jmc=function(a){return a==="P0"||a==="P1"};h9.\u0275fac=function(a){return new (a||h9)};
h9.\u0275cmp=C({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,onc,4,1,"div",6),L());a&2&&(yg("collapsed",
b.isCollapsed()),B(5),Kf("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.isCollapsed()?-1:7))},dependencies:[Yy,HW,iU,v5d,d9,BV,p5d,WW,d_,nC,jC,lC,OL,IL,JL,KL,fX,eU,ST,YT,UT,RT,$T,TT,ZT,VT,XT,WT,aU,cU,bU,dU,FK,DA,ly],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 i9=function(){Z.call(this);var a=this;this.hostElement=p(Jd);this.analytics=p(lQ);this.userFeedback=p(TY);this.prefsService=p(q1);this.hatsService=p(eY);this.appSearchState=p(xT);this.activeSession=p(Qu);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=fs;this.refreshAllMissionControlData=new sf;this.refreshNeedsAttentionData=new sf;this.captureAnyClick=function(b){b=J_a(b);for(var c=l(Object.entries(w5d)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;
e=e.next().value;if(b.includes(d)){a.analytics.trackEvent("missionControl","click",e);break}}};this.refreshAllMissionControlData.pipe(Bf(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Y(i9,Z);i9.\u0275dir=Z.\u0275dir;
i9.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=l(x5d(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);uAd(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(Bf(this.destroyed$)).subscribe()};
i9.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var x5d=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]};i9.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
i9.\u0275fac=function(a){return new (a||i9)};
i9.\u0275cmp=C({type:i9,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,rnc,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:[fy,nC,jC,Lz,T1,g9,h9,vU],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 w5d={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var y5d=function(){this.playbookTitle="Buganizer playbook"};y5d.\u0275fac=function(a){return new (a||y5d)};
y5d.\u0275cmp=C({type:y5d,selectors:[["b-playbook"]],standalone:!1,decls:11,vars:1,consts:[[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["svgIcon","devai"],["svgIcon","chevron-right",1,"icon-s","muted"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1),M(2,"mat-icon",2),K(3,"h2"),Q(4,"Buganizer AI"),L(),M(5,"mat-icon",3),K(6,"h2"),Q(7,"Triage agent"),L(),M(8,"mat-icon",3),K(9,"h2"),Q(10),L()()());a&2&&(B(10),Ag(b.playbookTitle))},
dependencies:[Yy],encapsulation:2,changeDetection:0});var z5d=function(){this.timeZones=p(kS);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new hQ;this.timeZoneOptions$=wod(this.timeZones).pipe(A(function(a){return a.sort(tnc)}))};z5d.\u0275fac=function(a){return new (a||z5d)};
z5d.\u0275cmp=C({type:z5d,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))}),
Qf(4,snc,2,2,"mat-option",2,Pf),T(6,"async"),L()());a&2&&(yg("full-width",b.fullWidth),B(2),S(" ",b.label," "),B(),I("disabled",b.disabled)("ngModel",b.timezoneId),B(),Rf(U(6,5,b.timeZoneOptions$)))},dependencies:[EU,cE,VD,cI,xA,SD,qE,xE,ly],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var j9=function(){var a=this;this.dateFormatter=p(AS);this.destroyRef=p(Ee);this.frequency$=new Wj("weekly");this.ordinal$=new Wj(1);this.timeZoneId$=new Wj("America/Los_Angeles");this.timeOfDay$=new Wj({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=le([this.frequency$,this.ordinal$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new hQ;this.ordinalChange=new hQ;this.timeOfDayChange=new hQ;this.timeZoneIdChange=new hQ;this.frequencyOptions=
A5d;this.repeatOnOptions=new Map([["daily",[]],["weekly",B5d],["monthly",C5d]]);this.DAILY="daily";this.repeatAtOptions=D5d.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=Bnc};
j9.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(pf(),yf(1),fj(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(pf(),yf(1),we(function(b){return b!==0}),fj(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(pf(Bnc),yf(1),fj(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(pf(),yf(1),fj(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
da.Object.defineProperties(j9.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)}}});j9.\u0275fac=function(a){return new (a||j9)};
j9.\u0275cmp=C({type:j9,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,vnc,7,1,"div"),T(1,"async"),F(2,xnc,7,1,"div"),T(3,"async"),F(4,znc,7,2,"div"),T(5,"async"),F(6,Anc,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:[qE,xE,EU,cE,VD,cI,xA,SD,z5d,ly],encapsulation:2,changeDetection:0});
var A5d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],B5d=[{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"}],C5d=[].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"}}),D5d=[].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 E5d=["dialogContent"],k9=function(){var a=this;this.matDialog=p(VB);this.fridge=p(Y8);this.confirmationDialogService=p(iS);this.destroyRef=p(Ee);this.init$=new Wj(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new Wj(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 Wj(!1);var b=p(Vj);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})}),fj(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};k9.prototype.ngOnInit=function(){this.init$.next(!0)};k9.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
k9.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};k9.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),fj(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)F5d(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var F5d=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Dh("This is returning too many results and has been paused. Please change the search query to return fewer results."),confirmButtonText:"Continue",isDestructive:!1,showCancelButton:!1}):a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Dh('This is returning too many results and has been paused.\n           To reduce search results, add another search constraint, such\n           as appending "created:30d" to limit the query to bugs created\n           in the last 30 days.'),
confirmButtonText:"Add created:30d",cancelButtonText:"Continue",isDestructive:!1,onConfirm:function(){b.query+=" created:30d";var c;(c=a.dialogRef)==null||c.close();a.openDialog(b)},onDismiss:function(){var c;(c=a.dialogRef)==null||c.close()}})};k9.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Dh("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(fj(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
k9.\u0275fac=function(a){return new (a||k9)};
k9.\u0275cmp=C({type:k9,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&jg(E5d,7);if(a&2){var c;ng(c=og())&&(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,Cnc,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,Mnc,13,3,"ng-template",null,0,Og)(11,Tnc,29,14,"ng-template",null,
1,Og)}a&2&&(a=sg(10),B(5),I("ngTemplateOutlet",a))},dependencies:[ky,Yy,bP,Ij,qE,xE,nC,jC,lC,WB,YB,$B,ZB,cE,VD,SD,fE,QE,XU,BT,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,eK,pH,nH,sH,FK,DA,rK,iU,j9,ly],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 G5d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};G5d.prototype.shouldDisplay=function(){return!0};G5d.prototype.hasOptions=function(){return!1};G5d.prototype.getDefaultOptionId=function(){return null};var H5d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};H5d.prototype.shouldDisplay=function(){return this.options.length>0};H5d.prototype.hasOptions=function(){return this.options.length>0};
H5d.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var I5d=function(a,b){this.id=a;this.name=b},K5d=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 G5d("Home","MISSION_CONTROL");this.assignedToMeMainOption=new G5d("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new H5d("Hotlist","HOTLIST");this.savedSearchMainOption=new H5d("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new H5d("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];J5d(this);
this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){J5d(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,J5d(f))}))};K5d.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Xnc=function(a){$r(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);rmd(a.userPreferencesManager,b).subscribe(function(){$r(a.butterBar,"Preferences saved.",4E3)})},J5d=function(a){function b(c){return new I5d(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 I5d(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};var l9=function(){Z.call(this);this.cdr=p(iQ,{self:!0});this.userPreferencesManager=p(nR);this.butterBar=p(gO);this.activeSession=p(Qu);this.documentationLinks=p(hS);this.analytics=p(lQ);this.sidebar=p(s2);this.appEvents=p(aP);this.constants=p(lS);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(l9,Z);l9.\u0275dir=Z.\u0275dir;l9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new K5d(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()})};
l9.prototype.save=function(a,b,c){var d=this;$r(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){$r(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var coc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL"},doc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL"};l9.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};
da.Object.defineProperties(l9.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});l9.\u0275fac=function(a){return new (a||l9)};
l9.\u0275cmp=C({type:l9,selectors:[["b-general-settings"]],standalone:!1,features:[Ig([iQ]),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),Eg("ngModelChange",function(c){Dg(b.preferredHomepage.selectedMainOption,c)||(b.preferredHomepage.selectedMainOption=c);return c}),
N("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Xnc(c);c.cdr.detectChanges()}),Qf(15,Vnc,1,1,null,null,Pf),L()(),F(17,Ync,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),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=
c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Qf(36,Znc,2,2,"mat-option",13,Pf),L()()(),K(38,"div")(39,"mat-form-field",14)(40,"mat-label",15),Q(41," Times "),L(),K(42,"mat-select",12),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Qf(43,$nc,2,2,"mat-option",13,Pf),L()()(),K(45,"div")(46,
"mat-form-field",16)(47,"mat-label",17),Q(48," Time Zones "),L(),K(49,"mat-select",12),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Qf(50,aoc,2,2,"mat-option",13,Pf),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,boc,3,1,"div",19),L()(),F(71,eoc,12,2),M(72,"hr",9),F(73,foc,8,1,"div",0),L());a&2&&(B(7),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Pe),B(7),Cg("ngModel",b.preferredHomepage.selectedMainOption),
B(),Rf(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),Cg("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(),Rf(b.dateFormats),B(6),Cg("ngModel",b.userPreferences.dateTimePreferences.timeFormat),B(),Rf(b.timeFormats),B(6),Cg("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(),Rf(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:[qE,xE,EU,cE,VD,cI,xA,SD,XU,BT,FK,DA,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 m9=function(){Z.call(this);var a=this;this.userPreferencesManager=p(nR);this.butterBar=p(gO);this.documentationLinks=p(hS);this.analytics=p(lQ);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Y(m9,Z);m9.\u0275dir=Z.\u0275dir;
m9.prototype.save=function(a,b,c){var d=this;$r(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){$r(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};m9.\u0275fac=function(a){return new (a||m9)};
m9.\u0275cmp=C({type:m9,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),Eg("ngModelChange",
function(c){Dg(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(14,goc,3,4,"mat-option",8,Pf),L()()(),K(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),Q(19," Reporter "),L(),K(20,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(21,hoc,3,4,"mat-option",8,Pf),L()()(),K(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),Q(26," Verifier "),L(),K(27,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(28,ioc,3,4,"mat-option",
8,Pf),L()()(),K(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),Q(33," Collaborator "),L(),K(34,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(35,joc,3,4,"mat-option",8,Pf),L()()(),K(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),Q(40," CC'd "),L(),K(41,"mat-select",
7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(42,koc,3,4,"mat-option",8,Pf),L()()(),K(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),Q(47," Starred "),L(),K(48,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Qf(49,loc,3,4,"mat-option",8,Pf),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),Cg("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
B(),Rf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(),Rf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),B(),Rf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),B(),Rf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(),Rf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(),Rf(b.priorities),
B(3),I("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[qE,xE,EU,cE,VD,cI,xA,SD,XU,BT,FK,DA,sud],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 L5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,L5d.messageId)};Y(L5d,W);L5d.prototype.getSubscriptionsList=function(){return Ni(this,Dr,1,Oi(),jb)};L5d.messageId="b.ListSloReportSubscriptionsResponse";var n9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,n9.messageId)};Y(n9,W);n9.prototype.getSubscription=function(){return X(this,Dr,1,jb)};n9.prototype.setSubscription=function(a){return Zi(this,Dr,1,a,jb)};n9.messageId="b.SloReportSubscriptionRequest";var u9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,u9.messageId)};Y(u9,W);u9.prototype.getSubscription=function(){return X(this,Dr,1,jb)};u9.prototype.setSubscription=function(a){return Zi(this,Dr,1,a,jb)};u9.messageId="b.SloReportSubscriptionResponse";var v9=function(){this.executor=p(oO)};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 v6a(b);throw Error("Gg");}))};h.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:L5d}).pipe(A(function(a){return a.getSubscriptionsList().map(v6a)}))};
h.create=function(a){if(a.id!==0)throw Error("Hg");return this.executor.post({url:"action/slo_report_subscriptions",body:(new n9).setSubscription(w6a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return v6a(b);throw Error("Eg");}))};
h.update=function(a){if(a.id===0)throw Error("Ig");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new n9).setSubscription(w6a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return v6a(b);throw Error("Eg");}))};h.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:DO}).pipe(A(function(){}))};v9.\u0275fac=function(a){return new (a||v9)};v9.\u0275prov=Fc({token:v9,factory:v9.\u0275fac,providedIn:"root"});var M5d=["sloSubscriptionDialog"],w9=function(){Z.apply(this,arguments);var a=this;this.dateFormatter=p(AS);this.api=p(v9);this.currentUser=p(M2);this.dialog=p(VB);this.timeZones=p(kS);this.confirmationDialogService=p(iS);this.principalTypes=p(LQ);this.analytics=p(lQ);this.butterBar=p(gO);this.constants=p(lS);this.activeSession=p(Qu);this.subscriptions$=new Wj([]);this.isBasicMode$=this.subscriptions$.pipe(A(function(b){return b.length===0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));
this.userSubscription$=this.subscriptions$.pipe(A(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.lead.emailAddress===a.currentUser.email)return a.inputDaysRemaining=c.daysRemaining,c;return{id:0,lead:a.currentUser.user,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:N5d[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=new Wj(!1);this.inputHasFocus=!1;this.repeatAtOptions$=
le(N5d.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=Pm;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(O5d.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=wod(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(){P5d(this)};
var uoc=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(){P5d(a)})},P5d=function(a){a.isThinking$.next(!0);a.api.list().pipe(nf(1)).subscribe(function(b){a.isThinking$.next(!1);for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,d.types.length===0&&(d.types=a.typeChoices.map(function(e){return e.value}));
a.subscriptions$.next(b)})},Ou=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");P5d(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),P5d(a))})},Q5d=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");P5d(a)})};h=w9.prototype;
h.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Dh("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){Q5d(b,a)}})};h.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;Ou(this,b)};h.setTimeZone=function(a,b){Ou(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
h.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;Ou(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};h.setIssueType=function(a,b){Ou(this,Object.assign({},b,{types:a}))};
var soc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&Ou(a,Object.assign({},b,{sloIds:[].concat(q(b.sloIds),[a.newSloId])}))},poc=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});Ou(a,Object.assign({},b,{sloIds:d}))}},Ooc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},Loc=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:N5d[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:Em(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var Poc=function(a,b){return y(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?z(c,R5d(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");P5d(a)}):Ou(a,b);a.dialogRef.close();ce(c)})},R5d=function(a,
b){var c;return y(function(d){if(d.nextAddress==1)return po(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=C({type:w9,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&jg(M5d,7);if(a&2){var c;ng(c=og())&&(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,woc,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,xoc,1,0,"b-spinner");T(16,"async");F(17,Hoc,12,3,"table",10);T(18,"async");T(19,"async");L()();E(20,Qoc,42,16,"ng-template",null,0,Og)}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:[Yy,
Ij,zE,qE,xE,nC,jC,lC,WB,YB,$B,ZB,EU,cE,VD,UD,TD,cI,xA,SD,fE,QE,XU,BT,fX,eU,ST,YT,UT,RT,$T,VT,XT,aU,cU,eK,pH,nH,sH,FK,DA,iU,R_,j9,ly],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 O5d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],Boc=[{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"}],N5d=[].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(hU);this.routeParams=p(BS);this.isInternalSession=this.activeSession.isInternalSession();this.selectedTabIndex=0};x9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=S5d(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(As.settingsTab.makeHref(d)):this.location.setUrl(As.settings.makeHref())}};
var S5d=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=C({type:x9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&jg(JL,5);if(a&2){var c;ng(c=og())&&(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,Roc,2,0,"ng-template",3),L(),K(5,"mat-tab",4),E(6,Soc,2,0,"ng-template",3),L(),K(7,"mat-tab",5),E(8,Toc,2,0,"ng-template",3),L(),F(9,Voc,2,0,"mat-tab",6),L());a&2&&(B(2),I("selectedIndex",b.selectedTabIndex),B(7),G(b.isInternalSession?9:-1))},dependencies:[OL,FL,JL,KL,l9,m9,w9,k9],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 T5d=function(){this.activatedRoute=p(Vj);this.routeParams=p(BS);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=$$a(this.activatedRoute.snapshot.queryParamMap).mimeType};T5d.\u0275fac=function(a){return new (a||T5d)};
T5d.\u0275cmp=C({type:T5d,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:[cZ],encapsulation:2});var y9=function(){Z.apply(this,arguments);this.cdr=p(iQ,{self:!0});this.routeParams=p(BS);this.bLocation=p(hU);this.pageTitle=p(m2);this.userApi=p(qP);this.bookmarkGroupsApi=p(JO);this.paths=p(vW);this.appEvents=p(aP);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 As.viewHotlist.makeHref(a.hotlistId);default:throw Error("Jg`"+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("Jg`"+a.resourceType);}};y9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(y9)))(b||y9)}}();
y9.\u0275cmp=C({type:y9,selectors:[["view-bookmark-group-page"]],standalone:!1,features:[Ig([iQ]),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,Zoc,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:[JY,FK,DA],encapsulation:2});var U5d=function(){};
U5d.\u0275fac=function(a){return new (a||U5d)};U5d.\u0275mod=cf({type:U5d});U5d.\u0275inj=Gc({imports:[cP,X1,GK]});var z9=function(){z8.apply(this,arguments);this.ngZone=p(Tg);this.userApi=p(qP);this.hotlists=p(m5);this.hotkeys=p(tU);this.pageTitle=p(m2);this.userAccess=p(JP);this.routeParams=p(BS);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(uU(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(q(this.BASE_HOTKEYS),[{keys:[ds("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){V5d(a,1)}},{keys:[ds("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){V5d(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&W5d(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;KP(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});KP(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;Esd(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):W5d(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var W5d=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=dUd.map(gu).filter(hn),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=Em(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return VPd(b.issuePagination,f)});a.then(function(f){o3d(b,
f)}).catch(function(f){typeof f==="number"?N4(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return xs({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,X5d(b)?z9.META_COLUMNS_DRAGGABLE:z9.META_COLUMNS);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var X5d=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=yhb(this.sortPreferences);(b=zhb(b))&&(b="position,"+b);return Xta(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 V5d=function(a,b){if(a.searchResults&&!a.repositioning&&X5d(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||EVb(f)}else if(b===-1){var g;(g=a.resultsGrid)==null||FVb(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=P4a(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}});$r(this.butterBar,"Saving changes to hotlist...");Y5d(this,b).then(function(e){$r(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?Mm(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 Y5d=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;Z5d(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},Z5d=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=Km(this.hotlistId),c=function(){Z5d(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(As.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=[AVd,CVd,DVd,EVd];z9.META_COLUMNS_DRAGGABLE=[AVd,BVd,CVd,DVd,EVd];z9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(z9)))(b||z9)}}();
z9.\u0275cmp=C({type:z9,selectors:[["view-hotlist-page"]],standalone:!1,features:[Ig([iQ]),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,apc,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,kpc,9,7,"div",5),F(7,lpc,4,1,"div",6),F(8,opc,3,2,"div",7),F(9,ppc,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,JY,y4,FK,DA,iU,JW,nC,jC],encapsulation:2});var $5d=function(){};$5d.\u0275fac=function(a){return new (a||$5d)};$5d.\u0275mod=cf({type:$5d});$5d.\u0275inj=Gc({imports:[J4,o5,X1,l5,GK,cP,kU,KW,pC,OE,yU,U1,k1]});var A9=function(){z8.apply(this,arguments);this.savedSearchApi=p(uP);this.hotkeys=p(tU);this.pageTitle=p(m2);this.userAccess=p(JP);this.routeParams=p(BS);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(uU(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(Lsd(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;KP(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;Esd(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:j3d(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;Esd(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Em(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return VPd(b.issuePagination,d)});c.then(function(d){o3d(b,d)}).catch(function(d){typeof d==="number"?N4(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return xs({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 Ahb(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;$r(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){$r(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&&(LNd(this.mcPrefs,Dwb(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=C({type:A9,selectors:[["view-saved-search-page"]],standalone:!1,features:[Ig([iQ]),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,rpc,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,xpc,3,1,"div",6),F(8,zpc,7,2,"div",7),L(),F(9,Fpc,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,FK,DA,iU,JW,nC,jC],encapsulation:2});var a6d=function(){};a6d.\u0275fac=function(a){return new (a||a6d)};a6d.\u0275mod=cf({type:a6d});a6d.\u0275inj=Gc({imports:[J4,o5,l5,cP,GK,kU,KW,pC,OE,yU,U1,k1]});var b6d={path:As.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:f3d}].concat(q(Pu("enableCodeMentionsUi",{path:"todos",component:x8})),q(Gpc(function(){var a=mo();return aVa(a)==="INTERNAL"},{path:"insights",component:n_d})))},c6d=[{path:"",component:X6,canActivateGuards:[c7]},{title:ju("Issues"),path:As.listIssues.routeDeclarationPath,
component:A8},{title:ju("New issue"),path:As.createIssue.routeDeclarationPath,component:A7,canActivateGuards:[n7]}].concat(q(Gpc(function(){var a;if(a=TWa("enableChromeWizard")){var b;a=((b=mo().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:ju("New issue"),path:As.createIssueChromeWizard.routeDeclarationPath,component:A0d})),[b6d,{title:ju("Browse All Components"),path:As.listComponentsGlobal.routeDeclarationPath,component:r_d},{title:ju("Browse Components"),path:As.listComponents.routeDeclarationPath,
component:o7},{title:ju("Create component"),path:As.createComponent.routeDeclarationPath,component:q7},{title:ju("Component"),path:As.editComponent.routeDeclarationPath,component:P8},{path:"components/:componentId/manage",redirectTo:As.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:As.editComponent.routeDeclarationPath}],q(Pu("enableTeamScope",{title:ju("Triage"),path:As.viewTriage.routeDeclarationPath,component:V1})),q(Pu("enableTeamScope",{title:ju("Triage"),path:As.viewTriageDashboard.routeDeclarationPath,
component:DNd})),q(Pu("enableTeamScope",{title:ju("Issue Themes"),path:As.viewIssueThemes.routeDeclarationPath,component:h1})),q(Pu("enableTeamScope",{title:ju("Triage"),path:As.triageSettings.routeDeclarationPath,component:Z1})),q(Pu("enableTriageClientM1",{title:ju("Playbook"),path:As.viewPlaybook.routeDeclarationPath,component:y5d})),[{title:ju("Team"),path:As.editTeam.routeDeclarationPath,component:Q8},{path:"teams/:teamId",redirectTo:As.editTeam.routeDeclarationPath},{title:ju("Create Bookmark Group"),
path:As.createBookmarkGroup.routeDeclarationPath,component:p7},{title:ju("Bookmark Group"),path:As.viewBookmarkGroup.routeDeclarationPath,component:y9},{title:ju("Bookmark Group"),path:As.editBookmarkGroup.routeDeclarationPath,component:D7},{title:ju("Create Hotlist"),path:As.createHotlist.routeDeclarationPath,component:r7},{title:ju("Hotlist"),path:As.viewHotlist.routeDeclarationPath,component:z9},{title:ju("Edit Hotlist"),path:As.editHotlist.routeDeclarationPath,component:QVd},{title:ju("Create SLO"),
path:As.createSlo.routeDeclarationPath,component:r1d},{title:ju("SLO"),path:As.viewSlo.routeDeclarationPath,component:G7},{title:ju("SLO"),path:As.editSlo.routeDeclarationPath,component:G7},{title:ju("Saved search"),path:As.editSavedSearch.routeDeclarationPath,component:E7},{title:ju("All of my hotlists"),path:As.listHotlists.routeDeclarationPath,component:y8},{title:ju("Manage SLOs"),path:As.listSlos.routeDeclarationPath,component:t3d},{title:ju("Saved search"),path:As.viewSavedSearch.routeDeclarationPath,
component:A9},{title:ju("Dashboard"),path:As.viewDashboard.routeDeclarationPath,component:C7},{title:ju("Settings"),path:As.settingsTab.routeDeclarationPath,component:x9},{title:ju("Settings"),path:As.settings.routeDeclarationPath,component:x9},{title:ju("View Attachment"),path:As.viewAttachment.routeDeclarationPath,component:T5d,hideAppChrome:!0},{title:ju("Home"),path:As.home.routeDeclarationPath,component:i9,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=Gc({imports:[cP,KX,pC]});var d6d=function(){};d6d.\u0275fac=function(a){return new (a||d6d)};d6d.\u0275mod=cf({type:d6d});d6d.\u0275inj=Gc({imports:[cP,IU,eL,JX,B9]});var e6d=function(){};e6d.\u0275fac=function(a){return new (a||e6d)};e6d.\u0275mod=cf({type:e6d});e6d.\u0275inj=Gc({imports:[cP,wU,pC,cK]});var f6d=function(){};f6d.\u0275fac=function(a){return new (a||f6d)};f6d.\u0275mod=cf({type:f6d});f6d.\u0275inj=Gc({imports:[IX,cP,k2d,wU,pC,sK,fK,GK,y5,k5,p8,e6d]});var g6d=function(){};g6d.\u0275fac=function(a){return new (a||g6d)};g6d.\u0275mod=cf({type:g6d});g6d.\u0275inj=Gc({imports:[cP,wU,pC,GK]});var h6d=function(){};h6d.\u0275fac=function(a){return new (a||h6d)};h6d.\u0275mod=cf({type:h6d});h6d.\u0275inj=Gc({imports:[x0,cP,GK,yL,YU,pC,kU,yX,k5,HX]});var i6d=function(){};i6d.\u0275fac=function(a){return new (a||i6d)};i6d.\u0275mod=cf({type:i6d});i6d.\u0275inj=Gc({imports:[cP,TX,eL,LV]});var j6d=function(){};j6d.\u0275fac=function(a){return new (a||j6d)};j6d.\u0275mod=cf({type:j6d});j6d.\u0275inj=Gc({imports:[d6d,TX,cP,K_,R0,wU,eL,RX,W0,B9,pC,sK,GK,X1,LV,i6d,g6d,f6d,h6d]});var k6d=function(){};k6d.\u0275fac=function(a){return new (a||k6d)};k6d.\u0275mod=cf({type:k6d});k6d.\u0275inj=Gc({imports:[q8,cP,kU,pC,LU,EA]});var l6d=function(){};l6d.\u0275fac=function(a){return new (a||l6d)};l6d.\u0275mod=cf({type:l6d});l6d.\u0275inj=Gc({imports:[cP,pC]});var C9=function(){};C9.\u0275fac=function(a){return new (a||C9)};C9.\u0275mod=cf({type:C9});C9.\u0275inj=Gc({imports:[cP,GV,pC,GK]});var D9=function(){};D9.\u0275fac=function(a){return new (a||D9)};D9.\u0275mod=cf({type:D9});D9.\u0275inj=Gc({imports:[X5,EI,Wy,cP,LU,Rz,IU,yX,OE,k6d,j6d,i5,P0,pC,cK,MM,QL,GK,PE,w2d,k5,DU,l6d,C9]});var m6d=function(){};m6d.\u0275fac=function(a){return new (a||m6d)};m6d.\u0275mod=cf({type:m6d});m6d.\u0275inj=Gc({imports:[cP,M6]});var n6d=function(){};n6d.\u0275fac=function(a){return new (a||n6d)};n6d.\u0275mod=cf({type:n6d});n6d.\u0275inj=Gc({imports:[cP,Wy,EI,OE,PE,pC,QL,DU,IX,D9,e3d,Q1,Y1d,x2d,m6d,g3d]});var o6d=c6d.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:[yY],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});o6d.push({path:"**",canActivate:["dontActivate"],component:X6,isRootRoute:!0,hideAppChrome:!1});
var p6d=mo().appBaseHref,q6d,E9={initialNavigation:"disabled"},r6d=(E9==null?0:E9.errorHandler)?{provide:KSc,useValue:E9.errorHandler}:[],s6d=(E9==null?0:E9.useHash)?{provide:wy,useClass:yy}:{provide:wy,useClass:xy},t6d={provide:qTc,useFactory:function(){var a=p(QCc),b=p(fF);b.scrollOffset&&SCc(a,b.scrollOffset);return new tF(b)}},u6d=(E9==null?0:E9.preloadingStrategy)?rza(0,[{provide:wTc,useExisting:sF},{provide:mTc,useExisting:E9.preloadingStrategy}]).\u0275providers:[],v6d;
(E9==null?0:E9.initialNavigation)?v6d=[E9.initialNavigation==="disabled"?rza(3,[ela(function(){dTc(p(oF))}),{provide:vTc,useValue:2}]).\u0275providers:[],E9.initialNavigation==="enabledBlocking"?rza(2,[{provide:PAc,useValue:!0},{provide:vTc,useValue:0},ela(function(){var a=p(Ae);return a.get(MCc,Promise.resolve()).then(function(){return new Promise(function(b){var c=a.get(oF),d=a.get(uTc);qza(c,function(){b(!0)});a.get(jF).afterPreactivation=function(){b(!0);return d.closed?ee(void 0):d};c.initialNavigation()})})})]).\u0275providers:
[]]:v6d=[];var w6d=v6d,x6d=(E9==null?0:E9.bindToComponentInputs)?rza(8,[bF,{provide:hSc,useExisting:bF}]).\u0275providers:[],y6d;if(E9==null?0:E9.enableViewTransitions){ze("NgRouterViewTransitions");var z6d=[{provide:ISc,useValue:pza},{provide:nza,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];y6d=rza(9,z6d).\u0275providers}else y6d=[];
q6d={ngModule:uF,providers:[xTc,[],{provide:lza,multi:!0,useValue:[]},[],r6d,{provide:fF,useValue:E9?E9:{}},s6d,t6d,u6d,w6d,x6d,y6d,[{provide:yTc,useFactory:function(){var a=p(Ae);return function(b){var c=a.get(Yg);if(b===c.components[0]){b=a.get(oF);var d=a.get(uTc);a.get(vTc)===1&&b.initialNavigation();var e;(e=a.get(wTc,null,{optional:!0}))==null||nTc(e);var f;(f=a.get(qTc,null,{optional:!0}))==null||f.init();c=c.componentTypes[0];b.routerState.root.component=c;b.navigationTransitions.rootComponentType=
c;d.closed||(d.next(),d.complete(),d.unsubscribe())}}}},{provide:SBc,multi:!0,useExisting:yTc}]]};var A6d=function(){var a=p(oF),b=p(bR);a.config=o6d.map(jya);a.navigated=!1;a.initialNavigation();Mld(b)};A6d.\u0275fac=function(a){return new (a||A6d)};A6d.\u0275mod=cf({type:A6d});A6d.\u0275inj=Gc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:kF,useExisting:Y6},{provide:PCc,useValue:p6d},a7,Z6],imports:[q6d,U_d,n6d,uF]});var B6d=new ed("Environment");var C6d=new ed("Worktracker API Key");var D6d=new ed("G3C API Keys");var E6d=function(){};E6d.\u0275fac=function(a){return new (a||E6d)};E6d.\u0275mod=cf({type:E6d});E6d.\u0275inj=Gc({providers:[{provide:B6d,useFactory:Hpc},{provide:D6d,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:C6d,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var F9=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1},Luc=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 Muc=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 Ipc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ipc,W);Ipc.prototype.setEnabled=function(a,b){return Ac(this,1,Cb,b,a,Db,void 0,1)};Ipc.prototype.setDisabled=function(a,b){Ac(this,2,Cb,b,a,Db,void 0,1)};var F6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F6d,W);h=F6d.prototype;h.getEnableClearcut=function(){return Ri(this,1)};h.setEnableClearcut=function(a){return aj(this,1,a)};h.getClientId=function(){return Ii(this,2)};h.setClientId=function(a){return Vn(this,2,a)};h.getSocialApplication=function(){return Ii(this,3)};h.getSocialApplicationOrUndefined=function(){return Kp(this,3)};h.getComponentFlow=function(){return Ii(this,4)};
h.setComponentFlow=function(a){return Vn(this,4,a)};h.getInterfaceType=function(){return Ii(this,5)};h.setInterfaceType=function(a){return Vn(this,5,a)};var G9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G9,W);G9.prototype.getEnableAutocompleteLegalese=function(){return Ri(this,11)};var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H9,W);H9.prototype.getApplication=function(){return Ii(this,1)};H9.prototype.setApplication=function(a){return Vn(this,1,a)};H9.prototype.getApplicationOrUndefined=function(){return Kp(this,1)};H9.prototype.getIsEnabled=function(){return Ri(this,2)};var G6d=[0,KA,-16];var H6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H6d,W);h=H6d.prototype;h.getClearcut=function(){return X(this,F6d,1)};h.setClearcut=function(a){Zi(this,F6d,1,a)};h.hasClearcut=function(){return Ji(this,F6d,1)};h.getExperiments=function(){return X(this,H9,2)};h.setExperiments=function(a){return Zi(this,H9,2,a)};h.hasExperiments=function(){return Ji(this,H9,2)};h.getEnableAutocompleteLegalese=function(){return Ri(this,13,!0)};var I6d=vta(H6d);var J6d;var K6d=function(){var a=Utc(J6d||(J6d=I6d('[[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 F6d);a.hasExperiments()||a.setExperiments(new H9);this.internal=a};var L6d=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};
L6d.prototype.create=function(a){for(var b=this,c=l(this.coreTypeOrder.filter(function(g){var k=b.configurationKey;return b.container.configurations.hasCoreType(g,k===void 0?"\ud83c\udf68":k)})),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.container.getCoreFactory(d),f=void 0;if((f=e)==null?0:f.shouldCreate(a))return c=void 0,this.extractor(this.decorate((c=e)==null?void 0:c.create(a),d,a))}throw Error("Kg");};
L6d.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 M6d=function(){this.core=new Set;this.decorators=new Set};M6d.prototype.addCoreType=function(a){this.core.add(a)};M6d.prototype.addDecoratorType=function(a){this.decorators.add(a)};M6d.prototype.hasCoreType=function(a){return this.core.has(a)};M6d.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var N6d=function(){this.configurations=new Map};h=N6d.prototype;h.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new M6d);this.configurations.get(b).addCoreType(a)};
h.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new M6d);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 O6d=function(){this.core=new Map;this.decorator=new Map};h=O6d.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 N6d;this.factories=new O6d;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;P6d.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 crc=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new L6d(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},P6d=new Map;var Wu=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 Q6d={},R6d={},S6d={},T6d={},U6d={},J9=function(){throw Error("Lg");};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!==Q6d)throw Error("Mg");return rh(this.toString())};var V6d=function(){J9.call(this)};Qw(V6d,J9);V6d.prototype.contentKind=Q6d;var W6d=function(){J9.call(this)};Qw(W6d,J9);W6d.prototype.contentKind=R6d;W6d.prototype.contentDir=1;var X6d=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},Hv=function(a){return K9(a,Q6d)?a:a instanceof qh?Jv(th(a).toString()):Jv(String(String(a)).replace(Y6d,Z6d),X6d(a))},Jv=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}}(V6d),$6d=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(W6d),
M9=function(a){return a instanceof L9?a7d(a)?!0:!!a.getContent():a instanceof J9?!!a.getContent():!!a},Duc=function(a){return Hv(a)},Nv=function(a){return K9(a,Q6d)?a:Jv(b7d(a,c7d),X6d(a))},d7d=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),b7d=function(a,b){if(!b)return Mpc(String(a),function(){return""}).replace(e7d,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=Mpc(a,function(f,g){if(g&&(g=g.toLowerCase(),b.hasOwnProperty(g)&&
b[g])){var k=c.length,m="</",r="";if(f.charAt(1)!=="/"){m="<";for(var w;w=f7d.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}f7d.lastIndex=0}c[k]=m+g+">";d[k]=r;return"["+k+"]"}return""});a=String(a).replace(g7d,Z6d);var e=h7d(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},Kpc=RegExp.prototype.hasOwnProperty("sticky"),
Lpc=new RegExp((Kpc?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",Kpc?"gy":"g"),i7d=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},h7d=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]="":d7d.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Gv=function(a){K9(a,Q6d)?(a=b7d(a.getContent()),a=String(a).replace(g7d,Z6d)):a=String(a).replace(Y6d,Z6d);return a},j7d=function(a){K9(a,T6d)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},m7d=function(a){return String(a).replace(k7d,l7d)},Iv=function(a){K9(a,R6d)||K9(a,S6d)?a=String(a).replace(k7d,l7d):Ah(a)?a=m7d(dra(a)):a instanceof vh?a=m7d(xh(a).toString()):(a=String(a),a=n7d.test(a)?a.replace(k7d,l7d):"about:invalid#zSoyz");return a},
p7d=function(a){K9(a,R6d)||K9(a,S6d)?a=String(a).replace(k7d,l7d):Ah(a)?a=m7d(dra(a)):a instanceof vh?a=m7d(xh(a).toString()):(a=String(a),a=o7d.test(a)?a.replace(k7d,l7d):"about:invalid#zSoyz");return a},N9=function(a){return K9(a,U6d)?i7d(a.getContent(),!1):a==null?"":i7d(String(a),!0)},K9=function(a,b){return a!=null&&a.contentKind===b},L9=function(){J9.call(this)};Y(L9,V6d);
var Kv=function(a,b){a.parts!==void 0?a.parts.push(b):a.content+=b;return a},Mv=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=l(this.parts),c=b.next();!c.done;c=b.next())a+=c.value;return a};L9.prototype.toString=function(){return this.getContent()};
var a7d=function(a){var b;a=l((b=a.parts)!=null?b:[]);for(b=a.next();!b.done;b=a.next())if(b=b.value,b instanceof L9&&a7d(b))return!0;return!1},Lv=function(){function a(){this.content=""}a.prototype=L9.prototype;return function(){return new a}}(),q7d={"\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;"},Z6d=function(a){return q7d[a]},r7d={"\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"},l7d=function(a){return r7d[a]},Y6d=/[\x00\x22\x26\x27\x3c\x3e]/g,g7d=/[\x00\x22\x27\x3c\x3e]/g,k7d=/[\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,n7d=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,o7d=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,s7d=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,
t7d=function(a){a=String(a);return s7d.test(a)?a:"zSoyz"},e7d=/</g,c7d={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},f7d=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var Npc={};var Vpc=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Gv(N9(d))+"px; height: "+Gv(N9(d))+'px"><div peoplekit-id="'+Gv("YLEF4c")+'" class="'+Gv("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Gv(N9(d))+"px; height: "+Gv(N9(d))+'px">');b=b.length===1?Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAvatarImplContainer")+'">'),O9(b[0],c,d,e,f)),"</div>"):b.length===
2?Kv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Gv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),u7d()),'<div class="'+Gv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[1],c,d,e,f)),"</div></div>"):b.length===3?Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Gv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),u7d()),'<div class="'+
Gv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),u7d()),'<div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div></div>"):Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Gv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[0],
c,Math.round(d*.5),e,f)),"</div>"),u7d()),'<div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div>"),u7d()),'<div class="'+Gv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),u7d()),'<div class="'+Gv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[3],c,Math.round(d*.5),e,f)),"</div></div></div>");b=Mv(Lv(),b);return Kv(Mv(Kv(Mv(a,b),'</div><div peoplekit-id="'+
Gv("Btuy5e")+'" class="'+Gv("peoplekitComponentsAvatarImplAvatarBadge")+'">'),Jv('<img class="'+Gv("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Gv("m6fZne")+'" draggable="false" alt="">')),"</div></div>")},O9=function(a,b,c,d,e){var f=Kv(Lv(),'<div peoplekit-id="'+Gv("IHgMKc")+'" class="'+Gv("peoplekitComponentsAvatarImplImageRoot")+'">'),g=Iv(isd(a,c,c,e));g=$6d(g);a=Iv(isd(a,d,d,e));a=$6d(a);b=Iv(isd(b,c,c,e));b=$6d(b);g=Kv(f,'<img peoplekit-id="'+Gv("HiaYvf")+'" class="'+Gv("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Gv(N9(c))+"px; height: "+Gv(N9(c))+'px;" data-preload-src="'+Gv(a)+'" data-src="'+Gv(g)+'" data-backup-src="'+Gv(b)+'" draggable="false" alt="">');c=Jv('<svg xmlns="http://www.w3.org/2000/svg" height="'+Gv(c)+'px" viewBox="0 0 24 24" width="'+Gv(c)+'px" class="'+Gv("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>');
Kv(Mv(g,c),"</div>");return f},u7d=function(){return Jv('<div class="'+Gv("peoplekitComponentsAvatarImplDivider")+'"></div>')};var v7d=new Map([[0,"light_theme"],[1,"dark_theme"]]);var Qpc=!gv&&!hba();var w7d=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),x7d=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),Xpc=function(a,b){this.appearance=b;this.root=a;y7d(this)};h=Xpc.prototype;
h.setBadge=function(a){var b=Su(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=w7d.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(v7d.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=x7d.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 y7d=function(a){a=l(Opc(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=Spc(c.img$jscomp$13,"preloadSrc"),c.src$jscomp$70=Spc(c.img$jscomp$13,"src"),c.backupSrc=Spc(c.img$jscomp$13,"backupSrc"),Tpc(c.src$jscomp$70)?c.img$jscomp$13.src=c.src$jscomp$70:Tpc(b)?(c.img$jscomp$13.src=b,Zs(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 Upc=function(){this.style=this.theme=this.density=0};h=Upc.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 fqc=Mt.getInstance();var hqc=function(a){a=a.memberCount;return(new cm("{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 mqc=Mt.getInstance();var oqc=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=Vu(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};h=oqc.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 z7d=function(a,b,c,d,e,f,g,k,m,r){d=d?Gv(d):e?Gv("isWarning"):"";return Kv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div role="option" class="'+Gv("peoplekitComponentsChipChip")+" "+d+" "+(f?Gv("isDeletionDisabled"):"")+" "+(g?Gv(g):"")+'" id="'+Gv(a)+'" peoplekit-id="'+Gv("XPtOyb")+'" data-hovercard-id="'+Gv(c)+'" data-name="'+Gv(b)+'"'+(f?"":' aria-describedby="'+Gv(a)+'-db"')+'><div class="'+Gv("peoplekitComponentsChipChipRow")+" "+Gv("peoplekitComponentsChipChipContainer")+'"><div class="'+Gv("peoplekitComponentsChipLeft")+
'">'),Hv(k)),'</div><div class="'+Gv("peoplekitComponentsChipCenter")+'">'),Hv(m)),'</div><div class="'+Gv("peoplekitComponentsChipRight")+'">'),Hv(r)),'</div></div><div peoplekit-id="'+Gv("QL45qe")+'"></div></div>')},A7d=function(a){return Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsChipAvatar")+'"><div class="'+Gv("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+Gv("d6MZcd")+'"></div>'),M9(a)?Hv(a):""),"</div>")},B7d=function(a){var b=Lv();a=Kv(Lv(),'<div class="'+Gv("peoplekitComponentsChipAvatarExclamationOverlay")+
" "+(a?Gv(a):"")+'"><div class="'+Gv("peoplekitComponentsChipExclamationIcon")+" "+(a?Gv(a):"")+'">');var c=Jv('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return Mv(b,A7d(Kv(Mv(a,c),"</div></div>")))},C7d=function(a){return Jv('<div class="'+Gv("peoplekitComponentsChipLabelContainer")+'"><div class="'+Gv("peoplekitComponentsChipLabel")+" "+Gv("peoplekitComponentsChipLabelRow")+'"><div class="'+Gv("peoplekitComponentsChipDisplayLabel")+
'" translate="no">'+Duc(Nv(a))+'</div><div class="'+Gv("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+Gv("hyPgpe")+'" translate="no"></div></div></div>')},D7d=function(a){var b=Lv();a=Kv(b,'<div id="'+Gv(a)+'-db" peoplekit-id="'+Gv("bxvLg")+'" class="'+Gv("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+Gv("Press delete to remove this chip")+'">');var c=Jv('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+(Gv("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>'));Kv(Mv(a,c),"</div>");return b};var nqc=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 Mv(Lv(),z7d(b,d,e,f,g,k,a,Mv(Lv(),f?B7d(f):A7d()),Mv(Lv(),C7d(c)),Mv(Lv(),D7d(b))))};var sqc=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=Vu(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};h=sqc.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 rqc=function(a){var b=a.id,c=a.hovercardId,d=a.name,e=a.label,f=a.avatarSize;a=a.isDeletionDisabled;return Mv(Lv(),z7d(b,d,c,"",!1,a,void 0,Jv('<div class="'+Gv("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+Gv("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+Gv(N9(f))+"px; height: "+Gv(N9(f))+'px;"></div>'),Mv(Lv(),e?C7d(e):'<div class="'+Gv("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+Gv("peoplekitComponentsChipPlaceholderShimmer")+'"></div>'),Mv(Lv(),
D7d(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 E7d=Object.freeze(new lj(NaN,NaN)),F7d=Object.freeze(new xj(NaN,NaN,NaN,NaN)),bv=function(a,b){this.root=a;this.options=b;this.lastPosition=E7d;this.lastBounds=F7d;this.anchorUpdateTimer=new WC(15);this.eventHandler=Vu(this);this.attach()};bv.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return G7d(a)})};bv.prototype.isShown=function(){return this.root.style.display!="none"};bv.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
bv.prototype.show=function(a){this.anchor=a;this.lastPosition=E7d;this.lastBounds=F7d;Xt(this.root,!0);G7d(this);this.anchorUpdateTimer.start()};
var G7d=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(Xu(a.anchor)))){b=a.lastBounds;var c=Bqc(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=Bqc(c),b=(c=Cqc(c))?b.intersection(Dqc(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;av(b,"","");b.style.height=QJd("",!0);var g=Iqc(c,e,b,f,d);c=Iqc(c,e^1,b,f^1,d);
g.height>=c.height||!d?Jqc(b,g):Jqc(b,c);a.lastPosition=Xu(a.anchor);a.lastBounds=Bqc(a.root)}};bv.prototype.hide=function(){this.root.style.cssText="";Xt(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=E7d;this.lastBounds=F7d};var Mqc=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=Vu(this)};Mqc.prototype.showTooltip=function(){H7d(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);Q9(this)}};Mqc.prototype.hideTooltip=function(){Q9(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);H7d(this)}else Q9(this)};Mqc.prototype.isDisplayed=function(){return this.displayed};
var I7d=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},M7d=function(a,b){if(a.anchor)throw Error("Ng");a.anchor=b;J7d(a);K7d(a);L7d(a)},N7d=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)},O7d=function(a){H7d(a);Q9(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},P7d=function(a){H7d(a);Q9(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},J7d=function(a){if(!a.anchor)throw Error("Og");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():O7d(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){O7d(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||O7d(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(){P7d(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},K7d=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){O7d(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){P7d(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()})},L7d=function(a){a.eventHandler.listen(window,"touchmove",function(){P7d(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&P7d(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},H7d=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var Nqc=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=Kqc(this.tooltip,{anchorCorner:3,popupCorner:2})},Sqc=function(a,b){M7d(a.tooltipEventTracker,b);I7d(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};h=Nqc.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 Lqc=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return Jv('<div id="'+Gv(a.id)+'" peoplekit-id="'+Gv("suEOdc")+'" class="'+Gv("peoplekitComponentsTooltipImplTooltip")+(d?" "+Gv(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+Gv(c)+'"':"")+(M9(e)?j7d(K9(e,T6d)?e.getContent():t7d(e)):"")+">"+Hv(b)+"</div>")};var cv=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(Qpc&&d.dataset?(/-[a-z]/.test("hovercardId")?0:Qpc&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+Rpc("hovercardId")):d.getAttribute("data-"+Rpc("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+Rpc("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=Oqc(a.getRoot(),d,{label:b,ariaLabel:c});Sqc(this.tooltip,a.getRoot())};Y(cv,P9);
cv.prototype.dispose=function(){N7d(this.tooltip.tooltipEventTracker);P9.prototype.dispose.call(this)};cv.prototype.spotlight=function(){P9.prototype.spotlight.call(this);this.tooltip.showTooltip()};cv.prototype.unspotlight=function(){P9.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};cv.prototype.drag=function(){P9.prototype.drag.call(this);this.tooltip.hideTooltip()};var fv=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 Tqc=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=Vu(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var m;(m=g.onClick)==null||m.call(g,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){g.activate()}),this.eventHandler.listen(this.root,"blur",function(){g.deactivate()}))};h=Tqc.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&&N7d(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 Q7d=0;var Rqc=function(a){var b=a.icon,c=a.tooltipLabel,d=a.ariaLabel;a=Lv();c=(c=c?"tt-c"+Q7d++:"")?' data-tooltip-id="'+Gv(c)+'" aria-labelledby="'+Gv(c)+'"':d?' aria-label="'+Gv(d)+'"':"";Kv(Mv(Kv(a,'<button class="'+Gv("peoplekitComponentsButtonIconIconButton")+'"'+c+">"),Jv('<span><img src="'+Gv(p7d(b))+'" draggable="false" aria-hidden="true" alt="" class="'+Gv("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 euc=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var Vqc=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=Uqc(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&&Jtd(this.buttonRoot,"menuitem");dv({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(ev(e.buttonRoot))};this.eventHandler=Vu(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Y(Vqc,R9);h=Vqc.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(),rU(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),rU(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 R7d=function(){this.label="";this.type=0};h=R7d.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 S7d=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};h=S7d.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 T7d=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 R7d;this.result=new S7d;this.appearance=new Upc};h=T7d.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 U7d=function(a){this.environmentConfig=a;this.autocomplete=new T7d(a);this.autocomplete.setClearSelectionsOnSearch(!0)};h=U7d.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 frc=function(a){this.onHide=a;this.menuItemConfigs=[]};frc.prototype.isSupported=function(a){return V7d(this,a).length>0};
frc.prototype.configure=function(a){var b=this,c=a.contextMenu,d=a.selection,e=a.activatableRoot,f=new Map;a=l(V7d(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)}W7d(c,function(m){f.get(m.id).onContextMenuItemClick({options:m,selection:d,activatableRoot:e})});X7d(c,function(){var m;(m=b.onHide)==null||m.call(b)})};var V7d=function(a,b){return a.menuItemConfigs.filter(function(c){return c.isSupported(b)})};var drc=new I9({coreTypeOrder:[0],decoratorTypeOrder:[0],extractor:function(a){return a},getCompatibleTypes:function(){return new Set([0])}});var irc=function(){this.groupingDecorators=[]};var grc=function(a){this.contextMenuConfigurator=a;this.resultCustomizationDecorators=[]};var mrc=function(a){this.root=a;this.length=0;this.isInteractive=!0};h=mrc.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("Qg");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("Qg");var b=this.getItems();this.root.removeChild(b[a]);--this.length};h.clear=function(){MC(this.root);this.length=0};h.getRoot=function(){return this.root};var krc=function(a){return Jv('<ul id="'+Gv(a.id)+'" peoplekit-id="'+Gv("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+Gv("peoplekitComponentsListImplList")+'"></ul>')};var lrc=Mt.getInstance();var Y7d=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=Y7d.prototype;
h.remove=function(a,b){var c=-1;a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());c>=0&&b&&(this.isActive=!1,this.goToIndex(c,0))};
h.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(q(b)));c?(Z7d(this),$7d(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:Z7d(this);a8d(this);break;case 3:a8d(this);break;case 1:a=Zqc(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=Zqc(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);$7d(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;Z7d(this);for(var b=l(this.list),c=b.next();!c.done;c=b.next())c=c.value,c.activate(),this.activeItems.add(c);this.goToIndex(a,2)}};h.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};h.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
h.getItem=function(a){for(var b=l(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};h.getIndexOf=function(a){return this.list.indexOf(a)};h.clear=function(){this.reset();this.list.length=0};h.reset=function(){this.hideContextMenu();Z7d(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=l(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value)==null||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};h.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var a8d=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},Z7d=function(a){for(var b=l(a.activeItems),c=b.next();!c.done;c=b.next())c=c.value,c.deactivate(),c.unspotlight();a.activeItems.clear()},$7d=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 rrc=function(a){this.delegate=a};h=rrc.prototype;h.prev=function(a){a=this.delegate.prev(a);b8d(this);return a};h.next=function(a){a=this.delegate.next(a);b8d(this);return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);b8d(this);return a};h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);b8d(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 b8d=function(a){(a=a.delegate.getSpotlitItem())&&qrc(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=l(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var c8d=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",qrc(c));a.isCollapsed=b}};var Qrc=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.resultListItemFactory=d};h=Qrc.prototype;h.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};h.getOrCreateSection=function(){this.section||(this.section=new 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 d8d=function(a,b){this.itemsSection=a;this.groupingHeader=b};d8d.prototype.append=function(a){this.itemsSection.append(a)};d8d.prototype.getItems=function(){return this.itemsSection.getItems()};d8d.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var e8d=function(a){var b=a.listId;return Jv('<div id="'+Gv(a.id)+'" peoplekit-id="'+Gv("E9WxSb")+'" role="listitem"><div role="group"><div peoplekit-id="'+Gv("Bm3u4d")+'"></div><div id="'+Gv(b)+'" role="region" class="'+Gv("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+Gv("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 f8d=function(a){var b=a.id,c=a.groupName;a=a.classes;return Jv('<div class="'+Gv("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+Gv(a):"")+'" peoplekit-id="'+Gv("wgPSWd")+'" id="'+Gv(b)+'" role="button" aria-expanded="false" aria-label="'+Gv("To expand "+c+" group, press enter")+'"><svg class="'+Gv("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>')},
g8d=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var hv=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=Vu(this);this.chevron=Ru(f8d,{id:Uu(Mt.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"),rU(this.chevron,"expanded",!0),Ltd(this.chevron,g8d({groupName:this.getHeader(),action:"collapse"})))};Y(hv,T9);hv.prototype.getActionItems=function(){return this.groupingHeaderActionItems};hv.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};
hv.prototype.setCollapsible=function(a){T9.prototype.setCollapsible.call(this,a);c8d(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.collapsibleConfig.resultListContainer.id);h8d(this)};hv.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");c8d(this.getCollapsible(),this.isCollapsed);h8d(this)};
var h8d=function(a){var b=a.isCollapsed?"expand":"collapse";rU(a.chevron,"expanded",!a.isCollapsed);Ltd(a.chevron,g8d({groupName:a.getHeader(),action:b}))};var urc=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=Vu(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};h=urc.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 trc=function(a){a=a.label;return Jv('<button class="'+Gv("peoplekitComponentsButtonLabelLabelButton")+'">'+Hv(a)+"</button>")};var Euc=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=Vu(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=Euc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=l(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(ev(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=Ppc(this.dialog);a.length&&a[0].focus()};
h.focusLastFocusableElement=function(){var a=Ppc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(0)};h.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=l(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var Arc=function(a){var b=a.content,c=a.header,d=a.confirmAction;a=a.labelId;return Kv(Mv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div peoplekit-id="'+Gv("GGAcbc")+'" class="'+Gv("peoplekitComponentsDialogImplScrim")+'"><div peoplekit-id="'+Gv("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+Gv("Sx9Kwc")+'" class="'+Gv("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog" aria-modal="true"'+(a?' aria-labelledby="'+Gv(a)+'"':"")+">"),M9(c)?Hv(c):""),'<div class="'+Gv("peoplekitComponentsDialogImplContent")+
'">'),Hv(b)),'</div><div class="'+Gv("peoplekitComponentsDialogImplActions")+'">'),Mv(Lv(),i8d("IbE0S"))),d?Mv(Mv(Lv(),Jv('<div class="'+Gv("peoplekitComponentsDialogImplActionDivider")+'"></div>')),Mv(Lv(),i8d("McfNlf"))):""),'</div></div><div peoplekit-id="'+Gv("dYgZK")+'" tabindex="0" role="application"></div></div>')},i8d=function(a){return Jv('<div peoplekit-id="'+Gv(a)+'"></div>')},j8d=function(a){a=a.header;return Jv('<div class="'+Gv("peoplekitComponentsDialogImplTextHeader")+'">'+Hv(a)+"</div>")};var Brc=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=Vu(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=Brc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&a===2)for(var b=l(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.disableAction=function(){this.closeButton.disable()};
h.enableAction=function(){this.closeButton.enable()};h.getRoot=function(){return this.root};h.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=Ppc(this.dialog);a.length&&a[0].focus()};h.focusLastFocusableElement=function(){var a=Ppc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(2)};var wrc=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var yrc=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var k8d=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return Jv("<div>"+Hv(a.description)+'  <a href="'+Gv(Iv(b))+'" target="_blank" class="'+Gv("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+Gv("lh87ke")+'">'+Hv(c)+"</a></div>")},l8d=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return Jv('<div class="'+Gv("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+Gv(a):"")+'" peoplekit-id="'+Gv("CLghmc")+'" id="'+Gv(b)+'" aria-label="'+Gv(c)+'" role="button"><svg class="'+
Gv("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 Frc=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=Ru(l8d,{id:Uu(Mt.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});Su(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&dv({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=Vu(this);this.eventHandler.listen(this.infoIcon,"click",function(){m8d(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&&(m8d(e),f.stopPropagation(),f.preventDefault())}})};Y(Frc,T9);
var m8d=function(a){a.infoIcon.dispatchEvent(ev(a.infoIcon));var b=j8d({header:a.infoGroupConfig.infoDialogHeader}),c=k8d({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=Crc(e,c,a.appearanceConfig,b),g=Su(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&dv({element:g,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(g,"click",function(){g.dispatchEvent(ev(g))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};Frc.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Frc.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};var Erc=function(a,b){this.root=a;this.header=b};h=Erc.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 Drc=function(a){var b=a.id,c=a.header;a=Lv();b=Jv('<div class="'+Gv("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+Gv(b)+'" peoplekit-id="'+Gv("XLuqBd")+'"><div class="'+Gv("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+Gv("peoplekitComponentsGroupingHeaderHeader")+'">'+Hv(c)+'</div><div class="'+Gv("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+Gv("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+Gv("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+Gv("xiK4Cd")+'"></div><div class="'+Gv("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+Gv("QChpEe")+'"></div></div></div></div></div>');return Mv(a,b)};var Grc=function(a){this.delegate=a};Y(Grc,T9);h=Grc.prototype;h.activate=function(){};h.deactivate=function(){};h.getSelection=function(){throw Error("Rg");};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 n8d=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=n8d.prototype;h.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};
h.getOrCreateSection=function(a){var b=this.grouping.getGroupId(a);if(this.sections.find(function(d){return d.groupId===b}))return this.sections.at(-1).section;var c;a=(c=this.grouping.groupConfigs[b])!=null?c:{};c=Hrc(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};h.getItems=function(){return o8d(this).flatMap(function(a){return a.getItems()})};h.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};
h.clear=function(){var a=o8d(this);a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();this.sections.length=0};h.done=function(){};var o8d=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(q(a.values()))};var Irc=function(){n8d.apply(this,arguments)};Y(Irc,n8d);
Irc.prototype.createSection=function(a){var b=Uu(Mt.getInstance()),c=Uu(Mt.getInstance()),d=Ru(e8d,{id:b,listId:c});this.list.append(d);var e=Su(d,"tjneg");b=nrc(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 d8d(b,a)}return new S9(b,this.navigatable,this.intelligentCollection)};var Prc=function(a,b){this.delegate=a;this.grouping=b;this.demotedResults=new Map};h=Prc.prototype;h.append=function(a,b){var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=this.grouping,f=e.getGroupId(d);Krc(e.groupConfigs[f])?(e=this.grouping.getGroupId(d),f=this.demotedResults.get(e)||[],f.push({result:d,resultContext:b}),this.demotedResults.set(e,f)):c.push(d)}c.length>0&&this.delegate.append(c,b)};h.getItems=function(){return this.delegate.getItems()};
h.clear=function(){this.delegate.clear();this.demotedResults.clear()};h.reset=function(a){this.delegate.reset(a)};h.done=function(){for(var a=l(this.demotedResults.values()),b=a.next();!b.done;b=a.next()){b=l(b.value);for(var c=b.next();!c.done;c=b.next())c=c.value,this.delegate.append([c.result],c.resultContext)}this.demotedResults.clear();this.delegate.done()};var Lrc=function(){n8d.apply(this,arguments)};Y(Lrc,n8d);Lrc.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};Lrc.prototype.clear=function(){n8d.prototype.clear.call(this);this.section=void 0};var p8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p8d,W);p8d.prototype.getEnablePersonalizedQueryMatching=function(){return Ri(this,7)};var nv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nv,W);nv.prototype.getRequestType=function(){return Ii(this,1)};nv.prototype.setRequestType=function(a){return Vn(this,1,a)};var q8d=[0,FGc,99,[0,KA,sGc],[0],[0],[0,KA,-8],[0,KA],[0,KA,JA],G6d,[0,KA],[0,KA,-1]];var r8d=function(){var a=new nv,b=new G9;this.experimentFlags_=Zi(a,G9,107,b)};r8d.prototype.getExperimentFlags=function(){return this.experimentFlags_};r8d.prototype.getExperimentIds=function(){return[]};var Ztc=function(a,b){this.cache=b;this.overriddenExperiments=X(a,G9,3)||new G9};Ztc.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:X(a,G9,107))||new G9;a=this.overriddenExperiments;Qi(a,3)&&(a=Ri(a,3),aj(b,3,a));return b};Ztc.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var s8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s8d,W);h=s8d.prototype;h.getCacheStaleSec=function(){return Um(this,4,14400)};h.getCacheExpiredSec=function(){return Um(this,5,63158400)};h.getRpcTimeoutSec=function(){return Um(this,7,60)};h.getApiKey=function(){return xi(this,8)};h.setApiKey=function(a){return yj(this,8,a)};h.getEnableClearcut=function(){return Ri(this,13,!0)};h.setEnableClearcut=function(a){return aj(this,13,a)};var Wtc=vta(s8d);var Vtc;var t8d=function(){};t8d.prototype.getExperimentFlags=function(){return new nv};t8d.prototype.getExperimentIds=function(){return[]};var uv=function(){};uv.prototype.prefetch=function(){};uv.prototype.loadExperiments=function(){return new t8d};var U9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U9,W);U9.prototype.getVersion=function(){return En(this,1)};U9.prototype.setVersion=function(a){return Kn(this,1,a)};U9.prototype.getVersionOrUndefined=function(){return tw(this,1)};U9.prototype.getVersionOrUndefined_asString=function(){return cx(this,1)};var V9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V9,W);h=V9.prototype;h.getApplication=function(){return Ii(this,1)};h.setApplication=function(a){return Vn(this,1,a)};h.getApplicationOrUndefined=function(){return Kp(this,1)};h.getVersion=function(){return En(this,2)};h.setVersion=function(a){return Kn(this,2,a)};h.getVersionOrUndefined=function(){return tw(this,2)};h.getVersionOrUndefined_asString=function(){return cx(this,2)};var u8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u8d,W);h=u8d.prototype;h.getRequestType=function(){return Ii(this,1)};h.setRequestType=function(a){return Vn(this,1,a)};h.getProfileId=function(){return xi(this,2)};h.getProfileId_legacyNullable=function(){return Ml(this,2)};h.setProfileId=function(a){return yj(this,2,a)};h.hasProfileId=function(){return wm(this,2)};h.getCaller=function(){return X(this,U9,3)};h.setCaller=function(a){return Zi(this,U9,3,a)};
h.getInstanceId=function(){return xi(this,4)};h.setInstanceId=function(a){return yj(this,4,a)};h.clearInstanceId=function(){Zw(this,4)};h.hasInstanceId=function(){return wm(this,4)};h.getInstanceIdOrUndefined=function(){return gx(this,4)};h.getClient=function(){return X(this,V9,5)};h.setClient=function(a){return Zi(this,V9,5,a)};h.hasClient=function(){return Ji(this,V9,5)};var lv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lv,W);h=lv.prototype;h.getErrorType=function(){return Ii(this,2,1)};h.setErrorType=function(a){return Vn(this,2,a)};h.hasErrorType=function(){return xm(this,2)};h.getErrorMessage=function(){return xi(this,3)};h.setErrorMessage=function(a){yj(this,3,a)};h.getStatusCode=function(){return Ii(this,4)};h.setStatusCode=function(a){Vn(this,4,a)};h.hasStatusCode=function(){return xm(this,4)};var rsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rsc,W);h=rsc.prototype;h.getExperimentFlags=function(){return X(this,nv,1)};h.setExperimentFlags=function(a){return Zi(this,nv,1,a)};h.hasExperimentFlags=function(){return Ji(this,nv,1)};h.getError=function(){return X(this,lv,2)};h.setError=function(a){Zi(this,lv,2,a)};h.hasError=function(){return Ji(this,lv,2)};h.getSource=function(){return Ii(this,3)};h.setSource=function(a){return Vn(this,3,a)};
h.hasSource=function(){return xm(this,3)};h.getSourceOrUndefined=function(){return Kp(this,3)};h.getInstanceId=function(){return xi(this,4)};h.setInstanceId=function(a){return yj(this,4,a)};h.clearInstanceId=function(){Zw(this,4)};h.hasInstanceId=function(){return wm(this,4)};h.getInstanceIdOrUndefined=function(){return gx(this,4)};h.getExperimentIdsList=function(a){return Wm(this,5,Oi(a))};h.setExperimentIdsList=function(a){return yc(this,5,a,Eb)};h.getExperimentIds=function(){return hx(this,5)};
h.setExperimentIds=function(a){Ac(this,5,Eb,void 0,a,Fb,void 0,1)};var Wrc=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,Urc=/([#].*?&|[#])authuser=([^&#]*)\b/,Vrc=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var v8d=function(a,b){this.client_=a;this.runtime_=b;bsc();this.apiKey_=a.getApiKey();this.apiRoot_=xi(this.client_,10)||asc("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};v8d.prototype.getClient=function(){return this.client_};v8d.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,nv,1)};h.setExperimentFlags=function(a){return Zi(this,nv,1,a)};h.hasExperimentFlags=function(){return Ji(this,nv,1)};h.getObfuscatedGaiaId=function(){return Ml(this,2)};h.getObfuscatedGaiaId_legacyNullable=function(){return Ml(this,2)};h.setObfuscatedGaiaId=function(a){return yj(this,2,a)};h.getExperimentIdsList=function(a){return Wm(this,3,Oi(a))};
h.setExperimentIdsList=function(a){return yc(this,3,a,Eb)};h.getExperimentIds=function(){return hx(this,3)};h.setExperimentIds=function(a){Ac(this,3,Eb,void 0,a,Fb,void 0,1)};var w8d=yi(W9);var x8d=[0,q8d,LA,uGc];var y8d=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},z8d=function(a,b,c){a=a.now_()-c*1E3;return b>a};y8d.prototype.getCacheState=function(a){var b=this.clientConfig_.getClient();b=Um(b,3,1800);if(z8d(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(z8d(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return z8d(this,a,b)?3:4};var A8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A8d,W);h=A8d.prototype;h.getExperiments=function(){return X(this,W9,2)};h.setExperiments=function(a){return Zi(this,W9,2,a)};h.hasExperiments=function(){return Ji(this,W9,2)};h.getInstanceId=function(){return xi(this,4)};h.setInstanceId=function(a){return yj(this,4,a)};h.clearInstanceId=function(){Zw(this,4)};h.hasInstanceId=function(){return wm(this,4)};h.getInstanceIdOrUndefined=function(){return gx(this,4)};var B8d=[0,LA,x8d,sGc,LA];var C8d=qta(A8d,B8d),D8d=function(a){return function(b){var c=new rta;dta(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,ata(a));return hca(sta(c))}}(B8d);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 mv=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(mv,X9);var E8d=new mv(6);var F8d=function(){};var G8d=function(){};Qw(G8d,F8d);G8d.prototype.getCount=function(){for(var a=0,b=l(this),c=b.next();!c.done;c=b.next())a++;return a};G8d.prototype[Symbol.iterator]=function(){return Ogd(this.__iterator__(!0)).toEs6()};G8d.prototype.clear=function(){var a=Array.from(this);a=l(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};Qw(fsc,G8d);h=fsc.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 Lgd;d.next=function(){if(b>=c.length)return Mgd;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("Sg");a.isAvailable()||sa(Error("Sg"))};Qw(gsc,fsc);Qw(kv,G8d);kv.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};kv.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};kv.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
kv.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new Lgd;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 hsc=["PeopleStackExperiments"],H8d=new Set([4,0]),wsc=function(a,b){b=b===void 0?new gsc:b;this.clientConfig_=a;this.transformer_=new y8d(this.clientConfig_);this.localStorage_=b;this.storage_=new kv(this.localStorage_,"pse/591286274")};wsc.prototype.set=function(a,b){var c=esc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw E8d;var d=new A8d;b=yj(d,1,c).setExperiments(b);d=Date.now();a=Kn(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Tda(D8d(a)));return c};
wsc.prototype.get=function(a){a=esc(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=I8d(a);if(a&&this.transformer_.getCacheState(nn(En(a,3)))!==4){var b=this.transformer_,c;var d={keyPath:xi(a,1),experiments:(c=a.getExperiments())!=null?c:new W9,lastUpdated:new Date(nn(En(a,3))),state:b.getCacheState(nn(En(a,3))),instanceId:a.getInstanceId()}}else d=null;return d};var I8d=function(a){if(!a)return null;try{return C8d(a)}catch(b){return null}};
wsc.prototype.delete=function(a){this.storage_.remove(a);return!0};
wsc.prototype.clean=function(){for(var a=[].concat(q(this.storage_)),b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=H8d,e=d.has,f;a:{if(c&&(f=I8d(this.storage_.get(c)))&&Dn(f,3)){f=this.transformer_.getCacheState(nn(En(f,3)));break a}f=0}e.call(d,f)&&this.delete(c)}a:{if(a.length>10)try{this.storage_.set("__sak","1"),this.storage_.remove("__sak")}catch(g){if(g==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=l(isc(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var xsc=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new y8d(this.clientConfig_);this.cache_=b};xsc.prototype.set=function(a,b){var c=esc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw E8d;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
xsc.prototype.get=function(a){a=esc(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};xsc.prototype.delete=function(a){this.cache_.delete(a);return!0};xsc.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var J8d=function(){};h=J8d.prototype;h.start=function(){};h.stop=function(){};h.count=function(){};h.latency=function(){};h.error=function(){};h.status=function(){};h.logError=function(){};var K8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K8d,W);h=K8d.prototype;h.getCaller=function(){return X(this,U9,1)};h.setCaller=function(a){return Zi(this,U9,1,a)};h.getClient=function(){return X(this,V9,2)};h.setClient=function(a){return Zi(this,V9,2,a)};h.hasClient=function(){return Ji(this,V9,2)};var L8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L8d,W);h=L8d.prototype;h.getRequestType=function(){return Ii(this,1)};h.setRequestType=function(a){return Vn(this,1,a)};h.setProperties=function(a){return Zi(this,K8d,3,a)};h.getInstanceId=function(){return xi(this,4)};h.setInstanceId=function(a){return yj(this,4,a)};h.clearInstanceId=function(){Zw(this,4)};h.hasInstanceId=function(){return wm(this,4)};h.getInstanceIdOrUndefined=function(){return gx(this,4)};var M8d=new SA("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",L8d,W9,function(a){return a.serialize()},w8d);var N8d=function(a){this.client_=new fJc({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};N8d.prototype.getExperimentFlags=function(a,b){return HB(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},M8d)};var O8d=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new J8d};O8d.prototype.getMetric=function(){return this.metric_};O8d.prototype.send=function(a){var b=this,c;return y(function(d){var e=(new K8d).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new L8d).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
O8d.prototype.close=function(){};O8d.prototype.processResponse=function(a){return a};var P8d=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 Q8d=function(a,b){X9.call(this,a,b===void 0?"RpcError ("+a+")":b)};Y(Q8d,X9);var R8d=function(a,b){this.config_=a;this.request_=b;this.resolver_=new kMc;this.state_=0};h=R8d.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 Q8d(1,"CANCELLED");this.resolver_.reject(a.statusCode)}};
h.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=$rc(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);nsc(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 Q8d(4,"TIMEOUT");else if(a==="CANCELLED")a=new Q8d(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=jv("result.error.code",a)||a.status,c=Number(c),c=P8d.has(c)?P8d.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 Q8d(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 S8d=Symbol("Ug"),T8d=function(){};T8d.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[S8d]=d)}return c})};var U8d=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};U8d.prototype.getMetric=function(){return this.metric_};U8d.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
U8d.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[S8d]||0}};U8d.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 V8d=function(a){this.config_=a;this.pendingRpcs_=new Set},X8d=function(a,b){b=new U8d(b);b=new R8d(a.config_,b);a.pendingRpcs_.add(b);W8d(a,b);return b.resultPromise()},W8d=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 usc=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new V8d(a);this.rpcClient_=new N8d(this.clientConfig_.apiRoot_)},Z8d=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var m=Y8d(b);if(c=a.inflightRequests_.get(m)||null)return k.return(c);d=new O8d(b,a.rpcClient_);Yd(k,2,3);e=X8d(a.dispatcher_,d);m=Y8d(b);a.inflightRequests_.set(m,
e);return z(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:Zd(k);m=Y8d(b);a.inflightRequests_.delete(m);ae(k,0);break;case 2:g=be(k);if(Number.isFinite(g))throw new mv(7,g);throw new mv(7);}})},Y8d=function(a){a=dsc(a);if(!a)throw E8d;return a};var $8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($8d,W);var jxc=function(a){var b=new $8d;return yj(b,1,a)};h=$8d.prototype;h.getLogSource=function(){return Ii(this,2,-1)};h.setLogSource=function(a){return Vn(this,2,a)};h.getApplication=function(){return Ii(this,3)};h.setApplication=function(a){return Vn(this,3,a)};h.getApplicationOrUndefined=function(){return Kp(this,3)};h.getVersion=function(){return xi(this,4)};h.setVersion=function(a){return yj(this,4,a)};
h.getVersionOrUndefined=function(){return gx(this,4)};h.getBaselineCl=function(){return Um(this,5)};h.setBaselineCl=function(a){return Tn(this,5,a)};h.hasBaselineCl=function(){return zn(this,5)};h.getBaselineClOrUndefined=function(){return fx(this,5)};h.getEnableClearcut=function(){return Ri(this,6)};h.setEnableClearcut=function(a){return aj(this,6,a)};var ixc=function(a,b){return yc(a,7,b,Eb)};h=$8d.prototype;h.setClientAgent=function(a){return Vn(this,8,a)};
h.getClientAgentOrUndefined=function(){return Kp(this,8)};h.setEventSource=function(a){Vn(this,9,a)};h.getEventSourceOrUndefined=function(){return Kp(this,9)};h.setEventSourceId=function(a){Tn(this,14,a)};h.getEventSourceIdOrUndefined=function(){return fx(this,14)};h.getClearcutUrl=function(){return xi(this,10)};h.setClearcutUrl=function(a){yj(this,10,a)};h.setEnvironment=function(a){return Vn(this,11,a)};h.getEnvironmentOrUndefined=function(){return Kp(this,11)};
h.getPeoplekitEntryPoint=function(){return Ii(this,12)};h.setPeoplekitEntryPoint=function(a){return Vn(this,12,a)};h.getPeoplekitEntryPointOrUndefined=function(){return Kp(this,12)};h.setSharekitEntryPoint=function(a){Vn(this,13,a)};h.getSharekitEntryPointOrUndefined=function(){return Kp(this,13)};var a9d,b9d=(a9d=window)==null?void 0:a9d.performance,c9d,d9d=b9d==null?void 0:(c9d=b9d.timing)==null?void 0:c9d.navigationStart,qyd=d9d&&b9d?function(){var a;return d9d+((a=b9d==null?void 0:b9d.now())!=null?a:0)}:function(){return Date.now()};var e9d=function(a){this.start_=a;this.end_=NaN};e9d.prototype.duration=function(){return this.end_-this.start_};e9d.prototype.stop=function(a){this.end_=a;return this.duration()};var Z9=function(a){var b=b===void 0?qyd:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};Z9.prototype.source=function(){return this.source_};var f9d=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
Z9.prototype.duration=function(a){a=f9d(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var g9d=function(a,b){return osc(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=f9d(this,a);this.durations_.set(a,new e9d(b));return this};
Z9.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=f9d(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};Z9.prototype.clear=function(){this.durations_.clear();return this};var h9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h9d,W);var cxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cxc,W);h=cxc.prototype;h.getQueryId=function(){return lx(this,1)};h.setQueryId=function(a){return Kn(this,1,a)};h.setSelectionId=function(a){return Kn(this,2,a)};h.getInstanceId=function(){return Ml(this,4)};h.setInstanceId=function(a){return yj(this,4,a)};h.clearInstanceId=function(){Zw(this,4)};h.hasInstanceId=function(){return wm(this,4)};h.getInstanceIdOrUndefined=function(){return gx(this,4)};
h.getAffinityVersion=function(){return kx(this,5)};h.setAffinityVersion=function(a){Tn(this,5,a)};h.getAffinityVersionOrUndefined=function(){return fx(this,5)};var i9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i9d,W);h=i9d.prototype;h.getQueryLength=function(){return kx(this,1)};h.setQueryLength=function(a){return Tn(this,1,a)};h.hasQueryLength=function(){return zn(this,1)};h.getQuery=function(){return Ml(this,2)};h.setQuery=function(a){return yj(this,2,a)};h.clearQuery=function(){Zw(this,2)};h.hasQuery=function(){return wm(this,2)};var j9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(j9d,W);j9d.prototype.setLatencyUsec=function(a){Tn(this,1,a)};var $9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($9,W);h=$9.prototype;h.getColumn=function(){return kx(this,2)};h.setColumn=function(a){return Tn(this,2,a)};h.getType=function(){return iw(this,3)};h.setType=function(a){return Vn(this,3,a)};h.hasType=function(){return xm(this,3)};var a$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a$,W);a$.prototype.getExistingSelectionsCount=function(){return kx(this,1)};a$.prototype.setExistingSelectionsCount=function(a){Tn(this,1,a)};a$.prototype.getPosition=function(){return X(this,$9,2)};a$.prototype.setPosition=function(a){return Zi(this,$9,2,a)};var b$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b$,W);h=b$.prototype;h.setDevice=function(a){return Vn(this,1,a)};h.getApplication=function(){return Ii(this,2)};h.setApplication=function(a){return Vn(this,2,a)};h.getApplicationOrUndefined=function(){return Kp(this,2)};h.setPlatform=function(a){Vn(this,3,a)};var c$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c$,W);h=c$.prototype;h.setEventSource=function(a){Vn(this,2,a)};h.getEventSourceOrUndefined=function(){return Kp(this,2)};h.setEventSourceId=function(a){Tn(this,15,a)};h.getEventSourceIdOrUndefined=function(){return fx(this,15)};h.getSocialClient=function(){return X(this,b$,3)};h.setSocialClient=function(a){return Zi(this,b$,3,a)};h.setVersionName=function(a){return yj(this,5,a)};
h.getBaselineCl=function(){return lx(this,7)};h.setBaselineCl=function(a){return Kn(this,7,a)};h.hasBaselineCl=function(){return Dn(this,7)};h.getBaselineClOrUndefined=function(){return tw(this,7)};h.setClientAgent=function(a){return Vn(this,9,a)};h.getClientAgentOrUndefined=function(){return Kp(this,9)};h.getPeoplekitEntryPoint=function(){return iw(this,11)};h.setPeoplekitEntryPoint=function(a){return Vn(this,11,a)};h.getPeoplekitEntryPointOrUndefined=function(){return Kp(this,11)};
h.setEnvironment=function(a){return Vn(this,13,a)};h.getEnvironmentOrUndefined=function(){return Kp(this,13)};h.setSharekitEntryPoint=function(a){Vn(this,14,a)};h.getSharekitEntryPointOrUndefined=function(){return Kp(this,14)};var d$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d$,W);h=d$.prototype;h.getType=function(){return iw(this,5)};h.setType=function(a){return Vn(this,5,a)};h.hasType=function(){return xm(this,5)};h.getEmail=function(){return Ml(this,1)};h.getEmail_legacyNullable=function(){return Ml(this,1)};h.setEmail=function(a){return yj(this,1,a)};h.hasEmail=function(){return wm(this,1)};h.getPhone=function(){return Ml(this,2)};
h.getPhone_legacyNullable=function(){return Ml(this,2)};h.setPhone=function(a){return yj(this,2,a)};h.getObfuscatedGaiaId=function(){return Ml(this,3)};h.getObfuscatedGaiaId_legacyNullable=function(){return Ml(this,3)};h.setObfuscatedGaiaId=function(a){return yj(this,3,a)};h.getContactId=function(){return lx(this,4)};h.setContactId=function(a){return Kn(this,4,a)};h.getGroupId=function(){return Ml(this,6)};h.setGroupId=function(a){yj(this,6,a)};h.hasGroupId=function(){return wm(this,6)};var e$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e$,W);e$.prototype.getName=function(){return Ml(this,1)};e$.prototype.setName=function(a){return yj(this,1,a)};e$.prototype.hasName=function(){return wm(this,1)};e$.prototype.getNameOrUndefined=function(){return gx(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 Zi(this,$9,1,a)};h.getProvenance=function(){return jx(this,3)};h.setProvenance=function(a){return Ac(this,3,Cb,void 0,a,Db,void 0,1)};h.getIsBoosted=function(){return aw(this,6)};h.setIsBoosted=function(a){aj(this,6,a)};h.getIsPlaceholder=function(){return aw(this,7)};h.setIsPlaceholder=function(a){aj(this,7,a)};
h.getIsSelf=function(){return aw(this,11)};h.getQueryId=function(){return lx(this,15)};h.setQueryId=function(a){return Kn(this,15,a)};h.setSelectionId=function(a){return Kn(this,16,a)};var k9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k9d,W);h=k9d.prototype;h.getLoggingId=function(){return Ml(this,1)};h.setLoggingId=function(a){yj(this,1,a)};h.getMetadata=function(){return X(this,f$,3)};h.getMutableMetadata=function(){return Ui(this,f$,3)};h.setMetadata=function(a){Zi(this,f$,3,a)};h.hasMetadata=function(){return Ji(this,f$,3)};var g$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g$,W);g$.prototype.getAffinityVersion=function(){return kx(this,2)};g$.prototype.setAffinityVersion=function(a){Tn(this,2,a)};g$.prototype.getAffinityVersionOrUndefined=function(){return fx(this,2)};var l9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l9d,W);h=l9d.prototype;h.getEventType=function(){return iw(this,1)};h.getEventType_legacyNullable=function(){return iw(this,1)};h.setEventType=function(a){return Vn(this,1,a)};h.getMetadata=function(){return X(this,g$,4)};h.getMutableMetadata=function(){return Ui(this,g$,4)};h.setMetadata=function(a){Zi(this,g$,4,a)};h.hasMetadata=function(){return Ji(this,g$,4)};
h.getClientInterface=function(){return X(this,c$,5)};h.setClientInterface=function(a){return Zi(this,c$,5,a)};var m9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(m9d,W);h=m9d.prototype;h.getInstanceId=function(){return xi(this,1)};h.setInstanceId=function(a){return yj(this,1,a)};h.clearInstanceId=function(){Zw(this,1)};h.hasInstanceId=function(){return wm(this,1)};h.getInstanceIdOrUndefined=function(){return gx(this,1)};h.getRequestId=function(){return xi(this,2)};h.getRequestType=function(){return Ii(this,4)};h.setRequestType=function(a){return Vn(this,4,a)};
h.getSourceType=function(){return Ii(this,6)};h.setSourceType=function(a){return Vn(this,6,a)};h.getClient=function(){return Ii(this,7)};h.setClient=function(a){return Vn(this,7,a)};h.hasClient=function(){return xm(this,7)};h.getErrorType=function(){return Ii(this,8)};h.setErrorType=function(a){return Vn(this,8,a)};h.hasErrorType=function(){return xm(this,8)};h.getStatusCode=function(){return Ii(this,10)};h.setStatusCode=function(a){Vn(this,10,a)};h.hasStatusCode=function(){return xm(this,10)};var vsc=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=jxc("PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(834323501).setEnableClearcut(b.getEnableClearcut())};h=vsc.prototype;h.getLogContext=function(){return this.logContext_};h.createCountMetric=function(){throw Error("Ag");};h.createStatusMetric=function(){throw Error("Ag");};h.createErrorMetric=function(){throw Error("Ag");};
h.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);Kn(a,3,b);return a};var Rtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rtc,W);var Qtc=function(a,b){return yc(a,3,b,Eb)};var n9d=rj(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new pD(a,b);f&&(a.destinationUrl=f);d&&bOc(a,function(){return $rc().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=Qtc(new Rtc,c),a.setClearExperimentIds(c);return a.build()});var o9d=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=nba()||Ea("iPod")?4:Ea("iPad")?5:mba()?psc()?3:2:(bba&&Da?Da.mobile:!psc()&&(Ea("iPod")||Ea("iPhone")||Ea("Android")||Ea("IEMobile")))||psc()?0:1},p9d=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=Xrc();var g=Wm(b,7,Oi(bn));c=n9d(c,f,g,(e=(d=RW.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Um(b,15),b.getClearcutUrl())}return new o9d(c,a)},q9d=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},r9d=function(a,b){var c=new ZC;iNc(c,b.serialize());a.clearcut_&&a.clearcut_.dispatch(c)};var s9d=function(a,b){this.clearcut_=a;this.logEventFactory_=b},Htc=function(a){return new s9d(p9d(a),a)};s9d.prototype.logError=function(a){var b=q9d(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&r9d(this.clearcut_,a)};var Gtc=function(a){this.clearcut_=a};h=Gtc.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=q9d(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&r9d(c.clearcut_,a);return this};h.status=function(a,b){var c=this.clearcut_,d=q9d(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&r9d(c.clearcut_,a);return this};
h.latency=function(a){var b=this.clearcut_,c=q9d(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&r9d(b.clearcut_,a);return this};h.error=function(a){this.clearcut_.logError(a);return this};h.logError=function(){};h.logInfo=function(){return this};var t9d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.label_="total";this.source=b};t9d.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};t9d.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var ysc=function(a,b,c){this.worker_=a;this.metrics_=new Gtc(Htc(b));this.runtimeConfig_=c},u9d=function(a,b,c){var d,e,f=new m9d,g=bsc();f=yj(f,2,g).setRequestType(b.getRequestType());b=Vn(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Vn(b,9,a.runtimeConfig_.getPeopleApiEnv())},v9d=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())};ysc.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=u9d(c,a,b),e=new t9d(c.metrics_,d),e.start(),z(g,c.worker_.updateExperimentsCache(a,b),2);f=g.yieldResult;v9d(f,d);e.stop();return g.return(f)})};
ysc.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=u9d(this,a,b),d=new t9d(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);v9d(a,c);d.stop();return a};var w9d=function(a){this.timer=a;this.count=0},Asc=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;a=this.clientConfig_.getClient();this.refreshRateMs_=Um(a,11,14400)*1E3;this.eventHandler_=new Gi(this)};Asc.prototype.updateExperimentsCache=function(a,b){try{return x9d(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(ssc(c))}};Asc.prototype.getCachedExperiments=function(a,b){try{return x9d(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return ssc(c)}};
var x9d=function(a,b){var c=dsc(b);if(!c)throw new mv(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new WC(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=Um(f,12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new w9d(d))}a.refreshers_.get(c)};var y9d=function(){},zsc=function(a,b){this.cache_=a;this.loader_=b};
zsc.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=z9d(c,a)}catch(x){e=x}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));Yd(k,3);return z(k,A9d(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var m=k.return,r=f,w=e;w=w===void 0?null:w;r=(new rsc).setExperimentFlags(r.getExperimentFlags()).setExperimentIdsList(r.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());w&&r.setError(qsc(w));
return m.call(k,r)}g=be(k);return k.return(ssc(g))})};zsc.prototype.getCachedExperiments=function(a){try{var b=z9d(this,a);if(b){var c=(new rsc).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&A9d(this,a).catch(y9d);return c}A9d(this,a).catch(y9d);return ssc()}catch(d){return ssc(d)}};
var z9d=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof mv)throw d;throw new mv(3);}},A9d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Yd(e,2),b.hasInstanceId()||b.setInstanceId(bsc()),z(e,Z8d(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 mv)throw d;throw new mv(2);})};var tsc;var B9d=function(a){this.clientConfig_=a;this.worker_=Bsc(this.clientConfig_)};B9d.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var Ytc=function(){this.peopleApiEnv_=4};Ytc.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};Ytc.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var C9d=function(a,b){this.client_=a;this.request_=b;this.response_=null};C9d.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};C9d.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(bn)};var Xtc=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=834323501};Xtc.prototype.prefetch=function(a){var b=new v8d(this.clientConfig_,new Ytc);a=D9d(this,a,"");Bsc(b).updateExperimentsCache(a,2)};Xtc.prototype.loadExperiments=function(a,b,c){var d=new v8d(this.clientConfig_,b),e=D9d(this,a,c);Bsc(d).updateExperimentsCache(e,2);b=new v8d(this.clientConfig_,b);b=new B9d(b);a=D9d(this,a,c);return new C9d(b,a)};
var D9d=function(a,b,c){var d=(new U9).setVersion(a.version_);b=(new V9).setApplication(b);return(new u8d).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var Esc=new Ztc(new H9,new r8d);var Fsc=Mt.getInstance();var Gsc=Mt.getInstance();var E9d=new wl(mG.WEEKDAY_MONTH_DAY_MEDIUM),F9d=new wl(7);new wl(mG.WEEKDAY_MONTH_DAY_MEDIUM);var G9d=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var H9d=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=Lv();e=g||e;g=k?"tt-c"+Q7d++:"";e=Kv(a,'<div class="'+Gv("peoplekitComponentsTagTag")+" "+(e?Gv(e):"")+'" peoplekit-id="'+Gv("mQXP")+'"'+(g?' data-tooltip-id="'+Gv(g)+'" aria-labelledby="'+Gv(g)+'"':"")+">");M9(b)||M9(f)?(g=Lv(),b=M9(b)?'<img class="'+Gv("peoplekitComponentsTagIcon")+'" src="'+Gv(p7d(b))+'" alt="'+Gv(c)+'">':M9(f)?'<span class="google-symbols '+Gv("peoplekitComponentsTagIcon")+
'">'+Hv(f)+"</span>":"",b=Jv(b),c=Kv(Mv(g,b),"<div"+(d?"":' class="'+Gv("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Gv("peoplekitComponentsTagText")+'">'+Hv(c)+"</div></div>")):c='<div class="'+Gv("peoplekitComponentsTagText")+'">'+Hv(c)+"</div>";Kv(Mv(e,c),"</div>");return a};var I9d=function(a,b){a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}this.tagElement=Ru(H9d,Object.assign({},a,{styleClass:c}));a.tooltipLabel&&(c=this.tagElement.getAttribute("data-tooltip-id")||"",this.tooltip=Oqc(b,c,{label:a.tooltipLabel}),Sqc(this.tooltip,this.tagElement))};I9d.prototype.getRoot=function(){return this.tagElement};I9d.prototype.dispose=function(){this.tooltip&&N7d(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=[];J9d(this,{tags:d});arc(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(m){J9d(k,m)})};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("Rg");};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("Vg");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 "+F9d.format(c):"Out of office - back on "+E9d.format(c);xLc(b,String(c));this.root.classList.add("isOutOfOffice")}else xLc(b,
""),this.root.classList.remove("isOutOfOffice")}};h.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:G9d.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 I9d(a,c);this.tags.push(a);b.appendChild(a.getRoot())};
h.setMetaIcon=function(a){var b=Opc(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var J9d=function(a,b){for(var c=l(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};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 K9d=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=Muc(Luc(a).setDisplayName(b),c)};K9d.prototype.getLoggingToken=function(){return this.loggingToken};var L9d=function(){};L9d.prototype.getDisplayNameMatches=function(){return[]};L9d.prototype.getDisplayValueMatches=function(){return[]};L9d.prototype.getGivenNameMatches=function(){return[]};var M9d=new L9d;var Isc=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};h=Isc.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("Wg");};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 M9d};h.getExtendedData=function(){return null};var N9d=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 O9d=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=Uv(this.id_)?vyd:uyd;this.tags_=[];this.sourceIds_=Axc.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(Bvc(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=N9d.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};h=O9d.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_=ov(a);return this};h.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return ov(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_=ov(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_=ov(a);return this};h.getPhoto=function(){return this.photo_};h.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=Uv(this.id_)?vyd:uyd};
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 ow};
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_=ov(a)};h.getPersonLoggingId=function(){return this.personLoggingId_};
h.setPersonLoggingId=function(a){this.personLoggingId_=ov(a)};h.getOrgState=function(){return this.orgState_};h.setOrgState=function(a){this.orgState_=a};h.getOriginatingField=function(){return this.originatingField_};var hwc=function(a,b){a.originatingField_=b;return a};h=O9d.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 lw=function(a){return new O9d(a)};var Ksc=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=lw(this.internalId).setDataSource(3);this.internalResult=Ks(Jsc(0,[a]));this.internalSelectionToken=new K9d(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Ksc.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 P9d=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=Lsc(Zv)};Y(P9d,R9);P9d.prototype.getAllIds=function(){return[this.id]};P9d.prototype.getSelection=function(){return this.selection};var Q9d=function(a,b,c,d,e,f,g,k){d=d===void 0?"":d;e=e===void 0?!1:e;return Kv(Mv(Kv(Mv(Kv(Mv(Kv(Lv(),'<div role="option" class="'+Gv("peoplekitComponentsResultlistitemResultListItem")+" "+Gv(d)+'" id="'+Gv(a)+'" peoplekit-id="'+Gv(a)+'" aria-disabled="'+Gv(e)+'" aria-selected="false"><div class="'+Gv("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Gv("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Gv(b)+'" data-name="'+Gv(Nv(c))+'">'),Hv(f)),'</div><div class="'+
Gv("peoplekitComponentsResultlistitemCenter")+'">'),Hv(g)),'</div><div class="'+Gv("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+Gv("QChpEe")+'">'),Hv(k)),'</div></div><div peoplekit-id="'+Gv("Z306Oe")+'" class="'+Gv("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},R9d=function(a,b,c){return Jv('<div class="'+Gv("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Gv("peoplekitComponentsResultlistitemLabel")+" "+Gv("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+Gv("peoplekitComponentsResultlistitemLabelText")+'" data-name="'+Gv(Nv(a))+'" translate="no">'+Duc(Nv(a))+'</div><div peoplekit-id="'+Gv("x00ATb")+'" class="'+Gv("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(b?'<div class="'+Gv("peoplekitComponentsResultlistitemSublabel")+" "+Gv("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Gv("peoplekitComponentsResultlistitemSublabelText")+'" data-name="'+Gv(Nv(a))+'"'+(c?"":' translate="no"')+">"+Duc(Nv(b))+"</div></div>":
"")+"</div>")},S9d=function(a){return Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+Gv("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Gv("d6MZcd")+'"></div>'),M9(a)?Hv(a):""),"</div>")},T9d=function(){var a=Lv(),b=Kv(Lv(),'<div class="'+Gv("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Gv("peoplekitComponentsResultlistitemWhiteCheck")+'">');var c=Jv('<svg viewBox="0 0 24 24" class="'+(Gv("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 Mv(a,S9d(Kv(Mv(b,c),"</div></div>")))},U9d=function(){return Jv('<img class="'+Gv("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Gv("SC3Htd")+'" alt="" src=""/>')};var V9d=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 Mv(Lv(),Q9d(b,c,d,"isDisabled "+f,!0,Mv(Lv(),S9d()),Mv(Lv(),R9d(d,e,a)),Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'),Hv(g)),"</div>")))},W9d=function(){var a=Lv(),b='<div class="'+Gv("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="';a=Kv(a,b+Gv(". Already selected")+'">');b=
Jv('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Gv("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 Kv(Mv(a,b),"</div>")};var Nsc=function(a){this.delegate=a;var b=this;this.eventHandler=Vu(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Y(Nsc,R9);Nsc.prototype.onClick=function(){this.toggleSelection()};var Psc=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Xg");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new K9d(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Psc.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 X9d=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return Qsc(b)})};X9d.prototype.getLoggingToken=function(){return this.groupLoggingToken};var Y9d=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=Lsc(Zv)};Y(Y9d,R9);Y9d.prototype.getAllIds=function(){return[this.id]};Y9d.prototype.toggleSelection=function(){var a=new X9d(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent(kqc("pcw-select",this.root))};Y9d.prototype.getSelection=function(){return this.selection};var Z9d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Mv(Lv(),Q9d(b,c,d,f,void 0,Mv(Lv(),S9d()),Mv(Lv(),R9d(d,e,a)),Mv(Lv(),U9d())))};var a$d=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&$9d(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){$9d(c,d)};i$(this.selectionsState,this.onDeselectionCallback);j$(this.selectionsState,this.onSelectionCallback)};Y(a$d,R9);
a$d.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=kqc("pcw-deselect",a)}else a=this.getRoot(),a=kqc("pcw-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var $9d=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};a$d.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var b$d=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)||Qsc(b,b.getDisplayName())};Y(b$d,R9);b$d.prototype.onContextMenu=function(a,b){Ri(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};b$d.prototype.getAllIds=function(){return[this.id]};b$d.prototype.getSelection=function(){return this.selection};var c$d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Mv(Lv(),Q9d(b,c,d,f,void 0,Mv(Lv(),T9d()),Mv(Lv(),R9d(d,e,a)),Mv(Lv(),U9d())))};var d$d=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)||Qsc(b)};Y(d$d,R9);d$d.prototype.onContextMenu=function(a,b){Ri(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};d$d.prototype.getAllIds=function(){return[this.id]};d$d.prototype.getSelection=function(){return this.selection};var e$d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Mv(Lv(),Q9d(b,c,d,f,void 0,Mv(Lv(),T9d()),Mv(Lv(),R9d(d,e,a)),Mv(Lv(),U9d())))};fv.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=Dsc(a);var m=Ru(c$d,a);dv({element:m,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Rsc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=Su(m,"d6MZcd"),w=Src(e.getDensity()),x;d=(x=d.backupAvatarUrl)!=null?x:"";e=Tu(r,a.photos,w,w,e,d);b=new b$d(m,b,f,c,a.tags,
e,g,k);return Osc(new a$d(b,f))},shouldCreate:function(){return!0}},configurationKey:void 0});
fv.addCoreFactory({type:1,factory:{create:function(a){var b=Msc(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,g=a.popupsContainer,k=c.getPrimaryTarget().getId();a=Uv(k)||kyd(k)?Hsc(a):Dsc(a);k=Object;var m=k.assign;a:switch(b){case 1:var r=W9d();break a;case 2:r=f.showSelectedIndicatorForDisabled?W9d():Jv("");break a;default:r='<div class="'+Gv("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',r=Jv(r+"DISABLED</div>")}k=Ru(V9d,m.call(k,{},a,{disableReason:r}));
(b===1||b===2&&f.showSelectedIndicatorForDisabled)&&k.setAttribute("aria-selected","true");b=Su(k,"d6MZcd");m=Src(e.getDensity());var w;f=(w=f.backupAvatarUrl)!=null?w:"";e=Tu(b,a.photos,m,m,e,f);return new P9d(k,c,d,a.tags,e,g)},shouldCreate:function(a){return Msc(a)!==0}},configurationKey:void 0});
fv.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=Hsc(a);var m=Ru(e$d,a);dv({element:m,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Rsc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=Su(m,"d6MZcd"),w=Src(d.getDensity()),x;e=(x=e.backupAvatarUrl)!=null?x:"";d=Tu(r,a.photos,w,w,d,e);b=new d$d(m,b,g,c,a.tags,
d,f,k);return Osc(new a$d(b,g))},shouldCreate:function(a){return Uv(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
fv.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=Hsc(a);var k=Ru(Z9d,a);dv({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Rsc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var m=Su(k,"d6MZcd"),r=Src(e.getDensity()),w;d=(w=d.backupAvatarUrl)!=null?w:"";e=Tu(m,a.photos,r,r,e,d);return Osc(new Y9d(k,b,f,c,a.tags,e,g))},
shouldCreate:function(a){return kyd(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});var Ssc=function(a,b,c,d,e,f,g,k,m){this.selectionsState=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.isRightToLeft=f;this.interactions=g;this.ariaParent=k;this.popupsContainer=m};
Ssc.prototype.create=function(a,b){var c=this.selectionsState,d=this.resultConfig,e=this.appearanceConfig,f=this.clientConfig,g=this.isRightToLeft(),k=this.interactions,m=this.injectableResultConfig,r=this.resultConfig.getResultCustomizationCallback()(a,b);m=l(m.resultCustomizationDecorators);for(var w=m.next();!w.done;w=m.next())w=w.value,w=w(r,a,b),r=Object.assign({},r,w);a={result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:g,interactions:k,resultCustomizationConfig:r,
ariaParent:this.ariaParent,popupsContainer:this.popupsContainer,contextMenuConfigurator:this.injectableResultConfig.contextMenuConfigurator};b=Jpc(this.clientConfig);return crc(fv,b).create(a)};var Usc=function(a,b,c,d,e,f,g,k,m,r,w){var x=this;this.list=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.selectionsState=f;this.interactions=g;this.ariaParent=m;this.popupsContainer=r;this.grouping=w;this.navigatable=src(new Y7d({shouldWrap:!0}));this.intelligentComponentCollection=k.create();this.sectionController=Rrc(this.list,this.navigatable,this.intelligentComponentCollection,this.appearanceConfig,Tsc(this.selectionsState,this.resultConfig,
this.injectableResultConfig,this.appearanceConfig,this.clientConfig,function(){return Yu(x.list.getRoot())},this.interactions,this.ariaParent,this.popupsContainer),this.grouping)};h=Usc.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 ctc=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};h=ctc.prototype;h.append=function(a,b){try{for(var c=l(a),d=c.next();!d.done;d=c.next()){var e=d.value;this.delegate.append([e],b);this.interactions.display(e)}}catch(f){throw this.health.createError(3,qv(f)),f;}};h.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,qv(a)),a;}};h.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,qv(b)),b;}};
h.getNavigatable=function(){return this.delegate.getNavigatable()};h.getResultListItems=function(){return this.delegate.getResultListItems()};h.done=function(){this.delegate.done()};var btc=function(a){a=a.header;return Jv('<div peoplekit-id="'+Gv("aittld")+'">'+(a.length>0?'<div class="'+Gv("peoplekitUiResultlistHeader")+'">'+Hv(a)+"</div>":"")+'<div peoplekit-id="'+Gv("tjneg")+'"></div></div>')};var Lvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lvc,W);var Mvc=new MA(417869137,bw,Lvc);var f$d=function(){return"Google makes suggestions based on your interactions."};var g$d=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=Jv("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:f$d(),learnMoreUrl:Wsc(),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)};g$d.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(Mvc))==null?void 0:Kp(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};g$d.prototype.reset=function(a){this.isSuggest=!a.trim()};var Xsc=[g$d];var Zsc=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:f$d(),learnMoreUrl:Wsc(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};Zsc.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};Zsc.prototype.reset=function(a){this.isSuggest=!a.trim()};var $sc=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};$sc.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};$sc.prototype.reset=function(){};var atc=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};atc.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};atc.prototype.reset=function(){};var rv=function(a,b){this.ariaParent=a;this.delegate=b};h=rv.prototype;h.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),sU(this.ariaParent,a)):sU(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 h$d=function(a,b){rv.call(this,a,b)};Y(h$d,rv);h$d.prototype.tabUpdate=function(){var a=this.getSpotlitItem();if(a){a=a.getRoot();var b=this.ariaParent;var c=Ktd(b,"activedescendant");b=$u(b).getElementById(c);(c=a.querySelector('[id="'+(a.id+'-2ab"]')))?sU(this.ariaParent,b===c?a:c):gtc(a)&&(a=Array.from(a.querySelectorAll('[class~="TdcT2c"]')),b=b?a.indexOf(b):-1,b!==-1&&sU(this.ariaParent,a[(b+1)%a.length]))}};
h$d.prototype.onKeyDown=function(a){a.event.keyCode===9&&this.tabUpdate();rv.prototype.onKeyDown.call(this,a)};h$d.prototype.next=function(a){a=rv.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),gtc(b)&&i$d(this,b));return a};h$d.prototype.prev=function(a){a=rv.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),gtc(b)&&i$d(this,b));return a};var i$d=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&sU(a.ariaParent,b)};var Rv=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};Rv.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};Rv.prototype.preventDefault=function(){this.event.preventDefault()};var htc=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=Vu(this)};h=htc.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 Rv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Rv(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 j$d=new nB;j$d.altKey=!0;j$d.keyCode=39;(new nB).keyCode=13;var k$d=function(){Fi.call(this)};Y(k$d,Fi);k$d.prototype.init=function(){};new k$d;var l$d=ra.URL,m$d;try{new l$d("http://example.com"),m$d=!0}catch(a){m$d=!1}
var n$d=m$d,o$d=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("&")},q$d=function(a){var b=ot(document,"A");try{qsa(b,new yh(a));var c=b.protocol}catch(e){throw Error("ah`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("ah`"+a);if(!p$d.has(c))throw Error("ah`"+a);if(!b.hostname)throw Error("ah`"+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}};p$d.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},r$d=function(a){if(n$d){try{var b=new l$d(a)}catch(d){throw Error("ah`"+a);}var c=p$d.get(b.protocol);if(!c)throw Error("ah`"+a);if(!b.hostname)throw Error("ah`"+
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=q$d(a);return b},p$d=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),s$d=function(a){var b=r$d("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("bh");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+o$d(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 r$d(a)};var zw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zw,W);var k$=function(a,b){return aj(a,1,b)};h=zw.prototype;h.getProvenance=function(){return Ii(this,2)};h.setProvenance=function(a){return Vn(this,2,a)};h.getCode=function(){return Ii(this,3)};h.setCode=function(a){return Vn(this,3,a)};h.getCodeOrUndefined=function(){return Kp(this,3)};var l$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l$,W);l$.prototype.getSource=function(){return X(this,zw,1)};l$.prototype.setSource=function(a){return Zi(this,zw,1,a)};l$.prototype.hasSource=function(){return Ji(this,zw,1)};l$.prototype.getSourceOrUndefined=function(){return dAc(this,zw,1)};var m$=function(a,b){return Vn(a,2,b)},n$=function(a,b){return Vn(a,3,b)};var t$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t$d,W);h=t$d.prototype;h.getQuery=function(){return xi(this,1)};h.setQuery=function(a){return yj(this,1,a)};h.clearQuery=function(){Zw(this,1)};h.hasQuery=function(){return wm(this,1)};h.getIsFirstCallback=function(){return Ri(this,2)};h.setIsFirstCallback=function(a){return aj(this,2,a)};h.getIsLastCallback=function(){return Ri(this,3)};h.setIsLastCallback=function(a){return aj(this,3,a)};
h.setCallbackNumber=function(a){return Tn(this,4,a)};h.getNextPageToken=function(){return xi(this,5)};h.getCode=function(){return Ii(this,6,2)};h.setCode=function(a){return Vn(this,6,a)};h.getCodeOrUndefined=function(){return Kp(this,6)};h.getCacheState=function(){return X(this,l$,7)};h.setCacheState=function(a){return Zi(this,l$,7,a)};h.hasCacheState=function(){return Ji(this,l$,7)};var ltc=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 h$d(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=itc({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},
{shouldReactToHomeEnd:!1});this.eventHandler=Vu(this);$qc(this.root,0)};h=ltc.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();$qc(this.root,1);if(a){var f=u$d(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var g=u$d(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()}),Ri(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 Rv(b),function(){}))}),this.eventHandler.listen(this.navigationInput,
"focus",function(b){b={event:b};for(var c=l(a.inputFocusListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}),this.eventHandler.listen(this.navigationInput,"blur",function(b){b={event:b};for(var c=l(a.inputBlurListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}))};h.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();$qc(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?($qc(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length,results:e.map(function(m){return m.getSelection().result()})},v$d(this,b)):$qc(this.root,4);c.stop()};
h.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey,c=a.event.keyCode===13;if(Ri(this.clientConfig.internal,9)&&etc(a)){if(a.preventDefault(),a.stopPropagation(),this.navigatable.getSpotlitItem())this.navigatable.onContextMenu(a,function(){})}else if(c||b&&this.config.getUseTabForResultSelection()){if(b=this.navigatable.getActiveItems(),b.length){b=l(b);for(c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}}else a.event.keyCode!==40||this.navigatable.getSpotlitItem()||
(b=this.resultList.getResultListItems(),b.length&&(this.navigatable.goToItem(b[0],0),a.preventDefault(),a.stopPropagation()))};h.getNavigatable=function(){return this.navigatable};h.getRoot=function(){return this.root};var v$d=function(a,b){a=l(a.resultsLoadingCompleteListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};ltc.prototype.showLoadingIndicator=function(){this.getRoot().classList.add("isLoading")};ltc.prototype.hideLoadingIndicator=function(){this.getRoot().classList.remove("isLoading")};var w$d=function(a){return Kv(Mv(Kv(Lv(),'<div tabindex="-1" class="'+Gv("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+Gv("I8ejUe")+'">'),Hv(a)),"</div>")};var qtc=function(){var a=Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Gv("yDHfq")+'"><div class="'+Gv("peoplekitComponentsAutocompleteInlineListContainer")+'">'),w$d(Jv('<div peoplekit-id="'+Gv("tjneg")+'"></div>'))),'</div><div class="'+Gv("peoplekitComponentsAutocompleteInlineCircularProgress")+'">');var b='<div class="'+Gv("peoplekitComponentsCircularprogressCircularProgress")+(" "+Gv("isActive"))+'" data-loadingmessage="'+Gv("Loading...")+
'" data-active="true"'+(M9()?j7d(K9(void 0,T6d)?(void 0).getContent():t7d()):"")+'><div class="'+Gv("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Gv("vyyg5")+'">'+Hv("Loading...")+'</div><div class="'+Gv("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Gv("peoplekitComponentsCircularprogressColorOne")+" "+Gv("exportColorOne")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+
" "+Gv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+
" "+Gv("exportCircle")+'"></div></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Gv("peoplekitComponentsCircularprogressColorTwo")+" "+Gv("exportColorTwo")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Gv("peoplekitComponentsCircularprogressColorThree")+" "+Gv("exportColorThree")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+
" "+Gv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+
" "+Gv("exportCircle")+'"></div></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Gv("peoplekitComponentsCircularprogressColorFour")+" "+Gv("exportColorFour")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div><div class="'+Gv("peoplekitComponentsCircularprogressCircleClipper")+" "+Gv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Gv("peoplekitComponentsCircularprogressCircle")+" "+Gv("exportCircle")+'"></div></div></div></div></div>';b=Jv(b);return Kv(Mv(a,b),'</div><div peoplekit-id="'+Gv("i2HSVe")+'"></div></div>')},stc=function(){return Jv('<div class="'+Gv("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var ntc=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Gv("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Gv(a)+'"':"")+'><p class="'+Gv("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+Hv(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+Gv("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?Hv(c)+(d?" ":""):""),d&&(a+='<a jsname="'+Gv("viORvd")+'" class="'+Gv("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Gv(Iv(d))+'">',a=e?a+Hv(e):a+"Learn more",a+="</a>"),a+="</p>";return Jv(a+"</div>")};var ttc=function(a,b){this.parent=a;this.config=b};ttc.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=Ru(ntc,a);this.parent.appendChild(this.root);return!0};var utc=function(){};utc.prototype.update=function(){return!1};var otc=function(){};otc.prototype.update=function(){return!0};var x$d=function(){return Jv('<div peoplekit-id="'+Gv("i2HSVe")+'"></div>')},y$d=function(a){return Jv('<div peoplekit-id="'+Gv(a.id)+'"></div>')};var rtc=function(a){this.parent=a;this.root=Ru(x$d);this.parent.appendChild(this.root)};rtc.prototype.get=function(a){if(Opc(this.root,a).length===0){var b=Ru(y$d,{id:a});this.root.appendChild(b)}return Su(this.root,a)};rtc.prototype.clear=function(){this.root.replaceChildren()};rtc.prototype.dispose=function(){this.root.remove()};rtc.prototype.getRoot=function(){return this.root};drc.addCoreFactory({type:0,factory:{create:function(a){return{injectableResultConfig:a.injectableResultConfig,injectableAutocompleteGrouping:a.injectableAutocompleteGrouping}},shouldCreate:function(){return!0}},configurationKey:void 0});var xtc=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=Kqc(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=Vu(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};h=xtc.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("Pg`"+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("Pg`"+c);}}this.root.style.width=QJd(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("Pg`"+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 wtc=function(){return Jv('<div class="'+Gv("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Gv("noeiCf")+'" style="display: none;"></div>')};var z$d=function(){this.batches=new Map};z$d.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 ztc=function(a,b){this.service=a;this.resolveComponents=b};
ztc.prototype.update=function(a){var b=this;a=l([].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=l(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){A$d(b,f.values,function(g,k,m){m.updateWaldo(k,g)})});break;case 2:c=c.withHubAvailabilityDot(function(f){A$d(b,f.values,function(g,k,m){m.updateHubAvailabilityDot(k,g)})})}c.execute()}}};
var A$d=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=l(a.resolveComponents(e)),g=f.next();!g.done;g=f.next())c(e,d,g.value)}};var B$d=new Set([1,3,20]),C$d=function(a){var b=this;this.idToComponent=new Map;this.updater=Atc(a,function(c){return b.resolveComponents(c)})};h=C$d.prototype;
h.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(g){return B$d.has(g.getType())})});a=[];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=l(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
h.remove=function(a){a=l(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$147:void 0},b=a.next()){c.component$jscomp$147=b.value;b=l(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 z$d;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=l(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};h.clear=function(){this.idToComponent.clear()};var D$d=function(){};D$d.prototype.append=function(){};D$d.prototype.remove=function(){};D$d.prototype.refresh=function(){};D$d.prototype.clear=function(){};var duc=function(a){this.peopleIntelligence=a};duc.prototype.create=function(){return this.peopleIntelligence?new C$d(this.peopleIntelligence):new D$d};var E$d=Object.freeze(new Map([[5,1]]));var F$d=function(){this.entryPoint_=0};F$d.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};F$d.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};F$d.prototype.serialize=function(){return[this.entryPoint_].toString()};var G$d=Object.freeze(new F$d);var H$d=function(){this.originator_=0};H$d.prototype.setOriginator=function(a){this.originator_=a;return this};H$d.prototype.getOriginator=function(){return this.originator_};var Dtc=function(a,b,c){var d=this;this.reporter=a.getReporter((new F$d).setPeoplekitEntryPoint(c));j$(b,function(e,f,g){d.select(e,g)},0);i$(b,function(e,f,g){d.deselect(e,g)},0);I$d(b,function(e,f,g,k){d.replace(e,k)},0);J$d(b,function(e,f){d.selectExplodingGroup(e,f)})};Dtc.prototype.display=function(a){this.reporter.reportDisplay(Btc(a.getTargetList()))};Dtc.prototype.select=function(a,b){a.isPlaceholder()||K$d(this,sv([a]),b)};
Dtc.prototype.selectExplodingGroup=function(a,b){K$d(this,[a.getLoggingToken()],b)};var K$d=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new H$d).setOriginator(E$d.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};h=Dtc.prototype;h.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(sv([a]))}};h.dismiss=function(a){this.reporter.reportDismiss(sv(a))};h.save=function(a){this.reporter.reportSave(sv(a))};
h.send=function(a){this.reporter.reportSend(sv(a))};h.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var L$d=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};L$d.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=Zs(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};L$d.prototype.cancel=function(){ra.clearTimeout(this.timerId);this.isBatchingInternal=!1};var fuc=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 L$d;j$(this.selectionsState,function(){g.notifySelectionChanged(!1)});i$(this.selectionsState,function(){g.notifySelectionChanged(!0)})};h=fuc.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();Ctc(this.interactions,a,b)};h.cancel=function(){this.autocomplete.detach()};
h.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
h.notifySelectionChanged=function(a){var b=this;this.selectionChangedAutoBatcher.call(function(){for(var c=b.selectionsState.asArray(),d=l(b.selectionChangedListeners),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.listener;f=f.listenToDeselections;a&&!f||e(c,a)}})};var cuc=function(a){a=a||{};a=a.classes;return Jv('<div peoplekit-id="'+Gv("nVhUhf")+'"'+(a?' class="'+Gv(a)+'"':"")+"></div>")};var M$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M$d,W);h=M$d.prototype;h.getClientId=function(){return Ii(this,1)};h.setClientId=function(a){return Vn(this,1,a)};h.getEntryPoint=function(){return Ii(this,5)};h.setEntryPoint=function(a){return Vn(this,5,a)};h.getSocialClient=function(){return X(this,b$,2)};h.setSocialClient=function(a){return Zi(this,b$,2,a)};h.setVersionName=function(a){return yj(this,3,a)};h.getBaselineCl=function(){return En(this,4)};
h.setBaselineCl=function(a){return Kn(this,4,a)};h.hasBaselineCl=function(){return Dn(this,4)};h.getBaselineClOrUndefined=function(){return tw(this,4)};h.getComponentFlow=function(){return Ii(this,7)};h.setComponentFlow=function(a){return Vn(this,7,a)};var o$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o$,W);var N$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N$d,W);N$d.prototype.getLabel=function(){return Ii(this,1)};N$d.prototype.setLabel=function(a){return Vn(this,1,a)};N$d.prototype.hasLabel=function(){return xm(this,1)};N$d.prototype.setCause=function(a){Vn(this,2,a)};var O$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O$d,W);h=O$d.prototype;h.getLabel=function(){return Ii(this,1)};h.setLabel=function(a){return Vn(this,1,a)};h.hasLabel=function(){return xm(this,1)};h.getValue=function(){return En(this,2,mb(1))};h.setValue=function(a){return Kn(this,2,a)};h.hasValue=function(){return Dn(this,2)};var p$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p$,W);p$.prototype.getLabel=function(){return xi(this,1)};p$.prototype.setLabel=function(a){return yj(this,1,a)};p$.prototype.hasLabel=function(){return wm(this,1)};p$.prototype.setCause=function(a){yj(this,2,a)};var q$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q$,W);q$.prototype.getLabel=function(){return Ii(this,1)};q$.prototype.setLabel=function(a){return Vn(this,1,a)};q$.prototype.hasLabel=function(){return xm(this,1)};q$.prototype.setLatencyUsec=function(a){Kn(this,2,a)};var P$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(P$d,W);P$d.prototype.getInterfaceType=function(){return Ii(this,1)};P$d.prototype.setInterfaceType=function(a){return Vn(this,1,a)};var Q$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q$d,W);h=Q$d.prototype;h.getCount=function(){return X(this,O$d,3)};h.getMutableCount=function(){return Ui(this,O$d,3)};h.setCount=function(a){return Zi(this,O$d,3,a)};h.getMutableLatency=function(){return Ui(this,q$,4)};h.setLatency=function(a){Zi(this,q$,4,a)};h.getError=function(){return X(this,p$,5)};h.setError=function(a){Zi(this,p$,5,a)};h.hasError=function(){return Ji(this,p$,5)};var R$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(R$d,W);h=R$d.prototype;h.getClientInterface=function(){return X(this,M$d,3)};h.setClientInterface=function(a){return Zi(this,M$d,3,a)};h.getMetadata=function(){return X(this,o$,4)};h.getMutableMetadata=function(){return Ui(this,o$,4)};h.setMetadata=function(a){Zi(this,o$,4,a)};h.hasMetadata=function(){return Ji(this,o$,4)};var Ftc=function(a,b){this.entryPoint=b;this.logContext=ixc(jxc("peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(834323501).setEnableClearcut(a.getEnableClearcut()),Esc.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};h=Ftc.prototype;h.getLogContext=function(){return this.logContext};
h.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return S$d(this,a,b)};h.createStatusMetric=function(){throw Error("Ag");};h.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(g9d(b,"total"));return S$d(this,a,b)};h.createErrorMetric=function(a,b){return S$d(this,a,b)};
var S$d=function(a,b,c){a=(new R$d).setClientInterface((new M$d).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return Zi(a,Q$d,2,c)};var T$d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};T$d.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var U$d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};U$d.prototype.report=function(){this.metrics_.error(this.state_)};var Jtc=function(a,b){this.metrics=a;this.userInterfaceType=b};Jtc.prototype.createCount=function(a,b){a=V$d(this,a,3);a.getMutableCount().setLabel(b);return new T$d(this.metrics,a)};Jtc.prototype.createError=function(a,b,c){a=V$d(this,a,5);Ui(a,N$d,8).setLabel(b).setCause(c);return new U$d(this.metrics,a)};var V$d=function(a,b,c){var d=new Q$d;c=Vn(d,1,c);a=(new P$d).setInterfaceType(a.userInterfaceType);b=Vn(a,2,b);return Zi(c,P$d,2,b)};var Itc=function(a){this.trackers=a},u$d=function(a){a=a.trackers;var b=V$d(a,2,4);b.getMutableLatency().setLabel(8);return new t9d(a.metrics,b)};Itc.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};Itc.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=l(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 wv=function(){this.selectionCallbacks=new r$;this.deselectionCallbacks=new r$;this.selectionReplacedCallbacks=new r$;this.selectionAttemptedCallbacks=new r$;this.explodingGroupSelectionCallbacks=new r$;this.selectionsState=[]};
wv.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 Ltc(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),Ltc(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),Ltc(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
wv.prototype.selectExplodingGroup=function(a,b){b=b===void 0?0:b;var c=this.explodingGroupSelectionCallbacks.asArray(),d;c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;try{e(a,b)}catch(f){d||(d=f)}}if(d)throw d;a=l(a.explodedMembers);for(d=a.next();!d.done;d=a.next())this.select(d.value)};wv.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),Ltc(a,d,b,this.deselectionCallbacks.asArray()))};
wv.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)},I$d=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},J$d=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};h=wv.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;Mtc(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 Ltc(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 W$d=function(a){UC.call(this,a)};Y(W$d,UC);var Ntc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ntc,W);h=Ntc.prototype;h.getClientId=function(){return Ii(this,1)};h.setClientId=function(a){return Vn(this,1,a)};h.getEntryPoint=function(){return Ii(this,2)};h.setEntryPoint=function(a){return Vn(this,2,a)};h.getApplication=function(){return Ii(this,3)};h.setApplication=function(a){return Vn(this,3,a)};h.getApplicationOrUndefined=function(){return Kp(this,3)};h.setVersionName=function(a){return yj(this,4,a)};
h.getBaselineCl=function(){return En(this,5)};h.setBaselineCl=function(a){return Kn(this,5,a)};h.hasBaselineCl=function(){return Dn(this,5)};h.getBaselineClOrUndefined=function(){return tw(this,5)};h.getMetadata=function(){return X(this,o$,6)};h.getMutableMetadata=function(){return Ui(this,o$,6)};h.setMetadata=function(a){Zi(this,o$,6,a)};h.hasMetadata=function(){return Ji(this,o$,6)};h.setSharekitEntryPoint=function(a){Vn(this,7,a)};h.getSharekitEntryPointOrUndefined=function(){return Kp(this,7)};var Ptc=function(a){this.context_=a};Ptc.prototype.createNewTag=function(a){return new W$d(a)};Ptc.prototype.addEventMetadata=function(a){iNc(a,this.context_.serialize())};var Otc=function(a,b,c,d,e,f,g,k,m,r,w,x,D){e=e===void 0?!1:e;m=m===void 0?!1:m;k||(b=new pD(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());XC.call(this,a,g||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:m},r,w,x);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;D&&this.clearcut_.setProductID(D)};Y(Otc,XC);
Otc.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};Otc.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};Otc.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var X$d=function(a){this.tracker=a};var Y$d=function(a,b){this.root=a;this.handler=b;this.eventHandler=new Gi(this)};
Y$d.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"){d=l(d.addedNodes);for(var e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&(e.querySelectorAll("[jsLog]").length||e.getAttribute("jsLog"))&&b.handler.tracker.logImpressions()}}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){b.handler.tracker.logEvent(c.type,
c.target);c.stopPropagation()}))};Y$d.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var Stc=function(a,b){this.root=a;this.tracker=b;this.observer=new Y$d(this.root,new X$d(this.tracker))};Stc.prototype.start=function(a){gNc(this.tracker,this.root);for(var b=l(a),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;YC(this.tracker,c,d)}this.observer.observe([].concat(q(a.keys())))};Stc.prototype.stop=function(a){this.observer.dispose();a&&(a=this.tracker,a.transport&&a.transport.flush());this.tracker.dispose()};var Z$d=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},$$d=function(a,b){a.displayNameWithOverrideApplied_=b;return a},aae=function(a,b){a.targetCount_=b;return a};Z$d.prototype.getTargetCount=function(){return this.targetCount_};Z$d.prototype.getQueryScope=function(){return this.queryScope_};Z$d.prototype.setQueryScope=function(a){this.queryScope_=a;return this};Z$d.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var bae=function(){this.code_=2;this.cacheState_=new l$;this.similarIds_=[]};h=bae.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 cae=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};cae.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};cae.prototype.getMetadata=function(){return this.metadata_};var lvc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};h=lvc.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 lvc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var dae=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new l$};h=dae.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 eae=function(a,b){this.results_=a;this.metadata_=b};eae.prototype.getResults=function(){return this.results_};eae.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 fae={create:function(a,b,c,d,e){e=e===void 0?new vv:e;return buc(a,b,c,d,new K6d,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return buc(a,b,c,d,new K6d,e)},createConfig:function(a){a=a===void 0?new Dyd(RW.apiEnv,new Eyd(RW.userProfileId)):a;return new U7d(a)}};var gae=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};h=gae.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 hae=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new Upc;this.chip=new gae;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};h=hae.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 iae=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new T7d(this.environmentConfig);this.chipsBar=new hae(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};h=iae.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 gvc=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return Jv('<div class="'+Gv("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+Gv("pQPeT")+'" tabindex="'+Gv(d?0:-1)+'" role="listbox" aria-multiselectable="'+Gv(b)+'" aria-orientation="'+Gv(c)+'" aria-label="'+Gv(a)+'"></div>')};var jae=function(a){X9.call(this,9,a);this.name="LookupSelectorError"};Y(jae,X9);var kae=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var Sv=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};Sv.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new jae("LookupSelector is disposed.")):new Promise(function(e){lae(d,a,b,c,e)})};
var lae=function(a,b,c,d,e){var f=[],g=[];d=d>=0?d:a.selectionsState.size();b=l(b);for(var k=b.next();!k.done;k=b.next()){var m=mae(k.value);k=m.lookupId;m=Lsc(k,m.displayNameOverride,m.forceDisplayNameOverride,m.loggingTokenOverride);a.selectionsState.select(m,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(E$d.get(c)||0);a.peopleStore.lookup(f,function(r){nae(a,r,g,c,e)},d)},nae=function(a,b,c,d,e){if(a.disposed)e([]);else{var f=b.getResults(),g=0,k=0;f=l(f.entries());for(var m=f.next();!m.done;m=
f.next()){var r=l(m.value);m=r.next().value;var w=r=r.next().value,x=a.selectionsState.get(m);x&&(r=x.getDisplayNameOverride(),w=Qsc(w,r,x.getForceDisplayNameOverride(),x.selectionToken().getLoggingToken()),a.selectionsState.replace(m,w,d),r&&g++,w.getDisplayNameWithOverrideApplied()&&k++)}g=k-g;g>0&&(k=a.health,f=k.createCount,m=6,m=m===void 0?0:m,d=kae.get(d)||m,f.call(k,53,d).increment(g));b=b.getMetadata();c.push.apply(c,q(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
Sv.prototype.deselect=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())(b=this.selectionsState.get(b.value))&&this.selectionsState.deselect(b)};Sv.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new jae("LookupSelector is disposed.")):new Promise(function(d){oae(c,a,b,d)})};
var oae=function(a,b,c,d){var e=[],f=[];b=l(b.entries());for(var g=b.next();!g.done;g=b.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=mae(k);k=m.lookupId;m=Lsc(k,m.displayNameOverride,m.forceDisplayNameOverride,m.loggingTokenOverride);a.selectionsState.replace(g,m)&&f.push(k)}a.peopleStore.lookup(f,function(r){nae(a,r,e,c,d)},a.lookupOptions)};Sv.prototype.dispose=function(){this.disposed=!0};
var mae=function(a){if(a instanceof K9d){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 Yuc=function(a,b,c,d,e,f){var g=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new Sv(b,d,e,f);this.onSelectionCallback=function(k,m,r){g.onSelect(r)};this.onSelectionReplacedCallback=function(k,m,r,w){w===9&&g.undoRedoStack.push()};this.onDeselectionCallback=function(k,m,r){g.onDeselect(r)};this.attach()};h=Yuc.prototype;
h.attach=function(){j$(this.selectionsState,this.onSelectionCallback);I$d(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 suc=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=suc.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("Qg");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("Qg");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 puc=function(a,b){this.root=a;this.options=b};h=puc.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 Lsc(zxc(this.options.id))};h.toggleSelection=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};var ouc=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+Gv(a.id)+'" peoplekit-id="'+Gv("UhZROb")+'" class="'+Gv("peoplekitComponentsContextmenuitemImplMenuItem")+" "+Gv(e)+'"'+(f?' aria-label="'+Gv(f)+'"':"")+'><div class="'+Gv("peoplekitComponentsContextmenuitemImplRow")+'">'+(M9(b)?'<img class="'+Gv("peoplekitComponentsContextmenuitemImplIcon")+" "+Gv("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+Gv(p7d(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+Gv("peoplekitComponentsContextmenuitemImplLabel")+" "+Gv("peoplekitComponentsContextmenuitemImplCenter")+'">'+Hv(c)+"</div>";d.length>0&&(a+='<div class="'+Gv("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+Gv("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=Hv(d.join("+"))+"</span></div>");return Jv(a+"</div></div>")};var xv=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 zv=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=Kqc(this.root,{});this.navigatable=ftc(c,new Y7d({shouldWrap:!0}));this.navigationEventHandler=itc({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=Vu(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()};
zv.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=quc(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(ev(e))}d.stopPropagation();pae(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
zv.prototype.show=function(){for(var a=l(this.beforeShowCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b();this.popup.show(this.anchor);this.navigationEventHandler.attach(this.root,this.navigatable);this.navigatable.next(0)};zv.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=l(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
zv.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(ev(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);pae(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var W7d=function(a,b){a.itemSelectedCallbacks.add(b)},X7d=function(a,b){a.afterHideCallbacks.add(b)},pae=function(a,b){a=l(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};zv.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 ruc=function(){return Jv('<div peoplekit-id="'+Gv("xl07Ob")+'" class="'+Gv("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var qae=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(qae,P9);h=qae.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=tuc(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(iuc(a));Ri(this.clientConfig.internal,4)&&rae(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(juc(a));var d;!this.chipConfig.getAllowDisplayNameEditing()||
((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append(kuc(a));lyd(this.getSelection().id())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(luc(a));jtc(this.getRoot())&&this.contextMenu.append(muc(a));W7d(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("dh`"+e.id);}t$(c)});X7d(this.contextMenu,function(){t$(c);b()});this.contextMenu.show();return function(){t$(c)}};
var rae=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();hyd.includes(a.getType())?(b=xv.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:b==null?void 0:b.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(b=xv.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)}}};
qae.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 sae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sae,W);var tae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tae,W);tae.prototype.getGroupIdHex=function(){return xi(this,1)};var uae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uae,W);uae.prototype.getGroupIdHex=function(){return xi(this,1)};var Ev=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ev,W);h=Ev.prototype;h.getGivenName=function(){return xi(this,1)};h.setGivenName=function(a){return Ym(this,1,a)};h.getFamilyName=function(){return xi(this,2)};h.setFamilyName=function(a){return Ym(this,2,a)};h.getEmailList=function(){return Vm(this,3,Oi())};h.setEmailList=function(a){return Zm(this,3,a)};h.addEmail=function(a){return Qq(this,3,a)};
h.removeEmail=function(a){return Ac(this,3,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return ix(this,3)};h.setEmail=function(a){return qx(this,3,a)};var vae=function(a){return Vm(a,4,Oi())},Auc=function(a,b){return Zm(a,4,b)};Ev.prototype.getPhone=function(){return ix(this,4)};Ev.prototype.setPhone=function(a){return qx(this,4,a)};var u$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u$,W);var xuc=function(a){var b=new u$;return Ym(b,1,a)};u$.prototype.getEdit=function(){return Ri(this,2)};u$.prototype.setEdit=function(a){return op(this,2,a)};u$.prototype.getIncludeTrash=function(){return Ri(this,3)};var Av=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Av,W);h=Av.prototype;h.getObfuscatedGaiaId=function(){return xi(this,1)};h.setObfuscatedGaiaId=function(a){return Ym(this,1,a)};h.getEdit=function(){return Ri(this,2)};h.setEdit=function(a){return op(this,2,a)};h.getIncludeTrash=function(){return Ri(this,3)};var v$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v$,W);v$.prototype.getEdit=function(){return Ri(this,2)};v$.prototype.setEdit=function(a){return op(this,2,a)};v$.prototype.getIncludeTrash=function(){return Ri(this,3)};var wae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wae,W);wae.prototype.getQuery=function(){return xi(this,1)};wae.prototype.setQuery=function(a){return Ym(this,1,a)};wae.prototype.clearQuery=function(){Zw(this,1)};var xae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xae,W);xae.prototype.getQuery=function(){return xi(this,1)};xae.prototype.setQuery=function(a){return Ym(this,1,a)};xae.prototype.clearQuery=function(){Zw(this,1)};var Dv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dv,W);var wuc=function(){var a=new Dv;return Ro(a,1,yae,"0")};Dv.prototype.getAuthUser=function(){return Oo(this,17,yae)};var zuc=function(a,b){return mp(a,3,w$,b)},yuc=function(a,b){return mp(a,9,w$,b)},vuc=function(a,b){return mp(a,10,w$,b)};Dv.prototype.getSearchParams=function(){return jm(this,wae,13,w$)};Dv.prototype.setSearchParams=function(a){mp(this,13,w$,a)};
var yae=[1,17],w$=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var uuc=function(a){switch(Mo(a,w$)){case 2:var b=jm(a,sae,2,w$);b=Ri(b,1);return x$(a,"",b?[["multisend_welcome","1"]]:null);case 3:return zae(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$(jm(a,uae,7,w$).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:b=jm(a,v$,8,w$);b=xi(b,1);b="/person/"+y$(b,"PersonByPersonIdParams.PersonId");var c=jm(a,v$,8,w$).getEdit()?[["edit","1"]]:jm(a,v$,8,w$).getIncludeTrash()?[["includeTrash",
"1"]]:[];return x$(a,b,c);case 9:return b="/p/"+y$(jm(a,Av,9,w$).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=jm(a,Av,9,w$).getEdit()?[["edit","1"]]:jm(a,Av,9,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 10:return b=jm(a,u$,10,w$),b=xi(b,1),b="/contact/"+y$(b,"PersonByContactIdParams.ContactIdHex"),c=jm(a,u$,10,w$).getEdit()?[["edit","1"]]:jm(a,u$,10,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 11:return b="/group/"+y$(jm(a,tae,11,
w$).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+"/",c=jm(a,tae,11,w$),c=xi(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$(jm(a,xae,15,w$).getQuery(),"TrashSearchParams.Query"));case 16:return x$(a,"/suggestions");default:throw Error("eh`"+Mo(a,w$));}},zae=function(a){var b=[],c=hu(jm(a,Ev,3,w$).getGivenName());ya(c)||
b.push(["givenname",c]);c=hu(jm(a,Ev,3,w$).getFamilyName());ya(c)||b.push(["familyname",c]);c=jm(a,Ev,3,w$).getEmailList().filter(function(d){return!ya(d)}).toString();ya(c)||b.push(["email",c]);c=vae(jm(a,Ev,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(hu(a)))throw Error("fh`"+b);return a},x$=function(a,b,c){b=b===void 0?"":b;var d=hu(a.getAuthUser()).trim(),e=d||ya(hu(Oo(a,1,yae)))||Oo(a,1,yae)==="0"?"":"/u/"+Oo(a,1,
yae),f=[];d&&f.push(["authuser",d]);(a=Ii(a,18))&&f.push(["bdSource",a]);c&&c.length>0&&f.push.apply(f,q(c));return(f.length>0?s$d({searchParams:f,pathname:e+b}):s$d({pathname:e+b})).href.substring(0,16384)};var Huc=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=Cuc;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=Vu(this);this.textField.focus();this.textField.select();Aae(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=Huc.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 Ov=function(a){var b=this;this.root=a;this.input=Su(this.root,"YPqjbf");this.invalidMessage=Su(this.root,"kyLNld");this.eventHandler=Vu(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);Aae(b)})};Ov.prototype.getRoot=function(){return this.root};Ov.prototype.focus=function(){this.input.focus()};Ov.prototype.select=function(){this.input.select()};Ov.prototype.getValue=function(){return this.input.value};
var Aae=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};Ov.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};Ov.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
Ov.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};Ov.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var Fuc=function(a){var b=a.label,c=a.initialValue;a=a.id;return Jv('<div class="'+Gv("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+Gv("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+Gv("peoplekitComponentsTextfieldImplLabel")+'" for="'+Gv(a)+'">'+Hv(b)+'</label><input peoplekit-id="'+Gv("YPqjbf")+'" id="'+Gv(a)+'" class="'+Gv("peoplekitComponentsTextfieldImplInput")+'" value="'+Gv(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+Gv("kyLNld")+
'" class="'+Gv("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var Guc=Mt.getInstance();var Bae=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=Vu(this);this.eventHandler.listen(this.deleteButton,"click",function(){return g.onDeleteButtonClick()})};h=Bae.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=Iuc(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=Qsc(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=Opc(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),xLc(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 Cae=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 Mv(Lv(),z7d(b,d,e,f,g,k,a,Mv(Lv(),f?B7d(f):A7d()),Mv(Lv(),C7d(c)),Mv(Lv(),D7d(b))))};Wu.addCoreFactory({type:2,factory:{create:function(a){var b=gqc(a.selection,a.chipConfig,a.chipCustomization),c=Ru(Cae,b);Tu(Su(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new Bae(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
Wu.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new qae(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
Wu.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("ch`"+c);}}dv({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var Eae=function(){return Kv(Mv(Kv(Lv(),'<div draggable="true" peoplekit-id="'+Gv("Svajxe")+'" class="'+Gv("peoplekitComponentsChipsetImplDraggableChip")+'">'),Dae()),"</div>")},Fae=function(){return Kv(Mv(Kv(Lv(),'<div draggable="false" peoplekit-id="'+Gv("shtr1e")+'" class="'+Gv("peoplekitComponentsChipsetImplNonDraggableChip")+'">'),Dae()),"</div>")},Gae=function(a){a=a.height;return Jv('<div peoplekit-id="'+Gv("tozrW")+'" class="'+Gv("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+
Gv(N9(a))+'px"></div>')},Hae=function(){return Jv('<div peoplekit-id="'+Gv("DOyw7")+'" class="'+Gv("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},Dae=function(){return Jv('<div peoplekit-id="'+Gv("ubaLBe")+'" class="'+Gv("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var Puc=function(a,b,c,d,e,f,g,k,m,r){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=m;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=Vu(this);this.lookupSelector=new Sv(a,f,g,r);this.dropMarker=Ru(Gae,{height:huc(this.appearanceConfig.getDensity())});this.attach()};
Puc.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=Iae(a,a.chipControllers.size);z$(a);Jae(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){Kae(a,b)});zrc(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
Puc.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=Vu(c);f.listen(b,"dragstart",function(g){Lae(d,a,g)});f.listen(b,"dragend",function(g){Mae(d,g)});f.listen(b,"dragover",function(g){d.container.getRoot().classList.add("isDraggedOver");g=g.event_;if(g.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var m=Su(g.currentTarget,"ubaLBe").clientWidth,r=Yu(d.container.getRoot());k=Iae(d,g.offsetX<m/2?r?k+1:k:r?k:k+1);z$(d);Jae(d,k);g.stopPropagation();
g.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(g){Nae(d,g)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};Puc.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var Lae=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 Ouc(f.getSelection())}):a.draggedLookupIds=[Ouc(b)];a.draggedChips=Ru(Hae);b=l(a.draggedLookupIds);for(d=b.next();!d.done;d=b.next())d=a.chipControllers.get(String(d.value.getId())),d.drag(),a.draggedChips.appendChild(d.getRoot().cloneNode(!0)),d.undrag(),d.disable();MC(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",Kuc(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";ktc(a.container.getRoot())},Mae=function(a,b){if(b.event_.dataTransfer.dropEffect==="move")a.lookupSelector.deselect(a.draggedLookupIds.map(function(d){return d.getId()})),a.navigatable.reset(),a.undoRedoStack.push();else{b=l(a.draggedLookupIds);for(var c=b.next();!c.done;c=b.next())a.chipControllers.get(String(c.value.getId())).enable()}z$(a);MC(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},Iae=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},Jae=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},Nae=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=Nuc(c);a.draggedLookupIds=[];for(var d=a.currentDropIndex,e=l(c),f=e.next();!f.done;f=e.next())f=a.selectionsState.indexOf(f.value.getId()),f>=0&&f<a.currentDropIndex&&d--;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);MC(a.draggedChipsContainer);a.chipDropCallback()},Kae=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=Nuc(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());MC(a.draggedChipsContainer);a.chipDropCallback()};
Puc.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var Oae=function(){};Oae.prototype.listen=function(){};Oae.prototype.unlisten=function(){};Oae.prototype.dispose=function(){};var Pae=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]))};Pae.prototype.handleEvent=function(a){var b=a.event,c=[];b.platformModifierKey&&c.push(512);b.altKey&&c.push(18);b.shiftKey&&c.push(16);c.push(b.keyCode);b=l(this.listeners.get(JSON.stringify(c))||[]);for(c=b.next();!c.done;c=b.next())c=c.value,c(a)};Pae.prototype.dispose=function(){this.listeners.clear()};var Qv=function(a,b,c,d,e,f,g,k,m,r,w){var x=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=g;this.clientConfig=k;this.callbacks=m;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=ftc(c.getRoot(),src(new Y7d({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=Vu(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new Pae;Qae(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?Quc(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,r,this.callbacks.chipDrop,this.appearanceConfig,w):new Oae;this.eventHandler.listen(c.getRoot(),"keyup",function(D){D.keyCode!==9||D.target!==x.container.getRoot()||x.navigatable.getSpotlitItem()||(D.shiftKey?x.navigatable.prev(0):x.navigatable.next(0))});this.onSelectionCallback=function(D,H){x.insert(D,H)};this.onDeselectionCallback=function(D){x.remove(D.id())};
this.onSelectionReplacedCallback=function(D,H,J){x.replace(D,H,J)};j$(this.selectionsState,this.onSelectionCallback);i$(this.selectionsState,this.onDeselectionCallback);I$d(this.selectionsState,this.onSelectionReplacedCallback)},Qae=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(),Rae(a))});b=function(c){if(a.chipConfig.getAllowChipDeletion()){c.stopPropagation();c.preventDefault();c=l(a.navigatable.getActiveItems());for(var d=
c.next();!d.done;d=c.next())a.selectionsState.deselect(d.value.getSelection(),7);a.undoRedoStack.push()}};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)})};Qv.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||Sae(this,a,b)};
Qv.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()}};Qv.prototype.replace=function(a,b,c){this.remove(c);Sae(this,a,b)};
var Sae=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?Ru(Eae):Ru(Fae);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=Juc(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var m=b.id();m=a.chips.get(String(m));a.container.getRoot().focus();a.navigatable.goToItem(m,0)},spotlight:function(){var m=b.id();m=a.chips.get(String(m));a.container.getRoot().focus();
a.navigatable.goToItem(m,2)},copyMethod:function(m){a.copyMethod(m)},copyContactMethod:function(m){a.copyContactMethod(m)},cut:function(m){a.cut(m,4)},editContactMethod:function(){Rae(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,g,Yu(a.container.getRoot()));f=Vu(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(m){a.callbacks.chipClick(k,m)});f.listen(e,"dblclick",function(m){a.callbacks.chipContextMenu(k,m)});a.chips.set(d,k);a.chipEventHandlers.set(d,f);a.navigatable.insert(c,
[k],!!a.navigatable.getSpotlitItem());a.intelligentCollection.append([k]);a.chipConfig.getAllowChipDisambiguation()&&Promise.resolve().then(function(){a.chips.get(d)===k&&a.peopleStore.disambiguate(b.result().getPrimaryTarget(),$$d(aae(new Z$d,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(m){k.setDisambiguationLabel(m.getDisambiguationLabel())})})};Qv.prototype.getNavigatable=function(){return this.navigatable};
Qv.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};Qv.prototype.activateAllChips=function(){this.navigatable.activateAll()};
Qv.prototype.dispose=function(){this.eventHandler.removeAll();for(var a=l(this.chips.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.dragonDropHandler.dispose();this.keyboardShortcutHandler.dispose()};
var Tae=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};Qv.prototype.copyMethod=function(a){a=Tae(this,a);Uuc(a,this.container.getRoot())};Qv.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&Tuc(a.result().getDisplayValue(),this.container.getRoot())};
Qv.prototype.cut=function(a,b){a=Tae(this,a);Uuc(a,this.container.getRoot());a=l(a);for(var c=a.next();!c.done;c=a.next())this.selectionsState.deselect(c.value,b);this.undoRedoStack.push()};var Rae=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())};
Qv.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var Vuc=function(a,b){this.delegate=a;this.health=b};h=Vuc.prototype;h.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,qv(c)),c;}};h.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,qv(b)),b;}};h.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,qv(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,qv(a)),a;}};var Xuc=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=Vu(this)};h=Xuc.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 Rv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Rv(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=Uae(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,Uae(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 Uae=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};Xuc.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var Vae=function(){};Vae.prototype.call=function(a){a()};Vae.prototype.cancel=function(){};var avc=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"),Wae=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),Xae=Object.freeze({startIndex:0,length:0,value:""});var fvc=function(a){a=a||{};a=a.max_height;var b=Lv(),c;a&&a>0?c=Kv(Mv(Kv(Lv(),'<div class="'+Gv("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+Gv(N9(a))+'px">'),w$d(Jv('<div peoplekit-id="'+Gv("kE8AEc")+'"></div>'))),"</div>"):c=Jv('<div class="'+Gv("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+Gv("kE8AEc")+'"></div></div>');return Mv(b,c)},hvc=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;
return Jv('<div class="'+Gv("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+Gv(N9(f))+'px" role="presentation"><input id="'+Gv(b)+'" class="'+Gv("peoplekitComponentsSearchbarImplSearchInput")+" "+Gv(a)+'" peoplekit-id="'+Gv("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+Gv(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+Gv(d)+'" size="'+Gv(d.length)+'" type="text" role="combobox"'+
(e?" autofocus":"")+'><span class="'+Gv("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+Gv(a)+'" peoplekit-id="'+Gv("nl4wje")+'"></span></div>')};var Yae=[[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]],Tv=function(a,b,c,d,e,f,g,k,m,r){var w=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=m;this.prevQueryValue="";this.isDisposed=
!1;this.pasteLookupNotFoundListeners=[];this.manualLookupNotFoundListeners=[];this.inputElement=Su(c,"BbVjBd");this.inputWidthMeasurer=Su(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new L$d;this.autocompleteBatcher=new Vae;this.lookupSelector=new Sv(this.selectionsState,g,k,r);this.eventHandler=Vu(this);this.keyboardShortcutHandler=new Pae;this.enterKeyDownListeners=[];this.query=Xae;this.onSelectionCallback=function(){w.onSelect()};this.onSelectionAttemptedCallback=
function(){w.onSelectAttempt()};this.onDeselectionCallback=function(){w.onDeselect()};this.attach();B$(this);Zae(this)};h=Tv.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 $ae=function(a,b){a=l(a.pasteLookupNotFoundListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};Tv.prototype.search=function(){C$(this,!1,!0)};
Tv.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 Rv(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){abe(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()});bbe(this)};
Tv.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=cvc(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(){})})},dbe=function(a){var b=a.inputElement.value;a.inputElement.value="";cbe(a);var c=Fv(b);c=Luc(Vv(c.address)).setDisplayName(c.getName());a.lookupSelector.select([c],
13).then(function(d){if(!a.isDisposed){if(d.length){a.inputElement.value=b;d={notFoundIds:d};for(var e=l(a.manualLookupNotFoundListeners),f=e.next();!f.done;f=e.next())f=f.value,f(d)}a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length);B$(a);C$(a)}});a.undoRedoStack.push()};Tv.prototype.onInput=function(){B$(this);C$(this)};
var ebe=function(a,b){if(gv)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},abe=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=ebe(a,b))==null?void 0:e.getData("text"))||"";e=bvc(c);var f=new Map;e=e.map(function(g){var k=Fv(g.value),m=k.address?k.getName():"";k=k.address||k.getName();k=k.includes("@")?Vv(k):wvc(k);m=Luc(k).setDisplayName(m);
f.set(String(k),g);return m});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(g){a.isDisposed||(a.inputElement.value=g.map(function(k){var m;return((m=f.get(String(k)))==null?void 0:m.value.trim())||""}).join(", "),g.length&&$ae(a,{notFoundIds:g}),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),B$(a),C$(a))});a.undoRedoStack.push()}};Tv.prototype.onInputFocus=function(){C$(this)};Tv.prototype.onInputBlur=function(){cbe(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"})},bbe=function(a){var b=Yu(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:Fv(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(dbe(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=l(a.enterKeyDownListeners);for(var g=f.next();!g.done;g=f.next())g=g.value,g(e);d.preventDefault();d.stopPropagation()}});b=l(Yae);for(c=b.next();!c.done;c=b.next())A$(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
Tv.prototype.onKeyUp=function(a){a.keyCode!==37&&a.keyCode!==39||C$(this)};var cbe=function(a){a.autocompleteBatcher.cancel();a.autocomplete.canHide()&&(a.autocomplete.detach(),a.prevQueryValue="")};
Tv.prototype.onSelect=function(){fbe(this);Zae(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(Wae,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
C$(this,!1,!1);B$(this)}};Tv.prototype.onSelectAttempt=function(){this.onSelect()};Tv.prototype.onDeselect=function(){this.autocomplete.isShown()&&C$(this,!1,!1);fbe(this);Zae(this);B$(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var fbe=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))},Zae=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var evc=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=Mca(tm(c.internal,3)))!=null?d:a;this.push()};evc.prototype.push=function(){var a=this.selectionsState.asArray().map(Ouc),b=!1;this.undoStack.length!==0&&dvc(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};
evc.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};evc.prototype.clear=function(){this.undoStack.length=0;this.push()};
evc.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 ivc=Mt.getInstance();var mvc=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 L$d;j$(this.selectionsState,function(){f.notifySelectionChanged()});i$(this.selectionsState,function(){f.notifySelectionChanged()});I$d(this.selectionsState,function(){f.notifySelectionChanged()})};h=mvc.prototype;h.select=function(a){return this.searchBar.select(a)};h.deselect=function(a){this.searchBar.deselect(a)};
h.replace=function(a){return this.searchBar.replace(a)};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};h.notifySelectionChanged=function(){var a=this;this.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=l(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};h.focus=function(){this.searchBar.focus()};h.report=function(a){var b=this.selectionsState.asArray();Ctc(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 kvc=function(a){a=a||{};a=a.classes;return Jv('<div peoplekit-id="'+Gv("P3anae")+'"'+(a?' class="'+Gv(a)+'"':"")+"></div>")};var gbe={create:function(a,b,c,d){d=d===void 0?new vv:d;return pvc(a,b,c,new K6d,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return pvc(a,b,c,new K6d,d)},createConfig:function(a){a=a===void 0?new Dyd(RW.apiEnv,new Eyd(RW.userProfileId)):a;return new iae(a)}};var hbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hbe,W);h=hbe.prototype;h.getEnableClearcut=function(){return Ri(this,1)};h.setEnableClearcut=function(a){return aj(this,1,a)};h.getSocialApplication=function(){return Ii(this,2)};h.getSocialApplicationOrUndefined=function(){return Kp(this,2)};h.setEventSources=function(a){Yw(this,5,ww,a)};var D$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D$,W);D$.prototype.getApplication=function(){return Ii(this,1)};D$.prototype.setApplication=function(a){return Vn(this,1,a)};D$.prototype.getApplicationOrUndefined=function(){return Kp(this,1)};D$.prototype.getIsEnabled=function(){return Ri(this,2)};var ibe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ibe,W);h=ibe.prototype;h.getSuggestMaxResults=function(){return Um(this,1,10)};h.getSearchMaxResults=function(){return Um(this,2,10)};h.getCacheStaleSec=function(){return rm(this,4,86400)};h.getCacheExpiredSec=function(){return rm(this,5,1209600)};h.getRpcTimeoutSec=function(){return rm(this,12,60)};h.getSuggestFormat=function(){return Ii(this,15,1)};h.getSearchFormat=function(){return Ii(this,16,1)};
h.getEnablePersonalizedQueryMatching=function(){return Ri(this,35)};var E$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E$,W);E$.prototype.getApiKey=function(){return xi(this,1)};E$.prototype.setApiKey=function(a){return yj(this,1,a)};var F$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F$,W);F$.prototype.getClientId=function(){return xi(this,1,"CLIENT_UNSPECIFIED")};F$.prototype.setClientId=function(a){return yj(this,1,a)};F$.prototype.setAffinityType=function(a){return yj(this,4,a)};var jbe=function(a){return Ii(a,5)};F$.prototype.setPhoneCanonicalizationInference=function(a){return Vn(this,19,a)};F$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Kp(this,19)};var kbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kbe,W);h=kbe.prototype;h.getClient=function(){return X(this,ibe,1)};h.setClient=function(a){return Zi(this,ibe,1,a)};h.hasClient=function(){return Ji(this,ibe,1)};h.getGapi=function(){return X(this,E$,2)};h.getPeopleApi=function(){return X(this,F$,3)};h.getClearcut=function(){return X(this,hbe,4)};h.setClearcut=function(a){Zi(this,hbe,4,a)};h.hasClearcut=function(){return Ji(this,hbe,4)};
h.getExperiments=function(){return X(this,D$,5)};h.setExperiments=function(a){return Zi(this,D$,5,a)};h.hasExperiments=function(){return Ji(this,D$,5)};var lbe=vta(kbe);var mbe;var nbe=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new Myd;a=this.getPeopleApi();Ln(a,7,Oi()).length||rx(a,7,[2,8,1,7,10,11]);Vm(a,8,Oi()).length||Zm(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=l(Vm(a,8,Oi()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":Qq(a,8,c+".metadata.verified")}};
nbe.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new ibe);return this.delegate_.getClient()};nbe.prototype.getGapi=function(){if(!Ji(this.delegate_,E$,2)){var a=this.delegate_,b=new E$;Zi(a,E$,2,b)}return this.delegate_.getGapi()};nbe.prototype.getPeopleApi=function(){if(!Ji(this.delegate_,F$,3)){var a=this.delegate_,b=new F$;Zi(a,F$,3,b)}return this.delegate_.getPeopleApi()};
nbe.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new hbe);return this.delegate_.getClearcut()};var obe=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new D$);return a.delegate_.getExperiments()};nbe.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var pbe=function(a){a=a.getClient();return Um(a,6,500)?Math.min(Math.round(Um(a,6,500)/4),500):500};var qbe;var vw=null;var rbe=function(){};rbe.prototype.processItem=function(){};var sbe=new rbe;var rvc=new Set([10,11]);var tbe=function(a){this.interleaveGroups_=Ri(a,33)},ube=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=svc(d,e,f,!0);break a;default:d=tvc(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 Vn(this,1,a)};G$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Kp(this,1)};var H$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H$,W);H$.prototype.setDevice=function(a){return Vn(this,1,a)};var vbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vbe,W);var wbe=function(){var a=new vbe;return Vn(a,1,1)},xbe=function(a,b){return yj(a,2,b)};var ybe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ybe,W);h=ybe.prototype;h.setAffinityType=function(a){return Vn(this,1,a)};h.getQuery=function(){return Ml(this,2)};h.setQuery=function(a){return yj(this,2,a)};h.clearQuery=function(){Zw(this,2)};h.hasQuery=function(){return wm(this,2)};h.setClientInformation=function(a){Zi(this,H$,3,a)};h.setMaxResults=function(a){return Tn(this,4,a)};h.setFormattingOptions=function(a){Zi(this,G$,5,a)};
h.setDelegation=function(a){Zi(this,vbe,6,a)};var zbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zbe,W);var Abe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Abe,W);h=Abe.prototype;h.getAffinityVersion=function(){return kx(this,1)};h.setAffinityVersion=function(a){Tn(this,1,a)};h.getAffinityVersionOrUndefined=function(){return fx(this,1)};h.setFeature=function(a){return Yw(this,3,zbe,a)};h.setAffinityType=function(a){return yj(this,4,a)};var Ovc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(Ovc,W);var I$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I$,W);I$.prototype.getValue=function(){return Ml(this,1)};I$.prototype.getValue_legacyNullable=function(){return Ml(this,1)};I$.prototype.setValue=function(a){return yj(this,1,a)};I$.prototype.hasValue=function(){return wm(this,1)};var Bbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bbe,W);h=Bbe.prototype;h.getLoggingId=function(){return tm(this,1,void 0,kw,vc)};h.setLoggingId=function(a){Ur(this,1,gb(a,!1,!0))};h.getValue=function(){return mx(this,2)};h.getValue_legacyNullable=function(){return mx(this,2)};h.setValue=function(a){return nx(this,2,a)};h.hasValue=function(){return tm(this,2,void 0,void 0,xb)!=null};var Cbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cbe,W);h=Cbe.prototype;h.getValue=function(){return Ml(this,1)};h.getValue_legacyNullable=function(){return Ml(this,1)};h.setValue=function(a){return yj(this,1,a)};h.hasValue=function(){return wm(this,1)};h.getGivenName=function(){return Ml(this,2)};h.setGivenName=function(a){return yj(this,2,a)};h.hasGivenName=function(){return wm(this,2)};h.getFamilyName=function(){return Ml(this,3)};
h.setFamilyName=function(a){return yj(this,3,a)};h.hasFamilyName=function(){return wm(this,3)};h.getSourceType=function(){return iw(this,4)};h.setSourceType=function(a){return Vn(this,4,a)};var Dbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dbe,W);h=Dbe.prototype;h.getUrl=function(){return Ml(this,1)};h.setUrl=function(a){return yj(this,1,a)};h.hasUrl=function(){return wm(this,1)};h.getType=function(){return iw(this,2)};h.setType=function(a){return Vn(this,2,a)};h.hasType=function(){return xm(this,2)};h.getGlyph=function(){return Ml(this,3)};h.setGlyph=function(a){return yj(this,3,a)};var J$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J$,W);h=J$.prototype;h.getPhoto=function(){return X(this,Dbe,1)};h.setPhoto=function(a){Zi(this,Dbe,1,a)};h.hasPhoto=function(){return Ji(this,Dbe,1)};h.getName=function(){return X(this,Cbe,2)};h.setName=function(a){return Zi(this,Cbe,2,a)};h.hasName=function(){return Ji(this,Cbe,2)};h.getNameOrUndefined=function(){return dAc(this,Cbe,2)};h.getAffinity=function(){return X(this,Bbe,3)};
h.hasAffinity=function(){return Ji(this,Bbe,3)};var K$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K$,W);K$.prototype.getStatus=function(){return iw(this,2)};K$.prototype.setStatus=function(a){return Vn(this,2,a)};K$.prototype.hasStatus=function(){return xm(this,2)};var Ebe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ebe,W);var awc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(awc,W);awc.prototype.getState=function(){return iw(this,2)};awc.prototype.setState=function(a){return Vn(this,2,a)};var Fbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fbe,W);Fbe.prototype.getApplication=function(){return Ii(this,1)};Fbe.prototype.setApplication=function(a){return Vn(this,1,a)};Fbe.prototype.getApplicationOrUndefined=function(){return Kp(this,1)};var L$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L$,W);L$.prototype.getValue=function(){return Ml(this,1)};L$.prototype.getValue_legacyNullable=function(){return Ml(this,1)};L$.prototype.setValue=function(a){return yj(this,1,a)};L$.prototype.hasValue=function(){return wm(this,1)};var xvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xvc,W);h=xvc.prototype;h.getProfileId=function(){return Ml(this,1)};h.getProfileId_legacyNullable=function(){return Ml(this,1)};h.setProfileId=function(a){return yj(this,1,a)};h.hasProfileId=function(){return wm(this,1)};h.getEmail=function(){return nw(this,2,Yv)};h.getEmail_legacyNullable=function(){return nw(this,2,Yv)};h.setEmail=function(a){return Ro(this,2,Yv,a)};
h.hasEmail=function(){return wr(this,2,Yv)!=null};h.getPhone=function(){return nw(this,3,Yv)};h.getPhone_legacyNullable=function(){return nw(this,3,Yv)};h.setPhone=function(a){return Ro(this,3,Yv,a)};h.getClientData=function(){return Ml(this,4)};h.hasClientData=function(){return wm(this,4)};var Yv=[2,3];var Gbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gbe,W);h=Gbe.prototype;h.getDisplayValue=function(){return Ml(this,1)};h.getCanonicalValue=function(){return Ml(this,2)};h.setCanonicalValue=function(a){return yj(this,2,a)};h.hasCanonicalValue=function(){return wm(this,2)};h.getOriginalValue=function(){return Ml(this,3)};var Hbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hbe,W);var Ibe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ibe,W);h=Ibe.prototype;h.getStatus=function(){return iw(this,1)};h.setStatus=function(a){return Vn(this,1,a)};h.hasStatus=function(){return xm(this,1)};h.getClientData=function(){return Ml(this,2)};h.hasClientData=function(){return wm(this,2)};var Avc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Avc,W);h=Avc.prototype;h.getIdCase=function(){return Mo(this,M$)};h.getProfileId=function(){return nw(this,1,M$)};h.getProfileId_legacyNullable=function(){return nw(this,1,M$)};h.setProfileId=function(a){return Ro(this,1,M$,a)};h.hasProfileId=function(){return wr(this,1,M$)!=null};h.getContactId=function(){return nw(this,2,M$)};h.setContactId=function(a){return Ro(this,2,M$,a)};var M$=[1,2];var Jbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jbe,W);h=Jbe.prototype;h.getValueCase=function(){return Mo(this,Wv)};h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return Ji(this,J$,1)};h.getEmail=function(){return jm(this,L$,2,Wv)};h.setEmail=function(a){return mp(this,2,Wv,a)};h.hasEmail=function(){return cj(this,L$,2,Wv)};h.getPhone=function(){return jm(this,Gbe,3,Wv)};h.setPhone=function(a){return mp(this,3,Wv,a)};
h.getIsSelf=function(){return aw(this,6)};h.getTypeLabel=function(){return Ml(this,10)};h.getDisambiguationLabel=function(){return X(this,I$,14)};h.setDisambiguationLabel=function(a){Zi(this,I$,14,a)};var Wv=[2,3,4];var Kbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kbe,W);h=Kbe.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return Ji(this,J$,1)};h.getMembersList=function(){return Ni(this,Jbe,2,Oi())};h.setMembersList=function(a){return $i(this,2,a)};h.getLabelId=function(){return Ml(this,3)};var $v=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,5)};Y($v,W);$v.prototype.getIsPlaceholder=function(){return Ri(this,2)};$v.prototype.setIsPlaceholder=function(a){aj(this,2,a)};$v.prototype.getContactId=function(){return En(this,4)};$v.prototype.setContactId=function(a){return Kn(this,4,a)};var Lbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lbe,W);Lbe.prototype.getAffinity=function(){return X(this,Bbe,2)};Lbe.prototype.hasAffinity=function(){return Ji(this,Bbe,2)};var jwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jwc,W);jwc.prototype.getIdCase=function(){return Mo(this,kwc)};var kwc=[1,2];var Mbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mbe,W);h=Mbe.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return Ji(this,J$,1)};h.getMembersList=function(){return Ni(this,Lbe,2,Oi())};h.setMembersList=function(a){return $i(this,2,a)};h.getGroupId=function(){return Ml(this,4)};h.setGroupId=function(a){yj(this,4,a)};h.hasGroupId=function(){return wm(this,4)};var N$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N$,W);N$.prototype.getDataCase=function(){return Mo(this,Nbe)};N$.prototype.clearData=function(){return $w(this,Nbe)};N$.prototype.getGroup=function(){return jm(this,Mbe,2,Nbe)};N$.prototype.setGroup=function(a){mp(this,2,Nbe,a)};var Nbe=[1,2,3];var Obe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Obe,W);var Pbe=new SA("/peoplestack.PeopleStackAutocompleteService/Autocomplete",ybe,Obe,function(a){return a.serialize()},yi(Obe));var Qbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qbe,W);h=Qbe.prototype;h.setAffinityType=function(a){return Vn(this,1,a)};h.setClientInformation=function(a){Zi(this,H$,2,a)};h.getName=function(){return Ml(this,3)};h.setName=function(a){return yj(this,3,a)};h.hasName=function(){return wm(this,3)};h.getNameOrUndefined=function(){return gx(this,3)};var Rbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rbe,W);Rbe.prototype.getGroup=function(){return X(this,Mbe,1)};Rbe.prototype.setGroup=function(a){Zi(this,Mbe,1,a)};var Sbe=new SA("/peoplestack.PeopleStackAutocompleteService/CreateGroup",Qbe,Rbe,function(a){return a.serialize()},yi(Rbe));var gw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gw,W);h=gw.prototype;h.getIdCase=function(){return Mo(this,hw)};h.getEmail=function(){return nw(this,1,hw)};h.getEmail_legacyNullable=function(){return nw(this,1,hw)};h.setEmail=function(a){return Ro(this,1,hw,a)};h.hasEmail=function(){return wr(this,1,hw)!=null};h.getPhone=function(){return nw(this,2,hw)};h.getPhone_legacyNullable=function(){return nw(this,2,hw)};h.setPhone=function(a){return Ro(this,2,hw,a)};
h.getProfileId=function(){return nw(this,3,hw)};h.getProfileId_legacyNullable=function(){return nw(this,3,hw)};h.setProfileId=function(a){return Ro(this,3,hw,a)};h.hasProfileId=function(){return wr(this,3,hw)!=null};h.getContactId=function(){return nw(this,5,hw)};h.setContactId=function(a){return Ro(this,5,hw,a)};var hw=[1,2,3,4,5];var O$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O$,W);O$.prototype.setAffinityType=function(a){return Vn(this,1,a)};O$.prototype.setClientInformation=function(a){Zi(this,H$,2,a)};var Tbe=function(a,b){$i(a,3,b)};O$.prototype.setIds=function(a){return Yw(this,3,gw,a)};O$.prototype.setFormattingOptions=function(a){Zi(this,G$,4,a)};O$.prototype.setDelegation=function(a){Zi(this,vbe,5,a)};var Ube=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ube,W);Ube.prototype.clearResult=function(){return $w(this,Vbe)};Ube.prototype.getId=function(){return X(this,gw,1)};Ube.prototype.setId=function(a){return Zi(this,gw,1,a)};var Vbe=[2,3];var Wbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wbe,W);var Xbe=new SA("/peoplestack.PeopleStackAutocompleteService/Lookup",O$,Wbe,function(a){return a.serialize()},yi(Wbe));var Ybe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ybe,W);Ybe.prototype.setAffinityType=function(a){return Vn(this,1,a)};Ybe.prototype.setClientInformation=function(a){Zi(this,H$,2,a)};Ybe.prototype.setDelegation=function(a){Zi(this,vbe,3,a)};var Zbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zbe,W);var $be=new SA("/peoplestack.PeopleStackAutocompleteService/Warmup",Ybe,Zbe,function(a){return a.serialize()},yi(Zbe));var ace=function(a){var b={unaryInterceptors:[new T8d]};b=b||{};b.format="jspb";this.client_=new fJc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};ace.prototype.autocomplete=function(a,b,c){return HB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},Pbe,c)};ace.prototype.lookup=function(a,b,c){return HB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Xbe,c)};
ace.prototype.createGroup=function(a,b,c){return HB(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},Sbe,c)};var sw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sw,W);h=sw.prototype;h.getTimestamp=function(){return En(this,1)};h.setTimestamp=function(a){return Kn(this,1,a)};h.hasTimestamp=function(){return Dn(this,1)};h.getAffinityVersion=function(){return Um(this,2)};h.setAffinityVersion=function(a){Tn(this,2,a)};h.getAffinityVersionOrUndefined=function(){return fx(this,2)};h.getNextPageToken=function(){return xi(this,4)};var P$=function(a){return aj(a,5,!0)};
sw.prototype.getCode=function(){return Ii(this,6)};sw.prototype.setCode=function(a){return Vn(this,6,a)};sw.prototype.getCodeOrUndefined=function(){return Kp(this,6)};var Kvc=new MA(417869898,bw,$v);var Pvc=new MA(417866180,bw,Ovc);var bce=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},Ivc=function(a){if(!a)return 0;a=Array.from(a).map(bce);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var uvc=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 cce=function(a){this.leanResponseProcessorConfig_=a},dce=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=Nvc(b),g=[],k=l(Ni(b,Jbe,1,Oi())),m=k.next();!m.done;m=k.next()){m=m.value;var r=zvc(m);if(r.equals(Zv)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;r=Jvc(m);if(!r)continue;r=zxc(r)}g.push(String(r));var w=void 0,x=void 0;r={id:r,containerIds:Dvc(m),coalescedKeys:g,isMe:!!m.getIsSelf(),dataSource:Evc(b,m),provenance:c,isPrimary:Hvc((w=m.getDisplayInfo())!=null?w:null),
itemAffinity:Gvc(b),fieldAffinity:Fvc((x=m.getDisplayInfo())!=null?x:null),contactMethod:m,person:b};f&&(r.resultExtendedData=f);if(w=Qvc(m))r.targetExtendedData=w;m=Ni(m,Hbe,15,Oi());m.length>0&&(r.preferredSearchTerms=m.map(function(D){return Ml(D,1)}));e.push(r)}e.length&&e.every(function(D){return!D.isPrimary})&&(e[0].isPrimary=!0);return e},ece=function(a,b,c){var d=yxc(vvc(Ml(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(m){return dce(a,m,8,!0)}),f=e.filter(function(m){return m&&
m.length}).map(function(m){return String(m[0].id)}),g,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:(g=fx(b,3))!=null?g:void 0,provenance:c,isPrimary:!0,itemAffinity:Fvc((k=b.getDisplayInfo())!=null?k:null),fieldAffinity:-Infinity,group:b}];b=l(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,q(c.value));return d},fce=function(a,b){var c=myd(a.getLabelId()||""),d=a.getMembersList().map(function(g){if(g.hasEmail()&&g.getEmail().getValue()){var k,m;var r={id:Vv(g.getEmail().getValue()),
containerIds:Dvc(g),contactMethod:g,provenance:8,isMe:!1,dataSource:1,isPrimary:Hvc((k=g.getDisplayInfo())!=null?k:null),itemAffinity:-Infinity,fieldAffinity:Fvc((m=g.getDisplayInfo())!=null?m:null)};if(g=Qvc(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:Fvc((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,
isMe:!1,contactLabel:a}].concat(q(d))},gce=function(a,b,c){switch(b.getDataCase()){case 1:return dce(a,jm(b,Lbe,1,Nbe),c);case 2:return ece(a,b.getGroup(),c);case 3:return fce(jm(b,Kbe,3,Nbe),c);default:return[]}},hce=function(a,b,c){return Ni(b,N$,1,Oi()).flatMap(function(d){return gce(a,d,c)})};var uw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uw,W);uw.prototype.getSessionState=function(){return X(this,MW,1)};uw.prototype.setSessionState=function(a){return Zi(this,MW,1,a)};uw.prototype.hasSessionState=function(){return Ji(this,MW,1)};var ew=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ew,W);ew.prototype.hasNoChanges=function(){return Qi(this,12)};var dw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dw,W);dw.prototype.getEventType=function(){return Ii(this,1)};dw.prototype.setEventType=function(a){return Vn(this,1,a)};var fw=function(a,b){return Vn(a,2,b)},Rvc=function(a,b){return Vn(a,3,b)};h=dw.prototype;h.getErrorType=function(){return Ii(this,6)};h.setErrorType=function(a){return Vn(this,6,a)};h.hasErrorType=function(){return xm(this,6)};h.getIdType=function(){return Ii(this,8)};
h.setIdType=function(a){Vn(this,8,a)};h.getResultIndex=function(){return Um(this,9)};h.setResultIndex=function(a){Tn(this,9,a)};h.getToken=function(){return xi(this,10)};h.setToken=function(a){yj(this,10,a)};h.hasToken=function(){return wm(this,10)};h.getCacheState=function(){return X(this,l$,11)};h.setCacheState=function(a){return Zi(this,l$,11,a)};h.hasCacheState=function(){return Ji(this,l$,11)};h.getQueryLength=function(){return Um(this,14)};h.setQueryLength=function(a){return Tn(this,14,a)};
h.hasQueryLength=function(){return zn(this,14)};h.getItemCount=function(){return Um(this,15)};h.setItemCount=function(a){return Tn(this,15,a)};h.hasItemCount=function(){return zn(this,15)};h.getLookupInfo=function(){return X(this,ew,16)};h.getMutableLookupInfo=function(){return Ui(this,ew,16)};h.setLookupInfo=function(a){return Zi(this,ew,16,a)};h.hasLookupInfo=function(){return Ji(this,ew,16)};h.getQueryScope=function(){return Ii(this,17)};h.setQueryScope=function(a){return Vn(this,17,a)};
h.hasQueryScope=function(){return xm(this,17)};var Tvc=new Map([[0,1],[1,2],[2,3],[3,4]]);var ice=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ice,W);h=ice.prototype;h.getLabel=function(){return iw(this,1)};h.setLabel=function(a){return Vn(this,1,a)};h.hasLabel=function(){return xm(this,1)};h.getItemCount=function(){return kx(this,2)};h.setItemCount=function(a){return Tn(this,2,a)};h.hasItemCount=function(){return zn(this,2)};h.getLookupInfo=function(){return X(this,ew,3)};h.getMutableLookupInfo=function(){return Ui(this,ew,3)};
h.setLookupInfo=function(a){return Zi(this,ew,3,a)};h.hasLookupInfo=function(){return Ji(this,ew,3)};h.getQueryLength=function(){return kx(this,4)};h.setQueryLength=function(a){return Tn(this,4,a)};h.hasQueryLength=function(){return zn(this,4)};h.getQueryScope=function(){return Ii(this,5)};h.setQueryScope=function(a){return Vn(this,5,a)};h.hasQueryScope=function(){return xm(this,5)};var jce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jce,W);var kce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kce,W);h=kce.prototype;h.getLabel=function(){return iw(this,1)};h.setLabel=function(a){return Vn(this,1,a)};h.hasLabel=function(){return xm(this,1)};h.getStatus=function(){return iw(this,2)};h.setStatus=function(a){return Vn(this,2,a)};h.hasStatus=function(){return xm(this,2)};h.setLatencyUsec=function(a){Kn(this,3,a)};h.getResultIndex=function(){return kx(this,4)};h.setResultIndex=function(a){Tn(this,4,a)};
h.getDataSource=function(){return iw(this,7)};h.setDataSource=function(a){return Vn(this,7,a)};h.hasDataSource=function(){return xm(this,7)};h.getItemCount=function(){return kx(this,8)};h.setItemCount=function(a){return Tn(this,8,a)};h.hasItemCount=function(){return zn(this,8)};h.getResources=function(){return X(this,jce,9)};h.getLookupInfo=function(){return X(this,ew,10)};h.getMutableLookupInfo=function(){return Ui(this,ew,10)};h.setLookupInfo=function(a){return Zi(this,ew,10,a)};
h.hasLookupInfo=function(){return Ji(this,ew,10)};h.getStatusCode=function(){return Ii(this,11,2)};h.setStatusCode=function(a){Vn(this,11,a)};h.hasStatusCode=function(){return xm(this,11)};h.getQueryLength=function(){return kx(this,13)};h.setQueryLength=function(a){return Tn(this,13,a)};h.hasQueryLength=function(){return zn(this,13)};h.getQueryScope=function(){return Ii(this,14)};h.setQueryScope=function(a){return Vn(this,14,a)};h.hasQueryScope=function(){return xm(this,14)};var lce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lce,W);h=lce.prototype;h.getDataSource=function(){return iw(this,3)};h.setDataSource=function(a){return Vn(this,3,a)};h.hasDataSource=function(){return xm(this,3)};h.getType=function(){return iw(this,4)};h.setType=function(a){return Vn(this,4,a)};h.hasType=function(){return xm(this,4)};h.getValue=function(){return En(this,2,mb(1))};h.setValue=function(a){return Kn(this,2,a)};
h.hasValue=function(){return Dn(this,2)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return yj(this,1,a)};h.hasLabel=function(){return wm(this,1)};var mce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mce,W);h=mce.prototype;h.getStatusCode=function(){return Ii(this,5,2)};h.setStatusCode=function(a){Vn(this,5,a)};h.hasStatusCode=function(){return xm(this,5)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return yj(this,1,a)};h.hasLabel=function(){return wm(this,1)};h.setCause=function(a){yj(this,2,a)};h.getType=function(){return iw(this,3)};h.setType=function(a){return Vn(this,3,a)};
h.hasType=function(){return xm(this,3)};var nce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nce,W);h=nce.prototype;h.getType=function(){return iw(this,3)};h.setType=function(a){return Vn(this,3,a)};h.hasType=function(){return xm(this,3)};h.setLatencyUsec=function(a){Kn(this,2,a)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return yj(this,1,a)};h.hasLabel=function(){return wm(this,1)};var oce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oce,W);oce.prototype.getLabel=function(){return iw(this,1)};oce.prototype.setLabel=function(a){return Vn(this,1,a)};oce.prototype.hasLabel=function(){return xm(this,1)};var pce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pce,W);h=pce.prototype;h.getLabel=function(){return iw(this,1)};h.setLabel=function(a){return Vn(this,1,a)};h.hasLabel=function(){return xm(this,1)};h.getStatus=function(){return iw(this,2)};h.setStatus=function(a){return Vn(this,2,a)};h.hasStatus=function(){return xm(this,2)};h.setLatencyUsec=function(a){Kn(this,3,a)};h.hasErrorCode=function(){return Dn(this,4)};h.getStatusCode=function(){return Ii(this,7,2)};
h.setStatusCode=function(a){Vn(this,7,a)};h.hasStatusCode=function(){return xm(this,7)};var exc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(exc,W);h=exc.prototype;h.getClientInterface=function(){return X(this,c$,1)};h.setClientInterface=function(a){return Zi(this,c$,1,a)};h.getEventType=function(){return iw(this,3)};h.getEventType_legacyNullable=function(){return iw(this,3)};h.setEventType=function(a){return Vn(this,3,a)};h.getCount=function(){return X(this,lce,4)};h.getMutableCount=function(){return Ui(this,lce,4)};
h.setCount=function(a){return Zi(this,lce,4,a)};h.getMutableLatency=function(){return Ui(this,nce,5)};h.setLatency=function(a){Zi(this,nce,5,a)};h.getError=function(){return X(this,mce,6)};h.setError=function(a){Zi(this,mce,6,a)};h.hasError=function(){return Ji(this,mce,6)};var qce=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;e?a=Svc(e):(a=new dw,Rvc(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=jbe(c.getPeopleApi());this.searchMaxResults_=c.getClient().getSearchMaxResults();d=c.getClient();this.cacheSize_=Um(d,3,500);this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var f;this.delegatorId_=(f=c.runtimeConfig_.delegatorId_)!=
null?f:""};qce.prototype.getMetric=function(){return rce(this.trackers_,this.sourceInfo_)};
qce.prototype.send=function(a){var b=new ybe;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(xbe(wbe(),this.delegatorId_));return this.grpcClient_.autocomplete(b,a)};
qce.prototype.processResponse=function(a){var b=hce(this.leanResponseProcessor_,a,this.provenance_),c=new sw;Ji(a,Abe,2)&&c.setAffinityVersion(X(a,Abe,2).getAffinityVersion());return{data:b,metadata:c}};qce.prototype.close=function(){};var sce=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;a=new dw;Rvc(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=jbe(c.getPeopleApi());this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var g;this.delegatorId_=(g=c.runtimeConfig_.delegatorId_)!=null?g:""};sce.prototype.getMetric=function(){return rce(this.trackers_,this.sourceInfo_)};
sce.prototype.send=function(a){var b=this,c=new O$;c.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));Tbe(c,this.keys_.map(function(d){return $vc(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new G$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation(xbe(wbe(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
sce.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=l(Ni(a,Ube,1,Oi()));for(var e=a.next();!e.done;e=a.next()){var f=e.value;if(cj(f,N$,2,Vbe))switch(e=gce(b,jm(f,N$,2,Vbe),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=nw(f,4,hw);k.call(g,f,e);break;case 5:d.set(f.getId().getContactId(),
e)}}return{data:d,metadata:new sw}};sce.prototype.close=function(){};var tce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tce,W);var uce=new MA(342338249,Iyd,tce);var vce=function(){};vce.prototype.write=function(a,b){var c=new tce;b=Zi(c,Obe,1,b);cw(a,uce,b)};vce.prototype.read=function(a){return(a=a.getExtension(uce))?X(a,Obe,1):null};var wce=function(a,b,c){this.grpcClient_=a;this.clientConfig_=b;this.sourceInfo_=Svc("");this.trackers_=c;this.affinity_=jbe(b.getPeopleApi());var d;this.delegatorId_=(d=b.runtimeConfig_.delegatorId_)!=null?d:""};wce.prototype.getMetric=function(){return rce(this.trackers_,this.sourceInfo_)};
wce.prototype.send=function(a){var b=new Ybe;b.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));this.delegatorId_&&b.setDelegation(xbe(wbe(),this.delegatorId_));var c=this.grpcClient_;return HB(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},$be)};wce.prototype.processResponse=function(){return{data:[],metadata:new sw}};wce.prototype.close=function(){};var xce=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(xce):c.return(b.delegate_.send(a))})};Q$.prototype.getMetric=function(){return this.delegate_.getMetric()};Q$.prototype.processResponse=function(a){return a===xce?this.offlineResponse_:this.delegate_.processResponse(a)};Q$.prototype.close=function(a){this.delegate_.close(a)};
var yce={data:[],metadata:P$(new sw).setCode(14)},zce={data:new Map,metadata:P$(new sw).setCode(14)};P$(new sw).setCode(14);P$(new sw).setCode(14);P$(new sw).setCode(14);P$(new sw).setCode(14);P$(new sw).setCode(14);P$(new sw).setCode(14);var Ace=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ace,W);h=Ace.prototype;h.getTimestamp=function(){return En(this,1)};h.setTimestamp=function(a){return Kn(this,1,a)};h.hasTimestamp=function(){return Dn(this,1)};h.getOwner=function(){return xi(this,2)};h.setOwner=function(a){return yj(this,2,a)};var Bce=new MA(342656659,Iyd,Ace);var Cce=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};Cce.prototype.store_=function(a,b){var c=new Iyd;cw(c,Bce,(new Ace).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Dce=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(Bce);c=a.offlineMetadata_?Pv(a.offlineMetadata_.getOwner()):Zv;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}be(d);return d.return(null)})};
Cce.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!==xce){k.jumpTo(5);break}return z(k,Dce(b),6);case 6:return e=k.yieldResult,k.return(e||xce);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=be(k),z(k,Dce(b),7);case 7:return(g=k.yieldResult)?k.return(g):k.return(Promise.reject(f))}})};
Cce.prototype.getMetric=function(){return this.delegate_.getMetric()};Cce.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(nn(this.offlineMetadata_.getTimestamp()));return a};Cce.prototype.close=function(a){this.delegate_.close(a)};var Ece=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=xi(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 V8d(b);b=asc("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new ace(b);this.offlineDataTransformer_=
new vce;a=a.getClient();a=Ri(a,22);this.leanResponseProcessor_=new cce({allowEmptyTargets:a})};
Ece.prototype.loadRankedItems=function(){var a=new qce(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new Q$(a,this.config_.runtimeConfig_,yce);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=Vv(e),b=b.getPeopleApi(),b=Um(b,14,5E3),a=new Cce(a,d,c,e,b))}return X8d(this.dispatcher_,a)};
Ece.prototype.warmUpServer=function(){var a=new wce(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new Q$(a,this.config_.runtimeConfig_,yce);return X8d(this.dispatcher_,a)};Ece.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new qce(b,c,d,e,a);b=new Q$(b,this.config_.runtimeConfig_,yce);return X8d(this.dispatcher_,b)};
Ece.prototype.loadLookupItems=function(a,b){a=new sce(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new Q$(a,this.config_.runtimeConfig_,zce);return X8d(this.dispatcher_,a)};var Fce=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Fce.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var bwc=new Map([[1,1],[2,2]]);var Gce=function(a,b,c){this.encryptionSupport_=a;this.certificateStatus_=b;this.certificateExpirySec_=c};Gce.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};Gce.prototype.getCertificateStatus=function(){return this.certificateStatus_};Gce.prototype.getCertificateExpirySec=function(){return this.certificateExpirySec_};var Dxc=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 Gce(a===4?c?4:3:c?2:1,a,b)};var Exc=function(a,b){this.reachabilityStatus=a;this.clientData=b};Exc.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};Exc.prototype.getClientData=function(){return this.clientData};var Aw=function(){this.iconUrl_=this.altText_=""};Aw.prototype.getAltText=function(){return this.altText_};Aw.prototype.setAltText=function(a){this.altText_=a||"";return this};Aw.prototype.getIconUrl=function(){return this.iconUrl_};Aw.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var fwc=new Map([[3,3],[1,2],[2,1]]),Hce=new Map([[2,1],[4,2],[3,3],[1,4]]),Ice=function(a){this.delegate_=a};
Ice.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=jw(b.getValue()),d=a.id.normalizedValue_;c=lw(a.id).setValue(c).setCanonicalValue(d);if(Ni(b,K$,2,Oi()).length||Ji(b,Ebe,3)){d=1;var e=0;if(Ni(b,K$,2,Oi()).length){var f=Ni(b,K$,2,Oi())[0],g=tw(f,1);e=(g==null?null:nn(g))||e;d=Hce.get(f.getStatus())||d}if(f=Ji(b,Ebe,3))f=X(b,Ebe,3),f=!!aw(f,1);d=Dxc(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);
Ji(b,Fbe,4)&&(b=cwc(X(b,Fbe,4)),c.setOrgState(b));aw(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=jw(c.getCanonicalValue());c=jw(c.getOriginalValue())||jw(c.getDisplayValue())||b;b=lw(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=jm(a.contactMethod,xvc,4,Wv);b=iwc(a,b);break;default:b=lw(a.id||Zv)}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=nta(tm(e,1,void 0,kw,vc)),d.call(c,Sba(e||"")));a.contactMethod.hasDisplayInfo()&&gwc(b,a.contactMethod.getDisplayInfo());wm(a.contactMethod,10)&&b.setTagList([(new Aw).setAltText(a.contactMethod.getTypeLabel())]);if(Ji(a.contactMethod,Ibe,13)){d=X(a.contactMethod,Ibe,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new Exc(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=
b}else a.group?lwc(a,a.group.getDisplayInfo()):a.contactLabel&&lwc(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 Jce=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b;this.label_="total"};Jce.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Jce.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var Kce=function(a,b){this.metrics_=a;this.state_=new Z9(b)};h=Kce.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();Vn(d,13,b)}c&&(b=this.state_.source(),Tn(b,12,c));this.metrics_.status(this.state_,a)};h.logError=function(a,b){this.metrics_.logError(a,b)};var Lce=function(a){this.getSessionState=a};Lce.prototype.attach=function(a,b){var c,d;b=(new uw).setSessionState((d=b==null?void 0:(c=X(b,uw,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());Zi(a,uw,18,b);return a};var Mce=function(){};Mce.prototype.attach=function(a){return a};var Nce=new Mce;var Oce=function(a,b){b=b===void 0?Nce:b;this.metrics_=a;this.sessioninfo_=b};Oce.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,g=new dw;a=g.setEventType(3).setErrorType(a);Vn(a,7,b);return new U$d(d,f.call(e,g,c))};Oce.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new dw,g=f.setEventType(2);Vn(g,5,a);return new t9d(c,e.call(d,f,b))};
Oce.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new dw,f=e.setEventType(1);Vn(f,4,a);return new T$d(b,d.call(c,e))};Oce.prototype.api=function(a){return new Jce(this.metrics_,this.sessioninfo_.attach(a))};var rce=function(a,b){return new Kce(a.metrics_,a.sessioninfo_.attach(b))},Pce=function(a,b){return new Oce(a.metrics_,b)};var Qce=function(a,b){var c=a.getClient();this.ranker_=new tbe(c);this.loader_=new Ece(a,b);b=sbe;b=b===void 0?sbe:b;this.targetFactory_=new Fce(a,new Ice(b))};var Rce=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var Sce=function(){this.bits_=[]};h=Sce.prototype;h.and=function(a){for(var b=new Sce,c=l(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};h.or=function(a){for(var b=new Sce,c=l(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=l(a);for(c=a.next();!c.done;c=a.next())b.bits_[c.value]=!0;return b};h.get=function(a){return!!this.bits_[a]};h.set=function(a){this.bits_[a]=!0};h.setAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!0};
h.clear=function(a){this.bits_[a]=!1};h.clearAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!1};Sce.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 Tce=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 Sce:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"},Uce=function(a){return a.items_.map(function(b){return b.key})};R$.prototype.cloneNode=function(a){for(var b=[],c=l(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new R$(b)};
var S$=function(a,b){for(var c=[],d=l(a.prefix_?a.matchIndices_:owc(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=l(g.prefix_?g.matchIndices_:owc(g.items_.length)),m=k.next();!m.done;m=k.next()){var r=g;m=m.value;for(var w=r.prefix_+"\ufdc7",x=l(r.items_[m].terms),D=x.next();!D.done;D=x.next())D=D.value,D.length<=r.prefix_.length||D<r.prefix_||D>w||(D=D.charAt(r.prefix_.length),r.childNodes_[D]||(r.childNodes_[D]=new R$(r.items_,r.prefix_+D)),r.childNodes_[D].matchIndices_.set(m))}g.isExpanded_=
!0}d=d.childNodes_[f]||T$;if(d===T$)break}return d}).reduce(function(c,d){return c.and(d)}):this};var Vce=function(a){a.isExpanded_=!1;for(var b=l(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&Vce(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 Wce=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};Wce.prototype.getExpiry=function(){return this.expiry_};Wce.prototype.getValue=function(){return this.value_};Wce.prototype.isExpired=function(){return this.expiry_<Date.now()};Wce.prototype.isStale=function(){return this.stale_<Date.now()};var Xce=function(a){this.shouldEvictItem_=a;this.items_=new Map};h=Xce.prototype;h.size=function(){return this.items_.size};h.clear=function(){this.items_.clear()};h.has=function(a){return this.items_.has(a)};h.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
h.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=l(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};h.delete=function(a){return this.items_.delete(a)};h.compact=function(){for(var a=0,b=l(this.items_),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var Yce=function(){var a=new Xce(function(){return a.size()>1E3});return a};var Zce=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new Xce(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};h=Zce.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 $ce=function(a,b){return new Zce(a,function(c){var d=Date.now()+b;return new Wce(d,c,d)})};var pwc=function(a){this.delegate_=a};Y(pwc,NW);pwc.prototype.getIsBoosted=function(){return!0};var ade=function(a){this.keys_=new Set(a)};ade.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};ade.prototype.isDone=function(){return!this.keys_.size};var bde=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new ade(a)};bde.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};bde.prototype.isDone=function(){return this.delegate_.isDone()};var cde=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var dde=new zw,ede=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=$ce(Um(c,31,5),rm(c,32,3600)*1E3)};h=ede.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(dde);d=c.ids.map(function(k){var m=Pv(k);return jyd.includes(m.getType())?k:(m=fde(b.itemResolver_,k))?String(m.id):k});e=new bde(d);return z(g,gde(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=g.yieldResult;b.indexes_.set(c.cacheKey,f);return g.return(dde)})};
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(qwc)};h.index=function(){};h.getName=function(){};var hde=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};hde.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 ide=new hde(60,61,34);var jde=function(){};jde.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();Ri(a,30)&&(b=new ede(b,d,a),c=new U$(b,c,ide),e.unshift(c))};var kde=function(){return Date.now()},lde=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};h=lde.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 swc=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),rwc=new Map([[1,7],[2,5]]);var mde=function(a,b){this.delegate_=a;this.extendedData_=b};Y(mde,NW);mde.prototype.getExtendedData=function(){return this.extendedData_};var nde=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=kyd(this.group_.getId())?this.members_.length:c;this.resultType_=N9d.get(this.group_.getTargetType())||0};h=nde.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("Wg");};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 M9d};h.getExtendedData=function(){return null};var uwc=function(a,b){this.delegate_=a;this.loggingToken_=b};Y(uwc,syd);uwc.prototype.getLoggingToken=function(){return this.loggingToken_};var ode=function(a){this.itemResolver_=a};ode.prototype.create=function(a,b){var c=this,d=Pv(a);a=fde(this.itemResolver_,a);if(!a)return null;if(Uv(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 fde(c.itemResolver_,g)}).filter(Boolean):[a];return pde(f,d,b)};
var pde=function(a,b,c){var d=[],e=0,f=null,g=null;a=l(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var m=k.target,r=m.getId().equals(b);if(!e||r)e=m.getResultType();m=vwc(m,k.provenance,c);r?(g=void 0,f=(g=k.totalMemberCount)!=null?g:null,d.unshift(m),g=k.resultExtendedData):d.push(m)}b=Jsc(e,d,f);return g?new mde(b,g):b};
ode.prototype.createGroup=function(a,b,c){c=vwc(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=Ks(new nde(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new mde(b,a):b};var wwc=[1,2,3,4,5,6,9,7,8],qde=function(a,b){this.targetFactory_=a;this.resultFactory_=new ode(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?kde:d;this.expiry_=new lde(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=$ce(Um(b,6,500),Um(b,7,43200)*1E3);d=Set;b=Ln(b,25,Oi());this.idTypes_=new d(b)};qde.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var fde=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};h=qde.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(nn(a.getTimestamp())):this.expiry_.markAsFresh();this.lruStorage_.compact()};
h.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};h.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(g){return String(g.id)===d});if(e>0){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=l(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
h.store_=function(a,b,c,d){if(!this.idTypes_.size||!jyd.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),g=(b.containerIds||[]).map(String),k=rde(this,a,f);sde(this,a,f,b,c)&&(k(f,b),e=!0);g=l(g);for(var m=g.next();!m.done;m=g.next())m=m.value,sde(this,a,m,b,c)&&(k(m,b),e=!0);b.isMe&&(g=String(nyd),sde(this,a,g,b,c)&&(k(g,b),e=!0));d&&f!==d&&sde(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var sde=function(a,b,c,d,e){var f=fde(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)?ywc(d)&&!ywc(f)||tde(a,f)<tde(a,d)||xwc(d)<xwc(f)||d.id.getType()===18&&f.id.getType()===18||zwc(d)>zwc(f)?!0:!1:String(d.id)===c},tde=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},rde=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 ude=new zw,vde=function(a){this.trieFactory=a;this.root=T$};h=vde.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(ude);var c=a.trieFactory,d,e,f=(e=(d=c.trieRoots_.get(1))==null?void 0:Uce(d))!=null?e:[];c=wde(c,f,!0);a.root=new R$(c);return b.return(ude)})};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(qwc)};h.getName=function(){};var xde=new hde(60,61,34);var yde=function(){};yde.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;if(a=a.clientConfig.getClient().getEnablePersonalizedQueryMatching())vw?(a=vw.getExperimentFlags(),a=X(a,p8d,104)||new p8d):a=new p8d,a=a.getEnablePersonalizedQueryMatching();a&&(b=new U$(new vde(c),b,xde),d.unshift(b))};var Awc=function(a,b){this.delegate_=a;this.displayValue_=b};Y(Awc,syd);Awc.prototype.getDisplayValue=function(){return this.displayValue_};var Cwc=function(){};Cwc.prototype.createFromLookupId=function(a){if(a.getType()!==1||!cyd(a.getOriginalValue()))return null;a=lw(a).setValue(a.getOriginalValue()).setDataSource(3);return Jsc(a.getResultType(),[a],null)};var zde=function(){};zde.prototype.createFromLookupId=function(){return null};var Dwc=new zde;var Ade=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=Ewc(e.getClient())};h=Ade.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 Bde=function(a){return Array.from(a.remainingIds.values())};Ade.prototype.hasError=function(){return this.hasErrorCode};
Ade.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||Fwc(c.getCode())){var d=new Map,e=this.getResultFilter();a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=l(f.value);f=g.next().value;g=g.next().value;this.notNotifiedIds.delete(String(f));(g=e?e.filterResult(g):g)&&g.getTargetList().length&&(d.set(f,g),this.remainingIds.delete(String(f)))}a=[];b=l(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(g=this.placeholderFactory.createFromLookupId(f))&&
e&&(g=e.filterResult(g)),g&&g.getTargetList().length?d.set(f,g):a.push(f);d=Bwc(d,this.options);Fwc(c.getCode())&&(this.hasErrorCode=!0);e=(new dae).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new eae(d,e);this.callbackNumber++;this.listener(d,c)}};var Cde=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};Cde.prototype.flush=function(){this.indexer.flush()};
Cde.prototype.lookup=function(a,b,c,d){var e=this,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),g=new Ade(a,b,c,d,e.clientConfig),k=new Set,g.queryScope()!==1&&g.queryScope()!==2||k.add(2),g.queryScope()===3&&k.add(1),m=l(e.stages),r=m.next();case 2:if(r.done){x.jumpTo(4);break}w=r.value;if(g.isDone()||g.isCancelled()){x.jumpTo(4);break}if(k.has(w.getStageType())){x.jumpTo(3);break}return z(x,w.lookup(g),3);case 3:r=m.next();x.jumpTo(2);break;case 4:if(!g.isDone()){if(g.queryScope()===
0&&!g.hasError()){var D=e.indexer,H=Array.from(g.notNotifiedIds.values());H=l(H);for(var J=H.next();!J.done;J=H.next())J=String(J.value),D.notFoundIds.set(J,J)}g.notify(new Map,Bde(g),k$((new zw).setProvenance(10),!1).setCode(0))}e.indexer.compact();return x.return()}})};var Dde=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=$ce(Um(a,10,500),rm(a,11,600)*1E3)};h=Dde.prototype;h.compact=function(){this.notFoundIds.compact()};h.flush=function(){this.notFoundIds.clear()};h.store=function(a,b,c,d){if(!Ri(c,5))for(P$(c),b=l(b),c=b.next();!c.done;c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;c=String(yxc(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=qib(a).filterResult(b));return b};var Ede={ids:[],cacheKey:"",primingTimeoutMillis:0};var Fde=function(){};Fde.prototype.loadOrSkip=function(){return null};Fde.prototype.resultCount=function(){return 0};Fde.prototype.isDone=function(){return!0};var Gde=new Fde;var Hde=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Gde;this.boostKey_=Ede;this.listener_=function(){}};h=Hde.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 Ide=new Hde;var Jde=function(){this.fetchDone_=Promise.resolve((new zw).setCode(0))};h=Jde.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 Kde=new Jde;var Lde=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||Kde;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
Lde.prototype.prefetch=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,b.primary_.fetch(a),2);if(k.nextAddress!=3){c=k.yieldResult;if(c.getCode()!==0)return k.return(c);d=l(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();g=b.prefetched_.filter(function(m){return m!==b.primary_}).map(function(m){m.flush();return m.fetch(a)});return g.length?z(k,Promise.all(g),3):k.jumpTo(3)}return k.return(c)})};
Lde.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new zw).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 Mde=function(a){var b=[a.primary_].concat(q(a.prefetched_.filter(function(d){return d!==a.primary_})),q(a.lazyLoaded_)).reverse();b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Nde=function(a,b){var c=[];a=l(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;b.shouldSkipCache(d.getName())||c.push.apply(c,q(d.search(b)))}return c},Pde=function(a,b,c){var d,e,f,g,k;return y(function(m){if(m.nextAddress==1){if(b.queryScope()===2)return m.return();
d=a.lazyLoaded_.filter(function(r){return!b.shouldSkipCache(r.getName())});e=d[d.length-1];f=l(d);g=f.next()}if(m.nextAddress!=3){if(g.done)return m.jumpTo(0);k=g.value;return b.isDone()||b.isCancelled()?m.return():z(m,Ode(k,b,c,e===k),3)}g=f.next();return m.jumpTo(2)})},Ode=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return b.queryScope()===1?(e=k$((new zw).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 Qde=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=Qde.prototype;h.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};h.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
h.warmUpCache=function(a){Rde(this,Ide);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(n$(m$((new l$).setSource(k$(new zw,!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));Rde(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(m){return m.getProvenance()===2})||(new zw).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 zw?f:(new zw).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:Sde(b);Yd(k,2);d=V$(b);Rde(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 zw,!1).setProvenance(1).setCode(0)),d),V$(b)),Rde(b,
a)),z(k,Tde(b,a,c),10);case 10:Zj(k,0);break;case 2:f=be(k);if(a.isCancelled())return k.return();f instanceof l$?c=f:(g=f instanceof zw?f:(new zw).setCode(13),n$(c.setSource(g),V$(b)));a.getListener()(new s$([],(new t$d).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));ce(k)}})};
var Tde=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=Nde(a.prefixSearch_,b);e=(new t$d).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,Pde(a.prefixSearch_,b,function(m,r,w){r=(new t$d).setIsLastCallback(w).setQuery(b.getPrefix()).setCode(r.getCode()).setCacheState(n$(m$((new l$).setSource(r),
Kp(c,2)),V$(a)));b.getListener()(new s$(m,r));r.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(g=(new t$d).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(n$(m$((new l$).setSource((new zw).setProvenance(10).setCode(0)),Kp(c,2)),V$(a))),b.getListener()(new s$([],g)));ce(k)})};
Qde.prototype.lookup=function(a,b,c){var d=this;Sde(this);Rde(this,Ide);var e=m$(new l$,V$(this));this.lookupCache_.lookup(a,Ii(this.clientInfo_,17,1),function(f,g){e.setSource(g);n$(e,V$(d));f.getMetadata().setCacheState(e);b(f)},c)};
var Rde=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&Ude(a),!a.cacheWarming_)){var c=V$(a);a.cacheWarming_=new Promise(function(d,e){var f,g,k,m;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),m=k instanceof zw?k:(new zw).setCode(13),
n$(f,V$(a)).setSource(m),e(f),r.jumpTo(3)}})})}},V$=function(a){return a.storage_.getExpiry().getStatus()},Ude=function(a){Mde(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},Sde=function(a){var b=V$(a)===1?1:2;a.trackers_.count(b).increment()};var Kwc={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var Mwc=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),Lwc=/^[<"']|[>"']$/g,Iwc=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"),Vde=/[^a-z0-9]+/gi,Jwc=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var Wde=function(a){this.itemResolver_=a},Yde=function(a,b){if(!b.preferredSearchTerms)return[];a=Nwc(Xde(a,b));var c=Nwc(b.preferredSearchTerms);return a.filter(function(d){return c.some(function(e){return d.startsWith(e)})})},Xde=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(Vde).filter(Boolean),m=k.length-
1;if(m>0){var r=k.join(".");k.push(k.join("-"));for(k.push(r);m>0;m--)k[m-1]+=k[m]}k.push(e);k.push(e.replace(Mwc,""));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=l(b.memberKeys),d=b.next();!d.done;d=b.next())(d=fde(a.itemResolver_,d.value))&&Xde(a,d,c);return c};var Zde=new lvc,$de=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new Wde(a);this.trieRoots_=new Map},gde=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 m=cde(b).map(Pv);a.lookupCache_.lookup(m,c,function(r){var w=Array.from(r.getResults().keys(),String);w=wde(a,w,!1);Array.prototype.push.apply(e.items_,
w);Vce(e);r.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},Zde)});return msc(g,e,d)},aee=function(a,b){a=wde(a,b,!1);return new R$(a)},wde=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=fde(a.itemResolver_,e);if(f){if(c){if(f=Yde(a.indexer_,f),f.length<1)continue}else f=Nwc(Xde(a.indexer_,f));d.push(new Tce(e,f))}}return d};var bee=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};bee.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
bee.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=Owc(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return Owc(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return Owc(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:Pwc(this.target_.getDisplayValue())}return a};
bee.prototype.filterResult=function(a){var b=this,c=rw(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,q(a.getTargetList().filter(function(d){return d.getTargetType()===1&&rw(d.getDisplayValue())!==c&&d.getName()&&rw(d.getName().getDisplayName())===b.displayName_})));return null};bee.prototype.reset=function(){this.similarTargets_=[]};var Qwc=/\S+@\S+\.\S+/,Rwc=/<|>|\(|\)/g;var cee=function(){this.queryId_=0};cee.prototype.getQueryId=function(){return this.queryId_};var dee=function(a,b){var c=new cee;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
dee.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 cae("",(new bae).setCode(0).setCacheState((new l$).setSource(k$(new zw,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||Swc(e,a.getDisplayValue())?Promise.resolve(new cae(a.getDisplayValue(),(new bae).setCode(0).setCacheState((new l$).setSource(k$(new zw,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var g=new bee(a,rw(e)),k=eee(c.queryFactory_,e,c.querySession_,(new vv).setFilter(g).setQueryScope(b.getQueryScope()),function(m){if(m.getMetadata().getIsLastCallback()){var r=g.getDisambiguationLabel(),w=new bae,x=g.getSimilarIds();w.similarIds_=x;f(new cae(r,w.setCode(m.getMetadata().getCode()).setCacheState(m.getMetadata().getCacheState()||new l$)))}});c.cache_.search(k)})};var fee=function(a){this.delegate=a};h=fee.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 gee=function(){this.delegate=xyd};gee.prototype.filterResult=function(a){return this.delegate.filterResult(a)};gee.prototype.reset=function(a){this.delegate.reset(a)};var hee=function(a,b){a.delegate=b!=null?b:xyd};var iee=function(a){this.delegate=a};h=iee.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 jee=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};jee.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};jee.prototype.resultCount=function(){return this.count_};jee.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var kee=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new jee(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?sib.apply(null,q(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Y(kee,iee);h=kee.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 lee=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Y(lee,fee);
lee.prototype.search=function(a){var b=this,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(r){return!c.has(r.visibility)}),e=d.map(function(r,w){return new kee(a,b.originalFilter,r,w===d.length-1)}),f=l(e),g=f.next();case 2:if(g.done){m.jumpTo(4);break}k=g.value;if(a.isCancelled()||a.isDone()){m.jumpTo(4);break}hee(b.filterInterceptor,k.getResultFilter());return z(m,b.delegate.search(k),
3);case 3:g=f.next();m.jumpTo(2);break;case 4:return m.return()}})};var mee=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=Nwc([b]);this.id_=Vv(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 dwc).setDisplayName(c),m=g.getPrimaryTarget();g=mib(g,new tyd(m,k))}return g});e=new s$(f,e.getMetadata());a.getListener()(e)}};Y(mee,iee);mee.prototype.getPrefix=function(){return this.query_};mee.prototype.getTerms=function(){return this.terms_};
mee.prototype.getListener=function(){return this.listener_};var nee=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new cee;this.clientInfo_=c};h=nee.prototype;h.warmUpSession=function(a){a=eee(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};h.suggest=function(a,b){a=eee(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
h.search=function(a,b,c){a=eee(this.queryFactory_,a,this.querySession_,c,b);Ri(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=Fv(b),c.isValid()||(c=Fv(b+">")),a=c.isValid()&&c.getName()?new mee(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("Ag");};h.getSessionState=function(){throw Error("Ag");};var oee=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=Ri(c,34)?function(e){var f=d.cache_,g=e.slots_;if(g.length){var k=e.getFilter(),m=new gee;e.setFilter(m);e=new lee(f,g,m,k)}else e=f;return e}:function(){return d.cache_}};oee.prototype.warmUpCache=function(){return this.cache_.warmUpCache(!1)};oee.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
oee.prototype.disambiguate=function(a,b){return(new dee(this.cache_,this.queryFactory_)).disambiguate(a,b)};oee.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new nee(a,this.queryFactory_,this.clientInfo_)};var pee=function(){};h=pee.prototype;h.getCacheType=function(){return 3};h.flush=function(){};h.fetch=function(){return y(function(a){return a.return(k$(new zw,!1).setProvenance(12).setCode(0))})};h.index=function(){};h.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(Vv(a.getPrefix()))))?[a]:[]:[]};h.getName=function(){};var qee=function(){};qee.prototype.configure=function(a){var b=a.prefixCaches;a=a.clientConfig.getClient();Ri(a,21)&&b.push(new pee)};var ree=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_=Twc(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};h=ree.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_=cyd(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 see=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};see.prototype.getFormat=function(){return this.format_};see.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};see.prototype.queryScope=function(){return this.queryScope_};var tee=function(){this.foundKeys_=new Set};Y(tee,OW);tee.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};tee.prototype.has=function(a){return this.foundKeys_.has(a)};tee.prototype.add=function(a){this.foundKeys_.add(a)};tee.prototype.reset=function(){this.foundKeys_.clear()};var uee=function(a){this.delegate_=a;this.filter_=new tee};uee.prototype.loadOrSkip=function(a){if(this.filter_.has(a))return null;a=this.delegate_.loadOrSkip(a);if(!a)return null;a=this.filter_.filterResult(a);if(!a)return null;for(var b=l(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};uee.prototype.resultCount=function(){return this.delegate_.resultCount()};uee.prototype.isDone=function(){return this.delegate_.isDone()};var vee=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};vee.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};vee.prototype.resultCount=function(){return this.delegate_.resultCount()};vee.prototype.isDone=function(){return this.delegate_.isDone()};var wee=function(a,b){this.storage_=a;this.format_=b};wee.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};wee.prototype.resultCount=function(){return 0};wee.prototype.isDone=function(){return!1};var xee=[198,230,306,307,338,339],yee=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)"+hs(b),"g")})},Uwc=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=rw(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=l(a.matchers_);for(var g=a.next();!g.done;g=a.next()){g=g.value;g.lastIndex=0;for(var k=g.exec(d);k;k=
g.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,g.lastIndex])}}c.sort(function(m,r){return m[0]-r[0]});for(e=c.length-1;e>0;e--)f=c[e-1],a=c[e],f[1]>=a[0]&&(f[1]=a[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(f=0;f<b.length;f++)a=b.codePointAt(f),a>65535||a>=768&&a<=879?(d.push(f),f++):xee.includes(a)&&e.push(f);b=l(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=l(d);for(g=a.next();!g.done;g=a.next())g=g.value,g<f[0]&&f[0]++,g<f[1]&&f[1]++;a=l(e);for(g=a.next();!g.done;g=
a.next())g=g.value,g<f[0]&&f[0]--,g<f[1]&&f[1]--}}return c};var Vwc=function(a,b){this.start_=a;this.end_=b};Vwc.prototype.getStart=function(){return this.start_};Vwc.prototype.getEnd=function(){return this.end_};var Wwc=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Wwc.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Wwc.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Wwc.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var zee=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new zee(c,b)});this.matchInfo_=null};Y(zee,NW);zee.prototype.getMemberList=function(){return this.memberList_};zee.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=Xwc(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var Aee=function(a,b){this.delegate_=a;this.matcher_=new yee(b)};Aee.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new zee(a,this.matcher_):null};Aee.prototype.resultCount=function(){return this.delegate_.resultCount()};Aee.prototype.isDone=function(){return this.delegate_.isDone()};var Bee=function(a){var b=new Cwc;this.delegate=a;this.placeholderFactory=b};Bee.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(Pv(a))};Bee.prototype.resultCount=function(){return this.delegate.resultCount()};Bee.prototype.isDone=function(){return this.delegate.isDone()};var Cee=/\s+/g,Dee=function(a,b){this.clientInfo_=a;this.storage_=b},eee=function(a,b,c,d,e){var f=Nwc([b]);b=(b||"").replace(Cee," ").trim();var g=!f.length;var k=a.clientInfo_;k=g?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var m=a.clientInfo_;g=g?d.getSuggestMaxResults()||m.getSuggestMaxResults():d.getSearchMaxResults()||m.getSearchMaxResults();var r=d.boostIds_;m=d.primingTimeoutMillis_;if(r.length){r=r.map(String);var w=Ivc(r)+":"+r.length;m={ids:r,cacheKey:w,
primingTimeoutMillis:m}}else m=Ede;r=d.getFilter();w=b;var x=new wee(a.storage_,k);Ri(a.clientInfo_,21)&&cyd(w)&&(x=new Bee(x));r&&(x=new vee(x,r,w));x=new uee(x);x=new jee(x,g);a=f.length?new Aee(x,f):x;g=d.getQueryScope();c=new see(k,c,g);return new ree(c,b,f,a,m,e,r,d.selectedCustomProviderNames_)};var Eee=function(a){this.fetcher=a};Eee.prototype.getStageType=function(){return 2};Eee.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:c=Zwc(Bde(a)),d=l(c),e=d.next();case 2:if(e.done){x.jumpTo(4);break}f=e.value;g=l(f);k=g.next().value;m=g.next().value;r=k;w=m;if(!r){x.jumpTo(3);break}return z(x,b.fetcher.fetch(w,r,a.getFormat(),function(D,H){a.notify(D,[],H)},a.getOptions()),3);case 3:e=d.next();x.jumpTo(2);break;case 4:return x.return()}})};var Fee=function(a,b){this.delegate=a;this.maxLookupChunkSize=pbe(b)};Fee.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,m;return y(function(r){switch(r.nextAddress){case 1:var w=f.maxLookupChunkSize;if(a.length)if(a.length<=w)w=[a];else{for(var x=[],D=0;D<a.length;D+=w){var H=a.slice(D,D+w);H.length&&x.push(H)}w=x}else w=[];g=l(w);k=g.next();case 2:if(k.done){r.jumpTo(4);break}m=k.value;return z(r,f.delegate.fetch(m,b,c,d,e),3);case 3:k=g.next();r.jumpTo(2);break;case 4:return r.return()}})};var Gee=function(a){this.qos=a};Gee.prototype.getIndex=function(){return String(this.qos)};var Hee=new Gee(1),Iee=new Gee(2);var Jee=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Jee.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:return g=b===3?4:3,k=k$((new zw).setProvenance(g),!0).setCode(0),Yd(V,2),z(V,f.loader.loadLookupItems(b,a.map(function(ba){return ba.getOriginalValue()}),Iee),4);case 4:m=V.yieldResult;m.metadata.getCode()&&k.setCode(m.metadata.getCode());r=e.getQueryScope()===3;try{f.indexer.store(b,m.data,m.metadata,r)}catch(ba){f.trackers.error(21,10).report(),k.setCode(13)}Zj(V,3);break;case 2:w=
be(V),x=Number(w),k.setCode(isFinite(x)&&x?x:13);case 3:D=new Map;H=l(a);for(J=H.next();!J.done;J=H.next())O=J.value,(R=f.indexer.load(O,c,e.getUseOriginalDisplayValue()))&&D.set(O,R);d(D,k);return V.return()}})};var Kee=function(a){this.indexer=a};Kee.prototype.getStageType=function(){return 1};Kee.prototype.lookup=function(a){var b=this,c,d,e,f,g,k;return y(function(m){c=new Map;d=[];e=l(Bde(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;(oyd(g)?r.notFoundIds.get(String(g)):1)&&d.push(g)}a.notify(c,d,k$((new zw).setProvenance(6),!1).setCode(0));return m.return()})};var Lee=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"),Mee=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=$ce(Um(e,8,250),rm(e,9,3600)*1E3);this.notFound_=$ce(Um(e,10,500),rm(e,11,600)*1E3)};h=Mee.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 zw,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(Hee).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,Iee),4);case 4:d=f.yieldResult;Zj(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(!Ri(c,5))if(P$(c),b.length){c=ube(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=aee(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(Lee))break;if(this.notFound_.has(c))return!0}return!1};
h.getName=function(){};var Nee=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=Nee.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 zw,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Iee:Hee,Yd(g,2),z(g,b.loader_.loadRankedItems(d),4);case 4:e=g.yieldResult;Zj(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(!Ri(c,5)){P$(c);a=this.coalescedSortOrder_!==1?ube(this.ranker_,b,this.coalescedSortOrder_):null;var d=ube(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=aee(this.trieFactory_,d);c=a?aee(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
h.getName=function(){};var Oee=new hde(27,32,33),Pee=new hde(24,23,20);var Qee=function(){};Qee.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,g=a.prefixCaches,k=a.lookupStages,m=a.loaderFactory.ranker_,r=a.clientConfig.getClient();if(Um(r,3,500)>0){var w=Ii(r,19,1);w=new Nee(e,m,f,c,w);w=new U$(w,b,Pee);g.push(w)}k.push(new Kee(d));r.getSearchMaxResults()>0&&(c=new Mee(e,m,f,c,r),b=new U$(c,b,Oee),g.push(b));g=new Jee(a.trackers,a.loader,a.indexer);g=new Fee(g,a.clientConfig);k.push(new Eee(g))};var Ree=function(a){this.delegate=a};h=Ree.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 See=function(a){this.delegate=a};See.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};See.prototype.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};See.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};See.prototype.beginSession=function(a){return this.delegate.beginSession(a)};var Tee=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};Tee.prototype.getId=function(){return this.id_};Tee.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var Uee=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};h=Uee.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 Tee(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 Uee(a,b,c)};var Vee=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new kMc;this.isSent_=!1};Vee.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)}};Vee.prototype.promise=function(){return this.resolver_.promise};
Vee.prototype.merge=function(a,b){var c;(c=this.isSent_)||(c=this.parameters_,c=!(a.getIdType()===c.getIdType()&&a.getOptions()===c.getOptions()));if(c||a.getIds().length+this.ids_.size>b)return!1;a=l(a.getIds());for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};var Wee=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=pbe(c);this.lastRequestCreationTime_=0};
Wee.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 Vee(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Zs(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var Xee=function(a,b){this.delegate_=a;this.inflightRequests_=Yce();this.tracker_=b};
Xee.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=l(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.getIndex();this.inflightRequests_.has(g)?c.add(this.inflightRequests_.get(g)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var m=new Vee(this.delegate_,k);m.send();c.add(m);a=l(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),m);m.promise().catch(function(){}).finally(function(){for(var r=l(k.getKeys()),w=r.next();!w.done;w=r.next())b.inflightRequests_.delete(w.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(r){return r.promise()})).then(function(r){return m?m.promise().then(function(w){return $wc(r,w.metadata)}):$wc(r)})};var Yee=function(a){this.peopleLoader_=a};Yee.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var Zee=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};Zee.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new Yee(this.peopleLoader_);b=new Wee(b,this.tracker_,this.clientConfig_);b=new Xee(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var $ee=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new Zee(this.delegate_,this.trackers_,c)},afe=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)})};
$ee.prototype.loadRankedItems=function(a){var b=this;return afe(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};$ee.prototype.warmUpServer=function(a){var b=this;return afe(this,82,"",function(){return b.delegate_.warmUpServer(a)})};$ee.prototype.loadAutocompleteItems=function(a,b){var c=this;return afe(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};$ee.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new Uee(a,b,c))};var bfe=function(){return Date.now()},cfe=function(a,b,c){this.delegate_=a;this.nowFn_=c;a=b.getClient();this.cacheFlushRateMillis_=rm(a,14,300)*1E3;b=b.getClient();this.serverWarmupRateMillis_=rm(b,13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};cfe.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)};
cfe.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)};cfe.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};cfe.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var dfe=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};dfe.prototype.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};dfe.prototype.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};dfe.prototype.cancel=function(){this.delegate_.cancel();return this};dfe.prototype.getReporter=function(a){a=a===void 0?G$d:a;return this.delegate_.getReporter(a)};var efe=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=kyd(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Y(efe,NW);efe.prototype.getMemberList=function(){return this.members_};efe.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var ffe=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};ffe.prototype.filterResult=function(a){var b=this;if(!kyd(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:Ks(new efe(a,c))};ffe.prototype.reset=function(a){this.filter_.reset(a)};
var axc=function(a,b){this.filter_=sib(a,new ffe(a,b))};axc.prototype.filterResult=function(a){return this.filter_.filterResult(a)};axc.prototype.reset=function(a){this.filter_.reset(a)};var gfe=function(a){this.delegate_=a};gfe.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)})};gfe.prototype.disambiguate=function(a,b){b=b===void 0?new Z$d:b;return this.delegate_.disambiguate(a,b)};gfe.prototype.lookup=function(a,b,c){c=c===void 0?new lvc:c;c.setFilter(bxc(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};
gfe.prototype.beginSession=function(a,b){b=b===void 0?new vv:b;b=b.clone();b.setFilter(bxc(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new dfe(c,a,b)};var hfe=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]]),ife=new Map([[2,13],[3,6]]),jfe=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 gxc=new Map([[1,1],[2,3],[3,5]]),kfe=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),lfe=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),mfe=function(a,b){this.logContext_=kxc(a,b)};h=mfe.prototype;h.getLogContext=function(){return this.logContext_};
h.createCountMetric=function(a,b,c){var d=b.source();nfe(d,a);var e=fxc(d);switch(d.getEventType()){case 1:d=e.setCount;b=b.source();b=Ii(b,4);var f=new lce;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=b.source();c=Ii(c,3);d=new oce;d.setLabel(c);Zi(e,oce,7,d);e.setEventType(4);break;case 6:case 7:c=b.source();d=Ii(c,2);b=new ice;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);Zi(e,ice,9,b);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
h.createStatusMetric=function(a,b,c){var d=b.source();nfe(d,a);var e=fxc(d);switch(d.getEventType()){case 4:case 5:d=b.source();var f=Ii(d,3);var g=Ii(d,13)||0;g=ife.get(g)||hfe.get(c)||0;var k=g9d(b,"blocked"),m=g9d(b,"network"),r=g9d(b,"processed");b=new pce;b.setLabel(f);b.setStatus(g);Kn(b,8,k);b.setLatencyUsec(m);Kn(b,9,r);b.setStatusCode(c);Um(d,12)&&(d=Um(d,12),Kn(b,6,d));Zi(e,pce,8,b);e.setEventType(5);break;case 6:case 7:f=b.source();g=Ii(f,2);d=new kce;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=g9d(b,"total"),d.setLatencyUsec(b));c=jfe.get(c)||0;d.setStatus(c);c=f.getResultIndex();d.setResultIndex(c);if(b=f.getCacheState())c=hxc(iw(b,2)),Vn(d,5,c),c=hxc(iw(b,3)),Vn(d,6,c),c=d.setDataSource,f=b.getSource(),b=!Ri(f,1),f=f.getProvenance(),b=(b?lfe.get(f):kfe.get(f))||0,c.call(d,b);Zi(e,
kce,10,d);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};h.createLatencyMetric=function(a,b){var c=b.source();nfe(c,a);if(c.getEventType()!==2)return null;var d=fxc(c);d.setClientInterface(a);a=d.setLatency;var e=b.source();e=Ii(e,5);b=g9d(b,"total");var f=new nce;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();nfe(c,a);if(c.getEventType()!==3)return null;var d=fxc(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=Ii(e,7);var f=new mce;f.setType(b);Vn(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var nfe=function(a,b){var c,d,e;a=(c=X(a,uw,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=X(d,ww,10))==null?void 0:Kp(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var ofe=function(a,b){this.delegate_=a;this.trackers_=b};h=ofe.prototype;h.reportDisplay=function(a){this.delegate_.reportDisplay(a)};h.reportSelect=function(a,b){b=b===void 0?new H$d: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();pfe(this)};
h.reportSave=function(a){this.delegate_.reportSave(a);pfe(this)};h.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);pfe(this)};h.reportSend=function(a){this.delegate_.reportSend(a);pfe(this)};var pfe=function(a){a=a.trackers_;var b=a.api,c=new dw;fw(c.setEventType(6),3);b.call(a,c).call()};var lxc=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Y(lxc,Ree);
lxc.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(Zvc(b.getQueryScope()));f.call();this.delegate_.suggest(function(g){var k=g.getMetadata(),m=k.getCacheState();f.source.setCacheState(m);f.source.setItemCount(g.getResults().length);f.result(m.getSource().getCode());k.getIsFirstCallback()&&(d&&k.getCode()===0&&c.trackers_.error(22,19,f.source).report(),d=!0);k.getIsLastCallback()&&(e&&k.getCode()===0&&c.trackers_.error(22,20,f.source).report(),e=!0);k=c.trackers_.latency(90,
f.source);k.start();try{a(g)}catch(r){throw c.trackers_.error(22,11,f.source).report(),r;}finally{k.stop()}},b)}catch(g){throw this.trackers_.error(22,1).report(),g;}};
lxc.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(Yvc(a,c.getQueryScope()));g.call();this.delegate_.search(a,function(k){var m=k.getMetadata(),r=m.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().length);g.result(r.getSource().getCode());m.getIsFirstCallback()&&(e&&m.getCode()===0&&d.trackers_.error(23,19,g.source).report(),e=!0);m.getIsLastCallback()&&(f&&m.getCode()===0&&d.trackers_.error(23,20,g.source).report(),f=!0);m=d.trackers_.latency(91,
g.source);m.start();try{b(k)}catch(w){throw d.trackers_.error(23,11,g.source).report(),w;}finally{m.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};lxc.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new ofe(a,this.trackers_)};var qfe=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new dw;fw(c.setEventType(6),1);b.call(a,c).call()};Y(qfe,See);
qfe.prototype.warmUpCache=function(){var a=this,b=this.trackers_.api(Vvc());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 zw).setCode(2)));return Promise.reject(c)})};
qfe.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(Uvc(a,c.getQueryScope()));g.call();this.delegate_.lookup(a,function(k){var m=k.getMetadata(),r=m.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().size);for(var w=0,x=0,D=0,H=0,J=l(k.getResults().keys()),O=J.next();!O.done;O=J.next()){O=O.value;lyd(O)?w++:hyd.includes(O.getType())?x++:iyd.includes(O.getType())&&D++;var R=void 0;((R=k.getResults().get(O))==null?0:R.getDisplayName())&&
H++}J=O=R=0;for(var V=l(m.notFoundIdList_),ba=V.next();!ba.done;ba=V.next())ba=ba.value,lyd(ba)?R++:hyd.includes(ba.getType())?O++:iyd.includes(ba.getType())&&J++;V=g.source.getMutableLookupInfo();w=Tn(V,2,w);x=Tn(w,1,x);D=Tn(x,3,D);D=Tn(D,5,R);D=Tn(D,4,O);D=Tn(D,6,J);Tn(D,14,H);g.result(r.getSource().getCode());m.getIsFirstCallback()&&(e&&m.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);m.getIsLastCallback()&&(f&&m.getCode()===0&&d.trackers_.error(8,20).report(),f=!0);m=d.trackers_.latency(89);
m.start();try{b(k)}catch(oa){throw d.trackers_.error(8,11).report(),oa;}finally{m.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};qfe.prototype.disambiguate=function(a,b){var c=this.trackers_.api(Xvc());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})};
qfe.prototype.beginSession=function(a){this.trackers_.api(Wvc()).call();var b=this.delegate_.beginSession(a);return mxc(b,Pce(this.trackers_,new Lce(function(){return b.getSessionState()})))};var rfe=function(a,b){this.clearcut_=a;this.logEventFactory_=b};rfe.prototype.report=function(a){var b=q9d(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=l(a);for(b=a.next();!b.done;b=a.next())r9d(this.clearcut_,b.value)};var sfe=function(a){this.clearcut_=a};sfe.prototype.report=function(a){this.clearcut_.report(a)};var tfe=function(a){this.writer_=a};var ufe=function(){};
ufe.prototype.create=function(a,b,c){var d=dxc(b),e=new i9d;Zi(e,cxc,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new j9d;d=osc(rm(b,9)-rm(b,8));Tn(f,2,d);d=new g$;Zi(d,i9d,1,e);Zi(d,j9d,6,f);e=new h9d;if(f=nn(En(b,6))){Kn(e,3,f*1E3);var g=(Date.now()-f)*1E3;Kn(e,2,g)}aj(e,1,!!f);Zi(d,h9d,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new l9d;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var vfe=function(){};vfe.prototype.extractPersonEventSource=function(a){a=nxc(a);return iw(a,4)};vfe.prototype.extractFieldEventSource=function(a){a=nxc(a);return iw(a,3)};var wfe=function(){};wfe.prototype.extractPersonEventSource=function(a){var b=X(a,ww,10)||new ww;return(a.getQuery()||"").length?iw(b,2):iw(b,4)};wfe.prototype.extractFieldEventSource=function(a){var b=X(a,ww,10)||new ww;return(a.getQuery()||"").length?iw(b,1):iw(b,3)};var xfe=function(){};xfe.prototype.extractPersonEventSource=function(a){a=oxc(a);return iw(a,4)};xfe.prototype.extractFieldEventSource=function(a){a=oxc(a);return iw(a,3)};var qxc=new Set([8]);var yfe=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var zfe=new Map([[1,11],[2,12],[0,0]]),Afe=function(){};Afe.prototype.write=function(a,b,c){var d=new $9;Tn(d,1,c);c=new a$;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Zi(a,a$,8,c);b=zfe.get(b.getContext());rx(a,3,[b])};var Bfe=new Map([[1,5],[2,4],[3,6],[7,13]]),Cfe=function(){};Cfe.prototype.write=function(a,b,c,d){var e=new $9;Tn(e,1,c);a.setPosition(e);c=Bfe.get(b.getProvenance())||0;Ii(b,4)===1?c=14:d?c=3:Ii(b,4)===2?c=10:Ii(b,4)===3&&(c=15);rx(a,3,[c])};var Dfe=new Set([9,1,2]),Efe=function(){};Efe.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Dfe.has(d))c=new d$,iw(b,7)!==1&&iw(b,7)!==7||c.setEmail(gx(b,3)),iw(b,7)!==2&&iw(b,7)!==5||c.setPhone(gx(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Zi(a,d$,4,c),a=new e$,a.setName(b.getNameOrUndefined()),Zi(f,e$,2,a);f.setIsBoosted(b.getIsBoosted())};var Ffe=function(a){var b=new Efe;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Gfe=function(a){var b;return((b=a.getInfo())==null?0:b.getIsPlaceholder())?!0:!1};var wxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wxc,W);h=wxc.prototype;h.getEventType=function(){return Ii(this,1)};h.getEventType_legacyNullable=function(){return iw(this,1)};h.setEventType=function(a){return Vn(this,1,a)};h.getSessionState=function(){return X(this,MW,2)};h.setSessionState=function(a){return Zi(this,MW,2,a)};h.hasSessionState=function(){return Ji(this,MW,2)};h.setEventSources=function(a){Zi(this,ww,4,a)};var Hfe=function(){this.defaultEntityFactory_=new tfe(new Ffe(new Cfe));this.contextualEntityFactory_=new tfe(new Ffe(new Afe));this.extensionFactory_=new ufe;this.defaultEventSourceExtractor_=new wfe;this.additionEventSourceExtractor_=new vfe;this.replacementEventSourceExtractor_=new xfe};
Hfe.prototype.create=function(a,b){var c=b.getSessionState()||new MW,d=b.getEventType_legacyNullable();b=Ni(b,ow,3,Oi(bn));var e=sxc(b,uxc);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(q(sxc(f,txc).values())):[];b=b?[].concat(q(sxc(b,txc).values())):[];e=e?[].concat(q(sxc(e,txc).values())):[];e=new yfe(f,b,e);b=[];f=l(e.defaultTokenGroups_);for(var g=f.next();!g.done;g=f.next())b.push.apply(b,q(Ife(this,a,d,g.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=l(e.additionTokenGroups_);
for(g=f.next();!g.done;g=f.next())b.push.apply(b,q(Ife(this,a,d,g.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=l(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,q(Ife(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Ife=function(a,b,c,d,e,f,g){var k=[];e=d[0].getSessionState()||e;var m=pxc(d).map(function(r){var w=new k9d,x=g.writer_,D=w.getMetadata()||new f$;w.setMetadata(D);var H=pv(r)||new pw,J=r.getInfo()||new qw;x.metadataStateWriter_.write(D,H,Um(H,2)||0,Gfe(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,Ii(H,4)||0);w.setLoggingId(gx(J,1));r=X(w,d$,4)||new d$;Zi(w,d$,4,r);r.setType(Kp(J,8));return w});m.length&&k.push(Jfe(a,b,c,f.extractPersonEventSource(e),m,e));d=rxc(d).map(function(r){var w=
new k9d,x=g.writer_,D=w.getMetadata()||new f$;w.setMetadata(D);var H=pv(r)||new pw,J=r.getInfo()||new qw;x.metadataStateWriter_.write(D,H,(Ri(J,9,!0)?Um(H,2):Um(H,1))||0,Gfe(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,Ii(H,4)||0);r=X(w,d$,4)||new d$;Zi(w,d$,4,r);X(w,d$,4).setType(Kp(J,7));w.setLoggingId(gx(J,2));return w});d.length&&k.push(Jfe(a,b,c,f.extractFieldEventSource(e),d,e));return k},Jfe=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);$i(a,2,e);return a};var Kfe=function(a,b){var c=jxc("PeopleStore.BigBug"),d=c.setLogSource;var e=a.getClearcut();e=Ii(e,3,41);this.logContext_=ixc(d.call(c,e).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(834323501).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(q(a.runtimeConfig_.getExperiments().getExperimentIdsList()),q(vw?vw.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);
this.eventsFactory_=new Hfe};Kfe.prototype.getLogContext=function(){return this.logContext_};var Lfe=function(a){this.clientConfig_=a;this.reportingCache_=new Map};Lfe.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Kfe(this.clientConfig_,a),a=new sfe(new rfe(p9d(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var Mfe=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};h=Mfe.prototype;h.reportDisplay=function(a){W$(this,yw(a,1))};h.reportSelect=function(a,b){b=b===void 0?new H$d:b;if(b.getOriginator()!==0)for(var c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!Ji(d,pw,2)){var e=d,f=new pw;Zi(e,pw,2,f)}d=pv(d);Vn(d,4,b.getOriginator())}b=this.sharedSessionState_;c=nn(En(this.sharedSessionState_,4))+1;Kn(b,4,c);W$(this,yw(a,2,this.sharedSessionState_))};
h.reportExternalSelect=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!Ji(c,pw,2)){var d=c,e=new pw;Zi(d,pw,2,e)}c=pv(c);Vn(c,4,2)}b=this.sharedSessionState_;c=nn(En(this.sharedSessionState_,4))+1;Kn(b,4,c);W$(this,yw(a,15,this.sharedSessionState_))};h.reportDeselect=function(a){W$(this,yw(a,17,this.sharedSessionState_))};h.reportProceed=function(a){W$(this,yw(a,10,this.sharedSessionState_))};
h.reportDismiss=function(){var a=this.sharedSessionState_,b=new wxc;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(X(a,ww,10));W$(this,[b])};h.reportSave=function(a){W$(this,yw(a,9,this.sharedSessionState_))};h.reportSecondaryAction=function(a){W$(this,yw(a,19,this.sharedSessionState_))};h.reportSend=function(a){W$(this,yw(a,8,this.sharedSessionState_,!0))};var W$=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var Nfe=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;Kn(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));Kn(this.sharedSessionState_,4,0);pyd(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Y(Nfe,Ree);
Nfe.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();pyd(this.sharedSessionState_,nn(En(this.sharedSessionState_,3))+1);d.setQuery("");ryd(d);var e=0;this.delegate_.suggest(function(f){e=Ofe(c,f.getResults(),xxc(f),d,e);a(f)},b)};
Nfe.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();pyd(this.sharedSessionState_,nn(En(this.sharedSessionState_,3))+1);e.setQuery(a);ryd(e);var f=0;this.delegate_.search(a,function(g){f=Ofe(d,g.getResults(),xxc(g),e,f);b(g)},c)};Nfe.prototype.getReporter=function(a){return new Mfe(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};Nfe.prototype.getSessionState=function(){return this.sharedSessionState_};
var Ofe=function(a,b,c,d,e){d=d.clone();var f=qyd();nx(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();Kn(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=l(b);for(b=a.next();!b.done;b=a.next()){var g=b.value;b=g.getIsBoosted();f=0;g=l(g.getTargetList());for(var k=g.next();!k.done;k=g.next()){k=k.value.getLoggingToken();Ui(k,qw,1).setIsBoosted(b);var m=pv(k)||new pw;m.getProvenance()!==7&&m.setProvenance(c.getProvenance());Tn(m,2,e);Tn(m,1,f);Zi(k,pw,2,m);k.setSessionState(d);f++}e++}return e};var Pfe=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=bsc();this.clearcutConfig_=c};Y(Pfe,See);
Pfe.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 zw;g=c.getOriginator();e=l(e);for(var k=e.next();!k.done;k=e.next()){k=l(k.value.getTargetList());for(var m=k.next();!m.done;m=k.next()){m=m.value.getLoggingToken();var r=pv(m)||new pw;r.getProvenance()!==7&&r.setProvenance(f.getProvenance());Vn(r,4,g);Zi(m,pw,2,r)}}b(d)},c)};
Pfe.prototype.beginSession=function(a){var b=new MW,c=Qfe(this,a);Zi(b,ww,10,c);c=Rfe(this,a);Zi(b,xw,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new Nfe(a,this.reportingFactory_,b,this)};
var Qfe=function(a,b){a=Ni(a.clearcutConfig_,ww,5,Oi());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new ww},Rfe=function(a,b){a=Ni(a.clearcutConfig_,xw,6,Oi());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new xw};var Sfe=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new tbe(e);this.indexes_=$ce(Um(e,8,250),rm(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};h=Sfe.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 zw,!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;Zj(e,3);break;case 2:return be(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new sw),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=ube(this.ranker_,b,1),d=l(b),e=d.next();!e.done;e=d.next())this.targetFactory_.processItem(e.value);d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=aee(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 Tfe=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};Tfe.prototype.getStageType=function(){return 2};Tfe.prototype.index_=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.indexer_.storeItems(a,b)};
Tfe.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return c=new Map,d=k$(new zw,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=Bde(a),Yd(x,2),z(x,b.adapter_.lookup(f),4);case 4:g=x.yieldResult;Zj(x,3);break;case 2:return be(x),d.setCode(13),a.notify(c,[],d),x.return();case 3:b.index_(g,e);k=l(f);for(m=k.next();!m.done;m=k.next())r=m.value,(w=b.indexer_.load(r,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(r,w);
a.notify(c,[],d);ce(x)}})};var Ufe=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};Ufe.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;}})};
Ufe.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 Vfe=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};Vfe.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
Vfe.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;}})};Vfe.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var Wfe=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new tbe(e);this.index_=T$};h=Wfe.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 zw,!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;Zj(e,3);break;case 2:return be(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new sw),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.index=function(a,b){a=ube(this.ranker_,b,1);for(var c=l(b),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.storage_.storeItems(1,b);this.index_=aee(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 Xfe=function(a,b){this.provider_=a;this.itemFactory_=b};Xfe.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 Fyd).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(Yfe(d))})};Xfe.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(Yfe(c))})};Xfe.prototype.getName=function(){return this.provider_.name};var Zfe=function(a,b){this.provider_=a;this.itemFactory_=b};Zfe.prototype.getPosition=function(){return this.provider_.getPosition()};Zfe.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};Zfe.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(Yfe(b))})};Zfe.prototype.getName=function(){return this.provider_.name};var $fe=new hde(68,69,38);var age=function(){},bge=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=l(c.getTargetList()),g=f.next();!g.done;g=f.next())g=Bxc(c,g.value,7),e.push(String(g.id)),g.coalescedKeys=e,d||(d=g),b.push(g);d&&Uv(d.id)&&(e=void 0,d.totalMemberCount=(e=fx(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var m=l(k.getTargetList());for(m=m.next();!m.done;m=m.next())return k=Bxc(k,m.value,8),b.push(k),String(k.id)}))}return b},Yfe=function(a){a=
Ni(a,cN,1,Oi());return bge(a)};var cge=function(a){this.delegate_=a};cge.prototype.processItem=function(a){a.target=Fxc(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var Gxc=function(){};
Gxc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,g=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var m=b.getClient(),r=new age;var w=w===void 0?sbe:w;b=new Fce(b,new cge(w));w=[];for(var x=l(k.staticDataProviders_.reverse()),D=x.next();!D.done;D=x.next()){D=D.value;var H=c,J=D;J=new Vfe(J,H);J=new Wfe(new Zfe(J,r),b,f,d,m);H=new U$(J,H,$fe);switch(D.getPosition()){case 1:w.push(H);break;case 2:g.push(H);
break;default:throw Error("gh");}}w.length&&g.splice.apply(g,[0,0].concat(q(w)));k=l(k.dynamicDataProviders_);for(w=k.next();!w.done;w=k.next())w=w.value,x=c,D=w,D=new Ufe(D,x),D=new Sfe(new Xfe(D,r),b,f,d,m),x=new U$(D,x,$fe),g.push(x),w=new Ufe(w,c),a.push(new Tfe(new Xfe(w,r),b,e))}};var dge={create:function(a){var b=Utc(mbe||(mbe=lbe('[[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 nbe(b,a);a.runtimeConfig_.getExperiments().getProfileId()?obe(a).getIsEnabled()?(b=Utc(qbe||(qbe=Wtc('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new Xtc(b,1)):b=new uv:b=new uv;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;vw=b.loadExperiments(obe(a).getApplication(),(new Ytc).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new Rce;d=l([Hxc]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new Rce:c;b=a.getClearcut();b=new mfe(b,a.runtimeConfig_);b=new Gtc(Htc(b));b=new Oce(b);d=new Qce(a,b);e=c;c=d.targetFactory_;var f=a.getClient();c=new qde(c,f);var g=g===void 0?bfe:g;g=
new cfe(d.loader_,a,g);f=new $ee(g,b,a);var k=[new Qee,new yde,new jde].concat(q(e.cacheConfigurators_),[new qee]);e=[];var m=[],r=new Dde(c,a);g=new Cde(m,r,a);d={clientConfig:a,trackers:b,storage:c,indexer:r,loader:f,loaderFactory:d,trieFactory:new $de(c,g,b),prefixCaches:e,lookupStages:m};f=l(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new Lde(e);g=new Qde(a,b,d,g,c);d=a.getClient();c=new Dee(d,c);d=a.getClient();g=new oee(g,c,d);c=new Lfe(a);a=a.getClearcut();g=new Pfe(g,c,a);
g=new qfe(g,b);return new gfe(g)}};var ege=function(){};ege.prototype.send=function(a,b){Lva(a);return this.makeRequest(a).then(function(c){return b?Hva(b,c):c})};var fge=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(fge,ege);h=fge.prototype;h.getGapi=function(){var a=this;return(this.customGapiPromise||A9a()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return G9a(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,F9a(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)&&D9a(a,b,this.gapiConfigUpdates[b])};fge.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var gge=function(){};gge.\u0275fac=function(a){return new (a||gge)};gge.\u0275mod=cf({type:gge});
gge.\u0275inj=Gc({providers:[{provide:yqd,useFactory:function(){var a=new fge("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=Ixc();a.customGapiPromise=b;return new Grd(a)}}],imports:[{ngModule:FX,providers:[SW,{provide:yyd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:dge,autocompleteFactory:fae}}}]},{ngModule:T_,providers:[hJd,
{provide:gJd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:dge,searchBarFactory:gbe}}}]}]});var Lxc={os:1223084,version:1223033},Kxc={os:201569,version:201543};var Rxc={unconfirmed:5437934,chromiumRegression:5438261},Qxc={unconfirmed:1218157,chromiumRegression:1218155};var X$={},hge=(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:Fh([Dh("What is the link to that software in "),Jxc("the Chrome Webstore","https://chrome.google.com/webstore"),Dh("?")]),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:Fh([Dh("For crashes, what was the crash state? [See "),
Jxc("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Dh(", include the stack trace *with symbols*, registers, exception record]:")]),answerPrefix:"Crash state: "},{type:"INPUT",question:"Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited?",answerPrefix:"Reporter credit: "}],X$);var ige=function(){};ige.\u0275fac=function(a){return new (a||ige)};ige.\u0275mod=cf({type:ige});ige.\u0275inj=Gc({imports:[L_]});var jge=function(){};jge.\u0275fac=function(a){return new (a||jge)};jge.\u0275mod=cf({type:jge});jge.\u0275inj=Gc({providers:[rA],imports:[hA,o0d,$y,yA,m7,k7,Zy]});var kge=function(){};kge.\u0275fac=function(a){return new (a||kge)};kge.\u0275mod=cf({type:kge});kge.\u0275inj=Gc({providers:[{provide:c0d,useValue:hge},{provide:e0d,useFactory:Mxc},{provide:d0d,useFactory:Pxc},{provide:f0d,useFactory:Sxc}],imports:[t0,cP,L5,OE,pC,ige,yL,SE,NU,FU,jge,y0]});var lge=function(){};lge.\u0275fac=function(a){return new (a||lge)};lge.\u0275mod=cf({type:lge});lge.\u0275inj=Gc({imports:[cP,pC,GK,HU,OE,PE,H4]});var mge=function(){};mge.\u0275fac=function(a){return new (a||mge)};mge.\u0275mod=cf({type:mge});mge.\u0275inj=Gc({imports:[WU,cP,H4,KW,OE,MU,GK,yL,C5,WX]});var nge=function(){};nge.\u0275fac=function(a){return new (a||nge)};nge.\u0275mod=cf({type:nge});nge.\u0275inj=Gc({imports:[cP,pC,GK,HU,OE,PE,H4]});var oge=function(){};oge.\u0275fac=function(a){return new (a||oge)};oge.\u0275mod=cf({type:oge});oge.\u0275inj=Gc({imports:[cP,pC,GK,QX]});var pge=function(){};pge.\u0275fac=function(a){return new (a||pge)};pge.\u0275mod=cf({type:pge});pge.\u0275inj=Gc({imports:[cP,pC,GK,kU,oge,fK]});var qge=function(){};qge.\u0275fac=function(a){return new (a||qge)};qge.\u0275mod=cf({type:qge});qge.\u0275inj=Gc({imports:[cP,kU,KX,JX,IX,Z0,GK,eL,pC]});var rge=function(){};rge.\u0275fac=function(a){return new (a||rge)};rge.\u0275mod=cf({type:rge});rge.\u0275inj=Gc({imports:[ty,OE,jE,P_,PE]});var sge=function(){};sge.\u0275fac=function(a){return new (a||sge)};sge.\u0275mod=cf({type:sge});sge.\u0275inj=Gc({imports:[WU,u0,IU,X2,b5,eE,KW,OE,O_,E3,MU,S3,ZV,pC,yL,FU,cK,ZL,fK,YU,GK,b5,pV,wX,PE,rge,WX,cP,Sz,y0,v0,pge,qge,S_,T_,S_,sK]});var tge=function(){};tge.\u0275fac=function(a){return new (a||tge)};tge.\u0275mod=cf({type:tge});tge.\u0275inj=Gc({imports:[WU,cP,H4,KW,OE,MU,GK,M5]});var uge=function(){};uge.\u0275fac=function(a){return new (a||uge)};uge.\u0275mod=cf({type:uge});uge.\u0275inj=Gc({imports:[cP,GK,pC,QL,H4,O_,E3,C2,HU,OE,PE,fK,GX]});var vge=function(){};vge.\u0275fac=function(a){return new (a||vge)};vge.\u0275mod=cf({type:vge});vge.\u0275inj=Gc({imports:[cK,yL,cP,lA,pC,IU,J_,y0]});var wge=function(){};wge.\u0275fac=function(a){return new (a||wge)};wge.\u0275mod=cf({type:wge});wge.\u0275inj=Gc({imports:[cP,GK,pC,QL,H4,HU,cK,OE,PE,fK,GX]});var xge=function(){};xge.\u0275fac=function(a){return new (a||xge)};xge.\u0275mod=cf({type:xge});xge.\u0275inj=Gc({imports:[WU,cP,H4,OE,MU,QL,GK,GX,yL,M5,kU]});var yge=function(){};yge.\u0275fac=function(a){return new (a||yge)};yge.\u0275mod=cf({type:yge});yge.\u0275inj=Gc({imports:[cP,L4,kU,pC]});var zge=function(){};zge.\u0275fac=function(a){return new (a||zge)};zge.\u0275mod=cf({type:zge});zge.\u0275inj=Gc({imports:[cP,pC,O5,kU]});var Age=function(){};Age.\u0275fac=function(a){return new (a||Age)};Age.\u0275mod=cf({type:Age});Age.\u0275inj=Gc({imports:[pV,cP,LU,R0,J6,s3,XV,OE,pC,yL,cK,SE,FU,XX,GK,$y,sK,eL,wX,PE,I6]});var Bge=function(){};Bge.\u0275fac=function(a){return new (a||Bge)};Bge.\u0275mod=cf({type:Bge});Bge.\u0275inj=Gc({imports:[cP,i3,u5]});var Cge=function(){};Cge.\u0275fac=function(a){return new (a||Cge)};Cge.\u0275mod=cf({type:Cge});Cge.\u0275inj=Gc({imports:[cP,yX,OE,QL,rV,GX,MU,ZL,pC,yL,GK,cK,kU]});var Dge=function(){};Dge.\u0275fac=function(a){return new (a||Dge)};Dge.\u0275mod=cf({type:Dge});Dge.\u0275inj=Gc({imports:[WU,cP,yX,i3,Z2,B6,F6,H6,T3,H4,K6,Age,OE,MU,pC,yL,cK,FU,YU,QL,GK,GX,C5,Cge,Sz,Bge,A5,kU,WX,SX,C9]});var Ege=function(){};Ege.\u0275fac=function(a){return new (a||Ege)};Ege.\u0275mod=cf({type:Ege});Ege.\u0275inj=Gc({imports:[cP,H4,OE,pC,yL,cK,XX,QL,GK,YU,GX,Sz,A5,X1,eX,u5,jNd]});var Fge=function(){};Fge.\u0275fac=function(a){return new (a||Fge)};Fge.\u0275mod=cf({type:Fge});Fge.\u0275inj=Gc({imports:[cP,pC,PR,sK,tz,wV,OE,PE,dE,FU,$y,RE,QL]});var Gge=function(){};Gge.\u0275fac=function(a){return new (a||Gge)};Gge.\u0275mod=cf({type:Gge});Gge.\u0275inj=Gc({imports:[cP,GV]});var Hge=function(){};Hge.\u0275fac=function(a){return new (a||Hge)};Hge.\u0275mod=cf({type:Hge});Hge.\u0275inj=Gc({imports:[cP,Gge,eL,GK]});var Ige=function(){};Ige.\u0275fac=function(a){return new (a||Ige)};Ige.\u0275mod=cf({type:Ige});Ige.\u0275inj=Gc({imports:[cP,rV,GV,IU,pC]});var Jge=function(){};Jge.\u0275fac=function(a){return new (a||Jge)};Jge.\u0275mod=cf({type:Jge});Jge.\u0275inj=Gc({imports:[cP,GV,rV]});var Kge=function(){};Kge.\u0275fac=function(a){return new (a||Kge)};Kge.\u0275mod=cf({type:Kge});Kge.\u0275inj=Gc({imports:[cP,rV,GV,IU]});var Lge=function(){};Lge.\u0275fac=function(a){return new (a||Lge)};Lge.\u0275mod=cf({type:Lge});Lge.\u0275inj=Gc({imports:[cP,GK,eL,Kge,Jge,Ige]});var Mge=function(){};Mge.\u0275fac=function(a){return new (a||Mge)};Mge.\u0275mod=cf({type:Mge});Mge.\u0275inj=Gc({imports:[cP,eL]});var Nge=function(){};Nge.\u0275fac=function(a){return new (a||Nge)};Nge.\u0275mod=cf({type:Nge});Nge.\u0275inj=Gc({imports:[cP,Mge,eL,GK]});var Oge=function(){};Oge.\u0275fac=function(a){return new (a||Oge)};Oge.\u0275mod=cf({type:Oge});Oge.\u0275inj=Gc({imports:[cP,eL]});var Pge=function(){};Pge.\u0275fac=function(a){return new (a||Pge)};Pge.\u0275mod=cf({type:Pge});Pge.\u0275inj=Gc({imports:[cP,GK,eL,Oge]});var Qge=function(){};Qge.\u0275fac=function(a){return new (a||Qge)};Qge.\u0275mod=cf({type:Qge});Qge.\u0275inj=Gc({imports:[cP,pL,GK,fK,yL,pC,sK]});var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=cf({type:Y$});Y$.\u0275inj=Gc({imports:[cP,pL,fK]});var Rge=function(){};Rge.\u0275fac=function(a){return new (a||Rge)};Rge.\u0275mod=cf({type:Rge});Rge.\u0275inj=Gc({imports:[cP,xV,GV,mC,$y,tH,lA,I_]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=cf({type:Z$});Z$.\u0275inj=Gc({imports:[ty,QS,PX]});var Sge=function(){};Sge.\u0275fac=function(a){return new (a||Sge)};Sge.\u0275mod=cf({type:Sge});Sge.\u0275inj=Gc({imports:[cP,GV,xV,XX,QL,yL,GK,pC,Qge,Rge,Y$,kU,KX,yX,Z$,HX,Lge,Pge,tH,Nge,Hge,Fge,lA]});var Tge=function(){};Tge.\u0275fac=function(a){return new (a||Tge)};Tge.\u0275mod=cf({type:Tge});Tge.\u0275inj=Gc({imports:[cP,pC,Sge,GK]});var Uge=function(){};Uge.\u0275fac=function(a){return new (a||Uge)};Uge.\u0275mod=cf({type:Uge});Uge.\u0275inj=Gc({imports:[cP,pL,GK]});var Vge=function(){};Vge.\u0275fac=function(a){return new (a||Vge)};Vge.\u0275mod=cf({type:Vge});Vge.\u0275inj=Gc({imports:[cP,KX,kU,Uge,Y$,GV,yX,Z$,HX,Z0,pC,QL,XX,GK]});var Wge=function(){};Wge.\u0275fac=function(a){return new (a||Wge)};Wge.\u0275mod=cf({type:Wge});Wge.\u0275inj=Gc({imports:[cP,OE,pC,GK,PE,U1,Tge,Vge,wU,Sz]});var Xge=function(){};Xge.\u0275fac=function(a){return new (a||Xge)};Xge.\u0275mod=cf({type:Xge});Xge.\u0275inj=Gc({imports:[$y]});var Yge=function(){};Yge.\u0275fac=function(a){return new (a||Yge)};Yge.\u0275mod=cf({type:Yge});Yge.\u0275inj=Gc({imports:[FU,cP,OE]});var Zge=function(){};Zge.\u0275fac=function(a){return new (a||Zge)};Zge.\u0275mod=cf({type:Zge});Zge.\u0275inj=Gc({imports:[LU,cP,OE,yL,pC,cK,FU,SE,YU,XX,fK,QL,GK,$U,sK,pV,p8,Yge,kU,$y,S_]});var $ge=function(){};$ge.\u0275fac=function(a){return new (a||$ge)};$ge.\u0275mod=cf({type:$ge});$ge.\u0275inj=Gc({imports:[cP,HU,pC]});var ahe={disableCheatSheet:!0};ahe=ahe===void 0?{}:ahe;
var bhe=[cP,zRd,bV,Wy,EI,V2,S3,xV,g2,MU,D2,$U,i2,C5,X1,E2,RX,WU,S4,q3,d2,u6,D_d,G0,AV,ZV,B_,h3,IX,tge,xge,zge,yge,C1d,s3d,$5d,a6d,mge,Dge,Ege,U5d,L4,O5,T3,L6,M6,X4,dV,J4,H3,E_d,EZd,g_d,FZd,u_d,f_d,e_d,q5,s5,txd,o5,F3,H2,LU,IU,J_,vge,wAd,c2,w5,C2,PV,y5,FXd,j5,k5,s_d,n6,kU,ARd,JZ,LV,a2,H6,$ge,K6,d_d,X5,rV,yX,GV,Zge,HV,oU,T4,Y4,M5,A5,U4,H4,w6,lge,nge,E6,F5,o3,i3,aSd,Z2,V4,l5,s3,BX,c5,d5,E3,K5,e5,f5,F6,W2,DRd,GX,I4,u0,B6,uge,p2,wge,sge,ERd,D9,XXd,E6d,Wge,EPd,o_d,eud,Xge,Sy,{ngModule:aT,providers:[$S,
{provide:ird,useFactory:function(a){a=new Brd("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,Object.assign({},Ird,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly",clientId:a.clientId});return new Grd(a)},deps:[Hrd]},{provide:Hrd,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",gapiConfig:{withCredentials:!0},clientId:"693999850130-un1os7r4h5lc2ujbjni9u6aqpvih8hde.apps.googleusercontent.com"}}}]},
{ngModule:Gtd,providers:[qU,{provide:Ftd,useValue:ahe}]},gge];TWa("enableChromeWizard")&&bhe.push(kge);
var che=[ela(function(){p(kQ)}),bhd,UXd,VXd,WXd,KPd,Zid,{provide:wad,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:QFd,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:QFc,useValue:{disableTooltipInteractivity:!0,showDelay:100,hideDelay:0}},{provide:oAd,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:rAd,useValue:"92912"},F_d,R_d,S_d,T_d],Wx=function(){};Wx.prototype.ngDoBootstrap=function(){kn("bootstrapping AppModule")};
Wx.\u0275fac=function(a){return new (a||Wx)};Wx.\u0275mod=cf({type:Wx,bootstrap:[yRd,z_d]});Wx.\u0275inj=Gc({providers:[].concat(q(che)),imports:[bhe,A6d]});pB(document,"DOMContentLoaded",function(){pCc()});
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
